Skip to content

Commit a15e98b

Browse files
committed
match breakpoints with website and guides, use SASS vars (#317)
1 parent 3e8e81f commit a15e98b

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

app/styles/components/_footer.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
border-bottom: none;
1515
}
1616

17-
@media screen and (max-width: 53.75rem) {
17+
@media screen and (max-width: $medium-screen) {
1818
.responsive.footer .container {
1919
padding: 2rem 1rem;
2020

@@ -60,7 +60,7 @@
6060
display: flex
6161
}
6262

63-
@media screen and (max-width: 40rem) {
63+
@media screen and (max-width: $large-screen) {
6464
.responsive.footer .container {
6565
text-align: center;
6666
display: block;
@@ -82,7 +82,7 @@
8282
text-align: left
8383
}
8484

85-
@media screen and (max-width: 53.75rem) {
85+
@media screen and (max-width: $large-screen) {
8686
.responsive.footer .footer-info {
8787
text-align: center;
8888
}
@@ -130,7 +130,7 @@
130130
max-height: 45px;
131131
}
132132

133-
@media screen and (min-width: 53.75rem) {
133+
@media screen and (min-width: $large-screen) {
134134
.footer .footer-contributions {
135135
display: flex;
136136
flex:0 0 21em;
@@ -152,7 +152,7 @@
152152
}
153153
}
154154

155-
@media screen and (max-width: 53.75rem) {
155+
@media screen and (max-width: $large-screen) {
156156
.footer .footer-social a:first-child {
157157
margin-left: 0;
158158
}

app/styles/components/_header.scss

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $white: white;
4343
display: -webkit-flex;
4444
}
4545

46-
@media screen and (max-width: $medium-screen) {
46+
@media screen and (max-width: $large-screen) {
4747
.responsive.header .container {
4848
display: block;
4949
}
@@ -55,7 +55,7 @@ $white: white;
5555
justify-content: space-between;
5656
height: 2.8rem;
5757
}
58-
@media screen and (max-width: 53.75rem) {
58+
@media screen and (max-width: $large-screen) {
5959
.responsive.header .header-nav {
6060
height: auto;
6161
}
@@ -69,7 +69,7 @@ $white: white;
6969
width: 100%;
7070
}
7171

72-
@media screen and (max-width: 53.75rem) {
72+
@media screen and (max-width: $large-screen) {
7373
.responsive.header a {
7474
line-height: 24px; //do we need this
7575
}
@@ -90,12 +90,12 @@ $white: white;
9090
text-align: center;
9191
}
9292

93-
@media screen and (max-width: 53.75em) {
93+
@media screen and (max-width: $large-screen) {
9494
.responsive .header-nav li {
9595
display: inherit;
9696
}
9797
}
98-
@media screen and (max-width: 53.75em) {
98+
@media screen and (max-width: $large-screen) {
9999
.responsive .header-nav li:not(.header-logo):not(.header-search) {
100100
width: 32%;
101101
display: inline-block;
@@ -106,8 +106,6 @@ $white: white;
106106
.header-nav li:not(.header-logo):not(.header-search) {
107107
width: auto;
108108
}
109-
@media screen and (min-width: 53.75rem) {
110-
}
111109

112110
.header-nav .header-logo {
113111
-webkit-box-flex: 1.5;
@@ -119,7 +117,7 @@ $white: white;
119117
flex: 1.5 0 0;
120118
}
121119

122-
@media screen and (min-width: 53.75rem) {
120+
@media screen and (min-width: $large-screen) {
123121
}
124122

125123
.header-nav .header-search {
@@ -132,7 +130,7 @@ $white: white;
132130
flex: 2 0 0;
133131
}
134132

135-
@media screen and (max-width: 53.75rem) {
133+
@media screen and (max-width: $large-screen) {
136134
.responsive .header-nav .header-search {
137135
display: block;
138136
}
@@ -147,7 +145,7 @@ $white: white;
147145
display: block;
148146
}
149147

150-
@media screen and (max-width: 53.75rem) {
148+
@media screen and (max-width: $large-screen) {
151149
.responsive .header-logo a {
152150
margin: 0 auto;
153151
}
@@ -193,7 +191,7 @@ $white: white;
193191
color: white;
194192
}
195193
}
196-
@media screen and (max-width: 53.75rem) {
194+
@media screen and (max-width: $large-screen) {
197195
.responsive .header-search {
198196
margin-left: 0;
199197
}

app/styles/components/_sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
padding: $small-spacing 0;
77

88
@include media($medium-screen-up) {
9-
margin-top: 5em;
9+
margin-top: 11em;
1010
}
1111

1212
@include media($large-screen-up) {

0 commit comments

Comments
 (0)