-
Notifications
You must be signed in to change notification settings - Fork 70
/
styles.css
141 lines (112 loc) · 2.25 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
html {
font-size: 14px;
}
h1, h2, h3, h4, h5, h6 {
color: #444;
margin: 0 0 10px;
}
p, ul, ol, table, pre, dl {
margin: 0 0 20px;
}
.wrapper {
max-width: 650px;
margin: 0 auto;
position: relative;
padding: 0 20px;
}
pre {
overflow-x: visible;
}
section {
max-width: 650px;
padding: 30px 0px 50px 0px;
margin: 20px 0;
margin-top: 70px;
}
/*----------------------------
Two column layout stuff
---------------------------*/
/* Main Section Headings and sub headings */
article .begin-examples ~ h2,
article .begin-examples ~ h2 + p {
width: 100%;
clear: both;
}
/* Columns */
article .begin-examples ~ h3,
article .begin-examples ~ p,
article .begin-examples ~ .highlight {
width: 50%;
}
/* Left Column */
article .begin-examples ~ h3,
article .begin-examples ~ p {
float: left;
box-sizing: border-box;
padding-right: 1rem;
clear: both;
}
/* Right Column */
article .begin-examples ~ .highlight {
float: right;
clear: right;
margin-bottom: 1rem;
}
/* Reset */
article .end-examples ~ p,
article .end-examples ~ h3,
article .end-examples ~ .highlight {
width: auto;
float: none;
clear: none;
}
.end-examples {
clear: both;
}
@media print, screen and (max-width: 580px) {
/*----------------------------
Two column layout media
---------------------------*/
article .begin-examples ~ h3,
article .begin-examples ~ p,
article .begin-examples ~ .highlight {
width: 100%;
float: none;
clear: none;
}
}
/*----------------------------------------------------------
Other Styling
Normally you would just put this in the sections above.
---------------------------------------------------------*/
h3 {
font-weight: normal;
text-size: 1rem;
}
.begin-examples ~ p {
font-style: italic;
font-size: 0.9rem;
}
.end-examples ~ p {
font-style: normal;
font-size: 1rem;
}
/*----------------------------
Other media
---------------------------*/
@media print, screen and (max-width: 580px) {
article > h3,
article > p {
padding: 0;
margin-bottom: 0.2rem;
}
article .highlight {
margin-bottom: 1.4rem;
background: #f7f7f7;
padding: 0.2rem;
word-wrap: break-word;
}
article .highlight pre {
margin-bottom: 0;
}
}