-
Notifications
You must be signed in to change notification settings - Fork 0
/
center.html
84 lines (69 loc) · 2.49 KB
/
center.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Center</title>
<script type="module" src="./layouts.js"></script>
<style>
stack-layout {
border: 4px solid red;
}
center-layout {
border: 4px solid green;
}
box-layout {
border: 4px solid gray;
}
</style>
</head>
<body>
<h3>Simplest layout: box > center > stack </h3>
<box-layout>
<center-layout>
<stack-layout>
<div>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Atque, minus dolorem laudantium maiores nam facere beatae.</div>
<div>Beatae ad tempora reiciendis aliquid fuga et repudiandae ut id incidunt animi deleniti. Vero, ratione.</div>
</stack-layout>
</center-layout>
</box-layout>
<h3>Complex boxes layout: center > stack > boxes</h3>
<center-layout max="40ch">
<!-- stacks handle vertical recursion nicely but alas, recursive fails-->
<stack-layout recursive="true">
<box-layout></box-layout>
<box-layout></box-layout>
<box-layout>
<stack-layout>
<!-- boxes nest nicely -->
<box-layout></box-layout>
<box-layout></box-layout>
</stack-layout>
</box-layout>
<box-layout></box-layout>
</stack-layout>
</center-layout>
<h3>Simple Page: box > center > stack </h3>
<box-layout>
<center-layout>
<stack-layout>
<h2>My page</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Provident illo qui temporibus, accusamus nostrum perspiciatis architecto nihil quisquam quaerat illum, rem assumenda eaque doloribus quod fugit quam modi non unde.
</p>
</stack-layout>
</center-layout>
</box-layout>
<h3>Simple Page: box > stack > center center </h3>
<box-layout>
<stack-layout>
<center-layout>
<h2>My page</h2>
</center-layout>
<center-layout>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Provident illo qui temporibus, accusamus nostrum perspiciatis architecto nihil quisquam quaerat illum, rem assumenda eaque doloribus quod fugit quam modi non unde.
</p>
</center-layout>
</stack-layout>
</box-layout>
</body>
</html>