Skip to content

Commit 1d30552

Browse files
authored
Fixed mobile navbar icon separator in custom.css
1 parent 1d976b1 commit 1d30552

1 file changed

Lines changed: 11 additions & 17 deletions

File tree

src/css/custom.css

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -193,22 +193,16 @@ li.menu__list-item {
193193

194194
li:has(.navbar-icon) {
195195
width: auto;
196-
margin-top: 1rem !important;
197196
}
198197

199-
li:has(.navbar-icon):not(li:has(.navbar-icon) ~ *)::before {
200-
content: "";
201-
display: inline-block;
202-
position: absolute;
203-
left: 0;
204-
transform: translate(5%, calc(-0.5rem + 1px));
205-
background: linear-gradient(
206-
to right,
207-
transparent,
208-
gray 10%,
209-
gray 90%,
210-
transparent 100%
211-
);
212-
height: 2px;
213-
width: 90%;
214-
}
198+
li.menu__list-item:has(:not(.navbar-icon)):has(+ li:has(.navbar-icon)) {
199+
padding-bottom: 0.25rem;
200+
border-bottom: 2px solid;
201+
border-image: linear-gradient(
202+
to right,
203+
transparent,
204+
gray 10%,
205+
gray 90%,
206+
transparent 100%
207+
) 1;
208+
}

0 commit comments

Comments
 (0)