Skip to content

Commit 6adabf7

Browse files
committed
Update media queries to modern syntax
1 parent a4cb73f commit 6adabf7

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

ui/src/components/Sidebar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ const categoryOrder = ["syntax", "data_structures", "classes", "advanced"];
366366
display: none;
367367
}
368368

369-
@media (max-width: 900px) {
369+
@media (width <= 900px) {
370370
.sidebar {
371371
position: fixed;
372372
left: 0;

ui/src/pages/[lang]/[...path].astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ const activeLang = lang as keyof typeof languages;
143143
cursor: help;
144144
}
145145

146+
@media (width <= 480px) {
147+
.annotation-badge {
148+
display: none;
149+
}
150+
}
151+
146152
.action-buttons {
147153
display: flex;
148154
gap: 0.75rem;
@@ -183,7 +189,7 @@ const activeLang = lang as keyof typeof languages;
183189
flex-shrink: 0;
184190
}
185191

186-
@media (max-width: 969px) {
192+
@media (width <= 969px) {
187193
.btn-text,
188194
.btn-text-full,
189195
.btn-text-short {
@@ -250,7 +256,7 @@ const activeLang = lang as keyof typeof languages;
250256
color: #ffffff !important;
251257
}
252258

253-
@media (max-width: 900px) {
259+
@media (width <= 900px) {
254260
/* Stack container vertically */
255261
#app-container {
256262
flex-direction: column !important;

ui/src/pages/[lang]/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const totalLessons = lessons.length;
221221
font-style: normal;
222222
}
223223

224-
@media (max-width: 900px) {
224+
@media (width <= 900px) {
225225
#app-container {
226226
flex-direction: column !important;
227227
}

0 commit comments

Comments
 (0)