styles: Replace deprecated Less `.box-sizing()` mixin with standard CSS

Bug: T306488
Change-Id: I299e50397c4bf6f99b9892e83c966fffadd24048
This commit is contained in:
Volker E 2022-05-12 13:17:03 -07:00
parent dd8cc5dfe8
commit e4d8c573a9
6 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@
color: @color-base--subtle;
position: relative;
display: block;
.box-sizing( border-box );
box-sizing: border-box;
&:after {
content: '';

View File

@ -44,7 +44,7 @@
// Tab separator: Border between tabs and outer right border.
background-position: right bottom;
color: @color-link;
.box-sizing( border-box );
box-sizing: border-box;
display: block;
float: left;
height: unit( 40 / @font-size-tabs / @font-size-browser, em );

View File

@ -18,7 +18,7 @@
width: 100%;
// Reduce height slightly from standard to match legacy Vector tabs.
height: unit( 28 / @font-size-browser / @font-size-search-input, em ); // Equals `2.15384615em`.
.box-sizing( border-box );
box-sizing: border-box;
border: @border-base;
border-radius: @border-radius-base;
// `padding-right` equals to `#searchbutton` width below.

View File

@ -8,7 +8,7 @@
.vector-language-in-header-enabled .mw-portlet-lang {
// FIXME [review whether margin-top is needed] center vertically in heading.
margin-top: 2px;
.box-sizing( border-box );
box-sizing: border-box;
height: @height-lang-button;
.mw-ui-icon:before {
@ -67,7 +67,7 @@
left: -@border-width-base;
right: -@border-width-base;
// align borders of open menu align with button
.box-sizing( border-box );
box-sizing: border-box;
max-height: 65vh;
overflow: auto;
border-top-width: 1px;

View File

@ -19,7 +19,7 @@
// we apply top and bottom padding.
padding: 8px 0 40px @padding-left-sidebar;
background-image: linear-gradient( to bottom, @background-color-base 0%, @background-color-secondary--modern 10%, @background-color-secondary--modern 90%, @background-color-base 100% );
.box-sizing( border-box );
box-sizing: border-box;
// Hide #p-navigation label
#p-navigation .vector-menu-heading {

View File

@ -9,7 +9,7 @@
width: @width-sidebar;
max-height: 75vh;
padding: @vertical-padding 12px @vertical-padding 32px;
.box-sizing( border-box );
box-sizing: border-box;
overflow: auto;
background-color: @border-color-sidebar;