mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-22 05:23:09 +01:00
replaced sass-lint with style-lint
This commit is contained in:
parent
8d44ff8afb
commit
68f0c89ec2
13
.stylelintrc.json
Normal file
13
.stylelintrc.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"plugins": [
|
||||||
|
"stylelint-prettier"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"stylelint-config-standard-scss"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"prettier/prettier": true,
|
||||||
|
"scss/at-extend-no-missing-placeholder": null,
|
||||||
|
"no-descending-specificity": null
|
||||||
|
}
|
||||||
|
}
|
12
package.json
12
package.json
@ -18,8 +18,8 @@
|
|||||||
"prebuilder": "npm run sass",
|
"prebuilder": "npm run sass",
|
||||||
"builder": "electron-builder --publish=never",
|
"builder": "electron-builder --publish=never",
|
||||||
"sass": "sass ./src/pages/settings/settings.scss ./src/pages/settings/settings.css",
|
"sass": "sass ./src/pages/settings/settings.scss ./src/pages/settings/settings.css",
|
||||||
"sass-lint": "sass-lint -vc ./sass-lint.yml ./src/pages/settings/settings.scss",
|
"style-lint": "npx stylelint **/*.scss",
|
||||||
"sass-lint-fix": "sass-lint-auto-fix ./src/pages/settings/settings.scss --config-sass-lint ./sass-lint.yml"
|
"style-lint-fix": "npx stylelint --fix **/*.scss"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"electron",
|
"electron",
|
||||||
@ -46,9 +46,11 @@
|
|||||||
"electron-builder": "^24.2.1",
|
"electron-builder": "^24.2.1",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"markdown-toc": "^1.2.0",
|
"markdown-toc": "^1.2.0",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^2.8.8",
|
||||||
"sass-lint": "^1.13.1",
|
"stylelint": "^15.6.0",
|
||||||
"sass-lint-auto-fix": "^0.21.2"
|
"stylelint-config-standard": "^33.0.0",
|
||||||
|
"stylelint-config-standard-scss": "^9.0.0",
|
||||||
|
"stylelint-prettier": "^3.0.0",
|
||||||
},
|
},
|
||||||
"prettier": "@mastermindzh/prettier-config"
|
"prettier": "@mastermindzh/prettier-config"
|
||||||
}
|
}
|
@ -1,21 +0,0 @@
|
|||||||
rules:
|
|
||||||
property-sort-order:
|
|
||||||
- 1
|
|
||||||
- order: "smacss"
|
|
||||||
class-name-format:
|
|
||||||
- 1
|
|
||||||
- convention: "hyphenatedbem"
|
|
||||||
quotes:
|
|
||||||
- 1
|
|
||||||
- style: "double"
|
|
||||||
nesting-depth:
|
|
||||||
- 1
|
|
||||||
- max-depth: 3
|
|
||||||
placeholder-in-extend:
|
|
||||||
- 0
|
|
||||||
no-vendor-prefixes:
|
|
||||||
- 0
|
|
||||||
empty-line-between-blocks:
|
|
||||||
- 0
|
|
||||||
force-pseudo-nesting:
|
|
||||||
- 0
|
|
@ -3,7 +3,6 @@
|
|||||||
$black: #17171a;
|
$black: #17171a;
|
||||||
$grey-333: #333;
|
$grey-333: #333;
|
||||||
$white: #f9f9f9;
|
$white: #f9f9f9;
|
||||||
|
|
||||||
$tidal-blue: #0ff;
|
$tidal-blue: #0ff;
|
||||||
$tidal-grey: #72777f;
|
$tidal-grey: #72777f;
|
||||||
$tidal-grey-darker: #404248;
|
$tidal-grey-darker: #404248;
|
||||||
@ -36,16 +35,14 @@ $tidal-grey-darkest: #242528;
|
|||||||
src: url("fonts/NotoSans-Bold.ttf") format("truetype");
|
src: url("fonts/NotoSans-Bold.ttf") format("truetype");
|
||||||
}
|
}
|
||||||
|
|
||||||
$font1: "Noto Sans", Helvetica, sans-serif;
|
$font1: "Noto Sans", helvetica, sans-serif;
|
||||||
|
|
||||||
// --- Mixins ---
|
// --- Mixins ---
|
||||||
|
|
||||||
@mixin drag($enabled: true) {
|
@mixin drag($enabled: true) {
|
||||||
@if $enabled {
|
@if $enabled {
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
}
|
} @else {
|
||||||
|
|
||||||
@else {
|
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -62,6 +59,7 @@ html {
|
|||||||
|
|
||||||
.external-link {
|
.external-link {
|
||||||
@extend button;
|
@extend button;
|
||||||
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,6 +78,7 @@ html {
|
|||||||
|
|
||||||
&__drag-area {
|
&__drag-area {
|
||||||
@include drag;
|
@include drag;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
@ -90,6 +89,7 @@ html {
|
|||||||
&__close-button {
|
&__close-button {
|
||||||
@extend button;
|
@extend button;
|
||||||
@include drag(false);
|
@include drag(false);
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 12px;
|
top: 12px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
@ -106,7 +106,7 @@ html {
|
|||||||
display: block;
|
display: block;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
opacity: .7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Settings tabs ---
|
// --- Settings tabs ---
|
||||||
@ -127,6 +127,7 @@ html {
|
|||||||
|
|
||||||
& + label {
|
& + label {
|
||||||
@include drag(false);
|
@include drag(false);
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 35px;
|
margin-right: 35px;
|
||||||
@ -217,7 +218,7 @@ html {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
transition: .2s;
|
transition: 0.2s;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: solid 1px $grey-333;
|
border-bottom: solid 1px $grey-333;
|
||||||
outline: none;
|
outline: none;
|
||||||
@ -237,10 +238,10 @@ html {
|
|||||||
|
|
||||||
.switch {
|
.switch {
|
||||||
$this: &;
|
$this: &;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
min-width: 50px;
|
min-width: 50px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@ -252,7 +253,7 @@ html {
|
|||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
transform: translateX(22px);
|
transform: translateX(22px);
|
||||||
background-color: white;
|
background-color: $white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,12 +264,10 @@ html {
|
|||||||
|
|
||||||
&__slider {
|
&__slider {
|
||||||
@extend button;
|
@extend button;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
inset: 0;
|
||||||
right: 0;
|
transition: 0.4s;
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
transition: .4s;
|
|
||||||
border-radius: 40px;
|
border-radius: 40px;
|
||||||
background-color: $tidal-grey-darkest;
|
background-color: $tidal-grey-darkest;
|
||||||
|
|
||||||
@ -278,7 +277,7 @@ html {
|
|||||||
left: 2px;
|
left: 2px;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
transition: .4s;
|
transition: 0.4s;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
content: "";
|
content: "";
|
||||||
@ -294,7 +293,7 @@ html {
|
|||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
transition: .2s;
|
transition: 0.2s;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 1px solid transparent;
|
border-bottom: 1px solid transparent;
|
||||||
background: $tidal-grey-darkest;
|
background: $tidal-grey-darkest;
|
||||||
@ -345,11 +344,12 @@ html {
|
|||||||
|
|
||||||
&__button {
|
&__button {
|
||||||
@extend button;
|
@extend button;
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
transition: .2s;
|
transition: 0.2s;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: $tidal-grey-darker;
|
background: $tidal-grey-darker;
|
||||||
|
Loading…
Reference in New Issue
Block a user