| 1 |
@border-base-ems: unit( @border-width-base / @font-size-browser / @font-size-small, em ); |
| 2 |
|
| 3 |
.vector-page-toolbar-container { |
| 4 |
display: flex; |
| 5 |
font-size: @font-size-small; |
| 6 |
// Use box-shadow instead of border to allow border collapsing between titlebar and toolbar |
| 7 |
box-shadow: 0 1px @border-color-subtle; |
| 8 |
// Add bottom margin to account for box-shadow |
| 9 |
margin-bottom: 1px; |
| 10 |
|
| 11 |
.mw-portlet-views { |
| 12 |
display: none; |
| 13 |
|
| 14 |
@media ( min-width: @min-width-breakpoint-tablet ) { |
| 15 |
&:not( .emptyPortlet ) { |
| 16 |
display: block; |
| 17 |
} |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
// Reduce icon size for icon buttons in the page toolbar (i.e. watchstar, wikilove) |
| 22 |
.vector-icon { |
| 23 |
.cdx-mixin-css-icon-background( @size-icon-small ); |
| 24 |
.cdx-mixin-css-icon-size( @size-icon-small ); |
| 25 |
.cdx-mixin-css-icon-alignment( ); |
| 26 |
|
| 27 |
// Temporary fix for https://phabricator.wikimedia.org/T356540 |
| 28 |
background-size: ~'calc( max( @{size-icon-small}, @{min-size-icon-small} ) )'; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
// ID Selectors outside of .vector-page-toolbar-container to avoid over-specificity. |
| 33 |
#left-navigation { |
| 34 |
// flex ensures all child elements align on one line. |
| 35 |
display: flex; |
| 36 |
margin-left: -@padding-horizontal-tabs; |
| 37 |
// pushes #right-navigation to the end of the line. |
| 38 |
flex-grow: 1; |
| 39 |
} |
| 40 |
|
| 41 |
#right-navigation { |
| 42 |
// flex ensures all child elements align on one line. |
| 43 |
display: flex; |
| 44 |
margin-right: -@padding-horizontal-tabs; |
| 45 |
|
| 46 |
// Any dropdowns inside the right navigation in modern Vector (e.g. "more" menu). |
| 47 |
// should be right-aligned to prevent horizontal scrolling. |
| 48 |
.vector-dropdown-content { |
| 49 |
.mixin-vector-dropdown-content-flip(); |
| 50 |
} |
| 51 |
} |