mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Merge "Remove cache related FIXMES for CSS"
This commit is contained in:
commit
cb96b7b379
|
@ -38,11 +38,6 @@ function init() {
|
||||||
if ( !settings || !toggle || !toggleIcon ) {
|
if ( !settings || !toggle || !toggleIcon ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Remove any references to the old cookie.
|
|
||||||
// We retain this for longer than usual to make sure we remove this cookie from as
|
|
||||||
// many clients as possible.
|
|
||||||
// FIXME: This can be removed in November 2023.
|
|
||||||
mw.cookie.set( 'mwclientprefs', null );
|
|
||||||
|
|
||||||
setDataAttribute( toggle );
|
setDataAttribute( toggle );
|
||||||
|
|
||||||
|
|
|
@ -76,44 +76,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Horizontal links menu - logged in and logged out.
|
|
||||||
* FIXME: for cached HTML.
|
|
||||||
*/
|
|
||||||
.vector-user-links .mw-portlet-vector-user-menu-overflow {
|
|
||||||
font-size: @font-size-user-links;
|
|
||||||
|
|
||||||
.vector-menu-content-list {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media ( min-width: @min-width-breakpoint-desktop ) {
|
|
||||||
// Right margin to separate overflow menu from dropdown
|
|
||||||
margin-right: 8px;
|
|
||||||
|
|
||||||
// Separate menu items inside overflow menu
|
|
||||||
.vector-menu-content-list {
|
|
||||||
column-gap: 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media ( max-width: @max-width-breakpoint-tablet ) {
|
|
||||||
// Only apply 8px spacing to normal links (i.e. Create account, User page)
|
|
||||||
// Links with button classes will have a larger touch area
|
|
||||||
// and therefore dont need additional spacing
|
|
||||||
a:not( .mw-echo-notifications-badge ):not( .cdx-button ) {
|
|
||||||
margin: 0 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-links-collapsible-item {
|
|
||||||
@media ( max-width: @max-width-breakpoint-mobile ) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logged-in dropdown menu
|
* Logged-in dropdown menu
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
@import '../resources/skins.vector.styles/variables.less';
|
@import '../resources/skins.vector.styles/variables.less';
|
||||||
|
|
||||||
// FIXME: Remove -enabled when cache has cleared.
|
.vector-feature-limited-width-clientpref-1 #wikiPreview {
|
||||||
.vector-feature-limited-width-clientpref-1 #wikiPreview,
|
|
||||||
.vector-feature-limited-width-enabled #wikiPreview {
|
|
||||||
// @max-width-content-container is defined in ems, so the final width depends on font-size,
|
// @max-width-content-container is defined in ems, so the final width depends on font-size,
|
||||||
// but this element is nested in an element with a different font-size. Divide by the
|
// but this element is nested in an element with a different font-size. Divide by the
|
||||||
// current font-size to get the intended result (as if font-size wasn't changed).
|
// current font-size to get the intended result (as if font-size wasn't changed).
|
||||||
|
|
Loading…
Reference in a new issue