Skip to content

Commit 7925b69

Browse files
authored
Merge pull request #100 from ludrol/source
Added adaptive rules for narrow screens.
2 parents d49cad9 + 4aae037 commit 7925b69

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

public/css/styles.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ header nav {
9696
justify-content: center;
9797
}
9898

99-
@media (max-width: 51em) {
99+
@media (min-width: 29em) and (max-width: 51em) {
100100
header nav {
101101
max-width: 100%;
102102
overflow: hidden;
@@ -150,6 +150,17 @@ header nav .button > span {
150150
}
151151
}
152152

153+
@media (max-width: 29em){
154+
header .inner .button {
155+
min-width: 10em;
156+
margin: auto;
157+
}
158+
header .inner nav {
159+
flex-direction: column;
160+
}
161+
}
162+
163+
153164
.inner {
154165
padding: 0 1em 0 1em;
155166
}
@@ -209,7 +220,7 @@ section.docs aside ul li a:focus {
209220
border-radius: 3px;
210221
}
211222

212-
@media (min-width: 61em) {
223+
@media (min-width: 51em) {
213224

214225
section.docs .inner {
215226
display: flex;

0 commit comments

Comments
 (0)