Difference between revisions of "MediaWiki:Common.css"
From EmuVR Wiki
m |
|||
(27 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
.anchorlink a { | .anchorlink a { | ||
− | + | opacity: 0; | |
− | + | margin-left: 0.4em; | |
− | + | top: -0.5em; | |
− | + | position: relative; | |
− | + | transition: top 0.3s, opacity 0.3s; | |
} | } | ||
.anchorlink:hover a { | .anchorlink:hover a { | ||
− | + | opacity: 1; | |
− | + | top: 0; | |
} | } | ||
.table-anchor-highlight :target { | .table-anchor-highlight :target { | ||
background-color: rgba(255,255,0,0.2) !important; | background-color: rgba(255,255,0,0.2) !important; | ||
+ | } | ||
+ | |||
+ | .table-row-hover tr:hover { | ||
+ | background-color: rgba(0, 67, 131, 0.1) !important; | ||
+ | } | ||
+ | |||
+ | .table-padding tr td:first-child { | ||
+ | text-align: left; | ||
+ | padding: 0.7em; | ||
+ | } | ||
+ | |||
+ | .table-left-padding tr td:first-child { | ||
+ | text-align: left; | ||
+ | padding-left: 0.7em; | ||
+ | } | ||
+ | |||
+ | .floatThead-container + .float-thead tr[id]:target td { | ||
+ | padding-top: 38px !important; | ||
+ | } | ||
+ | |||
+ | .mw-headline:target { | ||
+ | background-image: linear-gradient(to right,rgba(255,150,0,0.3),rgba(255,150,0,0)); | ||
+ | padding: 5px 40px 3px 7px; | ||
+ | } | ||
+ | |||
+ | .mw-headline.anchorlink a { | ||
+ | font-size: 0.9em; | ||
+ | padding-left: 0.5em; | ||
+ | text-decoration: none !important; | ||
} | } | ||
Line 45: | Line 74: | ||
#mw-content-text a.new:hover { | #mw-content-text a.new:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
+ | } | ||
+ | |||
+ | .tocnumber::after { | ||
+ | content: ")"; | ||
+ | } | ||
+ | |||
+ | .noautonum .tocnumber { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .mw-editsection { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .toclimit-2 .toclevel-1 ul, | ||
+ | .toclimit-3 .toclevel-2 ul, | ||
+ | .toclimit-4 .toclevel-3 ul, | ||
+ | .toclimit-5 .toclevel-4 ul, | ||
+ | .toclimit-6 .toclevel-5 ul, | ||
+ | .toclimit-7 .toclevel-6 ul { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .mw-collapsible { | ||
+ | margin: 0.5em 0; | ||
+ | } | ||
+ | |||
+ | .mw-collapsible > :not([class^="mw-collapsible-"]) { | ||
+ | display: inline-grid; | ||
+ | overflow: hidden; | ||
+ | margin: -100px; | ||
+ | height: 1em; | ||
+ | width: 0; | ||
+ | } | ||
+ | |||
+ | .mw-collapsible span.mw-collapsible-toggle { | ||
+ | display: contents; | ||
+ | } | ||
+ | |||
+ | .mw-collapsible-border { | ||
+ | background-color: #fafafa; | ||
+ | border: 1px solid #eaecf0; | ||
+ | padding: 0.5em 1em; | ||
+ | } | ||
+ | |||
+ | .toc-hidden #toc > ul { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .sup { | ||
+ | font-size: 80%; | ||
+ | vertical-align: top; | ||
+ | } | ||
+ | |||
+ | body:not(.mw-logged-in) .portal#p-tb { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .icon-main { | ||
+ | display: inline-block; | ||
+ | text-align: center; | ||
+ | width: 1.6em; | ||
+ | margin-left: 0.1em; | ||
+ | } | ||
+ | |||
+ | span.external-download a { | ||
+ | background-image: url('/w/images/7/76/Download-icon.png') !important; | ||
+ | padding-right: 1.4em !important; | ||
+ | } | ||
+ | |||
+ | @media screen and (max-width: 700px) { | ||
+ | div#mw-panel #p-logo { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | div#mw-panel { | ||
+ | position: relative; | ||
+ | top: 1em; | ||
+ | border: 1px solid #a7d7f9; | ||
+ | background-color: #fefefe; | ||
+ | padding: 0.5em; | ||
+ | width: auto; | ||
+ | } | ||
+ | |||
+ | .mw-body { | ||
+ | margin-left: 0; | ||
+ | } | ||
+ | |||
+ | div#mw-head #left-navigation, #footer { | ||
+ | margin-left: 0; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | @media screen and (min-width: 701px) and (min-height: 580px) { | ||
+ | div#mw-panel { | ||
+ | position: fixed; | ||
+ | } | ||
} | } |
Latest revision as of 07:32, 2 April 2023
/* CSS placed here will be applied to all skins */
.anchorlink a {
opacity: 0;
margin-left: 0.4em;
top: -0.5em;
position: relative;
transition: top 0.3s, opacity 0.3s;
}
.anchorlink:hover a {
opacity: 1;
top: 0;
}
.table-anchor-highlight :target {
background-color: rgba(255,255,0,0.2) !important;
}
.table-row-hover tr:hover {
background-color: rgba(0, 67, 131, 0.1) !important;
}
.table-padding tr td:first-child {
text-align: left;
padding: 0.7em;
}
.table-left-padding tr td:first-child {
text-align: left;
padding-left: 0.7em;
}
.floatThead-container + .float-thead tr[id]:target td {
padding-top: 38px !important;
}
.mw-headline:target {
background-image: linear-gradient(to right,rgba(255,150,0,0.3),rgba(255,150,0,0));
padding: 5px 40px 3px 7px;
}
.mw-headline.anchorlink a {
font-size: 0.9em;
padding-left: 0.5em;
text-decoration: none !important;
}
#mw-content-text a
{
color: #ea9200;
text-decoration: underline;
}
#mw-content-text a:visited
{
color: #cf8100;
}
#mw-content-text a:hover
{
color: #5dc337;
}
#mw-content-text a.new {
color: #ba0000;
text-decoration: none;
}
#mw-content-text a.new:visited {
color: #ba0000;
}
#mw-content-text a.new:hover {
text-decoration: underline;
}
.tocnumber::after {
content: ")";
}
.noautonum .tocnumber {
display: none;
}
.mw-editsection {
display: none;
}
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
.mw-collapsible {
margin: 0.5em 0;
}
.mw-collapsible > :not([class^="mw-collapsible-"]) {
display: inline-grid;
overflow: hidden;
margin: -100px;
height: 1em;
width: 0;
}
.mw-collapsible span.mw-collapsible-toggle {
display: contents;
}
.mw-collapsible-border {
background-color: #fafafa;
border: 1px solid #eaecf0;
padding: 0.5em 1em;
}
.toc-hidden #toc > ul {
display: none;
}
.sup {
font-size: 80%;
vertical-align: top;
}
body:not(.mw-logged-in) .portal#p-tb {
display: none;
}
.icon-main {
display: inline-block;
text-align: center;
width: 1.6em;
margin-left: 0.1em;
}
span.external-download a {
background-image: url('/w/images/7/76/Download-icon.png') !important;
padding-right: 1.4em !important;
}
@media screen and (max-width: 700px) {
div#mw-panel #p-logo {
display: none;
}
div#mw-panel {
position: relative;
top: 1em;
border: 1px solid #a7d7f9;
background-color: #fefefe;
padding: 0.5em;
width: auto;
}
.mw-body {
margin-left: 0;
}
div#mw-head #left-navigation, #footer {
margin-left: 0;
}
}
@media screen and (min-width: 701px) and (min-height: 580px) {
div#mw-panel {
position: fixed;
}
}