More actions
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
#n-sidebar-icon-discord a:before { | #n-sidebar-icon-discord a:before { | ||
mask-image: url( https:// | mask-image: url( https://wiki.cosmicpe.me/images/7/77/Discord_-_Simple_Icons.svg ); | ||
} | } | ||
#n-sidebar-icon-twitter a:before { | #n-sidebar-icon-twitter a:before { | ||
mask-image: url( https:// | mask-image: url( https://wiki.cosmicpe.me/images/6/6a/Twitter_-_Simple_Icons.svg ); | ||
} | } | ||
#n-sidebar-icon-github a:before { | #n-sidebar-icon-github a:before { | ||
mask-image: url( https:// | mask-image: url( https://wiki.cosmicpe.me/images/8/85/Github_-_Simple_Icons.svg ); | ||
} | } | ||
#n-sidebar-icon- | #n-sidebar-icon-youtube a:before { | ||
mask-image: url( https:// | mask-image: url( https://wiki.cosmicpe.me/images/6/6b/Youtube_-_Simple_Icons.svg ); | ||
} | } | ||
Revision as of 03:24, 25 February 2025
/* Align icon opacity with skin default */
.mw-logo-icon {
opacity: var( --opacity-icon-base );
filter: var( --filter-invert );
}
/* All CSS here will be loaded for users of the Citizen skin */
/* Icons */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
font-size: 0;
content-visibility: auto;
}
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
display: block;
content: "";
width: var( --size-icon );
height: var( --size-icon );
background-color: currentColor;
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
}
#n-sidebar-icon-discord a:before {
mask-image: url( https://wiki.cosmicpe.me/images/7/77/Discord_-_Simple_Icons.svg );
}
#n-sidebar-icon-twitter a:before {
mask-image: url( https://wiki.cosmicpe.me/images/6/6a/Twitter_-_Simple_Icons.svg );
}
#n-sidebar-icon-github a:before {
mask-image: url( https://wiki.cosmicpe.me/images/8/85/Github_-_Simple_Icons.svg );
}
#n-sidebar-icon-youtube a:before {
mask-image: url( https://wiki.cosmicpe.me/images/6/6b/Youtube_-_Simple_Icons.svg );
}
/*
* Footer icons
* We use custom footer icons so we need to fine tune it
*/
#footer-icons a {
border: 0;
padding: 0;
background: transparent;
opacity: var( --opacity-icon-base );
transition: opacity 250ms ease;
}
#footer-icons a:hover {
opacity: var( --opacity-icon-base--hover );
}
#footer-icons a:active {
opacity: var( --opacity-icon-base--active );
}
/* More space between icons */
#footer-icons ul,
#footer-icons li {
gap: var( --space-md );
}
#footer-icons img {
width: auto;
height: 32px;
}
/* Divide footer links into two columns */
#footer-places {
column-count: 2;
}
/* Fix misalignment in Safari and Firefox when using two columns */
#footer-places ul {
display: initial;
}
/* Darken the footer icon in light mode */
.skin-citizen-light #footer-icons a {
filter: invert( 1 ) hue-rotate( 180deg );
}
/*
* Very important checkmark
* Blue checkmark near wordmark
*/
.mw-logo-wordmark {
display: flex;
align-items: center;
gap: var( --space-sm );
}
/*