| 1 |
/* stylelint-disable selector-max-id */ |
| 2 |
@import '../../minerva.less/minerva.variables.less'; |
| 3 |
|
| 4 |
.heading-holder { |
| 5 |
padding: @top-spacing-title-section 0 0; |
| 6 |
position: relative; |
| 7 |
|
| 8 |
.tagline { |
| 9 |
color: @color-subtle; |
| 10 |
font-size: @font-size-tag-line; |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
.page-heading { |
| 15 |
margin-bottom: 12px; |
| 16 |
} |
| 17 |
|
| 18 |
// used to disable the languages icon. |
| 19 |
.cdx-button.language-selector.disabled { |
| 20 |
cursor: default; |
| 21 |
// has to be !important to override the cdx-button selector |
| 22 |
color: @color-disabled !important; |
| 23 |
} |
| 24 |
|
| 25 |
#p-views { |
| 26 |
position: relative; |
| 27 |
} |
| 28 |
|
| 29 |
.page-actions-menu { |
| 30 |
box-sizing: border-box; |
| 31 |
border-top: @border-width-base @border-style-base @border-color-muted; |
| 32 |
border-bottom: @border-subtle; |
| 33 |
margin-top: -@border-width-base; // Offset top border. |
| 34 |
} |
| 35 |
|
| 36 |
.page-actions-menu__list { |
| 37 |
display: flex; |
| 38 |
height: @size-icon * 2; |
| 39 |
justify-content: space-between; |
| 40 |
|
| 41 |
.disabled .minerva-icon { |
| 42 |
background: @color-disabled; |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
.page-actions-menu__list-item { |
| 47 |
display: flex; |
| 48 |
justify-content: flex-end; |
| 49 |
align-items: center; |
| 50 |
min-width: 0; |
| 51 |
overflow: hidden; |
| 52 |
|
| 53 |
.cdx-button { |
| 54 |
color: @color-subtle !important; |
| 55 |
font-weight: 500; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
// Layout for less than 5 items - one item at the beginning, rest at the end. |
| 60 |
// |1-----2--3--4| |
| 61 |
.page-actions-menu__list-item:first-child { |
| 62 |
flex-grow: 1; |
| 63 |
justify-content: flex-start; |
| 64 |
.cdx-mixin-button-layout-flush( 'start', true ); |
| 65 |
} |
| 66 |
|
| 67 |
// position the last icon with the edge of the content container |
| 68 |
.page-actions-menu__list-item:last-child { |
| 69 |
.cdx-mixin-button-layout-flush( 'end', true ); |
| 70 |
} |
| 71 |
|
| 72 |
// Watchstar is hidden for anonymous no-js users |
| 73 |
// While we could link the icon to the login/signup form, this is not |
| 74 |
// a perfect experience and could be confusing. |
| 75 |
// In JavaScript this icon will be converted to a watch icon and will point |
| 76 |
// to a Call to action to sign up/login and explain why that's a good idea. |
| 77 |
// Thus, anonymous users without JS will never see this icon. |
| 78 |
// This is a small % of our users, so deemed okay. |
| 79 |
.client-nojs { |
| 80 |
.watch-this-article { |
| 81 |
visibility: hidden; |
| 82 |
} |
| 83 |
|
| 84 |
.is-authenticated { |
| 85 |
.watch-this-article { |
| 86 |
visibility: visible; |
| 87 |
} |
| 88 |
} |
| 89 |
} |
| 90 |
|
| 91 |
// On feature phone devices that don't support JavaScript, hide the page actions bar. |
| 92 |
@media all and ( max-width: @min-width-breakpoint-mobile - 1 ) { |
| 93 |
.client-nojs { |
| 94 |
#p-views { |
| 95 |
display: none; |
| 96 |
} |
| 97 |
|
| 98 |
.mw-first-heading { |
| 99 |
border: 0; |
| 100 |
} |
| 101 |
} |
| 102 |
} |