2022-11-15 16:57:17 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
// Hide dividers since we are making links into icons
|
|
|
|
&-bracket,
|
|
|
|
&-divider {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-11-16 04:36:30 +00:00
|
|
|
// Fallback text button if extensions register those
|
2022-11-15 16:57:17 +00:00
|
|
|
a {
|
|
|
|
padding: var( --space-xxs );
|
2022-11-16 04:36:30 +00:00
|
|
|
font-size: 0.875rem;
|
|
|
|
}
|
|
|
|
}
|
2022-11-15 16:57:17 +00:00
|
|
|
|
2022-11-16 04:36:30 +00:00
|
|
|
.citizen-editsection-icon {
|
|
|
|
.resource-loader-icon-link-small;
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
text-indent: -9999px; // Hide text
|
|
|
|
transition: @transition-opacity;
|
2022-11-15 16:57:17 +00:00
|
|
|
|
2022-11-16 04:36:30 +00:00
|
|
|
&:before {
|
|
|
|
.resource-loader-icon;
|
|
|
|
display: block;
|
|
|
|
background-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
2022-11-15 16:57:17 +00:00
|
|
|
|
2022-11-16 04:36:30 +00:00
|
|
|
&:active {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
2022-11-15 16:57:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.skin-citizen-dark {
|
|
|
|
// Flip icon for dark mode
|
|
|
|
.mw-editsection > a:before {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|