mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
Merge "[Zebra] Dropdown heading styles"
This commit is contained in:
commit
dc8e23cb6b
|
@ -26,6 +26,8 @@
|
|||
font-weight: normal;
|
||||
cursor: default;
|
||||
padding: @padding-vertical-dropdown-menu-item 0;
|
||||
margin: @padding-vertical-dropdown-menu-item 0;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-content-box;
|
||||
}
|
||||
|
||||
.vector-pinnable-element .mw-list-item a,
|
||||
|
|
|
@ -1,34 +1,36 @@
|
|||
.vector-pinnable-header {
|
||||
padding-bottom: @padding-vertical-dropdown-menu-item;
|
||||
margin-bottom: @padding-vertical-dropdown-menu-item;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-content-box;
|
||||
// Line height helps space label & button when spanning multiple lines,
|
||||
// while still keeping them vertically centered when on one line.
|
||||
line-height: @line-height-medium;
|
||||
}
|
||||
|
||||
.vector-pinnable-header-label {
|
||||
display: inline-block;
|
||||
color: @color-subtle;
|
||||
font-size: unit( 14 / @font-size-browser, rem );
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
font-size: @font-size-dropdown;
|
||||
margin: 0 @size-50 0 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
// Styles for the "move to sidebar/hide" buttons, hidden by default.
|
||||
.vector-pinnable-header-toggle-button {
|
||||
display: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
color: @color-progressive;
|
||||
padding: @spacing-25 @spacing-50;
|
||||
background-color: @background-color-interactive;
|
||||
color: @color-base;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
font-size: unit( 12 / @font-size-browser, rem );
|
||||
border-radius: @border-radius-base;
|
||||
|
||||
&:hover {
|
||||
color: @color-progressive--hover;
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: '@{msg-brackets-start}';
|
||||
color: @color-subtle;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '@{msg-brackets-end}';
|
||||
color: @color-subtle;
|
||||
background-color: @background-color-secondary--modern;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
}
|
||||
|
||||
.vector-toc {
|
||||
.vector-pinnable-header {
|
||||
padding-left: @toc-list-item-padding-start;
|
||||
}
|
||||
|
||||
.vector-toc-numb {
|
||||
display: none;
|
||||
}
|
||||
|
@ -70,7 +74,7 @@
|
|||
.vector-toc-list-item {
|
||||
position: relative;
|
||||
list-style-type: none;
|
||||
padding-left: @toc-list-item-padding-left;
|
||||
padding-left: @toc-list-item-padding-start;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
// TOC
|
||||
@size-toc-subsection-toggle: 22px;
|
||||
@size-toc-subsection-toggle-icon: 0.7rem;
|
||||
@toc-list-item-padding-left: 12px;
|
||||
@toc-list-item-padding-start: 12px;
|
||||
|
||||
// Search
|
||||
@max-width-search: unit( 500px / @font-size-browser / @font-size-base, em ); // 35.71428571em @ 16 & 0.875em T270202
|
||||
|
|
Loading…
Reference in a new issue