Skip to content

Commit 8ceef6d

Browse files
author
Lukas Nys
committed
style cleanup: move media queries down (ember-learn#879)
1 parent 9482cea commit 8ceef6d

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

app/styles/app.css

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ main a.edit-icon {
2626
background: none;
2727
}
2828

29-
@media (min-width: 845px) {
30-
.es-sidebar {
31-
padding: var(--spacing-4);
32-
background-color: var(--color-gray-200);
33-
}
34-
}
35-
3629
.es-sidebar-content .table-of-contents:first-child {
3730
margin-block-start: 0;
3831
}
@@ -54,13 +47,6 @@ main a.edit-icon {
5447
font-weight: var(--font-weight-2);
5548
}
5649

57-
@media (max-width: 844px) {
58-
.table-of-contents,
59-
.sub-table-of-contents {
60-
font-size: var(--font-size-lg);
61-
}
62-
}
63-
6450
.sub-table-of-contents .sub-table-of-contents {
6551
padding-left: var(--spacing-3);
6652
margin-bottom: 0;
@@ -104,3 +90,16 @@ li.toc-heading:first-child {
10490
margin-top: 0;
10591
}
10692

93+
@media (max-width: 844px) {
94+
.table-of-contents,
95+
.sub-table-of-contents {
96+
font-size: var(--font-size-lg);
97+
}
98+
}
99+
100+
@media (min-width: 845px) {
101+
.es-sidebar {
102+
padding: var(--spacing-4);
103+
background-color: var(--color-gray-200);
104+
}
105+
}

0 commit comments

Comments
 (0)