mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-16 18:58:45 +00:00
c0f08790ea
Note: this agitates T230232 again - when merging this please make sure a merge for I929090848f3e04647a97f4979ec78682623fa070 is pending. In various places we try to override the default mw-ui-icon behaviours The hacks need to be removed as part of addressing the core problem. Changes: * Wherever we use mw-ui-icon-before in PHP - wrap the label with a span so that label font-size is altered where needed - not the icon * Where a small icon is needed us isSmall parameter for the Icon component * Apply font-size to labels of mw-ui-icon-before elements * The browser tests need a slight update to access the span element inside a menu item - in the case of the logout button the label is always hidden, so we need to check the visibility of the parent element (secondary_action) Bug: T229440 Depends-On: I3f803ec4c9068b30aa93b803391aa4d65d8310ff Change-Id: I07e4ae233979636b739f1117dd7703571e0a9366
102 lines
2.1 KiB
Plaintext
102 lines
2.1 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 {
|
|
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;
|
|
flex-basis: 4em;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
|
|
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;
|
|
}
|
|
|
|
.page-actions-overflow-list {
|
|
// The top of the menu is flush with the bottom of the page actions toolbar.
|
|
top: 100%;
|
|
right: 0;
|
|
}
|
|
|
|
// overriding common.less `display:inherit` (which causes `display: flex;` in this instance).
|
|
.client-js .jsonly#ca-watch {
|
|
display: list-item;
|
|
}
|
|
|
|
// 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 {
|
|
display: none;
|
|
}
|
|
|
|
#section_0 {
|
|
border: 0;
|
|
}
|
|
}
|
|
}
|