From 7dda60d457bb2668e6467c370503cca5e9decf62 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 28 Nov 2021 17:33:32 +0000 Subject: [PATCH] Ensure all SCSS files are formatted with prettier --- .github/workflows/lint.yml | 1 + README.md | 2 ++ package.json | 2 ++ src/styles/_base.scss | 6 ++++-- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2083da8..c13fd59 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,3 +13,4 @@ jobs: - run: yarn install - run: yarn lint:js - run: yarn lint:md + - run: yarn lint:scss diff --git a/README.md b/README.md index 6a3183a..2ff684c 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,10 @@ See [`docs/config.md`](docs/config.md) for all available options. - Run `yarn serve` to compile for development and start the hot-reload server - Run `yarn lint:js` to lint JavaScript/Vue files - Run `yarn lint:md` to lint Markdown files +- Run `yarn lint:scss` to lint SCSS files - Run `yarn format:js` to format JavaScript/Vue files - Run `yarn format:md` to format Markdown files +- Run `yarn format:scss` to format SCSS files - Run `yarn test` to run unit tests ### CORS-Proxy diff --git a/package.json b/package.json index fed87bc..4e2c308 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,11 @@ "cors-proxy": "node scripts/corsProxy.js", "format:js": "vue-cli-service lint", "format:md": "prettier --write '{*.md,docs/**/*.md,src/**/*.md}'", + "format:scss": "prettier --write 'src/**/*.scss'", "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'", "lint:js": "vue-cli-service lint --no-fix", "lint:md": "prettier --check '{*.md,docs/**/*.md,src/**/*.md}'", + "lint:scss": "prettier --check 'src/**/*.scss'", "test": "vue-cli-service test:unit" }, "dependencies": { diff --git a/src/styles/_base.scss b/src/styles/_base.scss index 0a04372..93dd64f 100644 --- a/src/styles/_base.scss +++ b/src/styles/_base.scss @@ -15,7 +15,8 @@ --pin-width: 32px; } -html, body { +html, +body { height: 100%; } @@ -85,7 +86,8 @@ pre { display: block; font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", - "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; + "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, + monospace; overflow-x: auto; code {