MediaWiki:TemplateStyle.css
Cached copy of the original page · revision 1645147 · refresh
/*=================================================================
= Template Styling
=================================================================*/
/* See Portable Infobox section fo [[Template:PI-Nester]] */
/* ==================== [[Template:Inum]] ==================== */
/* Wrapper */
.skin-fandomdesktop .InumWrapper {
display:-webkit-inline-box;
display:-webkit-inline-flex;
display:-ms-inline-flexbox;
display:inline-flex;
position:relative;
}
/* Image */
.skin-fandomdesktop .InumIcon {
display:-webkit-inline-box;
display:-webkit-inline-flex;
display:-ms-inline-flexbox;
display:inline-flex;
}
/* Invisible Image for Linking */
.skin-fandomdesktop .InumIconTop {
position:absolute;
bottom:1px;
left:0;
opacity:0;
}
/* Desktop Text Styles/Position */
.skin-fandomdesktop .InumWrapper > .InumNum {
position:absolute;
bottom: -4px;
left: 2px;
color: white;
text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,-2px -2px 4px #000,2px -2px 4px #000,-2px 2px 4px #000,2px 2px 4px #000;
}
/* Mobile Text Styles/Position */
.InumMobileDisplay {
color: white;
}
/* ================= [[Template:Hatnote]] ================= */
.hatnote {
border-left: 3px solid var(--theme-accent-color);
padding: 3px 10px;
border-radius: 3px;
background: linear-gradient(145deg, rgba(var(--theme-accent-color--rgb),0.15) 0%, rgba(var(--theme-accent-color--rgb),0) 100%);
margin: 5px 0;
}
/* ================= [[Template:PageNotice]] ================= */
.PageNotice {
background-color: #f6f7fb;
border: 1px solid #1f2557;
border-radius: 5px;
}
.PageNotice-Image {
border: none;
padding-left: 25px;
}
.PageNotice-Text {
border: none;
padding-left: 25px;
padding-right: 25px;
}
.theme-fandomdesktop-dark .PageNotice {
background-color: #2a2a2a;
border: 1px solid #737aaf;
border-radius: 5px;
}
/* ================= [[Template:ImageSwitch]] ================= */
/* Image Switcher Container */
.switch-img-container {
position: relative;
display: inline-block;
vertical-align: middle;
line-height: 0;
}
/* Base Image (Front) */
.switch-img-base {
position: relative;
z-index: 2;
display: block;
opacity: 1; /* Initially Visible */
transition: opacity 0.5s ease-in-out; /* Default speed */
}
/* Overlay Image (Back) */
.switch-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0; /* Initially Hidden (Fix for the issue) */
transition: opacity 0.5s ease-in-out; /* Default speed */
}
/* Hover Effect: Cross-fade */
.switch-img-container:hover .switch-img-base {
opacity: 0; /* Base fades out */
}
.switch-img-container:hover .switch-img-overlay {
opacity: 1; /* Overlay fades in */
}
/* ================= [[Template:NoblePhantasm]] ================= */
.theme-fandomdesktop-light .wikitable .Nptable-buster {
background-color: #f6dde9;
color: #800000;
}
.theme-fandomdesktop-light .wikitable .Nptable-arts {
background-color: #d9eaf6;
color: #00008b;
}
.theme-fandomdesktop-light .wikitable .Nptable-quick {
background-color: #ceffdc;
color: #008000;
}
.theme-fandomdesktop-light .wikitable .Nptable-ocheader {
background-color: #e5ccd8;
}
.theme-fandomdesktop-light .wikitable .Nptable-ocbody {
background-color: #f6dde9;
font-size: 0.86em;
}
/* Dark Mode */
.theme-fandomdesktop-dark .wikitable .Nptable-buster {
background-color: #541225;
color: #ff9daf;
}
.theme-fandomdesktop-dark .wikitable .Nptable-arts {
background-color: #1D3E53;
color: #58deff;
}
.theme-fandomdesktop-dark .wikitable .Nptable-quick {
background-color: #346751;
color: #58ff5c;
}
.theme-fandomdesktop-dark .wikitable .Nptable-ocheader {
background-color: #53103e;
}
.theme-fandomdesktop-dark .wikitable .Nptable-ocbody {
background-color: #290315;
font-size: 0.86em;
}
/* ================= [[Template:Servant Triangle]] ================= */
.wikitable .ServantTriangle-2_0x {
background-color: #ffadad;
}
.wikitable .ServantTriangle-1_5x {
background-color: #ffd6ad;
}
.wikitable .ServantTriangle-1_2x {
background-color: #ffffad;
}
.wikitable .ServantTriangle-0_5x {
background-color: #ccf;
}
/* Dark Mode */
.theme-fandomdesktop-dark .wikitable .ServantTriangle-2_0x {
background-color: #5a0707;
}
.theme-fandomdesktop-dark .wikitable .ServantTriangle-1_5x {
background-color: #5d3710;
}
.theme-fandomdesktop-dark .wikitable .ServantTriangle-1_2x {
background-color: #535308;
}
.theme-fandomdesktop-dark .wikitable .ServantTriangle-0_5x {
background-color: #191952;
}
/* ================= [[Template:Questbodyenemy]] ================= */
.wikitable .Questbodyenemy-FatalHeader {
background-color: #f4b0ba;
}
.wikitable .Questbodyenemy-FatalBody {
background-color: #f6dde9;
}
.wikitable .Questbodyenemy-GrandHeader {
background-color: #f28192;
}
.wikitable .Questbodyenemy-QuixoticHeader {
background-color: #9a6af9;
}
.wikitable .Questbodyenemy-QuixoticBody {
background-color: #956bea;
}
/* Dark Mode */
.theme-fandomdesktop-dark .wikitable .Questbodyenemy-FatalHeader {
background-color: #5e1f0c;
}
.theme-fandomdesktop-dark .wikitable .Questbodyenemy-FatalBody {
background-color: #2b1c0f;
}
.theme-fandomdesktop-dark .wikitable .Questbodyenemy-GrandHeader {
background-color: #3e0009;
}
.theme-fandomdesktop-dark .wikitable .Questbodyenemy-QuixoticHeader {
background-color: #281352;
}
.theme-fandomdesktop-dark .wikitable .Questbodyenemy-QuixoticBody {
background-color: #281e3b;
}
/* =================== [[Template:Seffect]] ========================== */
.UnremovableStatusFrame {
border: 2px solid white;
border-radius: 10px;
padding: 0 2px;
border-style: ridge;
background-color: rgba(157,159,159, 0.6);
display: inline-block;
}
.theme-fandomdesktop-dark .UnremovableStatusFrame {
background-color: rgba(157,159,159, 0.6);
}
/* =================== [[Template:Servant Icon]] ========================== */
.skin-fandommobile .card-servant_icon img {
border: none;
width: 74px;
height: 74px;
object-fit: contain;
}
/** wiki table **/
.wikitable td p:last-child,
.wikitable th p:last-child {
margin-bottom: 0;
}
.wikitable td ul:first-child,
.wikitable th ul:first-child,
.columntemplate ul:first-child {
margin-top: 0;
}
.wikitable td ul:last-child,
.wikitable th ul:last-child,
.columntemplate ul:last-child {
margin-bottom: 0;
}
/** enemy variation **/
.enemyvariation ul {
display: flex;
flex-wrap: wrap;
list-style: none;
gap: 10px;
align-content: center;
justify-content: center;
margin: 0;
max-width: max-content;
}
.enemyvariation li {
display: grid;
justify-content: center;
align-content: flex-start;
justify-items: center;
align-items: center;
flex-basis: 70px;
text-align: center;
flex-grow: 1;
line-height: 1.5em;
gap: 2px;
}
/* =================== [[Template:Dialogue Table]] ========================== */
:root :is(.theme-fandomdesktop-light, .theme-fandommobile-light) {
--theme-vo-pill-background-color: rgba(0, 0, 0, .1);
}
:root :is(.theme-fandomdesktop-dark, .theme-fandommobile-dark) {
--theme-vo-pill-background-color: rgba(255, 255, 255, .1);
}
/* Pill format for Dialogue requirements */
.dialogue-table tr:not(:first-child) th:first-child {
> span[title] {
font-size: larger;
display: block;
}
> hr ~ div {
font-weight: normal;
display: flex;
gap: 5px;
flex-wrap: wrap;
> small {
padding: 4px 6px 4px 4px;
background-color: var(--theme-vo-pill-background-color);
border-radius: 3px;
display: inline-flex;
gap: 3px;
align-items: center;
}
}
}
/* [[Template:Skillimage]] — module asks for 51px to clear the mobile 50px icon cutoff */
.skin-fandomdesktop .skill_image img { width: 45px; height: auto; }