Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
ref: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Feb 23, 2024
1 parent 25d8195 commit bdf6e4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/styles/online.manchester.ac.uk_ultra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit bdf6e4c

Please sign in to comment.