Skip to content

Commit 0ed3ae1

Browse files
committed
Reduce !important use
1 parent 66ff5b9 commit 0ed3ae1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/assets/sass/modules/_forms.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ textarea {
235235
}
236236

237237
&[disabled]:checked {
238-
background: $color-text-visual-de-emphasis url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E") !important;
238+
background: $color-text-visual-de-emphasis url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E");
239239
}
240240
}
241241

@@ -255,7 +255,7 @@ textarea {
255255
}
256256

257257
&[disabled]:checked {
258-
background: $dark-color-text url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23282d32' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E") !important;
258+
background: $dark-color-text url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23282d32' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E");
259259
}
260260
}
261261
}
@@ -408,8 +408,7 @@ span.disabled {
408408
[disabled],
409409
[disabled] option,
410410
[disabled] optgroup,
411-
span.disabled,
412-
.ui-checkboxradio-disabled {
411+
span.disabled {
413412
border: 1px solid $dark-color-border !important;
414413
opacity: 0.25 !important;
415414
background-color: $dark-color-background-form-disabled !important;

src/assets/sass/modules/_responsive.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,9 @@
323323

324324
li {
325325
float: left;
326-
border: 0 !important;
326+
border: 0;
327327

328+
&:first-child,
328329
&:last-child {
329330
border: 0;
330331
}

0 commit comments

Comments
 (0)