File tree 3 files changed +40
-8
lines changed
3 files changed +40
-8
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ The tutorial is under copyright and cannot be republished without my permission.
69
69
70
70
## TODO
71
71
72
- - [ ] modicum of responsiveness
73
72
- [ ] decade fix -- requires lookahead to make sure decade actually is. Need to backport fix
74
73
- [ ] performance?
75
74
- [ ] final copy edits
75
+ - [ ] title/subtitle styling
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ task :build do
72
72
end
73
73
74
74
# TODO: Figure out a better way to create a layout for a markdown document
75
- compiled = layout . gsub ( '<body></body> ' , "<body> #{ doc . to_html } #{ generated_at_html } </body> " )
75
+ compiled = layout . gsub ( '{{CONTENT}} ' , "#{ doc . to_html } #{ generated_at_html } " )
76
76
77
77
FileUtils . mkdir_p ( 'build' )
78
78
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
5
6
< title > </ title >
6
7
< style >
7
8
body {
8
9
font-family : Helvetica;
9
10
font-size : 20px ;
10
11
line-height : 1.2 ;
11
- width : 920px ;
12
+ min-width : 320px ;
13
+ width : 100% ;
14
+ margin : 0 ;
15
+ padding : 0 ;
16
+ }
17
+
18
+ # content {
19
+ max-width : 920px ;
12
20
margin-left : auto;
13
21
margin-right : auto;
22
+ padding-left : 5px ;
23
+ padding-right : 5px ;
14
24
}
15
25
16
26
code {
31
41
padding-left : 15px ;
32
42
}
33
43
44
+ svg {
45
+ max-width : 100% ;
46
+ }
47
+
34
48
div .aside {
35
49
font-size : 80% ;
36
50
background : aliceblue;
37
- width : 400px ;
38
- float : right;
39
- margin-left : 20px ;
40
- padding : 20px 20px 0 20px ;
51
+ padding : 20px 20px 0px 20px ;
41
52
}
42
53
43
54
div .aside h3 {
44
55
margin : 0 ;
45
56
}
46
57
58
+ @media screen and (max-width : 600px ) {
59
+ div .aside {
60
+ width : 100% ;
61
+ box-sizing : border-box;
62
+ padding-bottom : 1px ;
63
+ }
64
+ }
65
+
66
+ @media screen and (min-width : 600px ) {
67
+ div .aside {
68
+ min-width : 300px ;
69
+ max-width : 400px ;
70
+ float : right;
71
+ margin-left : 20px ;
72
+ }
73
+ }
74
+
47
75
span .query-string {
48
76
background : aliceblue;
49
77
font-family : "Source Code Pro" , Consolas, Monaco, monospace;
59
87
color : # 999 ;
60
88
}
61
89
90
+ pre {
91
+ overflow : auto;
92
+ }
93
+
62
94
.highlight table td { padding : 5px ; }
63
95
.highlight table pre { margin : 0 ; }
64
96
.highlight .cm {
306
338
}
307
339
</ style >
308
340
</ head >
309
- < body > </ body >
341
+ < body > < div id =" content " > {{CONTENT}} </ div > < /body >
310
342
</ html >
You can’t perform that action at this time.
0 commit comments