MediaWiki:Citizen.css: mudanças entre as edições
Página de Interface do MediaWiki
Mais ações
Sem resumo de edição |
Sem resumo de edição |
||
| (5 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| Linha 26: | Linha 26: | ||
========================================= */ | ========================================= */ | ||
* { box-sizing: border-box !important; } | * { | ||
box-sizing: border-box !important; | |||
} | |||
body { font-family: var(--celta-font-sans) !important; } | body { | ||
font-family: var(--celta-font-sans) !important; | |||
} | |||
/* Full Width Layout Overrides */ | /* Full Width Layout Overrides */ | ||
body:has(.celta-full-width) .citizen-col-toc { display: none !important; } | body:has(.celta-full-width) .citizen-col-toc { | ||
body:has(.celta-full-width) .citizen-col-content { grid-column: 1 / -1 !important; max-width: 100% !important; } | display: none !important; | ||
body:has(.celta-full-width) .celta-page-header { max-width: 1150px; margin: 0 auto 40px auto; } | } | ||
body:has(.celta-full-width) .citizen-section-indicator { display: none !important; } | |||
body:has(.celta-full-width) .citizen-col-content { | |||
grid-column: 1 / -1 !important; | |||
max-width: 100% !important; | |||
} | |||
body:has(.celta-full-width) .celta-page-header { | |||
max-width: 1150px; | |||
margin: 0 auto 40px auto; | |||
} | |||
body:has(.celta-full-width) .citizen-section-indicator { | |||
display: none !important; | |||
} | |||
/* ========================================= | /* ========================================= | ||
| Linha 142: | Linha 159: | ||
} | } | ||
html body:not(.pageInício) .mw-heading2:hover::after { border-color: #3b82f6; } | html body:not(.pageInício) .mw-heading2:hover::after { | ||
html body:not(.pageInício) .mw-heading2::before, html body:not(.pageInício) h2::before { content: none !important; display: none !important; } | border-color: #3b82f6; | ||
} | |||
html body:not(.pageInício) .mw-heading2::before, | |||
html body:not(.pageInício) h2::before { | |||
content: none !important; | |||
display: none !important; | |||
} | |||
/* H3 Styles */ | /* H3 Styles */ | ||
| Linha 161: | Linha 185: | ||
========================================= */ | ========================================= */ | ||
pre, .mw-highlight, .mw-code { | pre, | ||
.mw-highlight, | |||
.mw-code { | |||
background-color: #243342 !important; | background-color: #243342 !important; | ||
color: #f8f9fa !important; | color: #f8f9fa !important; | ||
| Linha 177: | Linha 203: | ||
} | } | ||
pre code, .mw-highlight code { | pre code, | ||
.mw-highlight code { | |||
background: transparent !important; | background: transparent !important; | ||
color: inherit !important; | color: inherit !important; | ||
| Linha 203: | Linha 230: | ||
} | } | ||
.mw-copy-btn svg { width: 16px; height: 16px; stroke: #a0aec0; transition: stroke 0.2s; | .mw-copy-btn svg { | ||
width: 16px; | |||
height: 16px; | |||
stroke: #a0aec0; | |||
transition: stroke 0.2s; | |||
} | |||
.citizen-col-toc { padding-top: 60px !important; } | .mw-copy-btn:hover { | ||
.page-info { opacity: 0.6; font-size: 0.85em; } | background: rgba(255, 255, 255, 0.2); | ||
border-color: rgba(255, 255, 255, 0.3); | |||
transform: translateY(-1px); | |||
} | |||
.mw-copy-btn:hover svg { | |||
stroke: #fff; | |||
} | |||
.mw-copy-btn.copied { | |||
background: rgba(34, 197, 94, 0.2); | |||
border-color: rgba(34, 197, 94, 0.4); | |||
} | |||
.mw-copy-btn.copied svg { | |||
stroke: #4ade80; | |||
} | |||
.citizen-col-toc { | |||
padding-top: 60px !important; | |||
} | |||
.page-info { | |||
opacity: 0.6; | |||
font-size: 0.85em; | |||
} | |||
/* ========================================= | /* ========================================= | ||
| Linha 216: | Linha 269: | ||
========================================= */ | ========================================= */ | ||
.citizen-page-footer { padding: 0px !important; margin-top: 0px !important; margin-bottom: 0px; | .citizen-page-footer { | ||
padding: 0px !important; | |||
margin-top: 0px !important; | |||
margin-bottom: 0px; | |||
} | |||
.citizen-footer { | |||
padding: 4px 20px !important; | |||
margin-top: 30px !important; | |||
border-top: 1px solid #eaecf0; | |||
min-height: 0 !important; | |||
} | |||
.citizen-footer__content { | |||
display: flex !important; | |||
flex-direction: row !important; | |||
align-items: center !important; | |||
justify-content: space-between !important; | |||
gap: 10px !important; | |||
width: 100% !important; | |||
} | |||
#footer-icons { order: 3; margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center !important } | #footer-info, | ||
#footer-icons img { height: 28px !important; width: auto !important; } | #footer-info ul, | ||
#footer-info li { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
line-height: 1.1 !important; | |||
} | |||
.citizen-footer__logo { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
order: 1; | |||
line-height: 0 !important; | |||
} | |||
.citizen-footer .mw-logo-wordmark { | |||
display: none !important; | |||
} | |||
.citizen-footer .mw-logo-icon { | |||
height: 45px !important; | |||
width: auto !important; | |||
display: block !important; | |||
} | |||
#footer-info { | |||
order: 2; | |||
text-align: center !important; | |||
flex-grow: 1; | |||
font-size: 0.85em !important; | |||
color: #666; | |||
} | |||
#footer-info li { | |||
display: inline-block !important; | |||
} | |||
#footer-icons { | |||
order: 3; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
display: flex !important; | |||
align-items: center !important | |||
} | |||
#footer-icons img { | |||
height: 28px !important; | |||
width: auto !important; | |||
} | |||
#footer-info-lastmod, | |||
.citizen-footer__lastmod { | |||
display: none !important; | |||
} | |||
.citizen-footer__siteinfo { | |||
display: block !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
order: 1; | |||
} | |||
.citizen-footer__sitetitle { | |||
display: block !important; | |||
margin: 0 !important; | |||
line-height: 0 !important; | |||
} | |||
/* ========================================= | /* ========================================= | ||
| Linha 240: | Linha 364: | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.citizen-footer__content { flex-direction: column !important; gap: 8px !important; padding: 10px 0 !important; } | .citizen-footer__content { | ||
.citizen-col-toc { display: none !important; } | flex-direction: column !important; | ||
.citizen-col-content { grid-column: 1 / -1 !important; max-width: 100% !important; display: flex !important; align-items: center !important; } | gap: 8px !important; | ||
padding: 10px 0 !important; | |||
} | |||
.citizen-col-toc { | |||
display: none !important; | |||
} | |||
.citizen-col-content { | |||
grid-column: 1 / -1 !important; | |||
max-width: 100% !important; | |||
display: flex !important; | |||
align-items: center !important; | |||
} | |||
} | |||
.erp-menu-item.active { | |||
background-color: #e3f2fd !important; | |||
color: #1565c0 !important; | |||
border-left-color: #3366cc !important; | |||
} | } | ||
Edição atual tal como às 20h16min de 13 de dezembro de 2025
/* =========================================
CELTA WIKI - CITIZEN SKIN OVERRIDES
========================================= */
:root {
/* --- Palette --- */
--celta-blue: #3366cc;
--celta-dark: #151E32;
--celta-green: #198754;
--celta-yellow: #ffc107;
--celta-red: #dc3545;
/* --- Text & Borders --- */
--celta-text-main: #333;
--celta-text-muted: #64748b;
--celta-border-light: #e2e8f0;
--celta-border-code: #cbd5e1;
/* --- Fonts --- */
--celta-font-sans: 'Segoe UI', Roboto, sans-serif;
--celta-font-mono: 'Consolas', 'Monaco', monospace;
}
/* =========================================
1. GLOBAL RESET & LAYOUT
========================================= */
* {
box-sizing: border-box !important;
}
body {
font-family: var(--celta-font-sans) !important;
}
/* Full Width Layout Overrides */
body:has(.celta-full-width) .citizen-col-toc {
display: none !important;
}
body:has(.celta-full-width) .citizen-col-content {
grid-column: 1 / -1 !important;
max-width: 100% !important;
}
body:has(.celta-full-width) .celta-page-header {
max-width: 1150px;
margin: 0 auto 40px auto;
}
body:has(.celta-full-width) .citizen-section-indicator {
display: none !important;
}
/* =========================================
2. HEADER & PAGE TITLES (Top)
========================================= */
/* Hide Default Wiki Elements */
#siteSub,
.citizen-section-indicator,
body:not(.pageInício) .mw-page-title-main,
body:not(.pageInício) h1#firstHeading,
body:not(.pageInício) .firstHeading-container,
body:not(.pageInício) .citizen-header__text {
display: none !important;
}
/* Header Container Adjustments */
body:not(.pageInício) header.mw-body-header,
body:not(.pageInício) .citizen-page-header {
margin-bottom: 0 !important;
padding-bottom: 0px !important;
min-height: 0 !important;
border-bottom: none !important;
}
.citizen-header .mw-logo-icon,
.citizen-drawer__header .mw-logo-icon {
height: 40px !important;
width: auto !important;
margin-top: 2px !important;
}
/* =========================================
3. TYPOGRAPHY & CONTENT (Middle)
========================================= */
/* General Headings */
html body:not(.pageInício) h1,
html body:not(.pageInício) h2,
html body:not(.pageInício) h3,
html body:not(.pageInício) h4 {
font-family: var(--celta-font-sans) !important;
color: #1e293b !important;
margin-top: 1.2em !important;
margin-bottom: 0.6em !important;
line-height: 1.2 !important;
}
.mw-body-content p {
font-size: 1em !important;
line-height: 1.6 !important;
color: #475569 !important;
margin-bottom: 1.5em !important;
max-width: 900px;
}
/* H1 - Page Title */
html body:not(.pageInício) h1 {
font-size: 2.2rem !important;
font-weight: 700 !important;
border-bottom: 1px solid #e2e8f0 !important;
padding-bottom: 15px !important;
margin-bottom: 30px !important;
margin-top: 10px !important;
}
/* H2 - Section Block */
html body:not(.pageInício) .mw-heading2 {
background-color: #FFFF !important;
border-left: 5px solid var(--celta-blue) !important;
border-radius: 4px !important;
padding: 12px 20px !important;
margin-top: 30px !important;
margin-bottom: 20px !important;
border-bottom: none !important;
border-top: none !important;
border-right: none !important;
font-size: 1.35em !important;
font-weight: 600 !important;
color: #1e293b !important;
display: flex !important;
align-items: center !important;
position: relative;
cursor: pointer;
}
html body:not(.pageInício) .mw-heading2 h2 {
font-size: inherit !important;
font-weight: inherit !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
/* H2 Arrow */
html body:not(.pageInício) .mw-heading2::after {
content: "";
display: inline-block;
width: 8px;
height: 8px;
border-right: 2px solid var(--celta-border-code);
border-bottom: 2px solid var(--celta-border-code);
transform: rotate(45deg);
margin-left: 15px;
transition: transform 0.2s ease;
opacity: 0.7;
}
html body:not(.pageInício) .mw-heading2:hover::after {
border-color: #3b82f6;
}
html body:not(.pageInício) .mw-heading2::before,
html body:not(.pageInício) h2::before {
content: none !important;
display: none !important;
}
/* H3 Styles */
html body:not(.pageInício) h3,
html body:not(.pageInício) .mw-heading3 {
font-size: 1.15em !important;
font-weight: 600 !important;
color: #334155 !important;
border: none !important;
padding-left: 0 !important;
margin-top: 10px !important;
margin-bottom: 0px !important;
}
/* =========================================
4. CODE BLOCKS & UTILS
========================================= */
pre,
.mw-highlight,
.mw-code {
background-color: #243342 !important;
color: #f8f9fa !important;
font-family: var(--celta-font-mono) !important;
padding: 20px !important;
border-radius: 8px !important;
border: 1px solid #34495e !important;
position: relative;
margin: 20px 0;
overflow-x: auto;
white-space: pre-wrap !important;
font-size: 0.9em;
line-height: 1.6;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
pre code,
.mw-highlight code {
background: transparent !important;
color: inherit !important;
border: none !important;
padding: 0 !important;
}
/* Copy Button */
.mw-copy-btn {
position: absolute;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 10;
padding: 6px;
}
.mw-copy-btn svg {
width: 16px;
height: 16px;
stroke: #a0aec0;
transition: stroke 0.2s;
}
.mw-copy-btn:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
.mw-copy-btn:hover svg {
stroke: #fff;
}
.mw-copy-btn.copied {
background: rgba(34, 197, 94, 0.2);
border-color: rgba(34, 197, 94, 0.4);
}
.mw-copy-btn.copied svg {
stroke: #4ade80;
}
.citizen-col-toc {
padding-top: 60px !important;
}
.page-info {
opacity: 0.6;
font-size: 0.85em;
}
/* =========================================
5. FOOTER OVERRIDES (Bottom)
========================================= */
.citizen-page-footer {
padding: 0px !important;
margin-top: 0px !important;
margin-bottom: 0px;
}
.citizen-footer {
padding: 4px 20px !important;
margin-top: 30px !important;
border-top: 1px solid #eaecf0;
min-height: 0 !important;
}
.citizen-footer__content {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: space-between !important;
gap: 10px !important;
width: 100% !important;
}
#footer-info,
#footer-info ul,
#footer-info li {
margin: 0 !important;
padding: 0 !important;
line-height: 1.1 !important;
}
.citizen-footer__logo {
margin: 0 !important;
padding: 0 !important;
order: 1;
line-height: 0 !important;
}
.citizen-footer .mw-logo-wordmark {
display: none !important;
}
.citizen-footer .mw-logo-icon {
height: 45px !important;
width: auto !important;
display: block !important;
}
#footer-info {
order: 2;
text-align: center !important;
flex-grow: 1;
font-size: 0.85em !important;
color: #666;
}
#footer-info li {
display: inline-block !important;
}
#footer-icons {
order: 3;
margin: 0 !important;
padding: 0 !important;
display: flex !important;
align-items: center !important
}
#footer-icons img {
height: 28px !important;
width: auto !important;
}
#footer-info-lastmod,
.citizen-footer__lastmod {
display: none !important;
}
.citizen-footer__siteinfo {
display: block !important;
margin: 0 !important;
padding: 0 !important;
order: 1;
}
.citizen-footer__sitetitle {
display: block !important;
margin: 0 !important;
line-height: 0 !important;
}
/* =========================================
6. MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 768px) {
.citizen-footer__content {
flex-direction: column !important;
gap: 8px !important;
padding: 10px 0 !important;
}
.citizen-col-toc {
display: none !important;
}
.citizen-col-content {
grid-column: 1 / -1 !important;
max-width: 100% !important;
display: flex !important;
align-items: center !important;
}
}
.erp-menu-item.active {
background-color: #e3f2fd !important;
color: #1565c0 !important;
border-left-color: #3366cc !important;
}