MediaWiki:Common.css: Difference between revisions
From Little Tail Wiki
Jump to navigationJump to search
No edit summary Tag: Manual revert |
No edit summary |
||
Line 112: | Line 112: | ||
background-color: #c8ccd1; | background-color: #c8ccd1; | ||
color: #000; | color: #000; | ||
} | |||
/* Style for horizontal lists (separator following item). | |||
@source mediawiki.org/wiki/Snippets/Horizontal_lists | |||
@revision 8 (2016-05-21) | |||
@author [https://jojowiki.com/User:Edokter Edokter] | |||
*/ | |||
.hlist dl, | |||
.hlist ol, | |||
.hlist ul { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
/* Display list items inline */ | |||
.hlist dd, | |||
.hlist dt, | |||
.hlist li { | |||
margin: 0; | |||
display: inline; | |||
} | |||
/* Display nested lists inline */ | |||
.hlist.inline, | |||
.hlist.inline dl, | |||
.hlist.inline ol, | |||
.hlist.inline ul, | |||
.hlist dl dl, .hlist dl ol, .hlist dl ul, | |||
.hlist ol dl, .hlist ol ol, .hlist ol ul, | |||
.hlist ul dl, .hlist ul ol, .hlist ul ul { | |||
display: inline; | |||
} | |||
/* Hide empty list items */ | |||
.hlist .mw-empty-li { | |||
display: none; | |||
} | |||
/* Generate interpuncts */ | |||
.hlist dt:after { | |||
content: ": "; | |||
} | |||
.navbox { /* Navbox container style */ | |||
box-sizing: border-box; | |||
border: 1px solid #a2a9b1; | |||
width: 100%; | |||
clear: both; | |||
font-size: 88%; | |||
text-align: center; | |||
padding: 1px; | |||
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */ | |||
max-width: 100%; | |||
} | |||
.navbox .navbox { | |||
margin-top: 0; /* No top margin for nested navboxes */ | |||
} | |||
.navbox + .navbox { | |||
margin-top: -1px; /* Single pixel border between adjacent navboxes */ | |||
} | |||
.navbox-inner, | |||
.navbox-subgroup { | |||
width: 100%; | |||
} | |||
.navbox-group, | |||
.navbox-title, | |||
.navbox-abovebelow { | |||
padding: 0.25em 1em; /* Title, group and above/below styles */ | |||
line-height: 1.5em; | |||
text-align: center; | |||
} | |||
th.navbox-group { /* Group style */ | |||
text-align: right; | |||
} | |||
.navbox, | |||
.navbox-subgroup { | |||
background-color: #fdfdfd; /* Background color */ | |||
} | |||
.navbox-list { | |||
line-height: 1.5em; | |||
border-color: #fdfdfd; /* Must match background color */ | |||
} | |||
/* cell spacing for navbox cells */ | |||
tr + tr > .navbox-abovebelow, | |||
tr + tr > .navbox-group, | |||
tr + tr > .navbox-image, | |||
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */ | |||
border-top: 2px solid #fdfdfd; /* Must match background color */ | |||
} | |||
.navbox th, | |||
.navbox-title { | |||
background-color: #8a8ac9; /* Level 1 color */ | |||
} | |||
.navbox-abovebelow, | |||
th.navbox-group, | |||
.navbox-subgroup .navbox-title { | |||
background-color: #c2c2e0; /* Level 2 color */ | |||
} | |||
.navbox-subgroup .navbox-group, | |||
.navbox-subgroup .navbox-abovebelow { | |||
background-color: #a6a6d2; /* Level 3 color */ | |||
} | |||
.navbox-even { | |||
background-color: #f7f7f7; /* Even row striping */ | |||
} | |||
.navbox-odd { | |||
background-color: transparent; /* Odd row striping */ | |||
} | |||
.navbox .hlist td dl, | |||
.navbox .hlist td ol, | |||
.navbox .hlist td ul, | |||
.navbox td.hlist dl, | |||
.navbox td.hlist ol, | |||
.navbox td.hlist ul { | |||
padding: 0.125em 0; /* Adjust hlist padding in navboxes */ | |||
text-align: center; | |||
} | |||
/* Default styling for Navbar template */ | |||
.navbar { | |||
display: inline; | |||
font-size: 88%; | |||
font-weight: normal; | |||
} | |||
.navbar ul { | |||
display: inline-block; | |||
white-space: nowrap; | |||
} | |||
.mw-body-content .navbar ul { | |||
line-height: inherit; | |||
} | |||
.navbar li { | |||
word-spacing: -0.125em; | |||
} | |||
.navbar.mini li abbr[title] { | |||
font-variant: small-caps; | |||
border-bottom: none; | |||
text-decoration: none; | |||
cursor: inherit; | |||
color: white; | |||
} | |||
/* Navbar styling when nested in infobox and navbox */ | |||
.infobox .navbar { | |||
font-size: 100%; | |||
} | |||
.navbox .navbar { | |||
display: block; | |||
font-size: 100%; | |||
} | |||
.navbox-title .navbar { | |||
float: left; | |||
text-align: left; | |||
margin-right: 0.5em; | |||
} | |||
.navbox a { | |||
color: #25053b !important; | |||
} | |||
.navbox-title a { | |||
color: white !important; | |||
} | } |
Revision as of 14:44, 2 March 2025
/* CSS placed here will be applied to all skins */ /* DEFAULT SKIN BG */ body { min-height: 100vh; display: flex; flex-direction: column; background-image: linear-gradient(to bottom, transparent, #ffff), url("https://littletail.wiki/images/8/8a/MonoBook-BG.jpg"); background-repeat: inherit; } .mw-footer { margin-top: auto; } /* Interwiki SVG Formatting*/ .wikipedia:after { content:""; background: url(https://littletail.wiki/images/5/5a/Wikipedia%27s_W.svg) no-repeat; background-size: contain; background-repeat: no-repeat; background-position: center center; padding-right: 0.55em; /* sizing */ padding-top: 1.2em; margin-left: -0.4em; margin-right: -0.2em; padding-left: 0.05em; } /* Fonts */ /* Cantarell */ @font-face { font-display: swap; font-family: 'Cantarell'; font-style: bold; font-weight: 500; src: url('/fonts/cantarell-regular-webfont.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ } /* Tabs Content */ .bullet-0 .jw-tabs-content > ul > li:first-child::marker { content: ""; } /* Misc */ .excerpt-block .noexcerpt { display: none; } .gradient { background: rgb(255,255,255); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(94,177,246,1) 15%, rgba(77,160,237,1) 25%, rgba(43,131,218,1) 50%, rgba(77,160,237,1) 75%, rgba(94,177,246,1) 85%, rgba(255,255,255,0) 100%); .jcarousel-item:not(:first-child) { display:none; } /** * Styling for links generated by [[MediaWiki:Edittools]] in WikimediaUI inspired theme. * @source https://www.mediawiki.org/wiki/Extension:CharInsert#Styling * @updated 2020-03-17 */ .mw-charinsert-buttons { margin-top: 8px; border: 1px solid #c8ccd1; padding: 2px 4px 4px; font-size: 1.1em; text-align: center; } .mw-charinsert-buttons a { background-color: #f8f9fa !important; color: #202122; border: thin #36c outset; padding: 0 1px 2px; font-size: 0.9em; font-weight: bold; text-decoration: none; } .mw-charinsert-buttons a:hover { background-color: #fff; color: #404244; } .mw-charinsert-buttons a:active { background-color: #c8ccd1; border-style: inset; } .client-js .mw-edittools-section { display: inline; } .client-js .mw-edittools-section input[type="button"] { background-color: #f8f9fa; color: #202122; margin-left: 1px; border-radius: 2px; padding: 1px 6px; font-size: 0.9em; /* Apply pointer cursor to all interactive elements. */ cursor: pointer; } .client-js .mw-edittools-section input[type="button"]:hover { background-color: #fff; color: #404244; } .client-js .mw-edittools-section input[type="button"]:active { background-color: #c8ccd1; color: #000; } /* Style for horizontal lists (separator following item). @source mediawiki.org/wiki/Snippets/Horizontal_lists @revision 8 (2016-05-21) @author [https://jojowiki.com/User:Edokter Edokter] */ .hlist dl, .hlist ol, .hlist ul { margin: 0; padding: 0; } /* Display list items inline */ .hlist dd, .hlist dt, .hlist li { margin: 0; display: inline; } /* Display nested lists inline */ .hlist.inline, .hlist.inline dl, .hlist.inline ol, .hlist.inline ul, .hlist dl dl, .hlist dl ol, .hlist dl ul, .hlist ol dl, .hlist ol ol, .hlist ol ul, .hlist ul dl, .hlist ul ol, .hlist ul ul { display: inline; } /* Hide empty list items */ .hlist .mw-empty-li { display: none; } /* Generate interpuncts */ .hlist dt:after { content: ": "; } .navbox { /* Navbox container style */ box-sizing: border-box; border: 1px solid #a2a9b1; width: 100%; clear: both; font-size: 88%; text-align: center; padding: 1px; margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */ max-width: 100%; } .navbox .navbox { margin-top: 0; /* No top margin for nested navboxes */ } .navbox + .navbox { margin-top: -1px; /* Single pixel border between adjacent navboxes */ } .navbox-inner, .navbox-subgroup { width: 100%; } .navbox-group, .navbox-title, .navbox-abovebelow { padding: 0.25em 1em; /* Title, group and above/below styles */ line-height: 1.5em; text-align: center; } th.navbox-group { /* Group style */ text-align: right; } .navbox, .navbox-subgroup { background-color: #fdfdfd; /* Background color */ } .navbox-list { line-height: 1.5em; border-color: #fdfdfd; /* Must match background color */ } /* cell spacing for navbox cells */ tr + tr > .navbox-abovebelow, tr + tr > .navbox-group, tr + tr > .navbox-image, tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */ border-top: 2px solid #fdfdfd; /* Must match background color */ } .navbox th, .navbox-title { background-color: #8a8ac9; /* Level 1 color */ } .navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title { background-color: #c2c2e0; /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background-color: #a6a6d2; /* Level 3 color */ } .navbox-even { background-color: #f7f7f7; /* Even row striping */ } .navbox-odd { background-color: transparent; /* Odd row striping */ } .navbox .hlist td dl, .navbox .hlist td ol, .navbox .hlist td ul, .navbox td.hlist dl, .navbox td.hlist ol, .navbox td.hlist ul { padding: 0.125em 0; /* Adjust hlist padding in navboxes */ text-align: center; } /* Default styling for Navbar template */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar ul { display: inline-block; white-space: nowrap; } .mw-body-content .navbar ul { line-height: inherit; } .navbar li { word-spacing: -0.125em; } .navbar.mini li abbr[title] { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit; color: white; } /* Navbar styling when nested in infobox and navbox */ .infobox .navbar { font-size: 100%; } .navbox .navbar { display: block; font-size: 100%; } .navbox-title .navbar { float: left; text-align: left; margin-right: 0.5em; } .navbox a { color: #25053b !important; } .navbox-title a { color: white !important; }