Template:Infobox dos2 character test/styles.css: Difference between revisions
Template page
More actions
Minimoomoo (talk | contribs) No edit summary |
Minimoomoo (talk | contribs) No edit summary Tag: Reverted |
||
| Line 2: | Line 2: | ||
float: right; | float: right; | ||
text-align: left; | text-align: left; | ||
background-color: # | background-color: #2b1d0e; | ||
border-spacing: 5px; | border-spacing: 5px; | ||
border: 1px solid # | border: 1px solid #c8860a; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
width: 350px; | width: 350px; | ||
} | } | ||
.infoboxtest-image { | .infoboxtest-image { | ||
text-align: center; | text-align: center; | ||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
.infoboxtest-image img { | .infoboxtest-image img { | ||
width: 250px; | width: 250px; | ||
height: auto; | height: auto; | ||
} | } | ||
.ib-dos2-character-test { | .ib-dos2-character-test { | ||
border-spacing: 2px 5px; | border-spacing: 2px 5px; | ||
} | } | ||
.infoboxtest-label { | .infoboxtest-label { | ||
vertical-align: top; | vertical-align: top; | ||
color: # | color: #c8860a; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.infoboxtest-data { | .infoboxtest-data { | ||
color: # | color: #f0d080; | ||
} | } | ||
.ib-dos2-character-test .infoboxtest-above { | .ib-dos2-character-test .infoboxtest-above { | ||
text-align: center; | text-align: center; | ||
background: linear-gradient(180deg, # | background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%); | ||
color: # | color: #c8860a; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-weight: bold; | font-weight: bold; | ||
letter-spacing: 0.05em; | letter-spacing: 0.05em; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #c8860a; | ||
padding: 6px; | padding: 6px; | ||
} | } | ||
.ib-dos2-character-test .infoboxtest-header { | .ib-dos2-character-test .infoboxtest-header { | ||
text-align: center; | text-align: center; | ||
background: linear-gradient(180deg, # | background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%); | ||
color: # | color: #c8860a; | ||
border-top: 1px solid # | border-top: 1px solid #c8860a; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #c8860a; | ||
letter-spacing: 0.05em; | letter-spacing: 0.05em; | ||
padding: 4px; | padding: 4px; | ||
} | } | ||
/* Center the tabber tabs */ | /* Center the tabber tabs */ | ||
.ib-dos2-character-test .tabber__tabs { | .ib-dos2-character-test .tabber__tabs { | ||
| Line 59: | Line 51: | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.ib-dos2-character-test .tabber__tab { | .ib-dos2-character-test .tabber__tab { | ||
color: # | color: #c8860a; | ||
border-bottom: 2px solid transparent; | border-bottom: 2px solid transparent; | ||
} | } | ||
.ib-dos2-character-test .tabber__tab--active { | .ib-dos2-character-test .tabber__tab--active { | ||
color: # | color: #f0a020; | ||
border-bottom: 2px solid # | border-bottom: 2px solid #c8860a; | ||
} | } | ||
/* light background for transparent images */ | /* light background for transparent images */ | ||
.ib-dos2-character-test .infoboxtest-image img { | .ib-dos2-character-test .infoboxtest-image img { | ||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
/* Stats table inside tabber */ | /* Stats table inside tabber */ | ||
.ib-dos2-character-test .tabber__panel table { | .ib-dos2-character-test .tabber__panel table { | ||
color: # | color: #f0d080; | ||
width: 100%; | width: 100%; | ||
} | } | ||
.ib-dos2-character-test .tabber__panel table th { | .ib-dos2-character-test .tabber__panel table th { | ||
color: # | color: #c8860a; | ||
text-align: left; | text-align: left; | ||
font-weight: normal; | font-weight: normal; | ||
padding: 2px 4px; | padding: 2px 4px; | ||
} | } | ||
/* Technical collapsible - caret via ::before, no bracket */ | |||
/* | .ib-dos2-character-test .mw-collapsible-toggle { | ||
display: none; | |||
.ib-dos2-character-test .mw-collapsible-toggle | |||
} | } | ||
.ib-dos2-character-test .dos2-technical-block::before { | |||
content: "▼"; | |||
.ib-dos2-character-test . | display: inline-block; | ||
font-size: 0.8em; | |||
transition: transform 0.2s ease; | |||
transform: rotate(0deg); | |||
color: #c8860a; | |||
} | } | ||
.ib-dos2-character-test .mw-collapsible:not(.mw-collapsed) .dos2-technical-block::before { | |||
.ib-dos2-character-test .mw-collapsible- | transform: rotate(180deg); | ||
} | } | ||
.ib-dos2-character-test .dos2-technical-block { | .ib-dos2-character-test .dos2-technical-block { | ||
border-top: 1px solid #c8860a; | |||
border-bottom: 1px solid #c8860a; | |||
background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%); | |||
padding: 4px; | |||
text-align: center; | |||
cursor: pointer; | |||
} | } | ||
.ib-dos2-character-test .dos2-technical-header { | .ib-dos2-character-test .dos2-technical-header { | ||
color: #c8860a; | |||
letter-spacing: 0.05em; | |||
display: inline; | |||
} | } | ||
.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content { | .ib-dos2-character-test .dos2-technical-block .mw-collapsible-content { | ||
background: #2b1d0e; | |||
padding: 4px 8px; | |||
text-align: left; | |||
} | |||
.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content table th, | |||
.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content table td { | |||
color: #c8860a; | |||
} | } | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-above, | html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-above, | ||
html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-header { | html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-header { | ||
background: linear-gradient(180deg, # | background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%); | ||
color: # | color: #c8860a; | ||
} | } | ||
} | } | ||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-above, | html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-above, | ||
html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-header { | html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-header { | ||
background: linear-gradient(180deg, # | background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%); | ||
color: # | color: #c8860a; | ||
} | } | ||
} | } | ||
Revision as of 16:00, 19 March 2026
.infoboxtest {
float: right;
text-align: left;
background-color: #2b1d0e;
border-spacing: 5px;
border: 1px solid #c8860a;
margin: 0 0 1em 1em;
width: 350px;
}
.infoboxtest-image {
text-align: center;
object-fit: cover;
}
.infoboxtest-image img {
width: 250px;
height: auto;
}
.ib-dos2-character-test {
border-spacing: 2px 5px;
}
.infoboxtest-label {
vertical-align: top;
color: #c8860a;
font-weight: bold;
}
.infoboxtest-data {
color: #f0d080;
}
.ib-dos2-character-test .infoboxtest-above {
text-align: center;
background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%);
color: #c8860a;
font-size: 1.1em;
font-weight: bold;
letter-spacing: 0.05em;
border-bottom: 1px solid #c8860a;
padding: 6px;
}
.ib-dos2-character-test .infoboxtest-header {
text-align: center;
background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%);
color: #c8860a;
border-top: 1px solid #c8860a;
border-bottom: 1px solid #c8860a;
letter-spacing: 0.05em;
padding: 4px;
}
/* Center the tabber tabs */
.ib-dos2-character-test .tabber__tabs {
display: flex;
justify-content: center;
}
.ib-dos2-character-test .tabber__tab {
color: #c8860a;
border-bottom: 2px solid transparent;
}
.ib-dos2-character-test .tabber__tab--active {
color: #f0a020;
border-bottom: 2px solid #c8860a;
}
/* light background for transparent images */
.ib-dos2-character-test .infoboxtest-image img {
background-color: transparent;
}
/* Stats table inside tabber */
.ib-dos2-character-test .tabber__panel table {
color: #f0d080;
width: 100%;
}
.ib-dos2-character-test .tabber__panel table th {
color: #c8860a;
text-align: left;
font-weight: normal;
padding: 2px 4px;
}
/* Technical collapsible - caret via ::before, no bracket */
.ib-dos2-character-test .mw-collapsible-toggle {
display: none;
}
.ib-dos2-character-test .dos2-technical-block::before {
content: "▼";
display: inline-block;
font-size: 0.8em;
transition: transform 0.2s ease;
transform: rotate(0deg);
color: #c8860a;
}
.ib-dos2-character-test .mw-collapsible:not(.mw-collapsed) .dos2-technical-block::before {
transform: rotate(180deg);
}
.ib-dos2-character-test .dos2-technical-block {
border-top: 1px solid #c8860a;
border-bottom: 1px solid #c8860a;
background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%);
padding: 4px;
text-align: center;
cursor: pointer;
}
.ib-dos2-character-test .dos2-technical-header {
color: #c8860a;
letter-spacing: 0.05em;
display: inline;
}
.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content {
background: #2b1d0e;
padding: 4px 8px;
text-align: left;
}
.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content table th,
.ib-dos2-character-test .dos2-technical-block .mw-collapsible-content table td {
color: #c8860a;
}
@media screen {
html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-above,
html.skin-theme-clientpref-night .ib-dos2-character-test .infoboxtest-header {
background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%);
color: #c8860a;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-above,
html.skin-theme-clientpref-os .ib-dos2-character-test .infoboxtest-header {
background: linear-gradient(180deg, #3d2200 0%, #2b1d0e 100%);
color: #c8860a;
}
}