mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Technical: Cached HTML cleanup
Change-Id: I6638a816fba3002289236f50d3d0e976f478affe
This commit is contained in:
parent
daaa5667a4
commit
d0775a2af9
|
@ -329,9 +329,6 @@ module.exports = function tableOfContents( props ) {
|
|||
*/
|
||||
function bindCollapseToggleListeners() {
|
||||
// Initialize toc collapsed status
|
||||
// FIXME: Remove after I17f2699fec113d92b3f0f223c357654f52eb7eb3 has been in prod for a week
|
||||
document.body.classList.add( TOC_NOT_COLLAPSED_CLASS );
|
||||
|
||||
const showHideTocElement = document.querySelectorAll( '#sidebar-toc-label button' );
|
||||
showHideTocElement.forEach( function ( btn ) {
|
||||
btn.addEventListener( 'click', () => {
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
}
|
||||
|
||||
/* focus and hover have outlines. Text underline interferes with bottom border */
|
||||
/* FIXME: Remove 2 not selectors when cache has cleared for Ie2ffa5c3ecf270c1bb1f315937023ae7ace5ed30 */
|
||||
.mw-list-item a:not( .mw-ui-icon ):focus,
|
||||
.mw-list-item a:not( .mw-ui-icon ):hover,
|
||||
.mw-list-item.vector-tab-noicon a:focus,
|
||||
.mw-list-item.vector-tab-noicon a:hover {
|
||||
text-decoration: none;
|
||||
|
@ -40,8 +37,6 @@
|
|||
* Tab list item appearance. Applies to both <li>'s inside .vector-menu-tabs
|
||||
* and dropdown menus inside the article toolbar
|
||||
*/
|
||||
// FIXME: Remove the body selector once Ie2ffa5c3ecf270c1bb1f315937023ae7ace5ed30 is in production
|
||||
/* for cached HTML */ body:not( .vector-feature-visual-enhancement-next-enabled ) .vector-menu-tabs .mw-list-item,
|
||||
.vector-menu-tabs .mw-list-item.vector-tab-noicon,
|
||||
.mw-article-toolbar-container .vector-menu-dropdown {
|
||||
margin: 0 @padding-horizontal-tabs;
|
||||
|
@ -75,10 +70,7 @@
|
|||
font-size: inherit;
|
||||
}
|
||||
|
||||
/* FIXME: Remove cached HTML selector (> a:not( .mw-ui-icon ))
|
||||
when Ie2ffa5c3ecf270c1bb1f315937023ae7ace5ed30 is in production */
|
||||
&.vector-tab-noicon > a,
|
||||
& > a:not( .mw-ui-icon ),
|
||||
.vector-menu-heading {
|
||||
// Top & bottom padding to increase clickable area.
|
||||
padding: 18px 0 7px 0;
|
||||
|
|
|
@ -66,8 +66,6 @@
|
|||
/**
|
||||
* Horizontal links menu - logged in and logged out.
|
||||
*/
|
||||
// TODO: Remove vector-user-menu-more after I371bb11903d8cdd8f0da89266fcf549050c0da8c has been in prod for a week
|
||||
.vector-user-menu-more,
|
||||
.vector-user-menu-overflow {
|
||||
.vector-menu-content-list {
|
||||
display: flex;
|
||||
|
|
Loading…
Reference in a new issue