-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
186 lines (167 loc) · 5.72 KB
/
index.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="grid.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1>Responsive Grid</h1>
<section class="variables">
<h2>Variables</h2>
<code>--grid-col-gap: 6px; /*column gap*/</code>
<code>--grid-row-gap: 6px; /*row gap*/</code>
<code>--grid-max-width: 1200px; /*100% for no max-width*/</code>
<code>--grid-margin: auto; /*0 for nothing, auto for center*/</code>
</section>
<section class="helper">
<h2>Helper</h2>
<div>xs-hide: hide on mobile (600px and down)</div>
<div>md-hide: hide on medium devices (600px to 768px)</div>
<div>lg-hide: hide on desktop devices (768px and up)</div>
</section>
<div class="grid">
<div class="row">
<div class="col-6 xs-hide">col-3 xs-hide</div>
<div class="col-6 md-hide">col-3 md-hide</div>
<div class="col-6 lg-hide">col-3 lg-hide</div>
</div>
</div>
<section class="breakpoints">
<h2>Breakpoints</h2>
<div>col-xs-*: mobile (600px and down)</div>
<div>col-md-*: medium devices (600px to 768px)</div>
<div>col-*: desktop devices (768px and up)</div>
</section>
<div class="grid">
<div class="row">
<div class="col-1 col-md-2 col-xs-6">Col-1</div>
<div class="col-1 col-md-2 col-xs-6">Col-1</div>
<div class="col-1 col-md-2">Col-1</div>
<div class="col-1 col-md-2">Col-1</div>
<div class="col-1 col-md-2">Col-1</div>
<div class="col-1 col-md-2">Col-1</div>
<div class="col-1 col-md-2">Col-1</div>
<div class="col-1 col-md-4">Col-1</div>
<div class="col-1 col-md-4">Col-1</div>
<div class="col-1 col-md-2">Col-1</div>
<div class="col-1 col-md-6">Col-1</div>
<div class="col-1 col-md-6">Col-1</div>
</div>
<div class="row">
<div class="col-2">Col-2</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-3">Col-3</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-4">Col-4</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-5">Col-5</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-6">Col-6</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-7">Col-7</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-8">Col-8</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-9">Col-9</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-10">Col-10</div>
<div class="col-1">Col-1</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-11">Col-11</div>
<div class="col-1">Col-1</div>
</div>
<div class="row">
<div class="col-12">Col-12</div>
</div>
<div class="row">
<div class="col-2">Col-2</div>
<div class="col-2">Col-2</div>
<div class="col-2">Col-2</div>
<div class="col-2">Col-2</div>
<div class="col-2">Col-2</div>
<div class="col-2">Col-2</div>
</div>
<div class="row">
<div class="col-3">Col-3</div>
<div class="col-3">Col-3</div>
<div class="col-3">Col-3</div>
<div class="col-3">Col-3</div>
</div>
<div class="row">
<div class="col-4">Col-4</div>
<div class="col-4">Col-4</div>
<div class="col-4">Col-4</div>
</div>
<div class="row">
<div class="col-6">Col-6</div>
<div class="col-6">Col-6</div>
</div>
</div>
</body>
</html>