-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid_systems.html
170 lines (150 loc) · 4.07 KB
/
grid_systems.html
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<html>
<head>
<style>
:root {
box-sizing: border-box;
}
*,
::before,
::after {
box-sizing: inherit;
}
body {
background-color: #eee;
font-family: Helvetica, Arial, sans-serif;
}
body *+* {
margin-top: 1.5em;
}
.container {
max-width: 1080px;
margin: auto;
}
header {
padding: 1em 1.5em;
color: #fff;
background-color: #0072b0;
border-radius: .5em;
margin-bottom: 1.5em;
}
.row::after {
content: " ";
display: block;
clear: both;
}
[class*="column-"] {
float: left;
}
.column-1 {
width: 8.3333%;
}
.column-2 {
width: 16.6667%;
}
.column-3 {
width: 25%;
}
.column-4 {
width: 33.3333%;
}
.column-5 {
width: 41.6667%;
}
.column-6 {
width: 50%;
}
.column-7 {
width: 58.3333%;
}
.column-8 {
width: 66.6667%;
}
.column-9 {
width: 75%;
}
.column-10 {
width: 83.3333%;
}
.column-11 {
width: 91.6667%
}
.column-12 {
width: 100%;
}
.main {
padding: 0 1.5em 1.5em;
background-color: #fff;
border-radius: .5em;
}
.media {
padding: 1.5em;
background-color: #eee;
border-radius: 0.5em;
}
.clearfix::before,
.clearfix::after {
display: table;
content: " ";
clear: both;
}
.media-image {
float: left;
margin-right: 1.5em;
}
.media-body {
margin-top: 0;
overflow: auto;
}
.media-body h4 {
margin-top: 0;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Franklin Running Club</h1>
</header>
<main class="main clearfix">
<h2>Running tips</h2>
<div class="row">
<div class="column-6">
<div class="media">
<img class="media-image" src="https://raw.githubusercontent.com/CSSInDepth/css-in-depth/master/ch04/runner.png">
<div class="media-body">
<h4>Strength</h4>
<p> Strength training is an important part of injury prevention. Focus on your core— especially your abs and glutes. </p>
</div>
</div>
</div>
<div class="column-6">
<div class="media"> <img class="media-image" src="https://raw.githubusercontent.com/CSSInDepth/css-in-depth/master/ch04/shoes.png">
<div class="media-body">
<h4>Cadence</h4>
<p> Check your stride turnover. The most efficient runners take about 180 steps per minute. </p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column-6">
<div class="media"> <img class="media-image" src="https://raw.githubusercontent.com/CSSInDepth/css-in-depth/master/ch04/shoes.png">
<div class="media-body">
<h4>Change it up</h4>
<p> Don't run the same every time you hit the road. Vary your pace, and vary the distance of your runs. </p>
</div>
</div>
</div>
<div class="column-6">
<div class="media"> <img class="media-image" src="https://raw.githubusercontent.com/CSSInDepth/css-in-depth/master/ch04/runner.png">
<div class="media-body">
<h4>Focus on form</h4>
<p> Run tall but relaxed. Your feet should hit the ground beneath your hips, not out in front of you. </p>
</div>
</div>
</div>
</div>
</main>
</div>
</body>
</html>