-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (109 loc) · 3.04 KB
/
index.html
File metadata and controls
109 lines (109 loc) · 3.04 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Hexagon Tutorial</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>何をするの</h1>
<p>これをします</p>
<p>
<a href="https://jtauber.github.io/articles/css-hexagon.html">
CSS Hexagon Tutorial by James Tauber
</a>
</p>
<section id="step1">
<h1>100px * 100px div with a 30px border</h1>
<div id="step1--div"></div>
</section>
<section id="step2">
<h1>Different border color</h1>
<div id="step2--div"></div>
</section>
<section id="step3">
<h1>Height & Border = 0</h1>
<div id="step3--div"></div>
</section>
<section id="step4">
<h1>Only top</h1>
<div id="step4--div"></div>
</section>
<section id="step5">
<h1>Only bottom</h1>
<div id="step5--div"></div>
</section>
<section id="step6">
<h1>Perfect Hexagon</h1>
<div id="step6--div">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
</section>
<section id="step7">
<h1>Rotate 30°</h1>
<div id="step7-div" class="rot30">
<div class="rot30--left"></div>
<div class="rot30--middle"></div>
<div class="rot30--right"></div>
</div>
</section>
<section id="step8">
<h1>Hex row</h1>
<div id="step8-div">
<div class="hex-row">
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
</div>
<div class="hex-row even">
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
</div>
<div class="hex-row">
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
<div class="hex">
<div class="top"></div>
<div class="middle"></div>
<div class="bottom"></div>
</div>
</div>
</div>
</section>
<section id="use--before-after">
<h1>With pseudo-class</h1>
<div class="hex-ba"></div>
</section>
</body>
</html>