mediawiki-skins-Citizen/resources/skins.citizen.styles/Pagetools.less

141 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
#page-tools {
2019-12-26 10:21:50 +00:00
position: absolute;
z-index: 1;
2019-12-26 10:21:50 +00:00
display: flex;
transform: translate3d( ~'calc( (100vw - var( --width-layout )) / 2 - var( --padding-page ) * 2 - 100%)', 0, 0 ); // magic
2019-12-26 10:21:50 +00:00
ul {
display: flex;
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 {
.resource-loader-icon-link;
padding: 5px;
font-size: 0;
2021-01-14 17:20:15 +00:00
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-14 17:20:15 +00:00
opacity: var( --opacity-icon-base--hover );
}
&:active {
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
&:after {
.resource-loader-icon;
}
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
}
}
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 {
.resource-loader-icon-link;
padding: 5px;
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
// TODO: Need to make value more flexible
ul {
position: absolute;
2020-06-12 05:56:42 +00:00
z-index: -1;
opacity: 0;
2020-06-12 05:56:42 +00:00
pointer-events: none;
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;
padding: @padding-menu-item;
font-size: @ui-menu-text;
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: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: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 {
.resource-loader-menu-icon;
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
}
.skin-citizen-dark {
#p-actions {
&:before {
filter: invert( 1 );
}
}
2021-01-14 17:20:15 +00:00
#p-views,
#p-actions {
li > a:after {
filter: invert( 1 );
}
}
}
2019-08-15 17:40:13 +00:00
// TODO: Flexible value
2020-06-10 05:17:49 +00:00
@media ( max-width: @screen2 ) {
2019-12-26 10:21:50 +00:00
#page-tools {
position: relative;
z-index: unset;
2019-12-26 10:21:50 +00:00
margin-left: @margin-side / 2;
float: right;
transform: none;
2020-06-12 06:09:40 +00:00
}
2019-12-26 10:21:50 +00:00
2020-06-12 06:09:40 +00:00
#p-actions {
> ul {
2019-12-26 10:21:50 +00:00
right: 0;
}
}
2019-08-15 17:40:13 +00:00
}
2020-06-10 05:17:49 +00:00
@media ( max-width: 500px ) {
2020-06-12 06:09:40 +00:00
#p-actions {
> ul {
right: unset;
}
2020-06-12 05:56:42 +00:00
}
}