-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (127 loc) · 3.54 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
<!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, shrink-to-fit=no" />
<title>Belwerks | Styles</title>
<link rel="stylesheet" type="text/css" href="./src/index.css" />
<style>
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.wrap {
padding: 1rem 2rem 1rem;
margin: 0 auto;
max-width: 38rem;
overflow-x: hidden;
}
.parent {
border: dashed tomato 0.15rem;
border-radius: 0.5rem;
margin: 0 0 2.5rem;
padding: 0.5rem;
}
.child {
background: crimson;
border-radius: 0.35rem;
color: white;
margin: 0.5rem;
padding: 1.5rem;
}
</style>
</head>
<body>
<div class="wrap">
<h1>Belwerks | Styles</h1>
<nav>
<ul class="no-list">
<li>
<a href="#layout">Layout</a>
<ul>
<li><a href="#flex-parent">Flex (parent)</a></li>
<li><a href="#flex-children">Flex (children)</a></li>
</ul>
</li>
</ul>
</nav>
<h2 id="layout">Layout</h2>
<h3 id="flex-parent">Flex (parent)</h3>
<pre>.flex</pre>
<p>Defaults to center alignment (x/y) and overflow wrapping.</p>
<div class="parent flex" style="height: 8rem;">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.no-wrap</pre>
<div class="parent flex no-wrap">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.space-around</pre>
<div class="parent flex space-around">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.space-between</pre>
<div class="parent flex space-between">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.space-evenly</pre>
<div class="parent flex space-evenly">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.left</pre>
<div class="parent flex left">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.right</pre>
<div class="parent flex right">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.top</pre>
<div class="parent flex top" style="height: 8rem;">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<pre>.flex.bottom</pre>
<div class="parent flex bottom" style="height: 8rem;">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
<h3 id="flex-children">Flex (children)</h3>
<pre>.flex > .shrink</pre>
<pre>.flex > .grow</pre>
<div class="parent flex">
<div class="child shrink">Shrink</div>
<div class="child grow">Grow</div>
</div>
<pre>.flex > .no-shrink</pre>
<pre>.flex > .no-grow</pre>
<div class="parent flex">
<div class="child no-shrink">No shrink</div>
<div class="child no-grow">No grow</div>
</div>
</div>
</body>
</html>