File tree Expand file tree Collapse file tree 6 files changed +57
-25
lines changed Expand file tree Collapse file tree 6 files changed +57
-25
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ ol.book-toc {
152
152
}
153
153
154
154
.book-wrapper {
155
- float :right ;
155
+ float : right ;
156
156
margin : -20px 40px 0 40px ;
157
157
}
158
158
@@ -165,3 +165,9 @@ ol.book-toc {
165
165
top : 2rem ;
166
166
}
167
167
}
168
+
169
+ @media (max-width : $mobile-xs ) {
170
+ .book-wrapper {
171
+ margin-right : 0 ;
172
+ }
173
+ }
Original file line number Diff line number Diff line change @@ -16,34 +16,55 @@ body {
16
16
}
17
17
18
18
.inner {
19
- width : 500px ;
19
+ max- width : 500px ;
20
20
margin : 70px auto ;
21
+ text-align : center ;
21
22
}
22
23
23
24
p {
24
25
font-size : 18px ;
25
26
color : lighten (#4e443c , 10% );
26
27
margin-bottom : 30px ;
28
+ img {
29
+ max-width : 100% ;
30
+ height : auto ;
31
+ }
27
32
}
28
33
29
34
nav ul {
30
- list-style : none ;
31
- font-size : 16px ;
32
- font-weight : bold ;
33
- margin-left : 0 ;
34
- margin-bottom : 1.4em ;
35
- li {
36
- display : inline ;
37
- float : left ;
38
- a {
39
- display : block ;
40
- color : $orange ;
41
- & :hover {
42
- color : darken ($orange , 5% );
35
+ display : flex ;
36
+ flex-wrap : wrap ;
37
+ justify-content : center ;
38
+ list-style : none ;
39
+ font-size : 16px ;
40
+ font-weight : bold ;
41
+ margin-left : 0 ;
42
+ margin-bottom : 1.4em ;
43
+ li {
44
+ a {
45
+ display : block ;
46
+ color : $orange ;
47
+ & :hover {
48
+ color : darken ($orange , 5% );
49
+ }
43
50
}
44
51
}
45
- }
46
- li + li {
47
- margin-left : 15px ;
48
- }
52
+ li + li {
53
+ margin-left : 15px ;
54
+ }
49
55
}
56
+
57
+ // Mobile
58
+ @media (max-width : $mobile-m ) {
59
+ nav ul {
60
+ li {
61
+ margin-left : 0 ;
62
+ a {
63
+ padding : 1em ;
64
+ }
65
+ }
66
+ li + li {
67
+ margin-left : 0 ;
68
+ }
69
+ }
70
+ }
Original file line number Diff line number Diff line change @@ -58,12 +58,14 @@ aside.sidebar.active {
58
58
}
59
59
aside {
60
60
& .sidebar {
61
- position : absolute ;
61
+ position : fixed ;
62
+ top : 1em ;
62
63
transform : translateX (-105.5% );
63
64
transition : transform 0.3s , background-color 0.3s ;
64
65
padding : 20px ;
65
- height : 100% ;
66
- z-index : 10 ;
66
+ height : 90vh ;
67
+ overflow-y : scroll ;
68
+ z-index : 1001 !important ;
67
69
}
68
70
}
69
71
}
Original file line number Diff line number Diff line change 4
4
< title > Git</ title >
5
5
< meta charset ='utf-8 '>
6
6
< meta content ='IE=edge,chrome=1 ' http-equiv ='X-UA-Compatible '>
7
- < link href ="/assets/errors.css?body=1 " media ="screen " rel ="stylesheet " type ="text/css " />
7
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8
+ < link href ="/assets/errors.css " rel ="stylesheet "/>
8
9
<!--[if (gte IE 6)&(lte IE 8)]>
9
10
<script src="/assets/selectivizr-min.js?body=1" type="text/javascript"></script>
10
11
<![endif]-->
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< title > The change you wanted was rejected (422)</ title >
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
6
< style type ="text/css ">
6
7
body { background-color : # fff ; color : # 666 ; text-align : center; font-family : arial, sans-serif; }
7
8
div .dialog {
8
- width : 25em ;
9
+ max- width: 25em ;
9
10
padding : 0 4em ;
10
11
margin : 4em auto 0 auto;
11
12
border : 1px solid # ccc ;
Original file line number Diff line number Diff line change 4
4
< title > Git</ title >
5
5
< meta charset ='utf-8 '>
6
6
< meta content ='IE=edge,chrome=1 ' http-equiv ='X-UA-Compatible '>
7
- < link href ="/assets/errors.css?body=1 " media ="screen " rel ="stylesheet " type ="text/css " />
7
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
8
+ < link href ="/assets/errors.css " rel ="stylesheet "/>
8
9
<!--[if (gte IE 6)&(lte IE 8)]>
9
10
<script src="/assets/selectivizr-min.js?body=1" type="text/javascript"></script>
10
11
<![endif]-->
You can’t perform that action at this time.
0 commit comments