Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
93 lines (82 loc) · 2.4 KB
/
Copy pathstyles.css
File metadata and controls
93 lines (82 loc) · 2.4 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
/* css styles */
/* Full-bleed hero banner (home page) */
body:has(.hero-banner) {
/* Lets the hero span the viewport without introducing horizontal scroll */
overflow-x: clip;
}
/* Keep the 100vw hero from widening the grid track the page content sits in */
body:has(.hero-banner) .quarto-about-jolla {
min-width: 0;
margin-top: 0;
}
body:has(.hero-banner) #quarto-content > * {
padding-top: 0;
}
/* The banner box itself stays the width of the content column, so it never
widens the page grid; the photo inside it is what spans the viewport. */
.hero-banner {
/* Where the pan starts, as an object-position offset. Short of 100% (the
photo's bottom edge) so the mountains sit below the logo rather than
cutting across it. The scroll handler in _hero.html reads this value. */
--hero-start: 84%;
position: relative;
height: clamp(300px, 46vw, 480px);
margin-top: -1.5rem;
margin-bottom: 2.5rem;
}
.hero-banner-img {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100vw;
height: 100%;
object-fit: cover;
/* The scroll handler in _hero.html pans this up towards 50% 0%. */
object-position: 50% var(--hero-start);
}
.hero-banner-inner {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1.25rem;
padding: 2rem 1.5rem;
text-align: center;
}
/* No scrim over the photo. The photo is almost entirely white snow and pale
sky, so the tagline is dark on light rather than the other way round. */
.hero-banner-logo {
width: min(420px, 78%);
height: auto;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.hero-banner-tagline {
margin: 0;
max-width: 46ch;
color: var(--eng-primary);
font-size: clamp(1.05rem, 1.9vw, 1.5rem);
font-weight: 400;
line-height: 1.35;
text-wrap: balance;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65),
0 0 16px rgba(255, 255, 255, 0.55);
}
/* A row of icon links at the bottom of a project card. */
.card-links a .bi {
/* Stops the link underline running through the leading icon. */
display: inline-block;
}
/* The logo in the banner stands in for the page title; keep the h1 for
screen readers and search engines, but hide it visually. */
body:has(.hero-banner) #title-block-header {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}