Unify LESS variable naming scheme for `@border-*` variables

Unifying variable naming to property-identifier-modifier scheme and
use already existing variables out of mediawiki.ui variables file,
which gets imported by Vector and its variables (like
`@border-width-base`) are already in use in a few places.

Change-Id: Ic25b1517bf180a9bce437215c1309bb9f4dd15be
This commit is contained in:
Volker E 2019-09-28 00:25:09 -07:00
parent 62560debb9
commit f29a1eba0a
4 changed files with 6 additions and 6 deletions

View File

@ -38,10 +38,10 @@ body {
.mw-body {
/* Border on top, left, and bottom side */
border: 1px solid @content-border-color;
border: @border-width-base @border-style-base @border-color-content;
border-right-width: 0;
/* Merge the border with tabs' one (in their background image) */
margin-top: -1px;
margin-top: -@border-width-base;
// h1's can exist outside of mw-body-content so some heading styles
// need to be defined in mw-body as well

View File

@ -42,7 +42,7 @@
#searchInput {
width: 100%;
.box-sizing( border-box );
border: @border-width-base solid @colorGray10;
border: @border-width-base @border-style-base @colorGray10;
border-radius: @borderRadius;
// `padding-right` equals to `#searchbutton` width below.
padding: 0.4em @width-search-button 0.4em 0.4em;

View File

@ -144,9 +144,9 @@
min-width: 100%;
position: absolute;
top: 2.5em;
left: -1px;
left: -@border-width-base;
margin: 0;
border: 1px solid #a2a9b1;
border: @border-width-base @border-style-base @border-color-base;
border-top-width: 0;
padding: 0;
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );

View File

@ -29,7 +29,7 @@
@line-height-footer-buttons: 2;
// FIXME: Use global variable since Echo and CentralNotice use this variable
@content-border-color: #a7d7f9;
@border-color-content: #a7d7f9;
@content-line-height: 1.6;
@padding-content: 1em;