mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 16:10:55 +00:00
c9461c9dd8
Additional changes: * Address a fixme relating to the overflow icon and move some AMC styles out of the critical path for non-AMC pages Note about ellipsis: The class mf-mw-ui-icon-rotate-clockwise cannot be used as it's part of MobileFrontend and loaded via JS. Minerva must work without MobileFrontend and this rotation is needed without JS. Bug: T244444 Change-Id: Ifd02c50305cf036dd6df640d778678668507e5eb
104 lines
2.3 KiB
Plaintext
104 lines
2.3 KiB
Plaintext
@import '../../minerva.less/minerva.variables.less';
|
|
@import '../../minerva.less/minerva.mixins.less';
|
|
|
|
.heading-holder {
|
|
padding: @titleSectionSpacingTop 0 0;
|
|
position: relative;
|
|
|
|
.tagline {
|
|
color: @colorGray5;
|
|
font-size: @taglineFontSize;
|
|
}
|
|
}
|
|
|
|
.page-heading {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
// used to disable the languages icon.
|
|
.mw-ui-icon-element.disabled,
|
|
.language-selector.disabled {
|
|
cursor: default;
|
|
opacity: 0.25;
|
|
}
|
|
|
|
#page-actions { // stylelint-disable-line selector-max-id
|
|
position: relative;
|
|
}
|
|
|
|
.page-actions-menu {
|
|
.box-sizing( border-box );
|
|
border-top: 1px solid @colorGray14;
|
|
border-bottom: 1px solid @colorGray12;
|
|
margin-top: -1px; // Offset top border.
|
|
}
|
|
|
|
.page-actions-menu__list {
|
|
display: flex;
|
|
height: @iconSize * 2;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.page-actions-menu__list-item {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
|
|
> a {
|
|
// Special case outside of standard buttons styling due to surrounding
|
|
// interface elements, see T237019.
|
|
font-weight: 500;
|
|
}
|
|
|
|
li > *:hover {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
// 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;
|
|
margin-left: @contentPadding/-2;
|
|
}
|
|
|
|
// position the last icon with the edge of the content container
|
|
.page-actions-menu__list-item:last-child {
|
|
margin-right: @contentPadding/-2;
|
|
}
|
|
|
|
// 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 {
|
|
#page-actions { // stylelint-disable-line selector-max-id
|
|
display: none;
|
|
}
|
|
|
|
#section_0 { // stylelint-disable-line selector-max-id
|
|
border: 0;
|
|
}
|
|
}
|
|
}
|