Skip to content

Commit 1f681b0

Browse files
author
katiegoines
committed
responsiveness
1 parent 99699f4 commit 1f681b0

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

src/styles/footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
}
4949

50-
@media (min-width: $toc-min) {
50+
@media (min-width: $mq-mobile) {
5151
.footer {
5252
&--toc {
5353
margin-inline-end: var(--layout-toc-width);

src/styles/search.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
}
1616

17-
@media (min-width: $toc-min) {
17+
@media (min-width: $mq-mobile) {
1818
.layout-search__search {
1919
&--toc {
2020
margin-inline-end: calc(

src/styles/toc.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
border-top: 1px solid var(--amplify-colors-neutral-20);
66

77
&.desktop-toc {
8-
@media (max-width: $mq-mobile) {
8+
@media (max-width > $mq-mobile) {
99
display: none;
1010
}
1111
}
@@ -59,7 +59,7 @@
5959
}
6060
}
6161

62-
@media (min-width: $toc-min) {
62+
@media (min-width: $mq-mobile) {
6363
.toc {
6464
width: var(--layout-toc-width);
6565
background: var(--amplify-colors-background-primary);

src/styles/variables.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
/* $mq-mobile is the min-width we flip to 'desktop' layout */
44
$mq-mobile: 1000px;
55

6-
/**
7-
* $toc-min is the min-width we show the table of
8-
* contents on the right
9-
*/
10-
$toc-min: 1360px;
11-
126
:root {
137
--content-max-width: 1000px;
148
--docs-dev-center-nav: 4rem;

0 commit comments

Comments
 (0)