Skip to content

Commit 152ae40

Browse files
committed
DEV: Lint CSS
1 parent 38cac62 commit 152ae40

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

common/common.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
&-icon {
2727
margin-right: 0.5rem;
28+
2829
img {
2930
width: 1.5em;
3031
height: 1.5em;
@@ -33,6 +34,7 @@
3334

3435
&-caret {
3536
margin-left: 0.5rem;
37+
3638
svg {
3739
transition: transform 0.25s ease;
3840
}
@@ -44,15 +46,15 @@
4446
transform: rotate(0deg);
4547
}
4648
}
47-
&:not(.is-open) {
48-
.custom-header-link-caret svg {
49-
transform: rotate(90deg);
50-
}
51-
}
49+
5250
&:not(.is-open) {
5351
.custom-header-dropdown {
5452
transform: scale(0);
5553
}
54+
55+
.custom-header-link-caret svg {
56+
transform: rotate(90deg);
57+
}
5658
}
5759
}
5860

desktop/desktop.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
display: flex;
66
}
77

8-
@media screen and (max-width: 712px) {
8+
@media screen and (width <= 712px) {
99
display: none;
1010
}
1111
}

mobile/mobile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
li {
1818
width: 100%;
1919

20-
@media screen and (min-width: 768px) {
20+
@media screen and (width >= 768px) {
2121
width: auto;
2222
}
2323
}

scss/mixins.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
position: absolute;
33
background-color: $dropdown_background_color;
44
border: 1px solid $dropdown_border_color;
5-
box-shadow: 0 12px 12px rgba(0, 0, 0, 0.15);
5+
box-shadow: 0 12px 12px rgb(0 0 0 / 15%);
66
z-index: z("header") + 1;
77
padding: 0.5em;
8+
89
@if $links_position == "left" {
910
top: calc(var(--header-offset) - 0.8rem);
1011
} @else {

0 commit comments

Comments
 (0)