Difference between revisions of "Template:Modding player guide header/styles.css"
Jump to navigation
Jump to search
Pathoschild (talk | contribs) (create page with troubleshooting page header styles) |
Pathoschild (talk | contribs) (tweak to avoid extra whitespace on some wikis) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
*/ | */ | ||
− | . | + | .modding-header { |
+ | position: relative; | ||
+ | text-align: center; | ||
+ | font-weight: bold; | ||
border: 2px solid rgb(0, 116, 72); | border: 2px solid rgb(0, 116, 72); | ||
background: rgba(3, 160, 7, 0.1); | background: rgba(3, 160, 7, 0.1); | ||
+ | padding: 1em 0; | ||
+ | } | ||
+ | |||
+ | .modding-header .mh-backlink { | ||
+ | position: absolute; | ||
+ | top: 5px; | ||
+ | left: 5px; | ||
+ | } | ||
+ | |||
+ | .modding-header .mh-header { | ||
+ | font-size: 2em; | ||
+ | } | ||
+ | |||
+ | .modding-header li { | ||
+ | display: inline-block; | ||
+ | padding: 0 1em; | ||
+ | border-right:1px dotted #000; | ||
+ | } | ||
+ | |||
+ | .modding-header li:last-child { | ||
+ | border-right: none; | ||
+ | } | ||
+ | |||
+ | .modding-error-box { | ||
+ | border: 1px solid red; | ||
+ | background: #FCC; | ||
padding: 1em; | padding: 1em; | ||
+ | } | ||
+ | |||
+ | h1 { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
+ | padding: 1em; | ||
+ | border: 2px solid rgb(0, 116, 72); | ||
+ | background: rgba(3, 160, 7, 0.1); | ||
+ | } | ||
+ | |||
+ | h1:not(:first-of-type) { | ||
+ | margin-top: 3rem; | ||
} | } | ||
/* [[Category:Modding templates]] */ | /* [[Category:Modding templates]] */ |
Latest revision as of 04:28, 26 August 2022
/*
The styles on this page are applied to pages which contain the parent template.
*/
.modding-header {
position: relative;
text-align: center;
font-weight: bold;
border: 2px solid rgb(0, 116, 72);
background: rgba(3, 160, 7, 0.1);
padding: 1em 0;
}
.modding-header .mh-backlink {
position: absolute;
top: 5px;
left: 5px;
}
.modding-header .mh-header {
font-size: 2em;
}
.modding-header li {
display: inline-block;
padding: 0 1em;
border-right:1px dotted #000;
}
.modding-header li:last-child {
border-right: none;
}
.modding-error-box {
border: 1px solid red;
background: #FCC;
padding: 1em;
}
h1 {
margin-bottom: 0;
padding: 1em;
border: 2px solid rgb(0, 116, 72);
background: rgba(3, 160, 7, 0.1);
}
h1:not(:first-of-type) {
margin-top: 3rem;
}
/* [[Category:Modding templates]] */