2021-01-26 19:25:46 +00:00
|
|
|
.page-actions {
|
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
|
|
|
|
2021-01-27 19:52:49 +00:00
|
|
|
&-more {
|
|
|
|
display: block;
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
2021-03-02 17:47:00 +00:00
|
|
|
box-sizing: content-box;
|
2022-05-11 02:17:12 +00:00
|
|
|
padding: 0.5rem;
|
2021-05-27 14:35:21 +00:00
|
|
|
border-radius: var( --border-radius--medium );
|
2021-01-27 19:52:49 +00:00
|
|
|
cursor: pointer;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-opacity;
|
2021-01-27 19:52:49 +00:00
|
|
|
|
|
|
|
&-menu {
|
|
|
|
position: absolute;
|
|
|
|
z-index: -1;
|
2021-03-06 14:48:58 +00:00
|
|
|
right: var( --padding-page );
|
|
|
|
left: var( --padding-page );
|
2021-10-07 15:14:53 +00:00
|
|
|
overflow: auto;
|
|
|
|
max-height: 60vh;
|
2022-05-11 02:17:12 +00:00
|
|
|
padding-top: 0.3125rem;
|
|
|
|
margin-top: 0.3125rem;
|
2021-02-26 21:25:09 +00:00
|
|
|
cursor: auto; // reset cursor pointer set by parent
|
2021-07-25 23:16:05 +00:00
|
|
|
.citizen-card;
|
2022-05-02 02:39:41 +00:00
|
|
|
.citizen-card-hide( 100% 0 );
|
2021-01-27 19:52:49 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
.menu-item-link;
|
|
|
|
justify-content: space-between;
|
2022-05-11 02:17:12 +00:00
|
|
|
padding: 0.625rem 1.25rem;
|
2021-01-27 19:52:49 +00:00
|
|
|
|
|
|
|
&:after {
|
|
|
|
.resource-loader-list-icon;
|
|
|
|
margin-left: @icon-padding;
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.menu-item-link-hover;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
.menu-item-link-active;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
display: block;
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
|
|
|
background-size: var( --size-icon );
|
|
|
|
content: '';
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.page-actions-more-menu {
|
|
|
|
z-index: 5;
|
2022-05-02 02:39:41 +00:00
|
|
|
.citizen-card-show;
|
2021-01-27 19:52:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2021-05-04 17:33:43 +00:00
|
|
|
background: var( --background-color-quiet--active ) !important;
|
|
|
|
|
2021-01-27 19:52:49 +00:00
|
|
|
&:before {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-28 05:22:20 +00:00
|
|
|
> .mw-portal,
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#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 {
|
|
|
|
&-more {
|
|
|
|
&:before {
|
|
|
|
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-02 02:39:41 +00:00
|
|
|
.citizen-animations-ready {
|
|
|
|
.page-actions-more-menu {
|
|
|
|
.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
|
|
|
&-more-menu {
|
2022-05-11 02:17:12 +00:00
|
|
|
right: 0;
|
|
|
|
left: unset;
|
|
|
|
min-width: 12rem;
|
2022-04-24 05:52:41 +00:00
|
|
|
}
|
2021-01-27 19:52:49 +00:00
|
|
|
|
2022-04-28 05:22:20 +00:00
|
|
|
> .mw-portal,
|
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
|
|
|
|
|
|
|
@media ( hover: hover ) {
|
|
|
|
.page-actions-more:hover {
|
|
|
|
background: var( --background-color-quiet--hover );
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|