From bdf6e4c159991db98e1661607850cbad193abf30 Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Fri, 23 Feb 2024 00:27:51 +0000 Subject: [PATCH] ref: lint fixes --- .github/workflows/lint.yml | 2 +- package.json | 3 ++- src/styles/online.manchester.ac.uk_ultra.scss | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 986523f..ab3846b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -50,7 +50,7 @@ jobs: run: npm install - name: Run stylelint - run: npx stylelint **/*.scss + run: npx stylelint src/**/*.scss --custom-formatter=node_modules/stylelint-sarif-formatter -o stylelint-results.sarif continue-on-error: true diff --git a/package.json b/package.json index 534e13d..0820c84 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "UoM Blackboard Theme", "main": " ", "scripts": { - "lint": "npx eslint src/scripts/ && npx stylelint **/*.scss" + "lint": "npx eslint src/scripts/ && npx stylelint src/**/*.scss", + "build": "dart build.dart" }, "repository": { "type": "git", diff --git a/src/styles/online.manchester.ac.uk_ultra.scss b/src/styles/online.manchester.ac.uk_ultra.scss index 478fab1..e025b4c 100644 --- a/src/styles/online.manchester.ac.uk_ultra.scss +++ b/src/styles/online.manchester.ac.uk_ultra.scss @@ -161,7 +161,7 @@ nav ul#base_tools bb-base-navigation-button { color: $on-surface; } - @media only screen and (min-width: 40em) { + @media only screen and (width >= 40em) { // image takes up half the width .module-overview-component { border-top-left-radius: 0.5rem; @@ -172,6 +172,7 @@ nav ul#base_tools bb-base-navigation-button { border-bottom-right-radius: 0.5rem; } } + @media only screen and (width < 40em) { // image takes up full width .module-overview-component {