mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 17:10:19 +00:00
Migrate bare division math to parens division
Bug: T369669 Change-Id: Iadd66c626c0b61bc06db03b1c0a849995ffb87c4
This commit is contained in:
parent
7520c206dc
commit
6e9047eb12
|
@ -5,5 +5,5 @@
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
width: ~'calc(100% + @{spacing-300})';
|
width: ~'calc(100% + @{spacing-300})';
|
||||||
margin: -@spacing-100 -@spacing-150 0 -@spacing-150;
|
margin: -@spacing-100 -@spacing-150 0 -@spacing-150;
|
||||||
aspect-ratio: 2 / 1;
|
aspect-ratio: ( 2 / 1 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
// @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).
|
||||||
max-width: @max-width-content-container / @font-size-base;
|
max-width: ( @max-width-content-container / @font-size-base );
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
transform: translateX( -50% );
|
transform: translateX( -50% );
|
||||||
|
|
||||||
.vector-feature-limited-width-clientpref-1 & {
|
.vector-feature-limited-width-clientpref-1 & {
|
||||||
max-width: @max-width-page-container / @font-size-notification;
|
max-width: ( @max-width-page-container / @font-size-notification );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue