-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
129 lines (129 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width"/>
<meta name="author" content="Florian Bender"/>
<title>Project Q</title>
<style>
/* adapted: center position trick by http://css-tricks.com/centering-in-the-unknown/ */
html, body {
height: 100%;
font-family: Helvetica, Arial, sans-serif;
}
body {
margin: 0;
text-align: center;
font-size: 0;
white-space: nowrap;
}
body::before {
content: '';
display: inline-block;
height: 100%;
margin-right: -0.25em;
vertical-align: middle;
}
#main {
display: inline-block;
position: relative;
width: 50%;
max-width: 250px;
min-width: 225px;
margin: 0.3em;
padding-left: 5em;
vertical-align: middle;
font-size: 24px;
font-size: 1.5rem;
}
#main::before {
content: '';
display: block;
position: absolute;
top: 0.5em;
left: 0;
width: 3em;
height: 3em;
border: 0.5em solid silver;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
}
#main::after {
content: '';
display: block;
position: absolute;
top: 1.5em;
left: 1.75em;
/*top: calc(0.5em + 2em / 2);
left: calc(3em / 2 - 0.5em / 2 + 0.5em);*/
width: 0.5em;
height: 2em;
-webkit-border-radius: 0.25em;
-moz-border-radius: 0.25em;
-ms-border-radius: 0.25em;
-o-border-radius: 0.25em;
border-radius: 0.25em;
background: #000;
/*outline: 0.3em solid white;*/
-webkit-transform: rotate(135deg) translateY(-0.755em);
-moz-transform: rotate(135deg) translateY(-0.755em);
-ms-transform: rotate(135deg) translateY(-0.755em);
-o-transform: rotate(135deg) translateY(-0.755em);
transform: rotate(135deg) translateY(-0.755em);
-webkit-transition: transform 0.7s ease 0s;
-moz-transition: transform 0.7s ease 0s;
-ms-transition: transform 0.7s ease 0s;
-o-transition: transform 0.7s ease 0s;
transition: transform 0.7s ease 0s;
}
#main:hover::after {
-webkit-transform: rotate(315deg) translateY(0.755em);
-moz-transform: rotate(315deg) translateY(0.755em);
-ms-transform: rotate(315deg) translateY(0.755em);
-o-transform: rotate(315deg) translateY(0.755em);
transform: rotate(315deg) translateY(0.755em);
}
#main h1 {
font-size: 2em;
}
#main p {
margin-top: -1em;
font-size: 0.583em;
letter-spacing: 0.071em;
word-spacing: 0.071em;
text-transform: uppercase;
color: gray;
opacity: 0.33;
-webkit-transition: opacity 0.7s ease-in-out;
-moz-transition: opacity 0.7s ease-in-out;
-ms-transition: opacity 0.7s ease-in-out;
-o-transition: opacity 0.7s ease-in-out;
transition: opacity 0.7s ease-in-out;
}
#main:hover p {
opacity: 0.999; /* prevent weird webkit glow bug */
}
@media screen and (min-width:300px) and (max-width:359px) {
#main {
min-width: 180px;
font-size: 1.25rem;
}
}
@media screen and (max-width:299px) { /* min: 240px */
#main {
min-width: 150px;
font-size: 1rem;
}
}
</style>
</head>
<body>
<div id="main">
<h1 id="title">Project Q</h1>
<p>More to come.</p>
</div>
</body>
</html>