mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 14:57:31 +00:00
2bf20397e1
This decouple the filter style from the class. Instead, filter-invert can be redefined if needed (e.g. :root.skin-citizen-dark)
82 lines
1.6 KiB
Plaintext
82 lines
1.6 KiB
Plaintext
/*
|
|
* Citizen
|
|
*
|
|
* Module: mediawiki.skinning.interface-edit-section-links
|
|
* Version: REL1_39
|
|
*
|
|
* Date: 2022-11-15
|
|
*/
|
|
|
|
.mw-editsection {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: var( --space-sm );
|
|
float: right; // Can't target the container so have to use to float
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
|
|
// Hide dividers since we are making links into icons
|
|
&-bracket,
|
|
&-divider {
|
|
display: none;
|
|
}
|
|
|
|
// Fallback text button if extensions register those
|
|
a {
|
|
border-radius: var( --border-radius--small );
|
|
font-size: 0.875rem;
|
|
|
|
&::before {
|
|
filter: var( --filter-invert );
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var( --background-color-quiet--hover );
|
|
}
|
|
|
|
&:active {
|
|
background-color: var( --background-color-quiet--hover );
|
|
}
|
|
}
|
|
}
|
|
|
|
.citizen-editsection-icon {
|
|
width: 1.875rem;
|
|
height: 1.875rem;
|
|
opacity: var( --opacity-icon-base );
|
|
text-indent: -9999px; // Hide text
|
|
transition: var( --transition-hover );
|
|
transition-property: opacity;
|
|
|
|
&::before {
|
|
.resource-loader-icon;
|
|
display: block;
|
|
background-size: 1.125rem;
|
|
}
|
|
|
|
&:hover {
|
|
opacity: var( --opacity-icon-base--hover );
|
|
}
|
|
|
|
&:active {
|
|
opacity: var( --opacity-icon-base--active );
|
|
}
|
|
}
|
|
|
|
/* Correct directionality when page dir is different from site/user dir */
|
|
.mw-content-ltr .mw-editsection,
|
|
.mw-content-rtl .mw-content-ltr .mw-editsection {
|
|
/* @noflip */
|
|
margin-right: 0;
|
|
/* @noflip */
|
|
margin-left: var( --space-sm );
|
|
}
|
|
|
|
.mw-content-rtl .mw-editsection,
|
|
.mw-content-ltr .mw-content-rtl .mw-editsection {
|
|
/* @noflip */
|
|
margin-right: var( --space-sm );
|
|
/* @noflip */
|
|
margin-left: 0;
|
|
}
|