mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Add scss formatter
This commit is contained in:
parent
f68a584bd7
commit
62c7cdc543
11 changed files with 29 additions and 16 deletions
|
@ -14,7 +14,7 @@
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"htmlWhitespaceSensitivity": "ignore"
|
"htmlWhitespaceSensitivity": "ignore"
|
||||||
},
|
},
|
||||||
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml,svelte}"],
|
"includes": ["**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml,svelte,scss}"],
|
||||||
"excludes": [
|
"excludes": [
|
||||||
".vscode",
|
".vscode",
|
||||||
"**/node_modules",
|
"**/node_modules",
|
||||||
|
@ -34,6 +34,7 @@
|
||||||
"https://plugins.dprint.dev/json-0.17.4.wasm",
|
"https://plugins.dprint.dev/json-0.17.4.wasm",
|
||||||
"https://plugins.dprint.dev/markdown-0.15.3.wasm",
|
"https://plugins.dprint.dev/markdown-0.15.3.wasm",
|
||||||
"https://plugins.dprint.dev/toml-0.5.4.wasm",
|
"https://plugins.dprint.dev/toml-0.5.4.wasm",
|
||||||
"https://plugins.dprint.dev/prettier-0.26.1.json@fdbe31f6aecd24f9d6b924214710a6766050d03146163b4e241e6056b2462f2e"
|
"https://plugins.dprint.dev/prettier-0.26.1.json@fdbe31f6aecd24f9d6b924214710a6766050d03146163b4e241e6056b2462f2e",
|
||||||
|
"https://plugins.dprint.dev/disrupted/css-0.2.2.wasm"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -458,7 +458,10 @@ fn build_and_check_reviewer(build: &mut Build) -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_web(build: &mut Build) -> Result<()> {
|
fn check_web(build: &mut Build) -> Result<()> {
|
||||||
let dprint_files = inputs![glob!["**/*.{ts,mjs,js,md,json,toml,svelte}", "target/**"]];
|
let dprint_files = inputs![glob![
|
||||||
|
"**/*.{ts,mjs,js,md,json,toml,svelte,scss}",
|
||||||
|
"target/**"
|
||||||
|
]];
|
||||||
build.add_action(
|
build.add_action(
|
||||||
"check:format:dprint",
|
"check:format:dprint",
|
||||||
DPrint {
|
DPrint {
|
||||||
|
|
|
@ -63,9 +63,9 @@ $vars: (
|
||||||
"Default background blur value",
|
"Default background blur value",
|
||||||
(
|
(
|
||||||
default: 20px,
|
default: 20px,
|
||||||
)
|
),
|
||||||
)
|
),
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
colors: (
|
colors: (
|
||||||
fg: (
|
fg: (
|
||||||
|
|
|
@ -54,9 +54,10 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button:not(.btn,.btn-close) {
|
button:not(.btn, .btn-close) {
|
||||||
/* override transition for instant hover response */
|
/* override transition for instant hover response */
|
||||||
transition: color var(--transition) ease-in-out, box-shadow var(--transition) ease-in-out !important;
|
transition: color var(--transition) ease-in-out,
|
||||||
|
box-shadow var(--transition) ease-in-out !important;
|
||||||
border-radius: prop(border-radius);
|
border-radius: prop(border-radius);
|
||||||
@include button.base;
|
@include button.base;
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,4 +83,4 @@ $breakpoints: (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ;
|
}
|
||||||
|
|
|
@ -24,4 +24,6 @@ input {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setting 100% height causes the sticky element to hide as you scroll down on Safari.
|
// Setting 100% height causes the sticky element to hide as you scroll down on Safari.
|
||||||
html { height: initial; }
|
html {
|
||||||
|
height: initial;
|
||||||
|
}
|
||||||
|
|
|
@ -5,4 +5,6 @@ button {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html { height: initial; }
|
html {
|
||||||
|
height: initial;
|
||||||
|
}
|
||||||
|
|
|
@ -19,7 +19,9 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** consistent font size **/
|
/** consistent font size **/
|
||||||
:root { --font-size: 16px; }
|
:root {
|
||||||
|
--font-size: 16px;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,4 +20,6 @@ body {
|
||||||
padding: 0 1em 1em 1em;
|
padding: 0 1em 1em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
html { height: initial; }
|
html {
|
||||||
|
height: initial;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue