2021-01-26 19:25:46 +00:00
|
|
|
.page-actions {
|
2019-12-26 10:21:50 +00:00
|
|
|
display: flex;
|
2021-01-26 19:25:46 +00:00
|
|
|
margin-left: -12px; // To align with page padding
|
|
|
|
font-size: @ui-menu-text;
|
|
|
|
font-weight: 450;
|
2019-12-26 10:21:50 +00:00
|
|
|
|
|
|
|
ul {
|
|
|
|
display: flex;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 0;
|
2019-12-26 10:21:50 +00:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
#p-views {
|
|
|
|
li > a {
|
2021-01-26 19:25:46 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 8px 12px;
|
|
|
|
margin-right: 4px;
|
|
|
|
border-radius: @border-radius-medium;
|
2021-01-26 19:29:36 +00:00
|
|
|
color: var( --color-base );
|
2020-06-12 05:56:42 +00:00
|
|
|
font-size: 0;
|
2021-01-26 19:29:36 +00:00
|
|
|
transition: @transition-background-quick, @transition-color-quick;
|
2021-01-26 19:25:46 +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 );
|
|
|
|
transition: @transition-opacity-quick;
|
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
&:hover {
|
2021-01-26 19:25:46 +00:00
|
|
|
background-color: var( --background-color-quiet--hover );
|
2021-01-26 19:29:36 +00:00
|
|
|
color: var( --color-base--emphasized );
|
2021-01-26 19:25:46 +00:00
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
2021-01-14 17:20:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2021-01-26 19:25:46 +00:00
|
|
|
background-color: var( --background-color-quiet--active );
|
2021-01-26 19:29:36 +00:00
|
|
|
color: var( --color-base--subtle );
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2021-01-26 19:25:46 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
span {
|
|
|
|
.mixin-screen-reader-text;
|
2019-12-26 10:21:50 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
|
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 {
|
|
|
|
padding-right: 16px;
|
|
|
|
// Merge button with source edit
|
|
|
|
margin-right: -12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
#p-actions {
|
2021-01-26 19:25:46 +00:00
|
|
|
display: block;
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
|
|
|
padding: 8px;
|
2020-06-12 05:56:42 +00:00
|
|
|
cursor: pointer;
|
|
|
|
// transition: @transition-opacity-quick; - Hidden behind the menu anyways
|
2020-06-06 00:12:39 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
ul {
|
2021-01-11 16:45:52 +00:00
|
|
|
position: absolute;
|
2020-06-12 05:56:42 +00:00
|
|
|
z-index: -1;
|
2021-01-26 19:25:46 +00:00
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
border: 1px solid var( --border-color-base--lighter );
|
|
|
|
margin-top: 5px;
|
2021-01-11 16:45:52 +00:00
|
|
|
opacity: 0;
|
2020-06-12 05:56:42 +00:00
|
|
|
pointer-events: none;
|
2021-01-11 16:45:52 +00:00
|
|
|
transition: @transition-opacity-quick, @transition-box-shadow-quick;
|
2020-06-12 05:56:42 +00:00
|
|
|
.menu-container;
|
|
|
|
.boxshadow(4);
|
|
|
|
|
|
|
|
a {
|
|
|
|
.menu-item-link;
|
|
|
|
justify-content: space-between;
|
2021-01-26 19:25:46 +00:00
|
|
|
padding: 10px var( --padding-page );
|
2020-06-06 00:12:39 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
&:after {
|
|
|
|
.resource-loader-list-icon;
|
|
|
|
margin-left: @icon-padding;
|
2021-01-14 17:20:15 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
&:hover {
|
|
|
|
.menu-item-link-hover;
|
2021-01-14 17:20:55 +00:00
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
&:active {
|
|
|
|
.menu-item-link-active;
|
2021-01-14 17:20:55 +00:00
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2020-06-06 00:12:39 +00:00
|
|
|
}
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
&:before {
|
2021-01-26 19:25:46 +00:00
|
|
|
display: block;
|
|
|
|
width: var( --size-icon );
|
|
|
|
height: var( --size-icon );
|
|
|
|
background-size: var( --size-icon );
|
|
|
|
content: '';
|
2021-01-14 17:20:15 +00:00
|
|
|
opacity: var( --opacity-icon-base );
|
2020-06-12 05:56:42 +00:00
|
|
|
}
|
2019-12-26 10:21:50 +00:00
|
|
|
|
2020-06-12 05:56:42 +00:00
|
|
|
&:hover ul {
|
|
|
|
z-index: 5;
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
2019-12-26 10:21:50 +00:00
|
|
|
}
|
2019-08-15 17:40:13 +00:00
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +00:00
|
|
|
.skin-citizen-dark {
|
|
|
|
#p-actions {
|
|
|
|
&:before {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-14 17:20:15 +00:00
|
|
|
#p-views,
|
|
|
|
#p-actions {
|
2021-01-09 21:56:28 +00:00
|
|
|
li > a:after {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-26 19:25:46 +00:00
|
|
|
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
|
|
#p-views {
|
|
|
|
li > a {
|
|
|
|
font-size: @ui-menu-text;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#p-actions {
|
|
|
|
ul {
|
|
|
|
position: relative;
|
|
|
|
right: unset;
|
|
|
|
left: -172px;
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|