[refactor] Enabled Stylelint 'color-hex-length'

This commit is contained in:
Steven Evans 2018-07-09 16:11:18 -04:00
parent 1eee47dd3e
commit 71d80ae5a4
10 changed files with 96 additions and 96 deletions

@ -7,7 +7,7 @@
}
.bladeburner-action {
border:1px solid #ffffff;
border:1px solid #fff;
margin:7px;
padding:7px;
white-space: pre-wrap;
@ -19,13 +19,13 @@
/* Whatever action is currently active */
.bladeburner-active-action {
border:4px solid #ffffff;
border:4px solid #fff;
}
/* Action & Skills panel navigation button */
.bladeburner-nav-button {
border:1px solid #ffffff;
color:#ffffff;
border:1px solid #fff;
color:#fff;
padding:2px;
margin:2px;
}
@ -35,7 +35,7 @@
}
.bladeburner-nav-button-inactive {
border:1px solid #ffffff;
border:1px solid #fff;
padding:2px;
margin:2px;
text-decoration: none;
@ -48,7 +48,7 @@
.bladeburner-console-div {
display:inline-block;
width:40%;
border:1px solid #ffffff;
border:1px solid #fff;
overflow:auto;
height:100%;
position:absolute;

@ -8,9 +8,9 @@
/* Header tabs */
.cmpy-mgmt-header-tab {
display: inline-block;
color: #ffffff;
color: #fff;
background-color:#555;
border:1px solid #ffffff;
border:1px solid #fff;
padding: 4px;
}
@ -25,9 +25,9 @@
/* Switch between Cities */
.cmpy-mgmt-city-tab {
display:inline-block;
color: #ffffff;
color: #fff;
background-color: #555;
border: 1px solid #ffffff;
border: 1px solid #fff;
padding: 4px;
}
@ -55,27 +55,27 @@
}
.cmpy-mgmt-industry-overview-panel {
border: 1px solid #ffffff;
border: 1px solid #fff;
color: var(--my-font-color);
display:inline-block;
width: 100%;
}
.cmpy-mgmt-employee-panel {
border: 1px solid #ffffff;
border: 1px solid #fff;
display:block;
width:100%;
}
.cmpy-mgmt-warehouse-panel {
border: 1px solid #ffffff;
border: 1px solid #fff;
display:inline-block;
width:100%;
}
/* Hiring new employees*/
.cmpy-mgmt-find-employee-option {
border:1px solid #ffffff;
border:1px solid #fff;
margin: 6px;
}
@ -86,37 +86,37 @@
/* Warehouse */
.cmpy-mgmt-warehouse-material-div {
padding:2px;
border:1px solid #ffffff;
border:1px solid #fff;
}
.cmpy-mgmt-warehouse-product-div {
padding:2px;
border:1px solid #ffffff;
border:1px solid #fff;
}
/* Exporting materials/products */
.cmpy-mgmt-existing-export {
border:1px solid #ffffff;
border:1px solid #fff;
border-radius:25px;
margin:4px;
padding:4px;
}
.cmpy-mgmt-existing-export:hover {
background-color:#333333;
background-color:#333;
}
/* Upgrades */
.cmpy-mgmt-upgrade-container {
border:1px solid #ffffff;
border:1px solid #fff;
width: 60%;
margin:4px;
}
.cmpy-mgmt-upgrade-div {
display:inline-block;
border:1px solid #ffffff;
border:1px solid #fff;
margin:2px;
padding:6px;
border-radius:25px;
@ -125,5 +125,5 @@
}
.cmpy-mgmt-upgrade-div:hover {
background-color:#333333;
background-color:#333;
}

@ -10,11 +10,11 @@
top: 0;
height: 400px; /* Full height */
padding: 10px;
border: 5px solid #ffffff;
border: 5px solid #fff;
width: 20%;
overflow: auto; /* Enable scroll if needed */
background-color: #444; /* Fallback color */
color: #ffffff;
color: #fff;
}
#interactive-tutorial-container > strong {
@ -24,7 +24,7 @@
#interactive-tutorial-text {
padding: 4px;
margin: 4px;
color: #ffffff;
color: #fff;
background-color: #444;
}
@ -62,7 +62,7 @@
#interactive-tutorial-next:focus,
#interactive-tutorial-back:hover,
#interactive-tutorial-back:focus {
color: #ffffff;
color: #fff;
text-decoration: none;
cursor: pointer;
}

@ -105,7 +105,7 @@
animation: LOADERSPINNER 5s linear infinite;
}
.loaderoverlay .loaderlabel {
color: #66ff33;
color: #6f3;
text-transform: uppercase;
font-family: sans-serif;
font-size: 22px;
@ -140,9 +140,9 @@ button[type="button"] {
.loaderoverlay .loaderspinner,
.loaderoverlay .loaderspinner:before,
.loaderoverlay .loaderspinner:after {
border-top-color: #66ff33!important;
border-bottom-color:#66ff33 !important;
border-top-color: #6f3!important;
border-bottom-color:#6f3 !important;
}
.loaderoverlay .loaderlabel {
color: #66ff33;
color: #6f3;
}

@ -85,7 +85,7 @@
padding-bottom: 0px;
float:center;
background-color: #555;
color: #ffffff;
color: #fff;
}
#script-editor-filename {
@ -93,7 +93,7 @@
display: inline-block;
float: center;
resize: none;
color: #ffffff;
color: #fff;
margin: 4px;
padding: 2px;
@ -112,20 +112,20 @@
#script-editor-status {
float: left;
color: #ffffff;
color: #fff;
}
#script-editor-options-panel {
position:absolute;
right: 9%;
bottom:15%;
border:2px solid #ffffff;
border:2px solid #fff;
width:19%;
background-color:#444;
padding:2px;
overflow:auto;
z-index: 1;
color: #ffffff;
color: #fff;
}
#script-editor-options-panel fieldset {
@ -155,7 +155,7 @@
.active-scripts-server-header {
background-color: #444;
font-size: 20px;
color: #ffffff;
color: #fff;
margin: 6px 6px 0px 6px;
padding: 6px;
cursor: pointer;
@ -177,7 +177,7 @@
.active-scripts-server-header:after {
content: '\02795'; /* "plus" sign (+) */
font-size: 13px;
color: #ffffff;
color: #fff;
float: right;
margin-left: 5px;
}
@ -185,7 +185,7 @@
.active-scripts-server-header.active:after {
content: "\2796"; /* "minus" sign (-) */
font-size: 13px;
color: #ffffff;
color: #fff;
float: right;
margin-left: 5px;
}
@ -255,7 +255,7 @@
.active-scripts-script-panel li {
background-color: #555;
width: auto;
color: #ffffff;
color: #fff;
margin-left: 5%;
}
@ -276,7 +276,7 @@
.active-scripts-button:hover,
.active-scripts-button:focus {
color: #ffffff;
color: #fff;
text-decoration: none;
cursor: pointer;
}
@ -539,7 +539,7 @@
#infiltration-left-panel,
#infiltration-right-panel {
display:inline-block;
border: 1px solid #ffffff;
border: 1px solid #fff;
width: 35%;
height: 75%;
top: 10px;
@ -548,7 +548,7 @@
}
#infiltration-faction-select {
color:#ffffff;
color:#fff;
}
#infiltration-left-panel p,
@ -582,12 +582,12 @@
padding: 4px;
margin: 2px;
background-color: #000;
border: 1px solid #ffffff;
border: 1px solid #fff;
color: var(--my-font-color);
}
.stock-market-position-text {
color:#ffffff;
color:#fff;
display:inline-block;
}
@ -598,7 +598,7 @@
.stock-market-order-cancel-btn {
background-color: #000;
border: 1px solid #ffffff;
border: 1px solid #fff;
color: var(--my-font-color);
margin: 2px;
padding: 0px;

@ -33,7 +33,7 @@
.hack-mission-node p {
margin-top:8px;
color:#ffffff;
color:#fff;
font-size:12px;
text-align:center;
-webkit-user-select: none;
@ -43,17 +43,17 @@
}
.hack-mission-player-node {
color:#ffffff;
color:#fff;
background-color:#00f;
}
.hack-mission-player-node-active {
border: 2px solid #ffffff;
background-color: #6666ff;
border: 2px solid #fff;
background-color: #66f;
}
.hack-mission-enemy-node {
color:#ffffff;
color:#fff;
background-color:#f00;
}
@ -82,7 +82,7 @@
-webkit-transform: skew(-20deg);
-moz-transform: skew(-20deg);
-o-transform: skew(-20deg);
color:#ffffff;
color:#fff;
font-size:12px;
margin-top: 8px;
text-align:center;
@ -104,7 +104,7 @@
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
color:#ffffff;
color:#fff;
font-size:12px;
margin-top: 8px;
text-align:center;
@ -128,5 +128,5 @@
}
.hack-mission-action-buttons-container {
border: 2px solid #ffffff;
border: 2px solid #fff;
}

@ -28,7 +28,7 @@
font-weight: bold;
padding: 2px;
margin: 6px;
border: 1px solid #ffffff;
border: 1px solid #fff;
background-color:#000;
}
@ -46,7 +46,7 @@
#yes-no-text-input-box-input {
color: var(--my-font-color);
border: 1px solid #ffffff;
border: 1px solid #fff;
background-color:#000;
}
@ -103,7 +103,7 @@
.dialog-box-close-button:hover,
.dialog-box-close-button:focus,{
color: #ffffff;
color: #fff;
text-decoration: none;
cursor: pointer;
}
@ -131,7 +131,7 @@
/* Generic Yes No Box */
#yes-no-text-input-box-input {
color: #ffffff;
color: #fff;
}
/* Game Options */
@ -163,7 +163,7 @@
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px #ffffff;
border-radius: 12px #fff;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
@ -171,7 +171,7 @@
#game-options-close-button:hover,
#game-options-close-button:focus {
color: #ffffff;
color: #fff;
text-decoration: none;
cursor: pointer;
}

@ -1,7 +1,7 @@
:root{
--my-font-color: #66ff33;
--my-background-color: #000000;
--my-highlight-color: #ffffff;
--my-font-color: #6f3;
--my-background-color: #000;
--my-highlight-color: #fff;
}
* {
@ -65,7 +65,7 @@ tr:focus {
overflow: auto;
border: 0;
border-bottom: 1px solid #000000;
border-bottom: 1px solid #000;
border-radius: 0;
background-color: #333;
}
@ -84,13 +84,13 @@ tr:focus {
.mainmenu>li a:hover:not(.active),
.mainmenu>li a:focus {
background-color: #777;
color: #ffffff;
color: #fff;
}
/* Panel headers can become active, and they are "lighter" than the rest */
.mainmenu>li a.active {
background-color: #777;
color: #ffffff;
color: #fff;
}
.mainmenu>li a.active:hover {
@ -101,7 +101,7 @@ tr:focus {
.mainmenu-accordion-header:after {
content: '\02795';
font-size: 13px;
color: #ffffff;
color: #fff;
float: right;
margin-left: 5px;
}
@ -123,21 +123,21 @@ tr:focus {
/* Borders */
.mainmenu-accordion-header {
border:2px solid #ffffff;
border:2px solid #fff;
}
/* Make html links ("a" elements) nice looking buttons with this class */
a:link, a:visited {
color:#ffffff;
color:#fff;
}
.a-link-button {
text-decoration: none;
background-color: #555;
color: #ffffff;
color: #fff;
padding: 5px;
margin: 5px;
border: 1px solid #333333;
border: 1px solid #333;
-moz-user-select: none;
-ms-user-select: none;
@ -159,10 +159,10 @@ a:link, a:visited {
.a-link-button-inactive {
text-decoration: none;
background-color: #333;
color: #ffffff;
color: #fff;
padding: 5px;
margin: 5px;
border: 1px solid #333333;
border: 1px solid #333;
cursor: default;
}
@ -179,11 +179,11 @@ a:link, a:visited {
/* Make anchor tags ("a" elements) for activated actions */
.a-link-button-bought {
text-decoration: none;
background-color: #00aa00;
color: #ffffff;
background-color: #0a0;
color: #fff;
padding: 5px;
margin: 5px;
border: 1px solid #00aa00;
border: 1px solid #0a0;
cursor: default;
}
@ -198,12 +198,12 @@ a:link, a:visited {
}
.dropdown {
color:#ffffff;
color:#fff;
background-color:#000;
}
.text-input {
color:#ffffff;
color:#fff;
background-color:#000;
}
@ -221,7 +221,7 @@ a:link, a:visited {
.notification-on {
background-color: #fa3e3e;
color: #ffffff;
color: #fff;
border-radius: 2px;
padding: 1px 3px;
}
@ -244,7 +244,7 @@ a:link, a:visited {
width: 300px;
background-color: var(--my-background-color);
border: 2px solid var(--my-highlight-color);;
color: #ffffff;
color: #fff;
text-align: center;
padding: 4px;
left: 101%;
@ -259,7 +259,7 @@ a:link, a:visited {
width: 300px;
background-color: var(--my-background-color);
border: 2px solid var(--my-highlight-color);;
color: #ffffff;
color: #fff;
text-align: center;
padding: 4px;
left: 101%;
@ -276,7 +276,7 @@ a:link, a:visited {
width: 300px;
background-color: var(--my-background-color);
border: 2px solid var(--my-highlight-color);;
color: #ffffff;
color: #fff;
text-align: center;
padding: 4px;
left: 40%;
@ -298,7 +298,7 @@ a:link, a:visited {
padding:1px;
margin-left:3px;
color:#fff;
border:1px solid #ffffff;
border:1px solid #fff;
border-radius:5px;
display:inline-block;
}
@ -316,25 +316,25 @@ a:link, a:visited {
/* Flashing button (Red) */
@-webkit-keyframes glowing {
0% { background-color: #b20000; -webkit-box-shadow: 0 0 3px #b20000; }
50% { background-color: #ff0000; -webkit-box-shadow: 0 0 40px #ff0000; }
50% { background-color: #f00; -webkit-box-shadow: 0 0 40px #f00; }
100% { background-color: #b20000; -webkit-box-shadow: 0 0 3px #b20000; }
}
@-moz-keyframes glowing {
0% { background-color: #b20000; -moz-box-shadow: 0 0 3px #b20000; }
50% { background-color: #ff0000; -moz-box-shadow: 0 0 40px #ff0000; }
50% { background-color: #f00; -moz-box-shadow: 0 0 40px #f00; }
100% { background-color: #b20000; -moz-box-shadow: 0 0 3px #b20000; }
}
@-o-keyframes glowing {
0% { background-color: #b20000; box-shadow: 0 0 3px #b20000; }
50% { background-color: #ff0000; box-shadow: 0 0 40px #ff0000; }
50% { background-color: #f00; box-shadow: 0 0 40px #f00; }
100% { background-color: #b20000; box-shadow: 0 0 3px #b20000; }
}
@keyframes glowing {
0% { background-color: #b20000; box-shadow: 0 0 3px #b20000; }
50% { background-color: #ff0000; box-shadow: 0 0 40px #ff0000; }
50% { background-color: #f00; box-shadow: 0 0 40px #f00; }
100% { background-color: #b20000; box-shadow: 0 0 3px #b20000; }
}
@ -409,7 +409,7 @@ a:link, a:visited {
#status-text {
font-size: 20px;
color: #ffffff;
color: #fff;
right: 0;
bottom: 0;
padding: 4px;
@ -441,7 +441,7 @@ a:link, a:visited {
#character-overview-text {
padding: 4px;
margin: 8px;
color: #ffffff;
color: #fff;
background-color: #444;
}
@ -464,7 +464,7 @@ a:link, a:visited {
#character-overview-save-button:focus,
#character-overview-options-button:hover,
#character-overview-options-button:focus {
color: #ffffff;
color: #fff;
text-decoration: none;
cursor: pointer;
}
@ -476,7 +476,7 @@ a:link, a:visited {
/* Scan analyze links from AutoLink */
.scan-analyze-link {
cursor:pointer;
color:#ffffff;
color:#fff;
text-decoration:underline;
}
.scan-analyze-link:hover {
@ -487,7 +487,7 @@ a:link, a:visited {
.accordion-header {
background-color: #444;
font-size: 20px;
color: #ffffff;
color: #fff;
margin: 6px 6px 0px 6px;
padding: 6px;
cursor: pointer;
@ -509,7 +509,7 @@ a:link, a:visited {
.accordion-header:after {
content: '\02795'; /* "plus" sign (+) */
font-size: 13px;
color: #ffffff;
color: #fff;
float: right;
margin-left: 5px;
}
@ -517,7 +517,7 @@ a:link, a:visited {
.accordion-header.active:after {
content: "\2796"; /* "minus" sign (-) */
font-size: 13px;
color: #ffffff;
color: #fff;
float: right;
margin-left: 5px;
}

@ -25,7 +25,7 @@
margin: 10px;
padding: 5px;
border-radius: 12px;
border: 3px solid #ffffff;
border: 3px solid #fff;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
@ -33,7 +33,7 @@
#work-in-progress-cancel-button:hover,
#work-in-progress-cancel-button:focus {
color: #ffffff;
color: #fff;
text-decoration: none;
cursor: pointer;
}
@ -51,5 +51,5 @@
}
.bitnode:hover,
.bitnode-destroyed:hover {
color:#ffffff;
color:#fff;
}

@ -43,7 +43,7 @@ module.exports = {
// "block-opening-brace-newline-before": "never-single-line",
// "block-opening-brace-space-before": "always",
"color-hex-case": "lower",
// "color-hex-length": "short",
"color-hex-length": "short",
"color-named": "never",
//"color-no-hex": true,
"color-no-invalid-hex": true,