{{>PageTitlebar}} {{>PageToolbar}} - {{>ColumnEnd}} + {{#is-page-tools-enabled}}{{>ColumnEnd}}{{/is-page-tools-enabled}}
{{>BeforeContent}} {{! the #contentSub element is currently used by editors, do not hide or remove it diff --git a/resources/skins.vector.styles/components/MenuDropdown.less b/resources/skins.vector.styles/components/MenuDropdown.less index 387044793..b360c92ce 100644 --- a/resources/skins.vector.styles/components/MenuDropdown.less +++ b/resources/skins.vector.styles/components/MenuDropdown.less @@ -41,3 +41,16 @@ color: @color-link; } } + +.vector-menu-content .vector-dropdown-content { + .mw-list-item a, + .vector-menu-heading { + .mixin-vector-dropdown-menu-item(); + white-space: nowrap; + color: @color-link; + } + + .vector-menu-heading { + color: @color-base--subtle; + } +} diff --git a/resources/skins.vector.styles/components/MenuTabs.less b/resources/skins.vector.styles/components/MenuTabs.less index caa7dd1ea..8208fe667 100644 --- a/resources/skins.vector.styles/components/MenuTabs.less +++ b/resources/skins.vector.styles/components/MenuTabs.less @@ -55,7 +55,7 @@ // NOTE: Consider adding a single selector to define both items, // since they both appear beside each other in the article toolbar. & > a, - .vector-menu-heading { + > .vector-menu-heading { display: inline-flex; position: relative; cursor: pointer; @@ -66,7 +66,7 @@ font-weight: normal; } - .vector-menu-heading { + > .vector-menu-heading { // For better compatibility with gadgets (like Twinkle) that append //

elements as dropdown headings (which was the convention in legacy Vector). font-size: inherit; @@ -75,7 +75,7 @@ /* FIXME: legacy Vector .icon selector can be removed when VisualEnhancementNext is enabled */ &.icon > a, &.vector-tab-noicon > a, - .vector-menu-heading { + > .vector-menu-heading { // Top & bottom padding to increase clickable area. padding: @padding-vertical-tabs; // bottom margin to overlap border with toolbar border. diff --git a/resources/skins.vector.styles/components/PageTools.less b/resources/skins.vector.styles/components/PageTools.less new file mode 100644 index 000000000..296569f29 --- /dev/null +++ b/resources/skins.vector.styles/components/PageTools.less @@ -0,0 +1,25 @@ +// Ensure there is only 1 page tools landmark at anytime +.vector-page-tools-landmark { + .vector-page-tools-pinned #right-navigation &, + .vector-page-tools-unpinned .vector-column-end & { + display: none; + } +} + +// Update page tools styles when pinned +.vector-column-end { + .vector-dropdown-content { + padding-left: 45px; + width: 140px; + } + + .vector-menu-content-list { + margin: 12px 0; + list-style: none; + + li { + padding: 5px 0; + margin: 0; + } + } +} diff --git a/resources/skins.vector.styles/skin.less b/resources/skins.vector.styles/skin.less index f491fd878..6ab55297c 100644 --- a/resources/skins.vector.styles/skin.less +++ b/resources/skins.vector.styles/skin.less @@ -23,6 +23,7 @@ @import './components/MenuPortal.less'; @import './components/PageTitlebar.less'; @import './components/PageToolbar.less'; + @import './components/PageTools.less'; @import './components/PinnableHeader.less'; @import './components/StickyHeader.less'; @import './components/TabWatchstarLink.less'; diff --git a/skin.json b/skin.json index 7b2ce8d3e..fdb298136 100644 --- a/skin.json +++ b/skin.json @@ -40,7 +40,8 @@ "bodyClasses": [ "skin-vector", "skin-vector-search-vue", - "vector-toc-not-collapsed" + "vector-toc-not-collapsed", + "vector-page-tools-unpinned" ], "menus": [ "user-interface-preferences",