-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
159 lines (138 loc) · 3.13 KB
/
Copy pathstyle.css
File metadata and controls
159 lines (138 loc) · 3.13 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
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
* {
margin: 0;
padding: 0;
}
body {
font-size: 150%;
font-family: 'Helvetica Neue', sans-serif;
background: black;
}
html,
body {
height: 100%;
overflow-x: hidden;
}
img {
height: 4em;
width: auto;
}
.hallmarks>a {
color: #fff;
border: 0.25em solid transparent;
text-decoration: none;
display: block;
padding: 5vmin;
opacity: 0;
transform: scale(0.01);
animation: hallmark-reveal 1400ms ease-in-out forwards;
overflow: hidden;
filter: hue-rotate(calc(var(--i, 0) * 30deg));
animation-delay: calc(var(--i, 0) * 120ms);
}
.hallmarks>a:nth-child(1) { --i: 0; }
.hallmarks>a:nth-child(2) { --i: 1; }
.hallmarks>a:nth-child(3) { --i: 2; }
.hallmarks>a:nth-child(4) { --i: 3; }
.hallmarks>a:nth-child(5) { --i: 4; }
.hallmarks>a:nth-child(6) { --i: 5; }
.hallmarks>a:nth-child(7) { --i: 6; }
.hallmarks>a:nth-child(8) { --i: 7; }
.hallmarks>a:nth-child(9) { --i: 8; }
.hallmarks>a:nth-child(10) { --i: 9; }
.hallmarks>a:nth-child(11) { --i: 10; }
.hallmarks>a:nth-child(12) { --i: 11; }
.hallmarks>a:nth-child(13) { --i: 12; }
@keyframes hallmark-reveal {
0% {
opacity: 0;
transform: scale(0.01);
border-radius: 1em;
}
70% {
opacity: 1;
transform: scale(1.1);
border-radius: 1em;
}
100% {
opacity: 1;
transform: scale(1);
border-radius: 0;
}
}
@keyframes hallmarks-brighten {
from { filter: brightness(0%); }
to { filter: brightness(100%); }
}
.hallmarks>a:nth-child(even) {
background-color: #621360;
color: contrast-color(#621360);
}
.hallmarks>a:nth-child(odd) {
background-color: #00a0ff;
color: contrast-color(#00a0ff);
}
#intro {
grid-area: i;
}
#port {
grid-area: p;
display: flex;
align-items: center;
}
#hallmark {
grid-area: h;
}
#hallmark, #port, #intro {
background: #621360;
color: contrast-color(#621360);
}
/* Default layout for low res */
.hallmarks {
display: grid;
animation: hallmarks-brighten 2s ease-in-out forwards;
grid-template-areas: " h " " i " " . " " . " " . " " . " " . " " . " " . " " . " " . " " . " " . " " p ";
grid-template-columns: 1fr;
grid-template-rows: repeat(10, auto);
min-height: 100vh;
}
/* Wider screens go to 2 columns */
@media (min-width: 700px) {
img {
width: 100%;
}
.hallmarks {
grid-template-columns: 1fr 1fr;
grid-template-rows: auto 1fr 1fr 1fr;
grid-template-areas: " p h " " i . " " . . " " . . " " . . " " . . " " . . ";
}
.hallmarks>a {
padding: 2vmin;
}
}
@media (min-width: 700px) and (max-width:1024px) {
.hallmarks>a:nth-child(4n-1) {
background-color: #621360;
color: contrast-color(#621360);
}
.hallmarks>a:nth-child(4n-2) {
background-color: #00a0ff;
color: contrast-color(#00a0ff);
}
}
/* Beyond 1024 there's room for a 4 column grid */
@media (min-width: 1024px) {
.hallmarks {
font-size: 2.2vmin;
line-height: 3vmin;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: auto 1fr 1fr 1fr;
grid-template-areas: " i i h h " " . . . . " " . . . . " " . . . p ";
height: 100vh;
min-height: auto;
overflow: hidden;
}
}
.hallmarks>a:target {
z-index: 10;
border: 0.25em solid white;
}