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

159 lines
2.3 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;
display: flex;
transform: translateX( ~'calc( (100vw - @{page-width}) / 2 - @{margin-side} * 2 - 100%)' ); // magic
2020-06-12 05:56:42 +00:00
z-index: 1;
2019-12-26 10:21:50 +00:00
ul {
margin: 0;
display: flex;
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;
opacity: @opacity-icon;
transition: @transition-opacity;
2019-12-26 10:21:50 +00:00
2020-06-12 05:56:42 +00:00
&:hover {
opacity: @opacity-icon-active;
}
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 {
z-index: -1;
pointer-events: none;
.menu-container;
position: absolute;
opacity: 0;
.boxshadow(4);
transition: @transition-opacity-quick, @transition-box-shadow-quick;
a {
.menu-item-link;
justify-content: space-between;
font-size: @ui-menu-text;
padding: @padding-menu-item;
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;
opacity: @opacity-icon;
}
2019-12-26 10:21:50 +00:00
2020-06-12 05:56:42 +00:00
&:hover,
&:active,
&:focus {
&:after {
opacity: @opacity-icon-active;
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
&:hover {
.menu-item-link-hover;
}
2019-12-26 10:21:50 +00:00
2020-06-12 05:56:42 +00:00
&:active {
.menu-item-link-active;
}
2019-12-26 10:21:50 +00:00
2020-06-12 05:56:42 +00:00
&:focus {
.menu-item-link-focus;
2019-12-26 10:21:50 +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;
opacity: @opacity-icon;
}
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
}
// 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 {
2020-03-20 04:06:01 +00:00
z-index: unset;
2019-12-26 10:21:50 +00:00
position: relative;
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
}
}
@media ( prefers-color-scheme: dark ) {
2020-06-12 05:57:30 +00:00
#p-actions {
2020-06-12 05:56:42 +00:00
ul {
background: @dark-bg-50;
2020-06-12 06:09:40 +00:00
a {
color: @dark-text-80 !important;
&:hover {
background-color: @dark-bg-60;
color: @dark-text-90 !important;
}
&:active,
&:focus {
color: @dark-text-100 !important;
background-color: @accent-10;
}
}
2020-06-12 05:56:42 +00:00
}
&:before {
filter: invert( 1 );
}
}
#p-views {
li > a:after {
filter: invert( 1 );
2019-12-26 10:21:50 +00:00
}
}
2019-08-15 17:40:13 +00:00
}