Repository navigation
Expand file tree
/
Copy pathui-hero-compact.css
More file actions
121 lines (113 loc) · 2.16 KB
/
Copy pathui-hero-compact.css
File metadata and controls
121 lines (113 loc) · 2.16 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
/* Compact hero layout: prioritize getting into practice quickly. */
.hero__content {
width: min(1280px, calc(100% - 48px));
padding: 34px 0 32px;
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
grid-template-areas:
"company company"
"title lead"
"title meta";
column-gap: 58px;
row-gap: 12px;
align-items: center;
text-align: left;
}
.hero__company {
grid-area: company;
margin: 0 0 2px;
font-size: 15px;
line-height: 1.45;
}
.hero h1 {
grid-area: title;
margin: 0;
max-width: 760px;
font-size: clamp(36px, 3.25vw, 52px);
line-height: 1.18;
letter-spacing: -.038em;
text-wrap: balance;
}
.hero__lead {
grid-area: lead;
max-width: 600px;
margin: 0;
font-size: 17px;
line-height: 1.7;
}
.hero__meta {
grid-area: meta;
justify-content: flex-start;
gap: 7px 15px;
margin-top: 2px;
font-size: 13px;
line-height: 1.5;
}
.hero__meta span + span::before {
margin-right: 15px;
}
/* Keep the training controls visually close to the compact hero. */
.study-tools-wrap {
margin-top: 18px;
}
@media (max-width: 1050px) {
.hero__content {
width: min(980px, calc(100% - 40px));
grid-template-columns: 1fr;
grid-template-areas:
"company"
"title"
"lead"
"meta";
gap: 10px;
padding: 30px 0 28px;
text-align: center;
}
.hero h1 {
max-width: 900px;
margin: 0 auto;
font-size: clamp(34px, 5vw, 48px);
}
.hero__lead {
max-width: 820px;
margin: 2px auto 0;
}
.hero__meta {
justify-content: center;
margin-top: 4px;
}
}
@media (max-width: 720px) {
.hero__content {
width: min(100% - 28px, 980px);
padding: 24px 0 22px;
text-align: left;
gap: 8px;
}
.hero__company {
font-size: 13px;
}
.hero h1 {
margin: 0;
font-size: 32px;
line-height: 1.2;
text-wrap: pretty;
}
.hero__lead {
margin: 2px 0 0;
font-size: 15px;
line-height: 1.65;
}
.hero__meta {
justify-content: flex-start;
gap: 5px 11px;
margin-top: 4px;
font-size: 12px;
}
.hero__meta span + span::before {
margin-right: 11px;
}
.study-tools-wrap {
margin-top: 14px;
}
}