MediaWiki:Common.css
De DerechoPedia
Ir a la navegaciónIr a la búsqueda
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
- Opera: Presiona Ctrl+F5.
/* === DERECHOPEDIA REDESIGN 2025 === */
:root {
--dp-navy: #1c2e4a;
--dp-navy2: #243d5f;
--dp-link: #1a56a0;
--dp-text: #1a1a1a;
--dp-sub: #5a6474;
--dp-light: #f4f5f7;
--dp-border: #d6d9de;
--dp-white: #ffffff;
--dp-amber: #c17f24;
--dp-amber2: #a56c1a;
--dp-amber-light: #fdf3e3;
--dp-sw: 220px;
--dp-nh: 58px;
}
body {
background: #f0f2f5 !important;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
padding-top: var(--dp-nh) !important;
margin: 0 !important;
}
#p-logo, #column-one CENTER,
#sidebar-toggle, #p-personal-toggle, #globalWrapper-toggle,
#p-personal, #p-cactions-mobile { display: none !important; }
.emptyPortlet { display: none !important; }
#globalWrapper { margin: 0 !important; padding: 0 !important; }
#column-one {
position: fixed !important;
float: none !important;
top: var(--dp-nh) !important;
left: 0 !important;
width: var(--dp-sw) !important;
height: calc(100vh - var(--dp-nh)) !important;
overflow-y: auto !important;
overflow-x: hidden !important;
background: var(--dp-white) !important;
border-right: 1px solid var(--dp-border) !important;
z-index: 50 !important;
}
#column-content {
float: none !important;
margin-left: var(--dp-sw) !important;
width: auto !important;
background: var(--dp-white);
min-height: calc(100vh - var(--dp-nh));
}
#content {
background: var(--dp-white) !important;
border: none !important;
padding: 20px 28px 48px !important;
margin: 0 !important;
}
#content h1.firstHeading {
font-family: Georgia, serif !important;
font-size: 20px !important;
font-weight: normal !important;
color: var(--dp-navy) !important;
border-bottom: 1px solid var(--dp-border) !important;
padding-bottom: 8px !important;
margin-bottom: 16px !important;
}
#footer {
margin-left: var(--dp-sw) !important;
float: none !important;
border-top: 1px solid var(--dp-border) !important;
padding: 12px 24px !important;
background: var(--dp-white) !important;
font-size: 11.5px !important;
color: var(--dp-sub) !important;
}
#footer a { color: var(--dp-sub) !important; }
#footer a:hover { color: var(--dp-navy) !important; text-decoration: none !important; }
#footer ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 14px; flex-wrap: wrap; }
#footer li { margin: 0; }
/* Tabs */
#p-cactions { background: var(--dp-white) !important; border-bottom: 1px solid var(--dp-border) !important; padding: 0 10px !important; margin: 0 !important; overflow: hidden !important; }
#p-cactions h3 { display: none !important; }
#p-cactions .pBody { padding: 0 !important; border: none !important; background: none !important; }
#p-cactions ul { display: flex !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
#p-cactions li { margin: 0 !important; }
#p-cactions li a { display: block !important; padding: 6px 10px !important; font-size: 11px !important; color: var(--dp-sub) !important; border-bottom: 2px solid transparent !important; white-space: nowrap !important; text-decoration: none !important; }
#p-cactions li a:hover { color: var(--dp-navy) !important; border-bottom-color: var(--dp-border) !important; }
#ca-nstab-main a { color: var(--dp-navy) !important; font-weight: 600 !important; }
#ca-nstab-main.selected a { border-bottom-color: var(--dp-navy) !important; }
#ca-edit a { color: var(--dp-navy) !important; font-weight: 600 !important; }
#ca-edit a::before { content: "✏️ "; font-size: 10px; }
#ca-edit.selected a { border-bottom-color: var(--dp-amber) !important; background: var(--dp-amber-light) !important; border-radius: 4px 4px 0 0 !important; }
#ca-delete a, #ca-protect a, #ca-move a { color: #ccd0d8 !important; font-size: 10px !important; }
/* Portlets */
.portlet { margin: 0 !important; border: none !important; padding: 0 !important; background: none !important; }
.portlet h3 { font-size: 9.5px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important; color: #a0aab6 !important; padding: 12px 14px 5px !important; border: none !important; background: none !important; margin: 0 !important; }
.portlet .pBody { padding: 0 !important; border: none !important; background: none !important; }
.portlet ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.portlet ul li { margin: 0 !important; }
.portlet ul li a { display: block !important; padding: 7px 14px 7px 22px !important; font-size: 13px !important; color: #2d3a4d !important; border-left: 2px solid transparent !important; line-height: 1.4 !important; text-decoration: none !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.portlet ul li a:hover { background: var(--dp-light) !important; color: var(--dp-navy) !important; border-left-color: var(--dp-navy) !important; text-decoration: none !important; }
/* Search */
#p-search { padding: 8px 10px !important; }
#p-search h3 { display: none !important; }
#p-search #searchInput { width: 100% !important; padding: 6px 10px !important; border: 1px solid var(--dp-border) !important; border-radius: 5px !important; font-size: 12.5px !important; font-family: inherit !important; background: var(--dp-light) !important; color: var(--dp-text) !important; outline: none !important; box-sizing: border-box !important; }
#p-search #searchInput:focus { border-color: var(--dp-link) !important; background: #fff !important; }
#searchButton, #mw-searchButton { display: none !important; }
/* Sitenotice */
#siteNotice, #localNotice { text-align: center; padding: 8px 0 0 !important; }
#siteNotice img, #localNotice img { max-width: 300px !important; height: auto !important; }
/* ── Elementos inyectados ── */
#dp-topnav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 200 !important; background: var(--dp-navy); box-shadow: 0 2px 10px rgba(0,0,0,.22); height: var(--dp-nh); }
.dp-mainbar { height: 100%; display: flex; align-items: center; }
.dp-logo-block { width: var(--dp-sw); padding: 0 16px; display: flex; align-items: center; gap: 9px; flex-shrink: 0; height: 100%; border-right: 1px solid rgba(255,255,255,.08); text-decoration: none !important; }
.dp-logo-img { width: 30px; height: 30px; object-fit: contain; background: rgba(255,255,255,.1); border-radius: 4px; padding: 3px; flex-shrink: 0; }
.dp-logo-sitename { font-family: Georgia, serif; font-size: 14.5px; color: #fff !important; font-weight: normal; display: block; line-height: 1.1; }
.dp-logo-sub { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; display: block; }
.dp-nav-zone { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: 100%; }
.dp-nav-links { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.dp-nav-links li { height: 100%; display: flex; align-items: center; }
.dp-nav-links a { color: rgba(255,255,255,.62) !important; font-size: 12.5px; padding: 0 10px; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap; }
.dp-nav-links a:hover { color: #fff !important; border-bottom-color: rgba(255,255,255,.3); }
.dp-nav-links li.dp-active a { color: #fff !important; border-bottom-color: var(--dp-amber); font-weight: 500; }
.dp-cta-btn { background: var(--dp-amber) !important; color: #fff !important; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 5px; display: flex; align-items: center; gap: 6px; text-decoration: none !important; white-space: nowrap; flex-shrink: 0; }
.dp-cta-btn:hover { background: var(--dp-amber2) !important; }
.dp-cta-dot { width: 6px; height: 6px; background: rgba(255,255,255,.8); border-radius: 50%; animation: dp-pulse 2s infinite; flex-shrink: 0; }
@keyframes dp-pulse { 0%,100%{opacity:.75;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
#dp-firma { background: var(--dp-navy); padding: 14px 14px 12px; }
.dp-firma-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dp-firma-logo { width: 32px; height: 32px; object-fit: contain; background: rgba(255,255,255,.12); border-radius: 4px; padding: 3px; flex-shrink: 0; }
.dp-firma-name { font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.25; }
.dp-firma-name small { display: block; font-weight: normal; font-size: 9.5px; color: rgba(255,255,255,.45); margin-top: 1px; }
.dp-firma-lawyers { display: flex; gap: 6px; margin-bottom: 10px; }
.dp-sb-lawyer { display: flex; align-items: center; gap: 6px; flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 6px 7px; text-decoration: none !important; }
.dp-sb-lawyer:hover { background: rgba(255,255,255,.15); }
.dp-sb-lawyer img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,.2); flex-shrink: 0; }
.dp-sb-lawyer-name { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.88); display: block; line-height: 1.2; }
.dp-sb-lawyer-role { font-size: 8.5px; color: rgba(255,255,255,.45); display: block; }
.dp-firma-wa { display: flex; align-items: center; justify-content: center; gap: 6px; background: #22c55e; color: #fff !important; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 4px; text-decoration: none !important; width: 100%; box-sizing: border-box; }
.dp-firma-wa:hover { background: #16a34a; }
#dp-urgente { margin: 10px 10px 2px; background: var(--dp-amber-light); border: 1px solid #deb96a; border-left: 3px solid var(--dp-amber); border-radius: 5px; padding: 10px 12px; display: block; text-decoration: none !important; }
#dp-urgente:hover { background: #f5e8c4; }
.dp-urg-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--dp-amber2); display: block; margin-bottom: 3px; }
.dp-urg-title { font-size: 12px; font-weight: 600; color: var(--dp-navy); line-height: 1.35; display: block; margin-bottom: 3px; }
.dp-urg-desc { font-size: 10.5px; color: var(--dp-sub); display: block; line-height: 1.4; margin-bottom: 6px; }
.dp-urg-link { font-size: 10.5px; font-weight: 600; color: var(--dp-amber2); display: block; }
.dp-sb-hr { border: none !important; border-top: 1px solid var(--dp-border) !important; margin: 8px 0 !important; }
.dp-sb-tool { margin: 2px 10px 6px; background: #eef2fa; border: 1px solid #c2d0e8; border-radius: 5px; padding: 9px 12px; display: block; text-decoration: none !important; }
.dp-sb-tool:hover { background: #dde8f5; }
.dp-sb-tool-icon { font-size: 15px; display: block; margin-bottom: 4px; }
.dp-sb-tool-name { font-size: 11.5px; font-weight: 600; color: var(--dp-navy); display: block; margin-bottom: 2px; line-height: 1.3; }
.dp-sb-tool-desc { font-size: 10px; color: var(--dp-sub); display: block; line-height: 1.3; }
/* ═══ MOBILE ═══ */
@media (max-width: 960px) {
:root { --dp-sw: 0px; --dp-nh: 54px; }
#column-one { display: none !important; }
#column-content { margin-left: 0 !important; }
#footer { margin-left: 0 !important; padding: 12px 16px !important; }
#content { padding: 14px 16px 40px !important; }
.dp-logo-block { width: auto !important; border-right: none !important; flex: 1; }
.dp-logo-sub { display: none !important; }
.dp-nav-links { display: none !important; }
.dp-nav-zone { padding: 0 12px !important; }
.dp-cta-btn { font-size: 11px !important; padding: 6px 11px !important; }
.dp-cta-dot { display: none !important; }
}
/* ═══ HAMBURGUESA Y MENÚ MOBILE ═══ */
.dp-hamburger {
display: none;
background: none;
border: none;
color: rgba(255,255,255,.85);
font-size: 22px;
cursor: pointer;
padding: 0 10px;
line-height: 1;
flex-shrink: 0;
transition: color .15s;
}
.dp-hamburger:hover { color: #fff; }
.dp-mobile-menu {
display: none;
background: #192840;
border-top: 1px solid rgba(255,255,255,.1);
}
.dp-mobile-menu.dp-menu-open { display: block; }
.dp-mobile-nav { list-style: none; margin: 0; padding: 0; }
.dp-mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
.dp-mobile-nav li a {
display: block;
padding: 13px 18px;
color: rgba(255,255,255,.82) !important;
font-size: 15px;
text-decoration: none !important;
}
.dp-mobile-nav li a:hover { background: rgba(255,255,255,.05); color: #fff !important; }
.dp-mobile-search-wrap {
padding: 12px 16px;
display: flex;
gap: 8px;
border-top: 1px solid rgba(255,255,255,.07);
}
.dp-mobile-search-input {
flex: 1;
padding: 10px 13px;
border: 1px solid rgba(255,255,255,.15);
border-radius: 7px;
background: rgba(255,255,255,.09);
color: #fff;
font-size: 14px;
outline: none;
font-family: inherit;
}
.dp-mobile-search-input::placeholder { color: rgba(255,255,255,.38); }
.dp-mobile-search-input:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.13); }
.dp-mobile-search-btn {
padding: 9px 15px;
background: var(--dp-amber);
border: none;
border-radius: 7px;
color: #fff;
cursor: pointer;
font-size: 15px;
}
.dp-mobile-search-btn:hover { background: var(--dp-amber2); }
.dp-mobile-cta-wrap { padding: 4px 16px 16px; }
.dp-mobile-cta {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background: #22c55e;
color: #fff !important;
padding: 12px;
border-radius: 7px;
text-decoration: none !important;
font-weight: 600;
font-size: 14.5px;
}
.dp-mobile-cta:hover { background: #16a34a; }
@media (max-width: 960px) {
.dp-hamburger { display: flex !important; align-items: center; }
.dp-cta-btn { display: none !important; }
#dp-topnav { height: auto !important; min-height: var(--dp-nh); }
}
/* === PORTADA GUÍAS LABORALES === */
.dp-capture-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
border: 1px solid #eaecf0;
border-radius: 6px;
overflow: hidden;
margin-bottom: 20px;
}
.dp-capture-item {
padding: 12px 14px;
border-right: 1px solid #eaecf0;
border-bottom: 1px solid #eaecf0;
text-decoration: none;
display: block;
background: #fff;
transition: background .12s;
}
.dp-capture-item:nth-child(even) { border-right: none; }
.dp-capture-item:nth-last-child(-n+2) { border-bottom: none; }
.dp-capture-item:hover { background: #f0f4fa !important; }
.dp-cap-ico { font-size: 18px; display: block; margin-bottom: 5px; }
.dp-cap-name { font-size: 13px; font-weight: 600; color: #1c2e4a; display: block; margin-bottom: 3px; line-height: 1.3; }
.dp-cap-desc { font-size: 11.5px; color: #54595d; line-height: 1.4; display: block; }
.dp-cap-arrow { font-size: 11px; color: #1a56a0; margin-top: 4px; display: block; }
.dp-sit-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
border: 1px solid #eaecf0;
border-radius: 6px;
overflow: hidden;
margin-bottom: 20px;
}
.dp-sit-item {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 13px;
border-right: 1px solid #eaecf0;
border-bottom: 1px solid #eaecf0;
text-decoration: none;
background: #fff;
transition: background .1s;
}
.dp-sit-item:nth-child(even) { border-right: none; }
.dp-sit-item:nth-last-child(-n+2) { border-bottom: none; }
.dp-sit-item:hover { background: #f0f4fa !important; }
.dp-sit-ico { font-size: 15px; flex-shrink: 0; }
.dp-sit-txt { font-size: 12.5px; color: #1c2e4a; font-weight: 500; line-height: 1.3; flex: 1; }
.dp-sit-arr { font-size: 11px; color: #54595d; flex-shrink: 0; }
@media (max-width: 700px) {
.dp-capture-grid, .dp-sit-grid { grid-template-columns: 1fr !important; }
.dp-capture-item, .dp-sit-item { border-right: none !important; }
}
/* === EDIT TAB + SITENOTICE FIXES === */
#p-cactions { position: relative !important; z-index: 10 !important; }
#siteNotice, #localNotice { position: relative !important; z-index: 1 !important; }
#ca-edit a { color: #1c2e4a !important; font-weight: 700 !important; }
#ca-edit.selected a { border-bottom: 2px solid #c17f24 !important; }
/* === QUITAR ESPACIO EN BLANCO ARRIBA DE LA BARRA LATERAL === */
#column-one { padding-top: 0 !important; }
/* === QUITAR SUPERPOSICION DE PESTAÑAS SOBRE EL TITULO === */
#firstHeading { margin-top: 44px !important; clear: both !important; position: relative !important; }
.mw-indicators { clear: both !important; }
