2021-01-26 19:25:46 +00:00
|
|
|
.page-actions {
|
2022-05-16 04:50:00 +00:00
|
|
|
--size-button--page: 2.25rem;
|
2019-12-26 10:21:50 +00:00
|
|
|
display: flex;
|
2022-05-11 02:17:12 +00:00
|
|
|
margin-left: -0.75rem; // To align with page padding
|
|
|
|
font-size: 0.875rem;
|
2021-01-26 19:25:46 +00:00
|
|
|
font-weight: 450;
|
2022-05-11 02:17:12 +00:00
|
|
|
gap: 0.25rem;
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2022-05-16 04:50:00 +00:00
|
|
|
// TODO: Merge this with header__item
|
|
|
|
&__item {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Merge this with header__button
|
|
|
|
&__button {
|
|
|
|
display: grid;
|
|
|
|
width: var( --size-button--page );
|
|
|
|
height: var( --size-button--page );
|
2022-05-16 22:12:37 +00:00
|
|
|
border-radius: var( --border-radius--medium );
|
2022-05-16 04:50:00 +00:00
|
|
|
place-items: center;
|
|
|
|
|
|
|
|
&--icon:after {
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
content: '';
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
transition: @transition-opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
&:after {
|
2022-05-16 04:50:00 +00:00
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
&:after {
|
2022-05-16 04:50:00 +00:00
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
&__card {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
overflow: auto;
|
|
|
|
min-width: 200px;
|
|
|
|
max-height: 60vh;
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
margin-top: ~'calc( var( --size-button--page ) + 0.5rem )';
|
|
|
|
font-size: 0.875rem;
|
|
|
|
.citizen-card;
|
|
|
|
.citizen-card-hide( 100% 0 );
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 0.625rem 1.25rem;
|
|
|
|
.menu-item-link;
|
2021-01-27 19:52:49 +00:00
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
&:hover {
|
|
|
|
.menu-item-link-hover;
|
2021-01-27 19:52:49 +00:00
|
|
|
}
|
2021-05-04 17:33:43 +00:00
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
&:active {
|
|
|
|
.menu-item-link-active;
|
2021-01-27 19:52:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
// Visible page tools styles
|
2022-04-24 05:52:41 +00:00
|
|
|
> .mw-portlet {
|
|
|
|
ul {
|
|
|
|
display: flex;
|
2022-05-11 02:17:12 +00:00
|
|
|
gap: 0.25rem;
|
2022-04-24 05:52:41 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
li > a {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-05-11 02:17:12 +00:00
|
|
|
padding: 0.5rem 0.75rem;
|
2022-04-24 05:52:41 +00:00
|
|
|
border-radius: var( --border-radius--medium );
|
|
|
|
color: var( --color-base );
|
|
|
|
font-size: 0;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-background, @transition-color;
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
&:after {
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
|
|
|
order: -1; // Move icon before the text
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: var( --size-icon );
|
|
|
|
content: '';
|
|
|
|
opacity: var( --opacity-icon-base );
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-opacity;
|
2022-04-24 05:52:41 +00:00
|
|
|
}
|
2021-01-27 19:52:49 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
color: var( --color-base--emphasized );
|
2021-01-26 19:25:46 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
|
|
|
color: var( --color-base--subtle );
|
2021-01-26 19:25:46 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
span {
|
|
|
|
.mixin-screen-reader-text;
|
2021-01-26 19:25:46 +00:00
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2022-04-24 05:52:41 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
2019-12-26 10:21:50 +00:00
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-05-16 04:50:00 +00:00
|
|
|
|
|
|
|
// TODO: Merge this with header styles
|
|
|
|
.mw-checkbox-hack-checkbox:checked ~ .page-actions__button {
|
|
|
|
background-color: var( --background-color-primary--active );
|
|
|
|
}
|
2022-04-24 05:52:41 +00:00
|
|
|
}
|
|
|
|
|
2022-05-16 23:31:11 +00:00
|
|
|
// Language counter badge
|
|
|
|
// TODO: Maybe this should be in a mixin
|
|
|
|
#citizen-languages__buttonCheckbox {
|
|
|
|
position: relative; // So that the badge doesn't take a stroll to the far left
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
top: 0;
|
|
|
|
left: 55%;
|
|
|
|
display: block;
|
|
|
|
padding: 0.1em 0.4em;
|
|
|
|
background: var( --color-primary );
|
|
|
|
border-radius: 100px;
|
|
|
|
color: #fff;
|
|
|
|
content: attr( data-counter-text );
|
|
|
|
font-size: 0.65rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-17 13:42:34 +00:00
|
|
|
.citizen-languages {
|
|
|
|
// Special handling for ULS
|
|
|
|
// ULS won't be triggered by the label button
|
|
|
|
// so we need to overlay the checkbox on top of it
|
|
|
|
.mw-interlanguage-selector {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
display: block;
|
2022-05-19 01:26:43 +00:00
|
|
|
width: var( --size-button--page );
|
|
|
|
height: var( --size-button--page );
|
2022-05-17 13:42:34 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
// Hover state needs to be define because the checkbox now overlays the label
|
|
|
|
&:hover {
|
|
|
|
~ .page-actions__button {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
~ .page-actions__button {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
// Handle icons
|
|
|
|
.page-actions-more {
|
|
|
|
a {
|
|
|
|
&:after {
|
|
|
|
.resource-loader-list-icon;
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-actions-more,
|
|
|
|
.citizen-languages {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
#p-views {
|
2021-01-27 18:59:14 +00:00
|
|
|
// VE styles shouldn't be core but it is just a few lines :/
|
|
|
|
#ca-ve-edit {
|
|
|
|
order: 98; // Before source edit
|
|
|
|
|
|
|
|
> a {
|
2022-05-11 02:17:12 +00:00
|
|
|
padding-right: 1.5rem;
|
2022-04-27 17:35:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Merge two buttons together
|
|
|
|
+ #ca-edit {
|
|
|
|
border-left: 1px solid var( --color-primary--hover );
|
2022-05-11 02:17:12 +00:00
|
|
|
margin-left: -1rem;
|
2022-04-27 17:35:03 +00:00
|
|
|
|
|
|
|
> a {
|
2022-05-11 02:17:12 +00:00
|
|
|
padding-left: 0.5rem;
|
2022-04-27 17:35:03 +00:00
|
|
|
border-radius: 0 var( --border-radius--medium ) var( --border-radius--medium ) 0;
|
|
|
|
font-size: 0; // hide edit source text
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
margin-right: 0; // reset
|
|
|
|
}
|
|
|
|
}
|
2021-01-27 18:59:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-26 19:25:46 +00:00
|
|
|
#ca-edit {
|
2021-01-27 18:59:14 +00:00
|
|
|
order: 99; // Align to last
|
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
|
2021-01-27 18:59:14 +00:00
|
|
|
#ca-edit,
|
|
|
|
#ca-ve-edit {
|
2021-01-26 19:25:46 +00:00
|
|
|
> a {
|
|
|
|
background-color: var( --color-primary );
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
filter: invert( 1 );
|
|
|
|
// white icon
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --color-primary--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
.skin-citizen-dark {
|
2021-01-27 19:52:49 +00:00
|
|
|
.page-actions {
|
2022-05-16 22:12:37 +00:00
|
|
|
&__button--icon:after {
|
2022-05-16 04:50:00 +00:00
|
|
|
filter: invert( 1 );
|
2021-01-09 21:56:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
li > a:after {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
// Checkbox hack
|
|
|
|
#page-actions-more,
|
|
|
|
#citizen-languages {
|
|
|
|
&__checkbox:checked {
|
|
|
|
~ .page-actions__card {
|
|
|
|
.citizen-card-show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-02 02:39:41 +00:00
|
|
|
.citizen-animations-ready {
|
2022-05-16 22:12:37 +00:00
|
|
|
.page-actions__card {
|
2022-05-02 02:39:41 +00:00
|
|
|
.citizen-card-transition();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-26 19:25:46 +00:00
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
2022-04-24 05:52:41 +00:00
|
|
|
.page-actions {
|
2022-05-11 02:17:12 +00:00
|
|
|
position: relative;
|
2022-04-27 18:02:10 +00:00
|
|
|
margin-right: 0;
|
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
> .mw-portlet {
|
|
|
|
li > a {
|
2022-05-11 02:17:12 +00:00
|
|
|
font-size: 0.875rem;
|
2021-01-26 19:25:46 +00:00
|
|
|
|
2022-04-24 05:52:41 +00:00
|
|
|
&:after {
|
2022-05-11 02:17:12 +00:00
|
|
|
margin-right: 0.5rem;
|
2022-04-24 05:52:41 +00:00
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-04 17:33:43 +00:00
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
.page-actions {
|
|
|
|
&__item {
|
|
|
|
position: unset;
|
|
|
|
}
|
2021-05-04 17:33:43 +00:00
|
|
|
|
2022-05-16 22:12:37 +00:00
|
|
|
&__card {
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reset hover styles if it is a touch device
|
|
|
|
// This is dumb but hover:hover overrides active states
|
|
|
|
@media ( hover: none ) {
|
|
|
|
.page-actions {
|
|
|
|
&__button {
|
|
|
|
&:hover {
|
|
|
|
background-color: none;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
}
|
2021-05-04 17:33:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|