-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
195 lines (160 loc) · 3.43 KB
/
style.css
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
body {
/* styling */
font-size: 32px;
/* layout */
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
overflow: hidden;
}
a {
pointer-events: none;
transition: 0s pointer-events;
}
address {
/* styling */
font-size: 64px;
/* layout */
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
height: 500px;
width: 200px;
}
div {
/* layout of content in each letter */
margin: 16px;
}
/* control of spacing */
h2,
h3,
h4,
ul {
margin: 0;
padding: 0;
}
h2 {
font-size: 64px;
}
h3 {
font-size: 48px;
}
h4 {
font-size: 40px;
}
ul {
font-size: 22px;
margin: 16px 24px 0 24px;
}
p {
font-size: 32px;
text-align: justify;
}
/* -------------------------------- */
svg path {
/* general svg settings */
fill: none;
stroke: white;
transition: 0.8s;
stroke-width: 8px;
stroke-linecap: round;
stroke-linejoin: round;
}
foreignObject {
/* general embedded html settings */
visibility: hidden;
opacity: 0;
transition: visibility 0s, opacity 0.8s;
}
g:hover foreignObject {
/* show embedded html */
visibility: visible;
opacity: 1;
}
/* prevent premature redirection on mobile */
@keyframes delay-pointer-events {
0%,
99% {
pointer-events: none;
}
}
g:hover a {
animation: delay-pointer-events 0.1s linear;
pointer-events: auto;
}
/* -------------------------------- */
rect {
/* firefox hover support */
stroke: none;
fill: none;
pointer-events: all;
}
/* shape morphs */
#tim_0:hover path {
d: path("M 0 0 l 66 0 h 66 l 67 0 l 67 0 l 67 0 l 67 0 m 0 0 h 25 l 50 0 h 50 l 50 0 h 25 m 0 0 l 139 0 h 461 v 500 h -42 l -82 0 h -42 l -82 0 h -42 l -82 0 h -42 l -82 0 h -42 l -62 0 m 0 0 h -17 l -66 0 h -34 l -66 0 h -17 m 0 0 l -67 0 h -67 l -67 0 h -133 l -66 0 v -125 l 0 -125 v -125 l 0 -125");
}
#o_0:hover path {
d: path("M 1200 100 h 400 v 400 h -400 v -400 m 400 0 l 0 400 l -400 0 l 0 -400 l 400 0");
}
#t_1:hover path {
d: path("M 1725 0 h 150 l 125 0 l 0 125 v 75 l 0 75 v 75 l 0 75 v 75 h -275 l -125 0 v -125 l 0 -125 v -125 l 0 -125 l 125 0");
}
#h_0:hover path {
d: path("M 2000 0 h 133 l 134 0 h 133 l 0 125 v 375 h -57 l -114 0 h -58 l -114 0 h -57 v -500");
}
#y_0:hover path {
d: path("M 2400 100 h 80 l 80 0 h 80 l 80 0 h 80 v 500 h -400 v -100 l 0 -100 v -100 l 0 -100 v -100");
}
#c_0:hover path {
d: path("M 900 600 h 400 v 80 l 0 80 v 80 l 0 80 v 80 h -400 v -400");
}
#h_1:hover path {
d: path("M 1300 500 h 133 l 134 0 h 133 l 0 125 v 375 h -57 l -114 0 h -58 l -114 0 h -57 v -500");
}
#o_1:hover path {
d: path("M 1700 600 h 400 v 400 h -400 v -400 m 400 0 l 0 400 l -400 0 l 0 -400 l 400 0");
}
#i_1:hover path {
d: path("M 2100 500 h 200 v 125 m -200 125 l 0 -125 v -125 m 200 125 l 0 125 v 250 h -200 v -250");
}
/* -------------------------------- */
g {
transition: 0.8s;
}
@media (orientation: landscape) {
svg {
min-width: 100vw;
max-height: calc(100vh / 1032 * 2832);
}
}
@media (orientation: portrait) {
svg {
width: 100vw;
}
#tim_0 {
transform: scale(calc(2800 / 1600)) translate(0px, -512.5px);
}
#o_0,
#t_1,
#h_0,
#y_0 {
transform: scale(calc(2800 / 1600)) translate(-1200px, -12.5px);
}
#c_0,
#h_1,
#o_1,
#i_1 {
transform: scale(calc(2800 / 1600)) translate(-700px, 87.5px);
}
}
div.logo {
text-align: center;
padding: 0;
margin: 0;
font-size: 0;
}