mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
f92b117158
Even though on most pages the tagline is empty, it still has a bottom margin associated with it. This patch moves that bottom margin into a container element that wraps both the h1 and tagline. This approach allows us to remove the bottom-margin from the tagline as well as the top-margin from the AMC tabs in favour of just one bottom margin on the .page-heading element. Bug: T214195 Change-Id: I67d3938ab4a75f994acc28a8eefdf19e531c1f3d
109 lines
2.1 KiB
Plaintext
109 lines
2.1 KiB
Plaintext
@import '../../minerva.less/minerva.variables';
|
|
@import '../../minerva.less/minerva.mixins';
|
|
|
|
.heading-holder {
|
|
padding: @titleSectionSpacingTop 0 0;
|
|
position: relative;
|
|
|
|
.tagline {
|
|
color: @colorGray5;
|
|
font-size: @taglineFontSize;
|
|
}
|
|
}
|
|
|
|
.page-heading {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
#page-actions {
|
|
font-size: @pageActionFontSize;
|
|
float: none;
|
|
border: 0;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
margin-top: -2px;
|
|
border-top: @pageActionBorder solid @colorGray14;
|
|
border-bottom: @pageActionBorder solid @colorGray12;
|
|
padding: 0.5em 0;
|
|
|
|
li {
|
|
display: inline-block;
|
|
// Needed for non-JavaScript users
|
|
position: relative;
|
|
cursor: pointer;
|
|
// Override .hlist rule.
|
|
margin-right: 0;
|
|
margin-bottom: 0;
|
|
float: right;
|
|
|
|
// edit, language and watchstar
|
|
a {
|
|
// Needed for non-JavaScript users
|
|
position: absolute;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
// needed for ContentOverlay pointer arrow
|
|
margin: 0 0 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.language-selector {
|
|
float: left;
|
|
margin-left: -@iconGutterWidth;
|
|
|
|
&.disabled {
|
|
cursor: default;
|
|
opacity: 0.25;
|
|
}
|
|
}
|
|
|
|
#ca-edit {
|
|
margin-right: -@iconGutterWidth;
|
|
}
|
|
}
|
|
|
|
// FIXME: cached HTML. Can be removed when work on T212216
|
|
// has been deployed and varnish cache cleared.
|
|
.heading-holder #page-actions:first-child {
|
|
position: absolute;
|
|
bottom: 0;
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
}
|
|
}
|