MediaWiki:Minerva.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→Theme toggle icon styles for MinervaNeue mobile skin: .minerva-icon--theme-toggle { mask-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..." Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Theme toggle | /* Theme toggle button styles for MinervaNeue mobile skin */ | ||
/* Icon styles */ | |||
.minerva-icon--theme-toggle { | .minerva-icon--theme-toggle { | ||
mask-image: linear-gradient(transparent, transparent), url("data:image/svg+xml, | mask-image: linear-gradient(transparent, transparent), | ||
url("data:image/svg+xml,%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='%2354595d' fill-rule='evenodd'/%3E%3C/svg%3E"); | |||
} | } | ||
.wgl-theme-dark .minerva-icon--theme-toggle, | .wgl-theme-dark .minerva-icon--theme-toggle, | ||
.stw-theme-dark .minerva-icon--theme-toggle { | .stw-theme-dark .minerva-icon--theme-toggle { | ||
mask-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg fill='%2354595d' fill-rule='evenodd' xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' | mask-image: linear-gradient(transparent, transparent), | ||
url("data:image/svg+xml,%3Csvg fill='%2354595d' fill-rule='evenodd' xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M17.07 7.07V2.93h-4.14L10 0 7.07 2.93H2.93v4.14L0 10l2.93 2.93v4.14h4.14L10 20l2.93-2.93h4.14v-4.14L20 10zM10 16a6 6 0 1 1 6-6 6 6 0 0 1-6 6z'/%3E%3Ccircle cx='10' cy='10' r='4.5'/%3E%3C/svg%3E"); | |||
} | |||
/* Button container styles */ | |||
.menu__item--theme-toggle { | |||
display: block; | |||
padding: 8px 12px; | |||
text-decoration: none; | |||
border-radius: 4px; | |||
font-size: 14px; | |||
margin: 4px 0; | |||
} | |||
.menu__item--theme-toggle:hover { | |||
background-color: rgba(0, 0, 0, 0.05); | |||
} | |||
.stw-theme-dark .menu__item--theme-toggle:hover { | |||
background-color: rgba(255, 255, 255, 0.1); | |||
} | } | ||
Revision as of 05:09, 9 January 2026
/* Theme toggle button styles for MinervaNeue mobile skin */
/* Icon styles */
.minerva-icon--theme-toggle {
mask-image: linear-gradient(transparent, transparent),
url("data:image/svg+xml,%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='%2354595d' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.wgl-theme-dark .minerva-icon--theme-toggle,
.stw-theme-dark .minerva-icon--theme-toggle {
mask-image: linear-gradient(transparent, transparent),
url("data:image/svg+xml,%3Csvg fill='%2354595d' fill-rule='evenodd' xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M17.07 7.07V2.93h-4.14L10 0 7.07 2.93H2.93v4.14L0 10l2.93 2.93v4.14h4.14L10 20l2.93-2.93h4.14v-4.14L20 10zM10 16a6 6 0 1 1 6-6 6 6 0 0 1-6 6z'/%3E%3Ccircle cx='10' cy='10' r='4.5'/%3E%3C/svg%3E");
}
/* Button container styles */
.menu__item--theme-toggle {
display: block;
padding: 8px 12px;
text-decoration: none;
border-radius: 4px;
font-size: 14px;
margin: 4px 0;
}
.menu__item--theme-toggle:hover {
background-color: rgba(0, 0, 0, 0.05);
}
.stw-theme-dark .menu__item--theme-toggle:hover {
background-color: rgba(255, 255, 255, 0.1);
}