MediaWiki:Fandomdesktop.css

/* CSS placed here will be applied to the FandomDesktop skin */

/* Variables */ .theme-fandomdesktop-light { /* Light theme only */ --general-bg-color: #f9f9f9; --border-color: #aaa; --border-color--rgb: 170, 170, 170; } .theme-fandomdesktop-dark { /* Dark theme only */ --general-bg-color: var(--theme-page-background-color--secondary); --border-color: var(--theme-border-color); --border-color--rgb: var(--theme-border-color--rgb); }

/* Reduce padding and spacing on elements */ /* Header */ .page-header { margin-bottom: 5px; } /* Paragraphs */ .page-content p { margin-bottom: 12px; } .page-content p + p { margin-top: 12px; } /* Table of Contents */ .page-content .toc { margin-top: 12px; margin-bottom: 12px; } /* Headings */ .page-content h1, .page-content h2 { margin-top: 18px; margin-bottom: 9px; } .page-content h3, .page-content h4, .page-content h5, .page-content h6 { margin-top: 16px; margin-bottom: 8px; } /* Make h6 slightly smaller than h5 */ .page-content h5 { font-size: 14px; } .page-content h6 { font-size: 13px; } /* Lists */ .page-content ol, /* Numbered lists */ .page-content ul, /* Bulleted lists */ .page-content dl /* Description lists */ { margin-top: 6px; margin-bottom: 2px; }

/* Bold page title */ .page-header__title { font-weight: 500; }

/* Adding background color to table of contents */ .page-content .toc { background-color: var(--general-bg-color); } /* A much more visible border color for emphasis */ .page-content .toc, .page-content .toc .toctitle { border-color: var(--border-color); }

/* Make h1 headings look like page titles (bold also) */ .page-content h1 { font-weight: 500; padding: 6px 0; border-bottom: 1px solid var(--border-color); } /* Fix h2 border color */ .page-content h2 { border-bottom: 1px solid var(--border-color); }

/* Sets links weight from bold to inherit */ .page-content .mw-parser-output a { font-weight: inherit; }

/* Fix hlist and plainlist padding on navboxes */ .page-content .hlist ul, .page-content .plainlist ol, .page-content .plainlist ul { margin-top: 0; margin-bottom: 0; }

/* Rail module fix */ .rail-module { border-bottom: 1px solid; border-image: linear-gradient(to right, rgba(var(--border-color--rgb), 0) 0%, rgba(var(--border-color--rgb), .66) 50%, rgba(var(--border-color--rgb), 0) 100%); border-image-slice: 1; }

/* Fix redlink problems */ a.new { cursor: pointer; } /* Make the cursor pointer when hovered */ a.new:hover, a.new:focus, a.new:active { text-decoration-style: solid; } /* Solid underlines instead of dashed */

/* Fix for the table styling, reducing line height */ .wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td { padding: 0.2em 0.4em; }

/* Add invert classes for each light/dark theme on FandomDesktop */ .theme-fandomdesktop-light .invlight img, .theme-fandomdesktop-dark .invdark img { filter: invert(1); }

/* Dark theme fixes */ /* Navboxes */ .theme-fandomdesktop-dark .navbox { border-color: var(--theme-border-color); } .theme-fandomdesktop-dark .navbox, .theme-fandomdesktop-dark .navbox .navbox-subgroup .navbox-gutter, .theme-fandomdesktop-dark .navbox .navbox-image, .theme-fandomdesktop-dark .navbox .navbox-list { background-color: var(--theme-page-background-color); } .theme-fandomdesktop-dark .navbox .navbox-group, .theme-fandomdesktop-dark .navbox .navbox-image-left, .theme-fandomdesktop-dark .navbox .navbox-image-right { border-color: var(--theme-page-background-color); }

.theme-fandomdesktop-dark .navbox .navbox-title { background-color: rgba(0,0,255,.3); }

.theme-fandomdesktop-dark .navbox .navbox-above, .theme-fandomdesktop-dark .navbox .navbox-below, .theme-fandomdesktop-dark .navbox .navbox-group, .theme-fandomdesktop-dark .navbox .navbox-header { background-color: rgba(0,0,255,.2); }

.theme-fandomdesktop-dark .navbox .alt > .navbox-list { background: var(--theme-page-background-color--secondary); }

/* Dark theme bounce image */ .theme-fandomdesktop-dark .bounceme { background-color: transparent; }

/* Dark theme table coloring */ .theme-fandomdesktop-dark .table-yes { background-color: rgba(0,255,0,.3) !important; } .theme-fandomdesktop-dark .table-no { background-color: rgba(255,0,0,.3) !important; } .theme-fandomdesktop-dark .table-no2 { background-color: rgba(0,0,225,.2) !important; } .theme-fandomdesktop-dark .table-na { background-color: rgba(128,128,128,.3) !important; color: #E0E0E0 !important; }

/* Tabs styling */ .topnav-tabs { font-weight: normal; text-align: left; margin-bottom: 5px; } .topnav-tabs .topnav-tab { background-color: var(--general-bg-color); min-width: 80px; margin-left: 10px; display: inline-block; padding: 5px 10px; text-align: center; margin-bottom: 0; font-size: 100%; border-bottom: none !important; border: 1px solid var(--border-color); } .topnav-tabs .topnav-tab.topnav-tab-current { background-color: #ccf; } .topnav-tabs-bottom { border-bottom: 1px solid var(--border-color); clear: both; } /* Dark theme fix */ .theme-fandomdesktop-dark .topnav-tabs .topnav-tab.topnav-tab-current { background-color: rgba(0,0,255,.3); }

/* Dark theme fixes for the template */ .theme-fandomdesktop-dark .collapsebox-header { background-color: var(--theme-border-color) !important; } .theme-fandomdesktop-dark .collapsebox-content { border-color: var(--theme-border-color) !important; }

/* Portals - remove right rail */ .ns-112 .page__right-rail { display: none; } .ns-112 .page__main { border-radius: 3px !important; } /* Portals - remove footer and categories */ .ns-112 .page-header__categories, .ns-112 #mixed-content-footer { display: none; }

/* Dark theme documentation coloring */ .theme-fandomdesktop-dark .template-documentation { background-color: rgba(0,255,0,.3); }

/* Affiliates testing .theme-fandomdesktop-light.page-Animation_Wiki_Affiliates, .theme-fandommobile-light.page-Animation_Wiki_Affiliates { --theme-page-background-color: #c9e6ff; --theme-sticky-nav-background-color: #c9e6ff; --theme-page-background-color--secondary: #bfdbf2; --theme-border-color: #a5bbce; }