Skip to content

Commit 9cadcc4

Browse files
committed
style(docs): drop hero name text and enlarge headline under logo
1 parent 07cfcea commit 9cadcc4

2 files changed

Lines changed: 8 additions & 16 deletions

File tree

‎docs/.vitepress/theme/custom.css‎

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
--vp-c-brand-2: #3a3a3a;
2828
--vp-c-brand-3: #111111;
2929
--vp-c-brand-soft: rgba(17, 17, 17, 0.08);
30-
31-
--vp-home-hero-name-color: transparent;
32-
--vp-home-hero-name-background: linear-gradient(120deg, #111111 30%, #8a8a8a);
3330
}
3431

3532
.dark {
@@ -42,8 +39,6 @@
4239
--vp-button-brand-text: #111111;
4340
--vp-button-brand-hover-text: #111111;
4441
--vp-button-brand-active-text: #111111;
45-
46-
--vp-home-hero-name-background: linear-gradient(120deg, #ffffff 30%, #8a8a8a);
4742
}
4843

4944
/* Tooltips from markdown-it-glossary render as plain <abbr title>. Make them discoverable. */
@@ -76,22 +71,13 @@ abbr[title] {
7671

7772
/* Wordmark and titles: Film Noir. */
7873
.VPNavBarTitle .title,
79-
.VPHero .name,
8074
.vp-doc h1 {
8175
font-family: var(--bn-font-display);
8276
font-weight: 400;
8377
letter-spacing: 0.06em;
8478
text-transform: uppercase;
8579
}
8680

87-
.VPHero .name {
88-
font-size: clamp(48px, 7vw, 72px);
89-
/* Film Noir is tall; a roomy line box keeps the gradient text from clipping. */
90-
line-height: 1.3;
91-
padding-block: 4px;
92-
letter-spacing: 0.08em;
93-
}
94-
9581
.vp-doc h1 {
9682
letter-spacing: 0.05em;
9783
}
@@ -115,6 +101,9 @@ abbr[title] {
115101
}
116102

117103
.VPHero .text {
104+
/* The logo is the brand, so the headline carries the hero. */
105+
font-size: clamp(36px, 5vw, 52px);
106+
line-height: 1.15;
118107
letter-spacing: -0.01em;
119108
}
120109

@@ -139,6 +128,7 @@ abbr[title] {
139128

140129
.VPHero .image {
141130
margin: 0 0 24px;
131+
width: 100%;
142132
}
143133

144134
@media (min-width: 640px) {
@@ -150,6 +140,7 @@ abbr[title] {
150140
@media (min-width: 960px) {
151141
.VPHero .image {
152142
margin: 0;
143+
width: auto;
153144
}
154145
}
155146

@@ -159,7 +150,9 @@ abbr[title] {
159150
height: auto;
160151
/* VitePress pulls the image up with negative margins on small screens, which
161152
slid the logo under the navbar and over the title. */
162-
margin: 0;
153+
margin: 0 auto;
154+
/* Fixed width in VitePress on small screens; let it span so the logo centers. */
155+
width: 100%;
163156
padding-block: 24px;
164157
}
165158

‎docs/index.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ layout: home
33
title: BinaryNoir
44

55
hero:
6-
name: BinaryNoir
76
text: Quiet, sharp tools for developers
87
tagline: Open-source VitePress plugins, Vite plugins and command-line apps. This site is the hub for all of them, and it is built with the plugins it documents.
98
image:

0 commit comments

Comments
 (0)