MediaWiki:Fandomdesktop.css

/*************/ /* Variables */ /*************/

/* Light Mode */ body.theme-fandomdesktop-light{ --dmk-page-background-shift:#eaeaef; --dmk-page-background-shift2:#d5d6e4; --dmk-pi-tab-active:#f9f9f9; --dmk-table-background:#fff; --dmk-table-background-green:#B5D39B; --dmk-table-background-red:#D39B9B; --dmk-navbox1-background:#AFB7FF; --dmk-navbox2-background:#C5CBFF; --dmk-navbox3-background:#E0E3FF; --dmk-image-background-shadow:#444; --dmk-gallery-background:#e5e5ea; --dmk-gallery-border:#777788; } /* Dark Mode */ body.theme-fandomdesktop-dark{ --dmk-page-background-shift:#303030; --dmk-page-background-shift2:#424242; --dmk-pi-tab-active:#424242; --dmk-table-background:#303030; --dmk-table-background-green:#34562D; --dmk-table-background-red:#611717; --dmk-navbox1-background:#161616; --dmk-navbox2-background:#242424; --dmk-navbox3-background:#2B2B2B; --dmk-image-background-shadow:#ccc; --dmk-gallery-background:#2d2f34; --dmk-gallery-border:#4c4f57; }

/* Link Text */ body.theme-fandomdesktop-dark .mw-parser-output a { font-weight:400; }

/********************/ /* Main Page Slider */ /********************/ .fandom-slider { background: transparent; border:none; } .fandom-slider .gallerybox img { max-height: 360px; width: auto; }

/*********/ /* Table */ /*********/

.article-table tr td, .article-table tr th { border-top:none ; border-right:none ; border-left:none ; padding: 10px; }

.article-table tr td { background-color: var(--theme-page-background-color); }

.article-table tr td[align="center"], .article-table tr th[align="center"] { text-align: center; }

table.theme-back-green { color: var(--theme-color); background-color: var(--dmk-table-background-green); }

table.theme-back-red { color: var(--theme-color); background-color: var(--dmk-table-background-red); }

table.notice.metadata a { color: white; }

/* Mini Event Table */ table.dmk-leaderboard tr td, table.dmk-leaderboard tr th, table.dmk-milestone tr td, table.dmk-milestone tr th { padding: 10px; } table.dmk-leaderboard tr td, table.dmk-milestone tr td, table.dmk-milestone tr th { text-align: center; } table.dmk-leaderboard tr td, table.dmk-milestone tr td { line-height: 1.0; } table.dmk-leaderboard tr:nth-child(2) td:not(:first-child), table.dmk-milestone tr:nth-child(2) td:not(:first-child) { width: 20%; }

/*******************/ /* Animation Icon */ /*******************/

body.theme-fandomdesktop-dark img[data-image-name="M-animation.png"], body.theme-fandomdesktop-dark img[data-image-name|="Link tag"] { filter: invert(1); }

/**********************************/ /* Character Icon w/o background */ /**********************************/ span#dmk-icon-plain img{ filter: drop-shadow(0 0 3px var(--dmk-image-background-shadow)); }

/********************/ /* Portable Infobox */ /********************/ .portable-infobox { width: 300px; border: none; border-radius: 7px !important; } .portable-infobox .pi-header { background: linear-gradient(to bottom, #060c60 0%, #1c1e85 100%); border-radius: 7px 7px 0 0; font-family: inherit; font-size: 17px; padding: 10px; } .portable-infobox .pi-border-color { border: none; } .portable-infobox.pi-background { background-color: var(--dmk-page-background-shift); } .portable-infobox,.portable-infobox.pi-background.pi-europa.pi-layout-default,.pi-item.pi-image a img { border-radius: 2pc 0pc; }

/* Horizontal Groups */ .portable-infobox .pi-horizontal-group { text-align: left; } .portable-infobox .pi-horizontal-group .pi-data-label { padding: 10px 14px 6px; } .portable-infobox .pi-horizontal-group .pi-data-value { padding: 0 4px 10px 14px; vertical-align: baseline; } .portable-infobox .pi-horizontal-group .pi-data-value:nth-child(2n){ border-radius: 0 0 7px 0; } .portable-infobox .pi-horizontal-group .pi-horizontal-group-item:nth-child(2n) { background-color: var(--dmk-page-background-shift2); border-left: none; } .portable-infobox .pi-horizontal-group-no-labels .pi-data-value { padding-top: 10px; }

/* Images with Shadow */ .pi-image img { filter: drop-shadow(0 0 5px var(--dmk-image-background-shadow)); padding: 10px 0; }

/* Tabs */ .portable-infobox ul.wds-tabs { justify-content: center; } .portable-infobox .wds-tabs__tab { box-shadow: inset 0 -1px 0 0 var(--theme-border-color); } .portable-infobox .wds-tabs__tab.wds-is-current { box-shadow: inset 1px 1px 0 0 var(--theme-border-color), inset -1px 0 0 0 var(--theme-border-color); background-color: var(--dmk-pi-tab-active); border-radius: 7px 7px 0 0; }

/* Smart Groups */ .portable-infobox .pi-smart-group { border-bottom: 0; text-align: left; } .pi-smart-group .pi-smart-data-label:first-child, .pi-smart-group .pi-smart-data-value:first-child { padding: 10px 14px; } .pi-smart-group .pi-smart-data-label:not(:first-child), .pi-smart-group .pi-smart-data-value:not(:first-child) { padding: 10px 14px; background-color: var(--dmk-page-background-shift2); border-left: none; } .portable-infobox .pi-horizontal-group-no-labels .pi-data-value { border-radius: 7px !important; } .pi-smart-group .pi-smart-data-label:not(:first-child), .pi-smart-group .pi-smart-data-value:not(:first-child) { border-radius: 7px !important; }

/***********/ /* Gallery */ /***********/

ul.mw-gallery-traditional { width: 100%; margin: 0; }

li.gallerybox { width: min-content !important; }

li.gallerybox div { width: auto !important; height: auto !important; border-radius: 7px !important; }

/* for missing images */ li.gallerybox div.thumb { min-width: 80px; min-height: 80px; }

li.gallerybox div.thumb div { margin: 5px !important; }

/* Gallery Images with No Background */ .page-Category_Character_Collections .wikia-gallery-item .thumb .gallery-image-wrapper{ background: none; border: none; }

.page-Shop ul.mw-gallery-traditional { text-align:center; } .page-Shop ul.mw-gallery-traditional li.gallerybox div.thumb { border:none; background:none; } .page-Shop ul.mw-gallery-traditional li.gallerybox div.gallerytext { text-align:center; }

/* For Media on Category Pages */ .galleryfilename-truncate { white-space: normal; }

/*********************/ /*** Gallery Old  ***/ /*********************/

.wikiaPhotoGallery-slider-body { background: none !important; }

/* Gallery Images Background */ .wikia-gallery .gallery-image-wrapper { background: none repeat scroll 0 0 var(--dmk-gallery-background); border: 1px solid var(--dmk-gallery-border); border-radius: 7px; padding: 5px; } /* round border for round stained-glass images */ .wikia-gallery div.gallery-image-wrapper[id$="-g-png"] { border-radius: 50%; } /* Caption */ .wikia-gallery-item .lightbox-caption, .wikia-gallery-captions-center .wikia-gallery-item .lightbox-caption { padding-left: 5px; padding-right: 5px; color: var(--theme-page-text-color); } /* Missing Images */ a.image-no-lightbox { color: var(--dmk-gallery-border); font-weight: 400; }

/* Gallery Images with No Background */ .page-Shop .gallery-image-wrapper { background: none; filter: drop-shadow(0 0 5px var(--dmk-image-background-shadow)) } .page-Category_Character_Collections .gallery-image-wrapper { background: none; filter: drop-shadow(0 0 5px var(--dmk-image-background-shadow)) }

/******************/ /* Navigation Box */ /******************/

/* 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 a { font-weight: inherit !important; }

.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: var(--dmk-table-background);     /* Background color */ } .navbox-list { line-height: 1.5em; border-color: var(--dmk-page-background-shift);   /* Must match background color */ } .navbox th, .navbox-title { background: var(--dmk-navbox1-background);     /* Level 3 color */ } .navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title { background: var(--dmk-navbox2-background);     /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: var(--dmk-navbox3-background);     /* Level 1 color */ } .navbox-even { background: transparent;     /* Even row striping */ } .navbox-odd { background: transparent; /* Odd row striping */ } table.navbox { margin-top: 1em;         /* Prevent preceding content from clinging to navboxes */ } table.navbox table.navbox { margin-top: 0;           /* No top margin for nested navboxes */ } table.navbox + table.navbox { margin-top: -1px;        /* Single pixel border between adjacent navboxes */ } .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 */ } /* Default styling for Navbar template */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar ul { display: inline; white-space: nowrap; } .mw-body-content .navbar ul { line-height: inherit; } .navbar li { word-spacing: -0.125em; } .navbar.mini li abbr[title] { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit; } /* 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: 6.0em; } /* '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: 6.0em; } /* Styling for JQuery makeCollapsible, matching that of collapseButton */ .mw-collapsible-toggle { font-weight: normal; /* @noflip */ text-align: right; outline: none; } .navbox .mw-collapsible-toggle { width: 6.0em; }

/* Subpage Tabs  */ .Subpagetabs{ --spt-tab-color:rgba(var(--theme-page-text-color--rgb),0.75); --spt-tab-color--active:var(--theme-link-color); --spt-tab-color--hover:var(--theme-page-text-color); --spt-tab-border-color:rgba(var(--theme-page-dynamic-color-1--rgb),0.25); align-items:flex-end; display:flex; margin:0; padding:0; position:relative; border-bottom:1px solid var(--spt-tab-border-color); overflow:hidden; overflow-x:scroll; }

.Subpagetabs::-webkit-scrollbar{ display:none; }

.SubpagetabsTab{ color:var(--spt-tab-color); cursor:default; flex-shrink:0; line-height:14px; position:relative; align-items:center; display:inline-flex; font-size:14px; font-weight:500; height:40px; letter-spacing:.5px; margin:0 11px; text-align:center; text-decoration:none; white-space:nowrap; border: none; }

.SubpagetabsTab>a{ align-items:center; color:inherit; display:inline-flex; height:100%; text-decoration:none; } .SubpagetabsTab>a:hover,.SubpagetabsTab>a:visited{ color:inherit; text-decoration:inherit; } .SubpagetabsTab:hover{ color:var(--spt-tab-color--hover); } .SubpagetabsActive{ color:var(--spt-tab-color--active); /* background: unset; */ /* border-bottom: unset; */ box-shadow: inset 0 -2px 0 0 currentColor; } .SubpagetabsActive:hover{ color:var(--spt-tab-color--active); }

/* Scrollbar */
 * -webkit-scrollbar {

width: auto; height: 12px; }
 * -webkit-scrollbar-thumb {

background: var(--dmk-page-background-shift) !important; width:auto; } .fandom-sticky-header { background: linear-gradient(to bottom, #060c60 0%, #1c1e85 100%); }