Difference between revisions of "MediaWiki:Common.css"
From Mushpedia
(Experimenting with front page layout CSS) |
m |
||
| (64 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
| − | . | + | .icon-margin, .margin-small { margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-30 { width: 30px; height: 30px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-20 { width: 20px; height: 20px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-25 { width: 25px; height: 25px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-12 { width: 12px; height: 12px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-50 { width: 50px; height: 50px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-10 { width: 10px; height: 10px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | .small- | + | .small-16 { width: 16px; height: 16px; margin: 0; padding: 0; margin-bottom: 3px;} |
| − | #frontpage_content {} | + | .small-32 { width: 32px; height: 32px; margin: 0; padding: 0; margin-bottom: 3px;} |
| + | |||
| + | .small-em { width: 1.6em; height: 1.6em; margin: 0; padding: 0; margin-bottom: 3px;} | ||
| + | #frontpage_content { | ||
| + | |||
| + | width: 100%; | ||
| + | display: table; | ||
| + | |||
| + | } | ||
.frontpage_column { | .frontpage_column { | ||
| − | float: left; | + | width: 16%; |
| − | + | display: table-cell; | |
| − | + | padding: 0.4em; | |
| + | box-sizing: border-box; | ||
| + | } | ||
| + | |||
| + | table.padded-table > * > tr > td { | ||
| + | padding: 0.4em; | ||
| + | } | ||
| + | |||
| + | .template-main { | ||
| + | display: inline-block; | ||
| + | white-space: nowrap; | ||
| + | border: 1px solid #ccc; | ||
| + | margin-bottom: 0.5em; | ||
| + | padding: 2px; | ||
| + | background: #F9F9F9; | ||
| + | font-size: 95%; | ||
| + | max-width: 350px; | ||
| + | } | ||
| + | |||
| + | |||
| + | .skill-level { | ||
| + | display: inline-block; | ||
| + | width: 18px; | ||
| + | height: 18px; | ||
| + | text-align: center; | ||
| + | background: url("images/0/0f/Level_background.png"); | ||
| + | } | ||
| + | |||
| + | .skill-level-mush { | ||
| + | display: inline-block; | ||
| + | width: 18px; | ||
| + | height: 18px; | ||
| + | text-align: center; | ||
| + | background: url("images/6/63/Level_background_mush.png"); | ||
| + | } | ||
| + | |||
| + | .skill-level a, .skill-level-mush a { | ||
| + | color: #FFF !important; | ||
| + | font-size: 0.95em; | ||
| + | font-weight: bold; | ||
| + | font-family: "Days One", "Segoe UI", "Lucida Grande", "Trebuchet MS", Arial, "lucida sans unicode", sans-serif; | ||
| + | text-shadow: 0px 0px 1px #000; | ||
| + | } | ||
| + | |||
| + | .mush-status-kept, .mush-status-lost, .mush-status-only, .mush-status-none { text-align: center; } | ||
| + | .mush-status-kept { background-color: #d6ffd6; } | ||
| + | .mush-status-lost { background-color: #ffd6d6; } | ||
| + | .mush-status-only { background-color: #e1bcc6; } | ||
| + | .mush-status-none { background-color: #dcdcdc; } | ||
| + | |||
| + | .table { | ||
| + | width: 100%; | ||
| + | display: table; | ||
| + | } | ||
| + | |||
| + | .table-cell { | ||
| + | display: table-cell; | ||
| + | } | ||
| + | |||
| + | .mush-button { | ||
| + | font-family: "Segoe UI", "Lucida Grande", "Trebuchet MS", Arial, "lucida sans unicode", sans-serif; | ||
| + | background-image: url("images/0/03/Butbg.png"); | ||
| + | background-position: left top; | ||
| + | background-repeat: repeat-x; | ||
| + | border-style: solid; | ||
| + | border-width: 0 5px; | ||
| + | border-image: url("images/d/d0/Butborders.png") 0 5 fill stretch; | ||
| + | height: 21px; | ||
| + | overflow: hidden; | ||
| + | text-align: center; | ||
| + | font-variant: small-caps; | ||
| + | color: #fff; | ||
| + | text-shadow: -1px 0 2px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.5), 1px 0 2px rgba(0,0,0,0.5); | ||
| + | line-height: 14pt; | ||
| + | font-size: 10pt; | ||
| + | white-space: nowrap; | ||
| + | font-weight: bold; | ||
| + | display: inline-block; | ||
| + | text-decoration: none; | ||
| + | padding: 0 1em; | ||
| + | margin: 2px 0; | ||
| + | width: 10em; | ||
| + | } | ||
| + | |||
| + | .mush-button:hover { | ||
| + | background-image: url("images/a/ad/Butbgover.png"); | ||
| + | border-image: url("images/5/52/Butbordersover.png") 0 5 fill stretch; | ||
| + | } | ||
| + | |||
| + | .mush-button a { | ||
| + | text-decoration: none; | ||
| + | color: #fff; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* Default style for navigation boxes */ | ||
| + | .navbox { /* Navbox container style */ | ||
| + | border: 1px solid #aaa; | ||
| + | width: 100%; | ||
| + | margin: auto; | ||
| + | clear: both; | ||
| + | font-size: 88%; | ||
| + | text-align: center; | ||
| + | padding: 1px; | ||
| + | } | ||
| + | .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 */ | ||
| + | white-space: nowrap; | ||
| + | /* @noflip */ | ||
| + | text-align: right; | ||
| + | } | ||
| + | .navbox, | ||
| + | .navbox-subgroup { | ||
| + | background: #fdfdfd; /* Background color */ | ||
| + | } | ||
| + | .navbox-list { | ||
| + | line-height: 1.8em; | ||
| + | border-color: #fdfdfd; /* Must match background color */ | ||
| + | } | ||
| + | .navbox th, | ||
| + | .navbox-title { | ||
| + | background: #ccccff; /* Level 1 color */ | ||
| + | } | ||
| + | .navbox-abovebelow, | ||
| + | th.navbox-group, | ||
| + | .navbox-subgroup .navbox-title { | ||
| + | background: #ddddff; /* Level 2 color */ | ||
| + | } | ||
| + | .navbox-subgroup .navbox-group, | ||
| + | .navbox-subgroup .navbox-abovebelow { | ||
| + | background: #e6e6ff; /* Level 3 color */ | ||
| + | } | ||
| + | .navbox-even { | ||
| + | background: #f7f7f7; /* Even row striping */ | ||
| + | } | ||
| + | .navbox-odd { | ||
| + | background: transparent; /* Odd row striping */ | ||
| + | } | ||
| + | table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | ||
| + | margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ | ||
| + | } | ||
| + | .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 */ | ||
| + | } | ||
| + | ol + table.navbox, | ||
| + | ul + table.navbox { | ||
| + | margin-top: 0.5em; /* Prevent lists from clinging to navboxes */ | ||
| + | } | ||
| + | |||
| + | /* Default styling for Navbar template */ | ||
| + | .navbar { | ||
| + | display: inline; | ||
| + | font-size: 88%; | ||
| + | font-weight: normal; | ||
| + | } | ||
| + | .navbar ul { | ||
| + | display: inline; | ||
| + | white-space: nowrap; | ||
| + | } | ||
| + | .navbar li { | ||
| + | word-spacing: -0.125em; | ||
| + | } | ||
| + | .navbar.mini li span { | ||
| + | font-variant: small-caps; | ||
| + | } | ||
| + | /* Navbar styling when nested in infobox and navbox */ | ||
| + | .infobox .navbar { | ||
| + | font-size: 100%; | ||
| + | } | ||
| + | .navbox .navbar { | ||
| + | display: block; | ||
| + | font-size: 100%; | ||
| + | } | ||
| + | .navbox-title .navbar { | ||
| + | /* @noflip */ | ||
| + | float: left; | ||
| + | /* @noflip */ | ||
| + | text-align: left; | ||
| + | /* @noflip */ | ||
| + | margin-right: 0.5em; | ||
| + | width: 6em; | ||
| + | } | ||
| + | |||
| + | /* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript | ||
| + | in [[MediaWiki:Common.js]] are styled here so they can be customised. */ | ||
| + | .collapseButton { | ||
| + | /* @noflip */ | ||
| + | float: right; | ||
| + | font-weight: normal; | ||
| + | /* @noflip */ | ||
| + | margin-left: 0.5em; | ||
| + | /* @noflip */ | ||
| + | text-align: right; | ||
| + | width: auto; | ||
| + | } | ||
| + | /* In navboxes, the show/hide button balances the v·d·e links | ||
| + | from [[Template:Navbar]], so they need to be the same width. */ | ||
| + | .navbox .collapseButton { | ||
| + | width: 6em; | ||
| + | } | ||
| + | |||
| + | /* Styling for JQuery makeCollapsible, matching that of collapseButton */ | ||
| + | .mw-collapsible-toggle { | ||
| + | font-weight: normal; | ||
| + | /* @noflip */ | ||
| + | text-align: right; | ||
| + | } | ||
| + | .navbox .mw-collapsible-toggle { | ||
| + | width: 6em; | ||
} | } | ||
Latest revision as of 00:03, 29 April 2014
/* CSS placed here will be applied to all skins */
.icon-margin, .margin-small { margin: 0; padding: 0; margin-bottom: 3px;}
.small-30 { width: 30px; height: 30px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-20 { width: 20px; height: 20px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-25 { width: 25px; height: 25px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-12 { width: 12px; height: 12px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-50 { width: 50px; height: 50px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-10 { width: 10px; height: 10px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-16 { width: 16px; height: 16px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-32 { width: 32px; height: 32px; margin: 0; padding: 0; margin-bottom: 3px;}
.small-em { width: 1.6em; height: 1.6em; margin: 0; padding: 0; margin-bottom: 3px;}
#frontpage_content {
width: 100%;
display: table;
}
.frontpage_column {
width: 16%;
display: table-cell;
padding: 0.4em;
box-sizing: border-box;
}
table.padded-table > * > tr > td {
padding: 0.4em;
}
.template-main {
display: inline-block;
white-space: nowrap;
border: 1px solid #ccc;
margin-bottom: 0.5em;
padding: 2px;
background: #F9F9F9;
font-size: 95%;
max-width: 350px;
}
.skill-level {
display: inline-block;
width: 18px;
height: 18px;
text-align: center;
background: url("images/0/0f/Level_background.png");
}
.skill-level-mush {
display: inline-block;
width: 18px;
height: 18px;
text-align: center;
background: url("images/6/63/Level_background_mush.png");
}
.skill-level a, .skill-level-mush a {
color: #FFF !important;
font-size: 0.95em;
font-weight: bold;
font-family: "Days One", "Segoe UI", "Lucida Grande", "Trebuchet MS", Arial, "lucida sans unicode", sans-serif;
text-shadow: 0px 0px 1px #000;
}
.mush-status-kept, .mush-status-lost, .mush-status-only, .mush-status-none { text-align: center; }
.mush-status-kept { background-color: #d6ffd6; }
.mush-status-lost { background-color: #ffd6d6; }
.mush-status-only { background-color: #e1bcc6; }
.mush-status-none { background-color: #dcdcdc; }
.table {
width: 100%;
display: table;
}
.table-cell {
display: table-cell;
}
.mush-button {
font-family: "Segoe UI", "Lucida Grande", "Trebuchet MS", Arial, "lucida sans unicode", sans-serif;
background-image: url("images/0/03/Butbg.png");
background-position: left top;
background-repeat: repeat-x;
border-style: solid;
border-width: 0 5px;
border-image: url("images/d/d0/Butborders.png") 0 5 fill stretch;
height: 21px;
overflow: hidden;
text-align: center;
font-variant: small-caps;
color: #fff;
text-shadow: -1px 0 2px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.5), 1px 0 2px rgba(0,0,0,0.5);
line-height: 14pt;
font-size: 10pt;
white-space: nowrap;
font-weight: bold;
display: inline-block;
text-decoration: none;
padding: 0 1em;
margin: 2px 0;
width: 10em;
}
.mush-button:hover {
background-image: url("images/a/ad/Butbgover.png");
border-image: url("images/5/52/Butbordersover.png") 0 5 fill stretch;
}
.mush-button a {
text-decoration: none;
color: #fff;
}
/* Default style for navigation boxes */
.navbox { /* Navbox container style */
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
.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 */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox,
.navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
line-height: 1.8em;
border-color: #fdfdfd; /* Must match background color */
}
.navbox th,
.navbox-title {
background: #ccccff; /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
background: #ddddff; /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
background: #e6e6ff; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */
margin-top: -1px; /* (doesn't work for IE6, but that's okay) */
}
.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 */
}
ol + table.navbox,
ul + table.navbox {
margin-top: 0.5em; /* Prevent lists from clinging to navboxes */
}
/* Default styling for Navbar template */
.navbar {
display: inline;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline;
white-space: nowrap;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li span {
font-variant: small-caps;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
width: 6em;
}
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
/* @noflip */
float: right;
font-weight: normal;
/* @noflip */
margin-left: 0.5em;
/* @noflip */
text-align: right;
width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
width: 6em;
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
font-weight: normal;
/* @noflip */
text-align: right;
}
.navbox .mw-collapsible-toggle {
width: 6em;
}