Repository navigation
Expand file tree
/
Copy pathHero.css
More file actions
138 lines (118 loc) · 2.41 KB
/
Copy pathHero.css
File metadata and controls
138 lines (118 loc) · 2.41 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
.hero {
padding-top: clamp(2rem, 5vw, 4.5rem);
padding-bottom: calc(var(--section) / 2);
}
.hero__grid {
display: grid;
gap: 2.5rem;
align-items: center;
}
@media (min-width: 56rem) {
.hero__grid {
grid-template-columns: minmax(0, 1fr) auto;
gap: clamp(2rem, 5vw, 5rem);
}
}
.hero__sub {
margin-top: 1.5rem;
font-size: var(--step-1);
font-weight: 500;
line-height: 1.4;
}
.hero__also {
margin-top: 0.75rem;
color: var(--ink-soft);
}
.hero__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1rem 1.75rem;
margin-top: 2.25rem;
}
.hero__platforms-wrap {
margin-top: 1.5rem;
}
.hero__platform-label {
margin-bottom: 0.55rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.hero__platforms {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
}
.hero__platform {
display: flex;
align-items: center;
gap: 0.7rem;
min-width: 12.5rem;
padding: 0.55rem 0.8rem;
border: 3px solid var(--ink);
background: var(--paper);
box-shadow: 3px 3px 0 var(--ink);
}
.hero__platform img {
width: 2rem;
height: 2rem;
object-fit: contain;
}
.hero__platform span {
display: grid;
gap: 0.1rem;
}
.hero__platform small {
color: var(--ink-soft);
font-size: var(--step--1);
}
/* The ghost and the time it is keeping. */
.hero__ghost {
display: grid;
justify-items: center;
justify-self: center;
gap: 1rem;
}
.hero__timing {
display: grid;
justify-items: center;
gap: 0.15rem;
text-align: center;
}
.hero__clock {
font-size: 2.5rem;
line-height: 1;
font-variant-numeric: tabular-nums;
}
.hero__demo {
margin-top: clamp(3.5rem, 8vw, 6.5rem);
}
/* On a phone the ghost sits beside its clock, under the call to action. */
@media (max-width: 55.99rem) {
.hero__ghost {
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
justify-self: start;
gap: 0.5rem 1.25rem;
}
.hero__timing {
justify-items: start;
text-align: left;
}
}
.hero__kicker {
display: block;
width: fit-content;
margin-top: 1rem;
margin-bottom: 0.9rem;
padding: 0.15rem 0.6rem;
background: var(--mint-wash);
border-left: 4px solid var(--mint-deep);
font-size: 1.25rem;
}
/* A highlighter swipe behind the words the page is for. */
.hero__mark {
background: linear-gradient(transparent 58%, var(--mint-pale) 58%, var(--mint-pale) 92%, transparent 92%);
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}