Skip to content

Commit 141ea85

Browse files
committed
Make open nav higher
1 parent f1a0a19 commit 141ea85

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

source/css/nav.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
}
88

99
nav {
10-
// background-color: var(--color-background-secondary-translucent);
1110
user-select: none;
1211
position: fixed;
1312
top: 0;
1413
left: 0;
1514
right: 0;
1615
z-index: 1000;
17-
// backdrop-filter: var(--filter-blur);
1816
transition: height 0.4s cubic-bezier(0.86, 0, 0.07, 1);
1917

2018
.inner {
@@ -203,11 +201,10 @@ nav {
203201
top: 0;
204202
left: 0;
205203
right: 0;
206-
// background-color: var(--color-background-secondary-translucent);
207-
background-color: rgba(0, 0, 0, 0.25);
204+
background-color: var(--color-background-secondary-translucent-lite);
208205
backdrop-filter: blur(10px);
209206
mask-image: linear-gradient(to bottom, #000, transparent);
210-
-webkit-mask-composite: destination-in;
207+
mask-composite: destination-in;
211208
pointer-events: none;
212209
z-index: 1000;
213210
transition:
@@ -226,7 +223,7 @@ nav {
226223

227224
@media (max-width: 600px) {
228225
.nav-open & {
229-
height: calc(var(--open-height) * 3 / math.pow(($base), ($i - 1)));
226+
height: calc(var(--open-height) * 4 / math.pow(($base), ($i - 1)));
230227
}
231228
}
232229
}

source/css/var.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
--color-background-secondary: #ffffff;
1717
--color-background-secondary-hover: #f7f7f7;
1818
--color-background-secondary-translucent: #ffffffcc;
19+
--color-background-secondary-translucent-lite: #ffffff33;
1920
--color-background-accent: #0071e3;
2021
--color-background-accent-contrast: #ffffff;
2122
--color-background-accent-hover: #0077ed;
@@ -41,6 +42,7 @@
4142
--color-background-secondary: #181818;
4243
--color-background-secondary-hover: #202020;
4344
--color-background-secondary-translucent: #00000080;
45+
--color-background-secondary-translucent-lite: #00000033;
4446
--color-background-accent: #0071e3;
4547
--color-background-accent-contrast: #ffffff;
4648
--color-background-accent-hover: #0077ed;

0 commit comments

Comments
 (0)