2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
.heading-holder {
|
2019-02-07 20:29:00 +00:00
|
|
|
padding: @titleSectionSpacingTop 0 0;
|
2017-07-12 15:12:40 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.tagline {
|
|
|
|
color: @colorGray5;
|
2019-01-10 22:59:56 +00:00
|
|
|
font-size: @taglineFontSize;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-19 10:20:25 +00:00
|
|
|
.page-heading {
|
|
|
|
margin-bottom: 12px;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2019-02-25 19:50:56 +00:00
|
|
|
// used to disable the languages icon.
|
|
|
|
.mw-ui-icon-element.disabled {
|
|
|
|
cursor: default;
|
|
|
|
opacity: 0.25;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-actions-menu {
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-top: 1px solid @colorGray14;
|
|
|
|
border-bottom: 1px solid @colorGray12;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-actions-menu__list {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
height: 44px; // total height is 46px. 2px added by border on .page-actions-menu
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-actions-menu__list-item {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-basis: 4em;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
// overriding default icon styles
|
|
|
|
.mw-ui-icon-element {
|
|
|
|
// The page actions menu icons are ever so slightly larger
|
|
|
|
// than standard icons.
|
|
|
|
@pageActionsIconSize: @iconSize + 0.15;
|
2019-03-13 10:05:32 +00:00
|
|
|
// explicitly added to ensure this element (which is an anchor) receives width/height
|
|
|
|
// when it's viewed in services that manipulate DOM such as Google Translate.
|
|
|
|
display: block;
|
2019-02-25 19:50:56 +00:00
|
|
|
position: relative;
|
|
|
|
min-width: @pageActionsIconSize;
|
|
|
|
width: @pageActionsIconSize;
|
|
|
|
height: @pageActionsIconSize;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
margin: 0;
|
|
|
|
// `.mw-ui-icon` absolutely positions this pseudo-element but only
|
|
|
|
// positions right & left. This ensures icon stretches 100% height and
|
|
|
|
// stretches the entire height of its parent element.
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-28 14:21:44 +00:00
|
|
|
// Layout for less than 5 items - one item at the beginning, rest at the end.
|
|
|
|
// |1-----2--3--4|
|
2019-02-25 19:50:56 +00:00
|
|
|
.page-actions-menu__list-item:first-child {
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
// overriding common.less `display:inherit` (which causes `display: flex;` in this instance).
|
|
|
|
.client-js .jsonly#ca-watch {
|
|
|
|
display: list-item;
|
|
|
|
}
|
|
|
|
|
2018-10-10 21:19:55 +00:00
|
|
|
// 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;
|
|
|
|
}
|
2018-12-12 23:20:10 +00:00
|
|
|
|
2018-10-10 21:19:55 +00:00
|
|
|
.is-authenticated {
|
|
|
|
.watch-this-article {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
// On small devices that don't support Javascript, hide the page actions bar
|
2017-09-28 14:23:45 +00:00
|
|
|
@media all and ( max-width: @width-breakpoint-mobile - 1 ) {
|
2017-07-12 15:12:40 +00:00
|
|
|
.client-nojs {
|
|
|
|
#page-actions {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#section_0 {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|