Merge "Set strictUnits to true for LESS, and fix units in the code"

This commit is contained in:
jenkins-bot 2020-10-19 17:40:24 +00:00 committed by Gerrit Code Review
commit 48b4fe5440
2 changed files with 5 additions and 4 deletions

View File

@ -24,7 +24,7 @@ module.exports = {
},
{
test: /\.(gif|png|jpe?g|svg)$/i,
loader: 'file-loader',
loader: 'file-loader',
options: {
paths: [
path.resolve( __dirname, './resolve-imports' )
@ -42,6 +42,7 @@ module.exports = {
loader: 'less-loader',
options: {
relativeUrls: false,
strictUnits: true,
paths: [
path.resolve( __dirname, 'resolve-imports' )
]

View File

@ -97,8 +97,8 @@
@margin-start-portal-body: @margin-start-nav-main-body;
// Navigation: Personal tools
@background-position-nav-personal-icon: left ( 4 / @font-size-browser / @font-size-nav-personal );
@background-size-nav-personal-icon: 14 / @font-size-browser / @font-size-nav-personal;
@background-position-nav-personal-icon: left unit( 4 / @font-size-browser / @font-size-nav-personal, em );
@background-size-nav-personal-icon: unit( 14 / @font-size-browser / @font-size-nav-personal, em );
@top-personal-tools: 6px;
@font-size-nav-personal: 0.75em;
// Using `unit()` without second parameter to achieve a unitless output for `line-height`.
@ -108,7 +108,7 @@
@font-size-tabs: unit( 13 / @font-size-browser, em ); // Equals `0.8125em`.
// Search
@width-search-button: 24 / @font-size-browser / @font-size-search-input;
@width-search-button: unit( 24 / @font-size-browser / @font-size-search-input, em );
@font-size-search-input: unit( 13 / @font-size-browser, em ); // Equals `0.8125em`.
// Z-indices