mediawiki-skins-MinervaNeue/resources/skins.minerva.base.styles/pageactions.less
Bartosz Dziewoński 5f17c89649 Remove unused CSS for cached HTML
Searched for /fixme.*remove/.

Follow-up to:
* I55a25dfb8aba3d1b589a36ba4cba3bba0fe710a1
* I98443b0dcb88911a5314092216809387b4fb80dc
* I3c9d59f49f1b939981a7b2b450448db6736d5958
* Ie24c0215d07d5e4605d8479ed9e950a3d9c9b086

Change-Id: Id52487f6f5e4802ea2700c51e87e63565f340f5d
2023-11-17 18:52:27 +01:00

98 lines
2.1 KiB
Plaintext

/* stylelint-disable selector-max-id */
@import '../../minerva.less/minerva.variables.less';
.heading-holder {
padding: @titleSectionSpacingTop 0 0;
position: relative;
.tagline {
color: @color-subtle;
font-size: @taglineFontSize;
}
}
.page-heading {
margin-bottom: 12px;
}
// used to disable the languages icon.
.language-selector.disabled {
cursor: default;
opacity: 0.25;
}
#p-views {
position: relative;
}
.page-actions-menu {
box-sizing: border-box;
border-top: @border-width-base @border-style-base #eaecf0;
border-bottom: @border-subtle;
margin-top: -@border-width-base; // Offset top border.
}
.page-actions-menu__list {
display: flex;
height: @size-icon * 2;
justify-content: space-between;
}
.page-actions-menu__list-item {
display: flex;
justify-content: flex-end;
align-items: center;
min-width: 0;
overflow: hidden;
.cdx-button {
color: @icon-color !important;
font-weight: 500;
}
}
// Layout for less than 5 items - one item at the beginning, rest at the end.
// |1-----2--3--4|
.page-actions-menu__list-item:first-child {
flex-grow: 1;
justify-content: flex-start;
.cdx-mixin-button-layout-flush( 'start', true );
}
// position the last icon with the edge of the content container
.page-actions-menu__list-item:last-child {
.cdx-mixin-button-layout-flush( 'end', true );
}
// Watchstar is hidden for anonymous no-js users
// While we could link the icon to the login/signup form, this is not
// a perfect experience and could be confusing.
// In JavaScript this icon will be converted to a watch icon and will point
// to a Call to action to sign up/login and explain why that's a good idea.
// Thus, anonymous users without JS will never see this icon.
// This is a small % of our users, so deemed okay.
.client-nojs {
.watch-this-article {
visibility: hidden;
}
.is-authenticated {
.watch-this-article {
visibility: visible;
}
}
}
// On small devices that don't support Javascript, hide the page actions bar
@media all and ( max-width: @width-breakpoint-mobile - 1 ) {
.client-nojs {
#p-views {
display: none;
}
.mw-first-heading {
border: 0;
}
}
}