mirror of
https://github.com/kognise/water.css.git
synced 2025-08-06 13:16:58 +02:00
Add style linting and fix problems
This commit is contained in:
3
.stylelintrc
Normal file
3
.stylelintrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "stylelint-config-standard"
|
||||||
|
}
|
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp style",
|
"build": "gulp style",
|
||||||
"dev": "gulp watch",
|
"dev": "gulp watch",
|
||||||
"lint": "standard --fix",
|
"lint": "standard --fix && stylelint \"src/*.css\" --fix",
|
||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -42,7 +42,9 @@
|
|||||||
"postcss-css-variables": "^0.12.0",
|
"postcss-css-variables": "^0.12.0",
|
||||||
"postcss-import": "^12.0.1",
|
"postcss-import": "^12.0.1",
|
||||||
"postcss-inline-svg": "^3.1.1",
|
"postcss-inline-svg": "^3.1.1",
|
||||||
"standard": "^14.3.1"
|
"standard": "^14.3.1",
|
||||||
|
"stylelint": "^11.0.0",
|
||||||
|
"stylelint-config-standard": "^19.0.0"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"legacy": [
|
"legacy": [
|
||||||
|
@@ -2,28 +2,20 @@
|
|||||||
--background-body: #202b38;
|
--background-body: #202b38;
|
||||||
--background: #161f27;
|
--background: #161f27;
|
||||||
--background-alt: #1a242f;
|
--background-alt: #1a242f;
|
||||||
|
|
||||||
--selection: #161f27;
|
--selection: #161f27;
|
||||||
|
|
||||||
--text-main: #dbdbdb;
|
--text-main: #dbdbdb;
|
||||||
--text-bright: #ffffff;
|
--text-bright: #fff;
|
||||||
|
|
||||||
--links: #41adff;
|
--links: #41adff;
|
||||||
--focus: #0096bfab;
|
--focus: #0096bfab;
|
||||||
--border: #dbdbdb;
|
--border: #dbdbdb;
|
||||||
--code: #ffbe85;
|
--code: #ffbe85;
|
||||||
|
|
||||||
--animation-duration: 0.1s;
|
--animation-duration: 0.1s;
|
||||||
--button-hover: #324759;
|
--button-hover: #324759;
|
||||||
|
|
||||||
--scrollbar-thumb: var(--button-hover);
|
--scrollbar-thumb: var(--button-hover);
|
||||||
--scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));
|
--scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));
|
||||||
|
|
||||||
--form-placeholder: #a9a9a9;
|
--form-placeholder: #a9a9a9;
|
||||||
--form-text: #ffffff;
|
--form-text: #fff;
|
||||||
|
|
||||||
--variable: #d941e2;
|
--variable: #d941e2;
|
||||||
--highlight: #efdb43;
|
--highlight: #efdb43;
|
||||||
|
|
||||||
--select-arrow: svg-load('./assets/select-arrow.svg', fill: #efefef);
|
--select-arrow: svg-load('./assets/select-arrow.svg', fill: #efefef);
|
||||||
}
|
}
|
||||||
|
@@ -1,29 +1,21 @@
|
|||||||
:root {
|
:root {
|
||||||
--background-body: #ffffff;
|
--background-body: #fff;
|
||||||
--background: #efefef;
|
--background: #efefef;
|
||||||
--background-alt: #f7f7f7;
|
--background-alt: #f7f7f7;
|
||||||
|
|
||||||
--selection: #9e9e9e;
|
--selection: #9e9e9e;
|
||||||
|
|
||||||
--text-main: #363636;
|
--text-main: #363636;
|
||||||
--text-bright: #000000;
|
--text-bright: #000;
|
||||||
|
|
||||||
--links: #0076d1;
|
--links: #0076d1;
|
||||||
--focus: #0096bfab;
|
--focus: #0096bfab;
|
||||||
--border: #dbdbdb;
|
--border: #dbdbdb;
|
||||||
--code: #000000;
|
--code: #000;
|
||||||
|
|
||||||
--animation-duration: 0.1s;
|
--animation-duration: 0.1s;
|
||||||
--button-hover: #dddddd;
|
--button-hover: #ddd;
|
||||||
|
|
||||||
--scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));
|
--scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));
|
||||||
--scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));
|
--scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));
|
||||||
|
|
||||||
--form-placeholder: #949494;
|
--form-placeholder: #949494;
|
||||||
--form-text: #000000;
|
--form-text: #000;
|
||||||
|
|
||||||
--variable: #39a33c;
|
--variable: #39a33c;
|
||||||
--highlight: #ffff00;
|
--highlight: #ff0;
|
||||||
|
|
||||||
--select-arrow: svg-load('./assets/select-arrow.svg', fill: #161f27);
|
--select-arrow: svg-load('./assets/select-arrow.svg', fill: #161f27);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user