Skip to content

Commit 1fcac45

Browse files
authored
fix menu dead zone (#679)
1 parent ce1ba82 commit 1fcac45

File tree

5 files changed

+9
-40
lines changed

5 files changed

+9
-40
lines changed

packages/site-kit/src/lib/components/Banner.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
display: initial;
100100
}
101101
102-
@media (min-width: 800px) {
102+
@media (min-width: 832px) {
103103
.banner {
104104
top: initial;
105105
bottom: 0;

packages/site-kit/src/lib/components/Shell.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ The main shell of the application. It provides a slot for the top navigation, th
5151
main {
5252
position: relative;
5353
margin: 0 auto;
54-
padding-top: var(--sk-nav-height);
55-
padding-bottom: var(--sk-banner-height);
54+
padding-top: var(--sk-banner-height);
55+
padding-bottom: 0;
5656
height: 100%;
5757
}
5858
59-
@media (max-width: 799px) {
59+
@media (min-width: 832px) {
6060
main {
61-
padding-top: var(--sk-banner-height);
62-
padding-bottom: 0;
61+
padding-top: var(--sk-nav-height);
62+
padding-bottom: var(--sk-banner-height);
6363
}
6464
}
6565
</style>

packages/site-kit/src/lib/docs/DocsContents.svelte

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -109,32 +109,6 @@
109109
margin: 0;
110110
}
111111
112-
@media (max-width: 831px) {
113-
.sidebar {
114-
padding: 1rem;
115-
padding-top: 1rem;
116-
}
117-
118-
li {
119-
margin-bottom: 2.5rem;
120-
}
121-
122-
a {
123-
border-radius: var(--sk-border-radius);
124-
line-height: 1;
125-
vertical-align: center;
126-
padding: 0.9rem 0.75rem !important;
127-
transition: 0.1s ease;
128-
transition-property: background-color, color;
129-
}
130-
131-
a:hover {
132-
text-decoration: none;
133-
134-
background-color: var(--sk-back-4);
135-
}
136-
}
137-
138112
@media (min-width: 832px) {
139113
.sidebar {
140114
columns: 1;
@@ -163,8 +137,6 @@
163137
z-index: 2;
164138
position: absolute;
165139
rotate: 45deg;
166-
/** needed to synchronise with transition on `*` in `base.css` */
167-
transition: background-color 0.5s var(--quint-out);
168140
box-shadow: 0 0 3px rgba(0, 0, 0, 0.12);
169141
}
170142
}

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
217217
font: var(--sk-font-ui-medium);
218218
}
219219
220-
@media (max-width: 799px) {
220+
@media (max-width: 831px) {
221221
nav {
222222
transition: transform 0.2s;
223223
}
@@ -305,7 +305,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
305305
display: block;
306306
}
307307
308-
@media (max-width: 799px) {
308+
@media (max-width: 831px) {
309309
nav {
310310
top: unset;
311311
bottom: 0;
@@ -337,7 +337,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
337337
}
338338
}
339339
340-
@media (min-width: 800px) {
340+
@media (min-width: 832px) {
341341
.home-link {
342342
--padding-right: 2rem;
343343
width: 13.2rem;

packages/site-kit/src/lib/nav/NavContextMenu.svelte

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@
108108
a {
109109
display: flex;
110110
align-items: center;
111-
border-radius: var(--sk-border-radius);
112111
color: var(--sk-text-2);
113-
transition: 0.1s ease;
114-
transition-property: background-color, color;
115112
116113
&[aria-current='page'] {
117114
color: var(--sk-theme-1) !important;

0 commit comments

Comments
 (0)