[style] Cleanup of Styleline violations

Allowing up to 4 decimal places in order to get 13px from the 16px
default size.

Having "@extend" come before "@include" and other rules to minimize its
use being overlooked. Extending classes and placeholders can lead to
some tricky rendered styles, so the use definitely needs to be done
judiciously.
This commit is contained in:
Steven Evans 2018-07-17 12:52:27 -04:00
parent 98d79d4d3c
commit 97896cadef
3 changed files with 12 additions and 11 deletions

@ -34,22 +34,22 @@
}
.bladeburner-nav-button {
color: #fff;
@extend %bladburner-nav-button;
color: #fff;
&:hover {
background-color: #3d4044;
}
}
.bladeburner-nav-button-inactive {
@extend %bladburner-nav-button;
text-decoration: none;
background-color: #555;
cursor: default;
pointer-events: none;
@extend %bladburner-nav-button;
}
/* Bladeburner Console */

@ -56,30 +56,27 @@
}
.loaderspinner {
@extend %spinnerBox;
@include animation(LOADERSPINNER 5s linear infinite);
width: $spinnerBoxSize;
height: $spinnerBoxSize;
@extend %spinnerBox;
}
.loaderspinner:before {
@extend %spinnerBox;
@include animation(LOADERSPINNER 10s linear infinite);
width: $spinnerBoxSize * 0.8;
height: $spinnerBoxSize * 0.8;
@extend %spinnerBox;
}
.loaderspinner:after {
@extend %spinnerBox;
@include animation(LOADERSPINNER 5s linear infinite);
width: $spinnerBoxSize * 0.6;
height: $spinnerBoxSize * 0.6;
@extend %spinnerBox;
}
.loaderlabel {

@ -130,13 +130,17 @@ module.exports = {
"no-missing-end-of-source-newline": true,
"no-unknown-animations": true,
"number-leading-zero": "always",
"number-max-precision": [3, { ignoreUnits: [ "%" ] }],
"number-max-precision": [4, { ignoreUnits: [ "%" ] }],
// "number-no-trailing-zeros": true,
"order/order": [
[
"dollar-variables",
"at-variables",
"custom-properties",
{
type: "at-rule",
name: "extend"
},
{
type: "at-rule",
name: "include"