MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/************************************************************ | /************************************************************ | ||
* CLEAN MINIMAL THEME | * CLEAN MINIMAL MEDIAWIKI THEME | ||
* Full RGB • No Gradients • No Shadows • Responsive • Safari Safe | |||
************************************************************/ | ************************************************************/ | ||
/* | /*============================================================ | ||
0. GLOBAL RESET / | 0. GLOBAL RESET / TYPOGRAPHY | ||
============================================================*/ | |||
.mw-wiki-logo, | .mw-wiki-logo, | ||
| Line 21: | Line 22: | ||
html { | html { | ||
font-size: 18px !important; | font-size: 18px !important; | ||
} | } | ||
| Line 36: | Line 37: | ||
} | } | ||
/* Remove shadows everywhere */ | |||
/* Remove all shadows everywhere */ | |||
.portlet, .pBody, #content, #column-content, #column-one, | .portlet, .pBody, #content, #column-content, #column-one, | ||
.portlet h3, .portlet h5, .gallerybox, | .portlet h3, .portlet h5, .gallerybox, | ||
| Line 46: | Line 48: | ||
/* | |||
/*============================================================ | |||
1. HEADER + TOP NAVIGATION (FIXED, NON-TRANSPARENT) | |||
============================================================*/ | |||
#mw-head, | #mw-head, | ||
| Line 54: | Line 57: | ||
#mw-page-base, | #mw-page-base, | ||
.vector-header, | .vector-header, | ||
. | .mw-header, | ||
.vector- | .vector-sticky-header { | ||
background: #ffffff !important; | |||
background: | |||
box-shadow: none !important; | box-shadow: none !important; | ||
filter: none !important; | filter: none !important; | ||
border-bottom: 1px solid #eaeaea !important; | |||
display: flex !important; | display: flex !important; | ||
| Line 67: | Line 69: | ||
} | } | ||
/* Safari compatibility */ | |||
/* | |||
#left-navigation, | #left-navigation, | ||
.vector-page-toolbar { | .vector-page-toolbar { | ||
| Line 84: | Line 82: | ||
} | } | ||
/* Tab links (Read / Edit / View / More...) */ | |||
#p-namespaces li a, | #p-namespaces li a, | ||
#p-views li a, | #p-views li a, | ||
| Line 91: | Line 91: | ||
align-items: center !important; | align-items: center !important; | ||
height: 36px !important; | height: 36px !important; | ||
padding: 8px 15px !important; | |||
background: none !important; | |||
color: rgb(0, 102, 255) !important; | |||
} | } | ||
#p- | #p-namespaces li.selected a, | ||
# | #p-views li.selected a, | ||
#p-cactions li.selected a { | |||
color: rgb(20,20,20) !important; | |||
font-weight: bold !important; | |||
} | } | ||
# | #p-namespaces li a:hover, | ||
#p-views li a:hover, | |||
#p-cactions li a:hover { | |||
background: rgb(240,240,240) !important; | |||
color: rgb(0,51,204) !important; | |||
} | } | ||
/* Remove all borders/underlines from tabs */ | |||
/* Remove all borders | |||
#p-namespaces, | #p-namespaces, | ||
#p-views, | #p-views, | ||
| Line 125: | Line 119: | ||
.vector-tabs, | .vector-tabs, | ||
.vector-menu-tabs { | .vector-menu-tabs { | ||
background: #ffffff !important; | |||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
#p-namespaces li.selected a::after, | #p-namespaces li.selected a::after, | ||
#p-views | #p-views li.selected a::after { | ||
content: none !important; | content: none !important; | ||
} | } | ||
/* | |||
#mw- | /* Search box */ | ||
#simpleSearch { | |||
border-bottom: | display: flex !important; | ||
align-items: center !important; | |||
background: #ffffff !important; | |||
transform: scale(0.85); | |||
transform-origin: right center; | |||
} | |||
#searchInput { | |||
height: 28px !important; | |||
width: 140px !important; | |||
padding: 4px 6px !important; | |||
font-size: 0.95rem !important; | |||
border: 1px solid #ccc !important; | |||
background: #ffffff !important; | |||
} | |||
/*============================================================ | |||
2. EDITOR TOOLBARS (VisualEditor + WikiEditor) | |||
============================================================*/ | |||
#wikiEditor-ui-toolbar, | |||
.wikiEditor-ui, | |||
.wikiEditor-ui-toolbar, | |||
.ve-init-mw-desktopArticleTarget-toolbar, | |||
.mw-editToolbar, | |||
#toolbar, | |||
#editform .toolbar { | |||
background: #ffffff !important; | |||
border-bottom: 1px solid #eaeaea !important; | |||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
/* Dropdowns inside editor */ | |||
.wikiEditor-ui-toolbar .group .menu, | |||
.oo-ui-dropdownWidget, | |||
.oo-ui-menuSelectWidget, | |||
.oo-ui-menuSelectWidget-menu { | |||
background: #ffffff !important; | |||
z-index: 9999 !important; | |||
} | |||
/* | /*============================================================ | ||
3. SIDEBAR | |||
============================================================*/ | |||
#column-one { | #column-one { | ||
| Line 156: | Line 188: | ||
} | } | ||
#mw-panel, .vector-legacy-sidebar { | #mw-panel, | ||
.vector-legacy-sidebar { | |||
background: none !important; | background: none !important; | ||
} | } | ||
| Line 167: | Line 200: | ||
} | } | ||
.portlet h3, .portlet h5 { | .portlet h3, | ||
.portlet h5 { | |||
color: rgb(20,20,20) !important; | color: rgb(20,20,20) !important; | ||
font-weight: bold !important; | font-weight: bold !important; | ||
| Line 184: | Line 218: | ||
/* | /*============================================================ | ||
4. CONTENT AREA (Responsive + Clean) | |||
============================================================*/ | |||
# | #content, | ||
.mw-body, | |||
.mw-body-content { | |||
background: none !important; | background: none !important; | ||
border: none !important; | border: none !important; | ||
| Line 232: | Line 233: | ||
border: 1px solid #ddd !important; | border: 1px solid #ddd !important; | ||
border-top: none !important; | border-top: none !important; | ||
margin-top: 24px !important; | margin-top: 24px !important; | ||
} | } | ||
/* Headings | /* Headings */ | ||
h1 { font-size: 2rem !important; } | h1 { font-size: 2rem !important; } | ||
h2 { font-size: 1.6rem !important; } | h2 { font-size: 1.6rem !important; } | ||
| Line 244: | Line 245: | ||
h1, h2, h3, h4, h5, h6, .firstHeading { | h1, h2, h3, h4, h5, h6, .firstHeading { | ||
border | border: none !important; | ||
color: rgb(20,20,20) !important; | color: rgb(20,20,20) !important; | ||
} | } | ||
/* Edit section links */ | |||
/* Edit links */ | |||
.mw-editsection a { | .mw-editsection a { | ||
color: rgb(0,102,255) !important; | color: rgb(0,102,255) !important; | ||
| Line 260: | Line 260: | ||
/* | /*============================================================ | ||
5. RESPONSIVE CONTENT WIDTH | |||
============================================================*/ | |||
.mw-body-content, | .mw-body-content, | ||
| Line 272: | Line 272: | ||
} | } | ||
@media (max-width: 1100px) { | @media (max-width: 1100px) { | ||
.mw-body-content, | .mw-body-content, | ||
| Line 281: | Line 280: | ||
} | } | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
.mw-body-content, | .mw-body-content, | ||
| Line 287: | Line 285: | ||
#mw-content-text { | #mw-content-text { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
padding | padding: 0 16px !important; | ||
} | } | ||
} | } | ||
| Line 294: | Line 291: | ||
/* | /*============================================================ | ||
6. IMAGES / GALLERIES | |||
============================================================*/ | |||
.gallerybox, | .gallerybox, | ||
| Line 316: | Line 313: | ||
} | } | ||
.gallerytext, .thumbcaption { | .gallerytext, | ||
.thumbcaption { | |||
color: rgb(110,110,110) !important; | color: rgb(110,110,110) !important; | ||
} | } | ||
| Line 322: | Line 320: | ||
/* | /*============================================================ | ||
7. TABLES | |||
============================================================*/ | |||
table { | table { | ||
| Line 341: | Line 339: | ||
/* | /*============================================================ | ||
8. INFOBOX | |||
============================================================*/ | |||
.infobox { | .infobox { | ||
| Line 352: | Line 350: | ||
} | } | ||
.infobox th, .infobox td { | .infobox th, | ||
.infobox td { | |||
border-bottom: 1px solid #eee !important; | border-bottom: 1px solid #eee !important; | ||
padding: 8px 0 !important; | padding: 8px 0 !important; | ||
| Line 364: | Line 363: | ||
/* | /*============================================================ | ||
9. FORMS | |||
============================================================*/ | |||
input, textarea, select { | input, textarea, select { | ||
| Line 376: | Line 375: | ||
/* | /*============================================================ | ||
10. FOOTER | |||
============================================================*/ | |||
#footer, #catlinks { | #footer, | ||
#catlinks { | |||
background: none !important; | background: none !important; | ||
border-top: 1px solid #eee !important; | border-top: 1px solid #eee !important; | ||
color: rgb(110,110,110) !important; | color: rgb(110,110,110) !important; | ||
} | } | ||
Revision as of 18:11, 1 December 2025
/************************************************************
* CLEAN MINIMAL MEDIAWIKI THEME
* Full RGB • No Gradients • No Shadows • Responsive • Safari Safe
************************************************************/
/*============================================================
0. GLOBAL RESET / TYPOGRAPHY
============================================================*/
.mw-wiki-logo,
.mw-logo,
.mw-logo-icon,
.mw-logo-wordmark,
.vector-logo,
#p-logo,
#p-logo a,
.mw-logo-container {
display: none !important;
visibility: hidden !important;
}
html {
font-size: 18px !important;
}
body, h1, h2, h3, h4, h5, h6, p, div, span, a, li, td, th,
input, textarea, select, button {
font-family: Arial, sans-serif !important;
color: rgb(30, 30, 30) !important;
line-height: 1.62 !important;
background: transparent !important;
}
body {
background: #ffffff !important;
}
/* Remove all shadows everywhere */
.portlet, .pBody, #content, #column-content, #column-one,
.portlet h3, .portlet h5, .gallerybox,
.thumb, .thumbinner, .infobox, table, #footer,
#p-cactions, .vector-menu-tabs {
box-shadow: none !important;
text-shadow: none !important;
}
/*============================================================
1. HEADER + TOP NAVIGATION (FIXED, NON-TRANSPARENT)
============================================================*/
#mw-head,
#mw-head-base,
#mw-page-base,
.vector-header,
.mw-header,
.vector-sticky-header {
background: #ffffff !important;
box-shadow: none !important;
filter: none !important;
border-bottom: 1px solid #eaeaea !important;
display: flex !important;
align-items: center !important;
min-height: 56px !important;
}
/* Safari compatibility */
#left-navigation,
.vector-page-toolbar {
display: flex !important;
align-items: center !important;
}
#right-navigation {
display: flex !important;
align-items: center !important;
margin-left: auto !important;
}
/* Tab links (Read / Edit / View / More...) */
#p-namespaces li a,
#p-views li a,
#p-cactions li a,
#p-personal ul li a {
display: flex !important;
align-items: center !important;
height: 36px !important;
padding: 8px 15px !important;
background: none !important;
color: rgb(0, 102, 255) !important;
}
#p-namespaces li.selected a,
#p-views li.selected a,
#p-cactions li.selected a {
color: rgb(20,20,20) !important;
font-weight: bold !important;
}
#p-namespaces li a:hover,
#p-views li a:hover,
#p-cactions li a:hover {
background: rgb(240,240,240) !important;
color: rgb(0,51,204) !important;
}
/* Remove all borders/underlines from tabs */
#p-namespaces,
#p-views,
#p-cactions,
#left-navigation,
#right-navigation,
.vector-tabs,
.vector-menu-tabs {
background: #ffffff !important;
border: none !important;
box-shadow: none !important;
}
#p-namespaces li.selected a::after,
#p-views li.selected a::after {
content: none !important;
}
/* Search box */
#simpleSearch {
display: flex !important;
align-items: center !important;
background: #ffffff !important;
transform: scale(0.85);
transform-origin: right center;
}
#searchInput {
height: 28px !important;
width: 140px !important;
padding: 4px 6px !important;
font-size: 0.95rem !important;
border: 1px solid #ccc !important;
background: #ffffff !important;
}
/*============================================================
2. EDITOR TOOLBARS (VisualEditor + WikiEditor)
============================================================*/
#wikiEditor-ui-toolbar,
.wikiEditor-ui,
.wikiEditor-ui-toolbar,
.ve-init-mw-desktopArticleTarget-toolbar,
.mw-editToolbar,
#toolbar,
#editform .toolbar {
background: #ffffff !important;
border-bottom: 1px solid #eaeaea !important;
box-shadow: none !important;
}
/* Dropdowns inside editor */
.wikiEditor-ui-toolbar .group .menu,
.oo-ui-dropdownWidget,
.oo-ui-menuSelectWidget,
.oo-ui-menuSelectWidget-menu {
background: #ffffff !important;
z-index: 9999 !important;
}
/*============================================================
3. SIDEBAR
============================================================*/
#column-one {
display: flex !important;
flex-direction: column !important;
min-height: 100vh !important;
background: none !important;
}
#mw-panel,
.vector-legacy-sidebar {
background: none !important;
}
#p-navigation {
order: 999 !important;
margin-top: auto !important;
padding-top: 60px !important;
border-top: 1px solid #eee !important;
}
.portlet h3,
.portlet h5 {
color: rgb(20,20,20) !important;
font-weight: bold !important;
background: none !important;
}
.portlet .pBody ul li a {
color: rgb(0,102,255) !important;
text-decoration: none !important;
}
.portlet .pBody ul li a:hover {
color: rgb(0,51,204) !important;
text-decoration: underline !important;
}
/*============================================================
4. CONTENT AREA (Responsive + Clean)
============================================================*/
#content,
.mw-body,
.mw-body-content {
background: none !important;
border: none !important;
}
#content {
background: #ffffff !important;
border: 1px solid #ddd !important;
border-top: none !important;
margin-top: 24px !important;
}
/* Headings */
h1 { font-size: 2rem !important; }
h2 { font-size: 1.6rem !important; }
h3 { font-size: 1.35rem !important; }
h4 { font-size: 1.15rem !important; }
h5 { font-size: 1rem !important; }
h6 { font-size: 0.9rem !important; }
h1, h2, h3, h4, h5, h6, .firstHeading {
border: none !important;
color: rgb(20,20,20) !important;
}
/* Edit section links */
.mw-editsection a {
color: rgb(0,102,255) !important;
}
.mw-editsection a:hover {
color: rgb(0,51,204) !important;
text-decoration: underline !important;
}
/*============================================================
5. RESPONSIVE CONTENT WIDTH
============================================================*/
.mw-body-content,
#content,
#mw-content-text {
max-width: 1100px !important;
margin-left: auto !important;
margin-right: auto !important;
}
@media (max-width: 1100px) {
.mw-body-content,
#content,
#mw-content-text {
max-width: 90% !important;
}
}
@media (max-width: 700px) {
.mw-body-content,
#content,
#mw-content-text {
max-width: 100% !important;
padding: 0 16px !important;
}
}
/*============================================================
6. IMAGES / GALLERIES
============================================================*/
.gallerybox,
.gallerybox .thumb,
.thumb,
.thumbinner {
background: none !important;
border: none !important;
}
.gallerybox {
width: 200px !important;
margin: 15px !important;
}
.gallerybox .thumb img {
width: 200px !important;
height: auto !important;
}
.gallerytext,
.thumbcaption {
color: rgb(110,110,110) !important;
}
/*============================================================
7. TABLES
============================================================*/
table {
border-collapse: collapse !important;
background: none !important;
}
table th, table td {
border: 1px solid #ddd !important;
padding: 6px !important;
}
table th {
font-weight: bold !important;
color: rgb(20,20,20) !important;
}
/*============================================================
8. INFOBOX
============================================================*/
.infobox {
background: none !important;
border-left: 3px solid rgb(0,180,255) !important;
padding: 15px !important;
margin: 0 0 20px 20px !important;
}
.infobox th,
.infobox td {
border-bottom: 1px solid #eee !important;
padding: 8px 0 !important;
}
.infobox tr:last-child th,
.infobox tr:last-child td {
border-bottom: none !important;
}
/*============================================================
9. FORMS
============================================================*/
input, textarea, select {
border: 1px solid #ccc !important;
background: #ffffff !important;
border-radius: 0 !important;
}
/*============================================================
10. FOOTER
============================================================*/
#footer,
#catlinks {
background: none !important;
border-top: 1px solid #eee !important;
color: rgb(110,110,110) !important;
}