This repository has been archived by the owner on Oct 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
190 lines (186 loc) · 5.57 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
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<title>Responsive Grid</title>
<link href="./css/responsive-grid.css" rel="stylesheet" type="text/css">
<style>
body {
margin: 0;
padding: 20px;
font-family: sans-serif;
}
h1 { margin-top: 0; }
.border { border: 1px solid #999999; border-radius: 4px; overflow: hidden; }
.row > .columns {
background-color: #fcfcfc;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
border-top: 1px solid #999999;
border-left: 1px solid #999999;
}
.row:first-child > .columns { border-top: none; }
.row > .columns:first-child { border-left: none; }
.row:nth-child(odd) > .columns { background-color: #f0f0f0; }
@media only screen and (max-width: 1199px) {
.row > *[class^=large-].columns { border-left: none; }
}
@media only screen and (max-width: 767px) {
.row > *[class^=medium-].columns { border-left: none; }
}
</style>
</head>
<body>
<h1>Visibility</h1>
<div class="border">
<div class="row">
<div class="large-12 columns hide-medium">Visible Large Only</div>
<div class="large-12 columns show-medium hide-small">Visible Medium Only</div>
<div class="large-12 columns show-small">Visible Small Only</div>
</div>
</div>
<br />
<div class="border">
<div class="row">
<div class="large-12 columns">Visible Large and Lower</div>
</div>
<div class="row">
<div class="large-12 columns show-medium">Visible Medium and Lower</div>
</div>
<div class="row">
<div class="large-12 columns show-small">Visible Small Only</div>
</div>
</div>
<br />
<h1>Responsive Grid</h1>
<h2>Desktop (1200px):</h2>
<div class="border">
<div class="row">
<div class="large-12 columns">12</div>
</div>
<div class="row">
<div class="large-6 columns">6</div>
<div class="large-6 columns">6</div>
</div>
<div class="row">
<div class="large-4 columns">4</div>
<div class="large-4 columns">4</div>
<div class="large-4 columns">4</div>
</div>
<div class="row">
<div class="large-3 columns">3</div>
<div class="large-3 columns">3</div>
<div class="large-3 columns">3</div>
<div class="large-3 columns">3</div>
</div>
<div class="row">
<div class="large-2 columns">2</div>
<div class="large-2 columns">2</div>
<div class="large-2 columns">2</div>
<div class="large-2 columns">2</div>
<div class="large-2 columns">2</div>
<div class="large-2 columns">2</div>
</div>
<div class="row">
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
<div class="large-1 columns">1</div>
</div>
</div>
<h2>Tablet (768px):</h2>
<div class="border">
<div class="row">
<div class="medium-12 columns">12</div>
</div>
<div class="row">
<div class="medium-6 columns">6</div>
<div class="medium-6 columns">6</div>
</div>
<div class="row">
<div class="medium-4 columns">4</div>
<div class="medium-4 columns">4</div>
<div class="medium-4 columns">4</div>
</div>
<div class="row">
<div class="medium-3 columns">3</div>
<div class="medium-3 columns">3</div>
<div class="medium-3 columns">3</div>
<div class="medium-3 columns">3</div>
</div>
<div class="row">
<div class="medium-2 columns">2</div>
<div class="medium-2 columns">2</div>
<div class="medium-2 columns">2</div>
<div class="medium-2 columns">2</div>
<div class="medium-2 columns">2</div>
<div class="medium-2 columns">2</div>
</div>
<div class="row">
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
<div class="medium-1 columns">1</div>
</div>
</div>
<h2>Mobile (All):</h2>
<div class="border">
<div class="row">
<div class="small-12 columns">12</div>
</div>
<div class="row">
<div class="small-6 columns">6</div>
<div class="small-6 columns">6</div>
</div>
<div class="row">
<div class="small-4 columns">4</div>
<div class="small-4 columns">4</div>
<div class="small-4 columns">4</div>
</div>
<div class="row">
<div class="small-3 columns">3</div>
<div class="small-3 columns">3</div>
<div class="small-3 columns">3</div>
<div class="small-3 columns">3</div>
</div>
<div class="row">
<div class="small-2 columns">2</div>
<div class="small-2 columns">2</div>
<div class="small-2 columns">2</div>
<div class="small-2 columns">2</div>
<div class="small-2 columns">2</div>
<div class="small-2 columns">2</div>
</div>
<div class="row">
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
<div class="small-1 columns">1</div>
</div>
</div>
</body>
</html>