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;
|
|
|
|
float: right; // Can't target the container so have to use to float
|
2023-07-28 01:19:27 +00:00
|
|
|
margin-left: var( --space-sm );
|
2023-05-23 16:47:26 +00:00
|
|
|
-webkit-user-select: none;
|
2022-11-15 16:57:17 +00:00
|
|
|
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 {
|
2022-11-16 04:36:30 +00:00
|
|
|
font-size: 0.875rem;
|
2023-07-28 01:19:27 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2022-11-25 02:14:51 +00:00
|
|
|
|
2023-07-10 20:56:56 +00:00
|
|
|
&::before {
|
|
|
|
filter: var( --filter-invert );
|
|
|
|
}
|
|
|
|
|
2022-11-25 02:14:51 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
2022-11-16 04:36:30 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-15 16:57:17 +00:00
|
|
|
|
2022-11-16 04:36:30 +00:00
|
|
|
.citizen-editsection-icon {
|
2023-03-01 21:08:07 +00:00
|
|
|
width: 1.875rem;
|
|
|
|
height: 1.875rem;
|
2022-11-16 04:36:30 +00:00
|
|
|
text-indent: -9999px; // Hide text
|
2023-07-28 01:19:27 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2023-07-07 20:36:27 +00:00
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: opacity;
|
2022-11-15 16:57:17 +00:00
|
|
|
|
2023-02-28 21:59:36 +00:00
|
|
|
&::before {
|
2022-11-16 04:36:30 +00:00
|
|
|
.resource-loader-icon;
|
|
|
|
display: block;
|
2023-03-01 21:08:07 +00:00
|
|
|
background-size: 1.125rem;
|
2022-11-16 04:36:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&: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;
|
|
|
|
}
|