MediaWiki:Gadget-skinToggles.css: Difference between revisions

From EverVoid Wiki
Jump to navigation Jump to search
No edit summary
(New updated for 1.39.6)
 
Line 1: Line 1:
/* <pre> */
#pt-theme-toggles .oo-ui-icon-advanced,
li#pt-skin-toggles {
#pt-skin-toggles .oo-ui-icon-advanced {
    margin-left: 0;
}
 
li#pt-skin-toggles .oo-ui-icon-advanced {
     width: 15px;
     width: 15px;
     min-width: 15px;
     min-width: 15px;
     height: 15px;
     height: 14px;
     background-size: 14px;
     background-size: 14px;
     display: block;
     display: block;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.85464918.37900488c-1.91149353 1.51069427-3.13816124 3.84973402-3.13816124 6.47527736 0 4.55564936 3.69308349 8.24873286 8.24873286 8.24873286 2.5815709 0 4.8861545-1.1859235 6.3986798-3.0426994-.8206378 4.7389755-4.9523867 8.343122-9.9259291 8.343122-5.56375572 0-10.07407088-4.5103151-10.07407088-10.0740709 0-5.02506013 3.67919933-9.19079725 8.49074856-9.95036192z' fill='%23787776' fill-rule='evenodd'/%3E%3C/svg%3E");
     opacity: 1;
     opacity: 1;
    margin-bottom: -2px;
}
#pt-theme-toggles .oo-ui-icon-advanced {
background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.85464918.37900488c-1.91149353 1.51069427-3.13816124 3.84973402-3.13816124 6.47527736 0 4.55564936 3.69308349 8.24873286 8.24873286 8.24873286 2.5815709 0 4.8861545-1.1859235 6.3986798-3.0426994-.8206378 4.7389755-4.9523867 8.343122-9.9259291 8.343122-5.56375572 0-10.07407088-4.5103151-10.07407088-10.0740709 0-5.02506013 3.67919933-9.19079725 8.49074856-9.95036192z' fill='%23787776' fill-rule='evenodd'/%3E%3C/svg%3E");
}
#pt-skin-toggles .oo-ui-icon-advanced {
background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E settings %3C/title%3E%3Cg transform='translate(10 10)'%3E%3Cpath fill='%234c4c4c' id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse xlink:href='%23a' transform='rotate(45)'/%3E%3Cuse xlink:href='%23a' transform='rotate(90)'/%3E%3Cuse xlink:href='%23a' transform='rotate(135)'/%3E%3C/g%3E%3Cpath fill='%234c4c4c' d='M10 2.5a7.5 7.5 0 0 0 0 15 7.5 7.5 0 0 0 0-15v4a3.5 3.5 0 0 1 0 7 3.5 3.5 0 0 1 0-7'/%3E%3C/svg%3E%0A");
}
}


Line 20: Line 24:


.rsw-skin-toggle-popup .appearance-modal {
.rsw-skin-toggle-popup .appearance-modal {
     font-size: 0.9em;
    background-color: var(--body-main);
    border-color: var(--body-border);
     font-size: .9em;
     padding: 1em 2em 1.5em;
     padding: 1em 2em 1.5em;
}
}


.rsw-skin-toggle-popup .appearance-modal h2 {
.rsw-skin-toggle-popup .appearance-modal h2 {
     padding-top: 0.25em;
font-weight: bold;
font-size: 1.5em;
     padding-top: .25em;
     text-align: center;
     text-align: center;
}
     border: none;
 
.rsw-skin-toggle-popup .appearance-buttons {
     display: flex;
    margin: 0.5em auto 1.75em;
    width: 100%;
    justify-content: center;
}
}


Line 44: Line 46:


.rsw-skin-toggle-popup .light-mode-button .button-img {
.rsw-skin-toggle-popup .light-mode-button .button-img {
     background: url('https://wiki.evervoid.us/skins/Vector/images/70px-Light_mode_icon.png') center no-repeat;
     background: url('filepath://Light_mode_icon.png?width=70') center no-repeat;
     height: 70px;
     height: 70px;
     width: 70px;
     width: 70px;
Line 51: Line 53:
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
     .rsw-skin-toggle-popup .light-mode-button .button-img {
     .rsw-skin-toggle-popup .light-mode-button .button-img {
           background-image: url('https://wiki.evervoid.us/skins/Vector/images/70px-Light_mode_icon.png');
           background-image: url('filepath://Light_mode_icon.png');
           background-size: 70px;
           background-size: 70px;
     }
     }
Line 58: Line 60:


.rsw-skin-toggle-popup .light-mode-button .button-text {
.rsw-skin-toggle-popup .light-mode-button .button-text {
     color: #444e5a;
     color: #4c4c4c; /* @tundora */
}
}


Line 68: Line 70:


.rsw-skin-toggle-popup .dark-mode-button .button-img {
.rsw-skin-toggle-popup .dark-mode-button .button-img {
     background: url('https://wiki.evervoid.us/skins/Vector/images/70px-Dark_mode_icon.png') center no-repeat;
     background: url('filepath://Dark_mode_icon.png?width=70') center no-repeat;
     height: 70px;
     height: 70px;
     width: 70px;
     width: 70px;
Line 75: Line 77:
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
     .rsw-skin-toggle-popup .dark-mode-button .button-img {
     .rsw-skin-toggle-popup .dark-mode-button .button-img {
           background-image: url('https://wiki.evervoid.us/skins/Vector/images/70px-Dark_mode_icon.png');
           background-image: url('filepath://Dark_mode_icon.png');
           background-size: 70px;
           background-size: 70px;
     }
     }
Line 92: Line 94:


.rsw-skin-toggle-popup .oo-ui-optionWidget-selected .button-text-selected {
.rsw-skin-toggle-popup .oo-ui-optionWidget-selected .button-text-selected {
     background: url('https://wiki.evervoid.us/skins/Vector/images/15px-Checkmark_green.png') center no-repeat;
     background: url('filepath://Checkmark_green.png?width=15') center no-repeat;
     position: relative;
     position: relative;
     top: 1.4em;
     top: 1.4em;
Line 99: Line 101:
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
     .rsw-skin-toggle-popup .oo-ui-optionWidget-selected .button-text-selected {
     .rsw-skin-toggle-popup .oo-ui-optionWidget-selected .button-text-selected {
           background-image: url('https://wiki.evervoid.us/skins/Vector/images/15px-Checkmark_green.png');
           background-image: url('filepath://Checkmark_green.png');
           background-size: 15px;
           background-size: 15px;
     }
     }
Line 106: Line 108:


.rsw-skin-toggle-popup .oo-ui-widget-disabled .oo-ui-optionWidget-selected .button-text-selected {
.rsw-skin-toggle-popup .oo-ui-widget-disabled .oo-ui-optionWidget-selected .button-text-selected {
     background-image: url('https://wiki.evervoid.us/skins/Vector/images/15px-Checkmark_grey.png');
     background-image: url('filepath://Checkmark_grey.png?width=15');
     opacity: 0.5;
     opacity: .5;
}
}


@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
     .rsw-skin-toggle-popup .oo-ui-widget-disabled .oo-ui-optionWidget-selected .button-text-selected {
     .rsw-skin-toggle-popup .oo-ui-widget-disabled .oo-ui-optionWidget-selected .button-text-selected {
           background-image: url('https://wiki.evervoid.us/skins/Vector/images/15px-Checkmark_grey.png');
           background-image: url('filepath://Checkmark_grey.png');
     }
     }


Line 118: Line 120:


.rsw-skin-toggle-popup .reader-mode {
.rsw-skin-toggle-popup .reader-mode {
     background: #f9fafa;
     margin: 1em -2em 1em;
     margin: 1em -2em 1.5em;
     padding: 0em 2em .25em;
     padding: 1.75em 2em 0.5em;
}
 
body.wgl-theme-dark .rsw-skin-toggle-popup .reader-mode {
     border-color: #596e96;
}
 
.setting-header {
    font-weight: bold;
}
}


.rsw-skin-toggle-popup .reader-mode p {
.rsw-skin-toggle-popup .reader-mode p {
    color: #949eaa;
     line-height: 1.7em;
     line-height: 1.7em;
     margin-bottom: 1.25em;
     margin-bottom: 1.25em;
}
}


.rsw-skin-toggle-popup .reader-toggle,
.rsw-skin-toggle-popup .reader-mode .dark-conditional-desc {
.rsw-skin-toggle-popup .conditional-dropdown {
    margin-bottom: 0;
}
 
.rsw-skin-toggle-popup .reader-toggle {
     float: right;
     float: right;
     margin-left: 1em;
     margin-left: 1em;
Line 137: Line 148:
}
}


.rsw-skin-toggle-popup .conditional-dropdown {
.rsw-skin-toggle-popup .dark-times-selects {
     width: 100px;
    margin: 0.4em 0 1.25em;
}
 
.rsw-skin-toggle-popup .dark-times-selects > div {
    display: inline-block;
     width: 33%;
    max-width: 10em;
    margin: 0;
}
 
.rsw-skin-toggle-popup .dark-times-selects .dark-times-sep {
    display: inline-block;
    margin: 0 1em;
}
}


Line 158: Line 181:
     margin-right: 1em;
     margin-right: 1em;
     line-height: 1.7em;
     line-height: 1.7em;
}
body.wgl-readermode {
}
}


Line 169: Line 189:
body.wgl-readermode #ca-reader-dropdown {
body.wgl-readermode #ca-reader-dropdown {
     display: none;
     display: none;
    background: #fff;
     padding: 1.5em .75em 1.25em;
    border: 1px solid #e4eaee;
     box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.3); /* @box-shadow-dark */
     padding: 1.5em 0.75em 1.25em;
     box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.3);
     position: absolute;
     position: absolute;
     top: 2.5em;
     top: 2.5em;
Line 178: Line 196:
     z-index: 10;
     z-index: 10;
     width: auto;
     width: auto;
    /* same as "More" dropdown */
    background: var(--body-light);
    border: 1px solid var(--body-border);
    transition: opacity 100ms;
}
body.wgl-readermode #ca-reader-dropdown .vector-menu-content {
    height: auto;
}
}


Line 184: Line 211:
}
}


body.wgl-readermode #ca-reader-menu > span a {
body.wgl-readermode #ca-reader-menu > a {
     position: relative;
     position: relative;
     margin-right: 0.6em;
     margin-right: .6em;
     padding-right: 1.2em;
     padding-right: 1.2em;
}
}


body.wgl-readermode #ca-reader-menu > span a::after {
body.wgl-readermode #ca-reader-menu > a::after {
     content: '';
     content: '';
     position: absolute;
     position: absolute;
     top: 0.1em;
     top: .1em;
     right: 0;
     right: 0;
     bottom: 0;
     bottom: 0;
     left: 0;
     left: 0;
    background-image: url(/skins/Vector/images/arrow-down.png?42edd);
     background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%23222%22/%3E %3C/svg%3E");
     background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%23222%22/%3E %3C/svg%3E");
     background-position: 100% 50%;
     background-position: 100% 50%;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     opacity: 0.85;
     opacity: 0.84;
}
}


body.wgl-readermode #ca-reader-dropdown .portal {
body.wgl-readermode #ca-reader-dropdown .portal {
     margin: 0 0.565em;
     margin: 0 .565em;
     padding: 0;
     padding: 0;
}
}
Line 212: Line 238:
     display: block;
     display: block;
     float: initial;
     float: initial;
     font-size: 0.9em;
     font-size: .9em;
     margin: 0 0.6em 0.75em;
     margin: 0 .6em .75em;
     background: none;
     background: none;
     box-shadow: none;
     box-shadow: none;
Line 220: Line 246:
body.wgl-readermode #ca-reader-dropdown ul {
body.wgl-readermode #ca-reader-dropdown ul {
     background: none;
     background: none;
    padding: 0;
}
}


Line 232: Line 259:
     box-shadow: none;
     box-shadow: none;
     width: 100%;
     width: 100%;
    /* Vector defaults conflict here */
    float: none;
    font-size: 1.05em;
    height: initial;
    padding: .5em 0;
}
}


Line 238: Line 271:
}
}


body.wgl-readermode #p-logo {
body.wgl-readermode #p-logo,
body.wgl-readermode #p-Discord,
body.wgl-readermode #p-Donate {
     display: none;
     display: none;
}
}


body.wgl-readermode.wgl-darkmode #ca-reader-dropdown {
/* it's a fix */
    background: #313e59;
body.wgl-readermode #p-Recent_changes .rc-sidebar-user {
    border-color: #596e96;
display: inline-flex;
     box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.3);
align-items: center;
}
 
body.wgl-readermode #p-Recent_changes .rc-sidebar-user a:last-of-type {
margin-left: .25em;
}
 
body.wgl-readermode.wgl-theme-dark #ca-reader-menu > a::after {
     background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%23222%22/%3E %3C/svg%3E");
}
}


body.wgl-readermode.wgl-darkmode #ca-reader-menu > span a::after {
/* this should be in core readermode instead */
     background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%238cabe6%22/%3E %3C/svg%3E");
body.wgl-readermode .mw-footer {
     max-width: 56rem;
    margin: 0 auto;
}
}


#mw-head.sticky-hidden {
/* the :not() is for fullscreen maps: the x button would be behind sticky bar otherwise */
body:not(.oo-ui-windowManager-modal-active) #mw-head.sticky-hidden {
     position: fixed;
     position: fixed;
     top: 0;
     top: 0;
     width: 100%;
     width: 100%;
     background: #f6f6f6;
     background: var(--body-background-color);
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
     z-index: 500;
     z-index: 500;
Line 268: Line 312:
}
}


#mw-head.sticky-hidden div.vectorTabs ul li:not(.selected),
#mw-head.sticky-hidden .vector-menu-tabs ul li:not(.selected),
#mw-head.sticky-hidden div.vectorMenu h3,
#mw-head.sticky-hidden .vector-menu-dropdown .vector-menu-heading,
#mw-head.sticky-hidden div#simpleSearch {
#mw-head.sticky-hidden .vector-search-box-inner {
     box-shadow: none;
     box-shadow: none;
}
}


#mw-head.sticky-hidden div.vectorTabs li.selected {
#mw-head:not(.sticky-hidden) #ca-nstab-mainpage {
     background: initial;
     display: none;
}
}


.wgl-darkmode .rsw-skin-toggle-popup .oo-ui-window-content .oo-ui-widget-enabled.light-mode-button a.oo-ui-buttonElement-button,
/* #p-personal background overlaps with the prompt */
.wgl-darkmode .rsw-skin-toggle-popup .oo-ui-window-content .oo-ui-widget-enabled.light-mode-button a.oo-ui-buttonElement-button:hover {
#rsw-color-scheme-prompt {
    background: white !important;
    top: 32px !important;
    border-color: #949eaa !important;
}
    z-index: 4 !important;
 
/* New skin popup */
.wgl-theme-popup {
margin-top: 20px !important;
box-shadow: rgba(0, 0, 0, 0.21) 0px 5px 20px 0px;
}
 
.wgl-theme-popup .appearance-buttons .oo-ui-buttonOptionWidget {
margin-left: auto !important;
}
 
.wgl-theme-popup .appearance-buttons .oo-ui-buttonOptionWidget .oo-ui-buttonElement-button {
width: 50px;
padding: 0;
    border: 0;
    border-radius: 0;
}
 
.wgl-theme-popup .button-img {
height: 47.5px;
background-size: 47px !important;
}
 
.wgl-theme-popup .oo-ui-buttonOptionWidget:not(.oo-ui-optionWidget-selected) .button-img::after {
  content: " ";
  width: 100%;
  height: 100%;
  display: block;
  background: #00000082;
}
 
.wgl-theme-popup .oo-ui-buttonOptionWidget .button-img:hover::after {
  background: transparent;
}
}


.wgl-darkmode .rsw-skin-toggle-popup .oo-ui-window-content .oo-ui-widget-enabled.light-mode-button .button-text {
.wgl-theme-popup .light-mode-button .oo-ui-buttonElement-button,
     color: #444e5a;
.wgl-theme-popup .light-mode-button .oo-ui-buttonElement-button:hover {
     background: #fff !important;
}
}


.wgl-darkmode .rsw-skin-toggle-popup .oo-ui-window-content .oo-ui-widget-enabled.dark-mode-button a.oo-ui-buttonElement-button,
.wgl-theme-popup .light-mode-button .button-img {
.wgl-darkmode .rsw-skin-toggle-popup .oo-ui-window-content .oo-ui-widget-enabled.dark-mode-button a.oo-ui-buttonElement-button:hover {
background: url('filepath://Light_mode_icon.png?width=94') center no-repeat;
    background: #222e45 !important;
    border-color: #172136 !important;
}
}


.wgl-darkmode .rsw-skin-toggle-popup .oo-ui-window-content .oo-ui-widget-enabled.dark-mode-button .button-text {
.wgl-theme-popup .dark-mode-button .oo-ui-buttonElement-button,
     color: #cbd9f4;
.wgl-theme-popup .dark-mode-button .oo-ui-buttonElement-button:hover {
     background: #222e45 !important;
}
}


#mw-head:not(.sticky-hidden) #ca-nstab-mainpage {
.wgl-theme-popup .dark-mode-button .button-img {
     display: none;
     background: url('filepath://Dark_mode_icon.png?width=94') center no-repeat;
}
}

Latest revision as of 11:51, 28 December 2023

#pt-theme-toggles .oo-ui-icon-advanced,
#pt-skin-toggles .oo-ui-icon-advanced {
    width: 15px;
    min-width: 15px;
    height: 14px;
    background-size: 14px;
    display: block;
    background-repeat: no-repeat;
    opacity: 1;
    margin-bottom: -2px;
}

#pt-theme-toggles .oo-ui-icon-advanced {
	background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.85464918.37900488c-1.91149353 1.51069427-3.13816124 3.84973402-3.13816124 6.47527736 0 4.55564936 3.69308349 8.24873286 8.24873286 8.24873286 2.5815709 0 4.8861545-1.1859235 6.3986798-3.0426994-.8206378 4.7389755-4.9523867 8.343122-9.9259291 8.343122-5.56375572 0-10.07407088-4.5103151-10.07407088-10.0740709 0-5.02506013 3.67919933-9.19079725 8.49074856-9.95036192z' fill='%23787776' fill-rule='evenodd'/%3E%3C/svg%3E");
}

#pt-skin-toggles .oo-ui-icon-advanced {
	background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E settings %3C/title%3E%3Cg transform='translate(10 10)'%3E%3Cpath fill='%234c4c4c' id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse xlink:href='%23a' transform='rotate(45)'/%3E%3Cuse xlink:href='%23a' transform='rotate(90)'/%3E%3Cuse xlink:href='%23a' transform='rotate(135)'/%3E%3C/g%3E%3Cpath fill='%234c4c4c' d='M10 2.5a7.5 7.5 0 0 0 0 15 7.5 7.5 0 0 0 0-15v4a3.5 3.5 0 0 1 0 7 3.5 3.5 0 0 1 0-7'/%3E%3C/svg%3E%0A");
}

.rsw-skin-toggle-popup .oo-ui-window-frame {
    width: 440px !important;
}

.rsw-skin-toggle-popup .appearance-modal {
    background-color: var(--body-main);
    border-color: var(--body-border);
    font-size: .9em;
    padding: 1em 2em 1.5em;
}

.rsw-skin-toggle-popup .appearance-modal h2 {
	font-weight: bold;
	font-size: 1.5em;
    padding-top: .25em;
    text-align: center;
    border: none;
}

.rsw-skin-toggle-popup .light-mode-button .oo-ui-buttonElement-button,
.rsw-skin-toggle-popup .light-mode-button .oo-ui-buttonElement-button:hover {
    background: white !important;
    border-color: #949eaa !important;
    z-index: 4 !important;
}

.rsw-skin-toggle-popup .light-mode-button .button-img {
    background: url('filepath://Light_mode_icon.png?width=70') center no-repeat;
    height: 70px;
    width: 70px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rsw-skin-toggle-popup .light-mode-button .button-img {
          background-image: url('filepath://Light_mode_icon.png');
          background-size: 70px;
    }

}

.rsw-skin-toggle-popup .light-mode-button .button-text {
    color: #4c4c4c; /* @tundora */
}

.rsw-skin-toggle-popup .dark-mode-button .oo-ui-buttonElement-button,
.rsw-skin-toggle-popup .dark-mode-button .oo-ui-buttonElement-button:hover {
    background: #222e45 !important;
    border-color: #172136 !important;
}

.rsw-skin-toggle-popup .dark-mode-button .button-img {
    background: url('filepath://Dark_mode_icon.png?width=70') center no-repeat;
    height: 70px;
    width: 70px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rsw-skin-toggle-popup .dark-mode-button .button-img {
          background-image: url('filepath://Dark_mode_icon.png');
          background-size: 70px;
    }

}

.rsw-skin-toggle-popup .dark-mode-button .button-text {
    color: #cbd9f4;
}

.rsw-skin-toggle-popup .button-text-selected {
    height: 15px;
    padding-top: 1em;
    margin-bottom: -1.7em;
}

.rsw-skin-toggle-popup .oo-ui-optionWidget-selected .button-text-selected {
    background: url('filepath://Checkmark_green.png?width=15') center no-repeat;
    position: relative;
    top: 1.4em;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rsw-skin-toggle-popup .oo-ui-optionWidget-selected .button-text-selected {
          background-image: url('filepath://Checkmark_green.png');
          background-size: 15px;
    }

}

.rsw-skin-toggle-popup .oo-ui-widget-disabled .oo-ui-optionWidget-selected .button-text-selected {
    background-image: url('filepath://Checkmark_grey.png?width=15');
    opacity: .5;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rsw-skin-toggle-popup .oo-ui-widget-disabled .oo-ui-optionWidget-selected .button-text-selected {
          background-image: url('filepath://Checkmark_grey.png');
    }

}

.rsw-skin-toggle-popup .reader-mode {
    margin: 1em -2em 1em;
    padding: 0em 2em .25em;
}

body.wgl-theme-dark .rsw-skin-toggle-popup .reader-mode {
    border-color: #596e96;
}

.setting-header {
    font-weight: bold;
}

.rsw-skin-toggle-popup .reader-mode p {
    line-height: 1.7em;
    margin-bottom: 1.25em;
}

.rsw-skin-toggle-popup .reader-mode .dark-conditional-desc {
    margin-bottom: 0;
}

.rsw-skin-toggle-popup .reader-toggle {
    float: right;
    margin-left: 1em;
    margin-right: -0.25em;
    transform: scale(0.8);
}

.rsw-skin-toggle-popup .dark-times-selects {
    margin: 0.4em 0 1.25em;
}

.rsw-skin-toggle-popup .dark-times-selects > div {
    display: inline-block;
    width: 33%;
    max-width: 10em;
    margin: 0;
}

.rsw-skin-toggle-popup .dark-times-selects .dark-times-sep {
    display: inline-block;
    margin: 0 1em;
}

.rsw-skin-toggle-popup .appearance-save {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rsw-skin-toggle-popup .floornumber-select {
    float: right;
}

.rsw-skin-toggle-popup .save-button-container {
    display: flex;
}

.rsw-skin-toggle-popup .save-button-desc {
    margin-right: 1em;
    line-height: 1.7em;
}

body.wgl-readermode #ca-reader-menu {
    position: relative;
}

body.wgl-readermode #ca-reader-dropdown {
    display: none;
    padding: 1.5em .75em 1.25em;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.3); /* @box-shadow-dark */
    position: absolute;
    top: 2.5em;
    left: 0;
    z-index: 10;
    width: auto;

    /* same as "More" dropdown */
    background: var(--body-light);
    border: 1px solid var(--body-border);
    transition: opacity 100ms;
}

body.wgl-readermode #ca-reader-dropdown .vector-menu-content {
    height: auto;
}

body.wgl-readermode #ca-reader-menu:hover #ca-reader-dropdown {
    display: flex;
}

body.wgl-readermode #ca-reader-menu > a {
    position: relative;
    margin-right: .6em;
    padding-right: 1.2em;
}

body.wgl-readermode #ca-reader-menu > a::after {
    content: '';
    position: absolute;
    top: .1em;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%23222%22/%3E %3C/svg%3E");
    background-position: 100% 50%;
    background-repeat: no-repeat;
    opacity: 0.84;
}

body.wgl-readermode #ca-reader-dropdown .portal {
    margin: 0 .565em;
    padding: 0;
}

body.wgl-readermode #ca-reader-dropdown h3 {
    display: block;
    float: initial;
    font-size: .9em;
    margin: 0 .6em .75em;
    background: none;
    box-shadow: none;
}

body.wgl-readermode #ca-reader-dropdown ul {
    background: none;
    padding: 0;
}

body.wgl-readermode #ca-reader-dropdown li {
    background: none;
    box-shadow: none;
    width: 100%;
}

body.wgl-readermode #ca-reader-dropdown a {
    background: none;
    box-shadow: none;
    width: 100%;

    /* Vector defaults conflict here */
    float: none;
    font-size: 1.05em;
    height: initial;
    padding: .5em 0;
}

body.wgl-readermode #ca-reader-dropdown a:hover {
    text-decoration: underline;
}

body.wgl-readermode #p-logo,
body.wgl-readermode #p-Discord,
body.wgl-readermode #p-Donate {
    display: none;
}

/* it's a fix */
body.wgl-readermode #p-Recent_changes .rc-sidebar-user {
	display: inline-flex;
	align-items: center;
}

body.wgl-readermode #p-Recent_changes .rc-sidebar-user a:last-of-type {
	margin-left: .25em;
}

body.wgl-readermode.wgl-theme-dark #ca-reader-menu > a::after {
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%23222%22/%3E %3C/svg%3E");
}

/* this should be in core readermode instead */
body.wgl-readermode .mw-footer {
    max-width: 56rem;
    margin: 0 auto;
}

/* the :not() is for fullscreen maps: the x button would be behind sticky bar otherwise */
body:not(.oo-ui-windowManager-modal-active) #mw-head.sticky-hidden {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--body-background-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 500;
}

#mw-head.sticky-hidden #left-navigation,
#mw-head.sticky-hidden #right-navigation {
    margin-top: 0;
}

#mw-head.sticky-hidden .vector-menu-tabs ul li:not(.selected),
#mw-head.sticky-hidden .vector-menu-dropdown .vector-menu-heading,
#mw-head.sticky-hidden .vector-search-box-inner {
    box-shadow: none;
}

#mw-head:not(.sticky-hidden) #ca-nstab-mainpage {
    display: none;
}

/* #p-personal background overlaps with the prompt */
#rsw-color-scheme-prompt {
    top: 32px !important;
}

/* New skin popup */
.wgl-theme-popup {
	margin-top: 20px !important;
	box-shadow: rgba(0, 0, 0, 0.21) 0px 5px 20px 0px;
}

.wgl-theme-popup .appearance-buttons .oo-ui-buttonOptionWidget {
	margin-left: auto !important;
}

.wgl-theme-popup .appearance-buttons .oo-ui-buttonOptionWidget .oo-ui-buttonElement-button {
	width: 50px;
	padding: 0;
    border: 0;
    border-radius: 0;
}

.wgl-theme-popup .button-img {
	height: 47.5px;
	background-size: 47px !important;
}

.wgl-theme-popup .oo-ui-buttonOptionWidget:not(.oo-ui-optionWidget-selected) .button-img::after {
  content: " ";
  width: 100%;
  height: 100%;
  display: block;
  background: #00000082;
}

.wgl-theme-popup .oo-ui-buttonOptionWidget .button-img:hover::after {
  background: transparent;
}

.wgl-theme-popup .light-mode-button .oo-ui-buttonElement-button,
.wgl-theme-popup .light-mode-button .oo-ui-buttonElement-button:hover {
    background: #fff !important;
}

.wgl-theme-popup .light-mode-button .button-img {
	background: url('filepath://Light_mode_icon.png?width=94') center no-repeat;
}

.wgl-theme-popup .dark-mode-button .oo-ui-buttonElement-button,
.wgl-theme-popup .dark-mode-button .oo-ui-buttonElement-button:hover {
    background: #222e45 !important;
}

.wgl-theme-popup .dark-mode-button .button-img {
    background: url('filepath://Dark_mode_icon.png?width=94') center no-repeat;
}