Skip to content

Commit

Permalink
fixed linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Dec 3, 2024
1 parent c137604 commit 92efea3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions content/practices/high-contrast/css/switch-color-scheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,27 @@ button.color-scheme[role="switch"][aria-checked="true"]:focus, button.color-sche
}

@media (prefers-color-scheme: dark) {
button.color-scheme[role="switch"] {

button.color-scheme[role="switch"] {
background-color: #333;
color: #fff;
}

Check failure on line 108 in content/practices/high-contrast/css/switch-color-scheme.css

View workflow job for this annotation

GitHub Actions / lint-css

Stylelint problem

Unexpected empty line before rule (rule-empty-line-before)

Check failure on line 108 in content/practices/high-contrast/css/switch-color-scheme.css

View workflow job for this annotation

GitHub Actions / lint-css

Stylelint problem

Unexpected empty line before rule (rule-empty-line-before)
button.color-scheme[role="switch"] .label {

button.color-scheme[role="switch"] .label {
color: #fff;
}
button.color-scheme[role="switch"] svg rect {

button.color-scheme[role="switch"] svg rect {
fill: #36c;
stroke: #36c;
}
button.color-scheme[role="switch"] svg circle.off, button.color-scheme[role="switch"] svg circle.on {

button.color-scheme[role="switch"] svg circle.off, button.color-scheme[role="switch"] svg circle.on {
fill: #fff;
stroke: #fff;
}
button.color-scheme[role="switch"]:focus, button.color-scheme[role="switch"]:hover {

button.color-scheme[role="switch"]:focus, button.color-scheme[role="switch"]:hover {
border-color: #add8e6;
}
}

0 comments on commit 92efea3

Please sign in to comment.