-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
103 lines (93 loc) · 2.72 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Centum</title>
<style>
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.background { background: rgba(0,0,0,0.05); }
.blue { background: dodgerblue; }
.orange { background: tomato; }
.teal { background: teal; }
.purple { background: rebeccapurple; }
.red { background: crimson; }
.style { min-width: 100px; min-height: 100px; color: white; font-family: Arial, Helvetica, sans-serif; font-size: 24px; line-height: 100px; text-align: center;}
.spacer { height: 30px; }
</style>
<link rel="stylesheet" href="../dist/centum.css">
</head>
<body>
<div class="spacer"></div>
<div class="pack background">
<div class="tier content:center">
<div class="cell:100 cell-sm:25">
<div class="blue style">A</div>
</div>
<div class="cell:100 cell-sm:50">
<div class="sub-cell">
<div class="orange style">B-1</div>
</div>
<div class="sub-cell">
<div class="teal style">B-2</div>
</div>
</div>
<div class="cell:100 cell-sm:25">
<div class="purple style">C</div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="pack extent-md:narrow background">
<div class="tier">
<div class="cell:100 cell-sm:50 cell-md:33">
<div class="blue style">A</div>
</div>
<div class="cell:100 cell-sm:50 cell-md:66">
<div class="purple style">B</div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="pack background">
<div class="tier:no-gutters flow:row-reverse-nowrap">
<div class="cell:20">
<div class="blue style">A</div>
</div>
<div class="cell:20">
<div class="orange style">B</div>
</div>
<div class="cell:20">
<div class="teal style">C</div>
</div>
<div class="cell:20">
<div class="purple style">D</div>
</div>
<div class="cell:20">
<div class="red style">E</div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="pack background">
<div class="tier justify:center content:center" style="height:500px">
<div class="cell:50">
<div class="orange style">I'm in the dead-center!</div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="pack background">
<div class="tier justify-xl:between">
<div class="cell:100 cell-xl:40">
<div class="blue style">A</div>
</div>
<div class="cell:100 cell-xl:40">
<div class="red style">B</div>
</div>
</div>
</div>
<div class="spacer"></div>
</body>
</html>