Skip to content

Commit 718e078

Browse files
committed
Fix credits and nav-bar on small screens.
This is still flawed, but at least it's still usable. Added .editorconfig for .scss files.
1 parent f708f7c commit 718e078

File tree

2 files changed

+48
-23
lines changed

2 files changed

+48
-23
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ indent_size = 2
1515
indent_style = space
1616
indent_size = 2
1717

18+
[*.scss]
19+
indent_style = space
20+
indent_size = 2
21+
1822
[*.json]
1923
indent_style = space
2024
indent_size = 4

assets/css/style.scss

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,68 @@
44
@import "{{ site.theme }}";
55

66
code {
7-
background-color: #191919 // Add background to inline code samples.
7+
background-color: #191919 // Add background to inline code samples.
88
}
99

1010
.wrapper {
11-
max-width: 60rem; // Increase max width so that code examples fit.
11+
max-width: 60rem; // Increase max width so that code examples fit.
1212
}
1313

1414
#header {
15-
position: relative;
16-
height: 52px;
15+
position: relative;
16+
height: 52px;
1717

18-
nav {
19-
margin: 0px auto;
20-
max-width: 60rem;
21-
}
18+
nav {
19+
display: block;
20+
margin: 0px auto;
21+
max-width: 60rem;
22+
}
2223
}
2324

2425

2526
section {
26-
margin-top: 0px;
27-
padding-top: 6px;
28-
max-width: 100%; // Match .wrapper width.
27+
margin-top: 0px;
28+
padding-top: 6px;
29+
max-width: 100%; // Match .wrapper width.
2930
}
3031

3132
.nav_button {
32-
float: left;
33-
margin-right: 6px;
33+
float: left;
34+
margin-right: 6px;
3435
}
3536

3637
.credits {
37-
font-size: 11px;
38-
font-family: 'OpenSansRegular', "Helvetica Neue", Helvetica, Arial, sans-serif;
39-
font-weight: normal;
40-
color: #696969;
41-
margin-top: -10px;
42-
43-
&.left {
44-
float: left;
38+
font-size: 11px;
39+
font-family: 'OpenSansRegular', "Helvetica Neue", Helvetica, Arial, sans-serif;
40+
font-weight: normal;
41+
color: #696969;
42+
margin-top: -10px;
43+
44+
&.left {
45+
float: left;
46+
}
47+
48+
&.right {
49+
float: right;
50+
}
51+
}
52+
53+
54+
@media print, screen and (max-width: 720px) {
55+
.credits {
56+
display: block;
57+
width: 100%;
58+
line-height: 30px;
59+
text-align: center;
60+
61+
.left {
62+
float: none;
63+
display: block;
4564
}
4665

47-
&.right {
48-
float: right;
66+
.right {
67+
float: none;
68+
display: block;
4969
}
5070
}
71+
}

0 commit comments

Comments
 (0)