Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Fix scss lint warnings #546

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .stylelintignore

This file was deleted.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle-cms.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions client/src/bundles/bundle-cms.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// Core variables
@import 'variables';

@import '../styles/mfa-variables';
@import '../styles/mfa';

@import '../containers/Login';

@import '../styles/mfa-variables';

// Component styles
@import '../components/FormField/RegisteredMFAMethodListField/AccountResetUI';
@import '../components/FormField/RegisteredMFAMethodListField/RegisteredMFAMethodListField';
Expand Down
1 change: 0 additions & 1 deletion client/src/bundles/bundle.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Core variables
@import 'variables';

@import '../styles/mfa-variables';

// Base style
Expand Down
1 change: 0 additions & 1 deletion client/src/components/BackupCodes/Register.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
flex-wrap: wrap;
justify-content: space-between;
max-width: 375px;

border: 1px dashed $gray-300;
font-weight: bold;

Expand Down
3 changes: 2 additions & 1 deletion client/src/components/LoadingIndicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
animation: $loading-indicator-animation;
}

@-webkit-keyframes spinner-loader {
@keyframes spinner-loader {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
Expand All @@ -31,6 +31,7 @@
transform: rotate(360deg);
}
}

@keyframes spinner-loader {
0% {
-webkit-transform: rotate(0deg);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Register.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.mfa-register-confirmation {
text-align: center;
margin: 3em auto 3em;
margin: 3em auto;

&__icon {
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Register/MethodTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
border-top-right-radius: $tile-border-radius;
color: $color-tile-mask-text;
left: 0;
padding: $tile-padding/2 $tile-padding;
padding: $tile-padding / 2 $tile-padding;
position: absolute;
top: 0;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions client/src/components/Verify/SelectMethod.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@media (max-width: $viewport-medium) {
display: none;
}

height: $method-image-dimensions;
width: $method-image-dimensions;
grid-column: 2;
Expand Down
2 changes: 1 addition & 1 deletion client/src/styles/mfa-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $color-tile-border: $color-grey-border;
$color-tile-border-hover: lighten($color-tile-border, 9.5);
$color-tile-border-active: $color-blue;
$color-tile-mask-background: #4a4a4a;
$color-tile-mask-text: white;
$color-tile-mask-text: #fff;

$dark-color-tile-border: $dark-color-grey-border;
$dark-color-tile-border-hover: rgba(255, 255, 255, 0.1);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "jest",
"coverage": "jest --coverage --passWithNoTests",
"lock": "npm-shrinkwrap --dev",
"lint": "eslint client/src && yarn lint-sass",
"lint": "yarn lint-js && yarn lint-sass",
"lint-js": "eslint client/src",
"lint-js-fix": "eslint client/src --fix",
"lint-sass": "stylelint client/src"
Expand All @@ -38,7 +38,7 @@
"regenerator-runtime": "^0.13.11"
},
"devDependencies": {
"@silverstripe/eslint-config": "^1.2.1",
"@silverstripe/eslint-config": "^1.3.0",
"@silverstripe/webpack-config": "^2.1.0",
"@testing-library/react": "^14.0.0",
"babel-jest": "^29.2.2",
Expand Down
Loading
Loading