Skip to content

Commit 9a489c1

Browse files
authored
Merge pull request #8 from jonfinger/codex/homepage-title-social-icons
Hide homepage title block and improve social icon readability
2 parents 02aa501 + b468b80 commit 9a489c1

2 files changed

Lines changed: 56 additions & 3 deletions

File tree

859 KB
Loading

styles.css

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,34 @@ blockquote {
282282
}
283283

284284
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link {
285+
display: inline-flex;
286+
align-items: center;
287+
justify-content: center;
285288
margin-right: 0;
289+
min-width: 2.16rem;
290+
min-height: 2.16rem;
286291
border: 2px solid rgba(240, 235, 255, 0.64);
287292
border-radius: 4px;
288-
padding: 0.34rem 0.56rem;
293+
padding: 0.42rem;
294+
font-size: 0.92rem;
295+
line-height: 1;
289296
background: rgba(18, 16, 36, 0.9);
290-
box-shadow: 2px 2px 0 0 rgba(13, 11, 25, 0.95);
297+
box-shadow: 2px 2px 0 0 rgba(13, 11, 25, 0.95), 0 0 0 1px rgba(240, 235, 255, 0.18) inset;
298+
transition:
299+
transform var(--dur-fast) var(--ease-main),
300+
box-shadow var(--dur-fast) var(--ease-main),
301+
border-color var(--dur-fast) var(--ease-main),
302+
background-color var(--dur-fast) var(--ease-main);
303+
}
304+
305+
#quarto-header .navbar-collapse > .navbar-nav:last-of-type {
306+
gap: 0.42rem;
307+
}
308+
309+
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link i {
310+
font-size: 1em;
311+
line-height: 1;
312+
color: var(--text-strong);
291313
}
292314

293315
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link::before {
@@ -301,7 +323,20 @@ blockquote {
301323

302324
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link:hover {
303325
transform: translate(-1px, -1px);
304-
box-shadow: 3px 3px 0 0 rgba(13, 11, 25, 0.95);
326+
border-color: rgba(255, 255, 255, 0.95);
327+
background: rgba(32, 28, 58, 0.98);
328+
box-shadow: 3px 3px 0 0 rgba(13, 11, 25, 0.95), 0 0 14px -5px rgba(240, 235, 255, 0.8);
329+
}
330+
331+
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link:focus-visible {
332+
outline: 2px solid rgba(240, 235, 255, 0.95);
333+
outline-offset: 2px;
334+
border-color: rgba(255, 255, 255, 0.95);
335+
}
336+
337+
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link:active {
338+
transform: translate(0, 0);
339+
box-shadow: 1px 1px 0 0 rgba(13, 11, 25, 0.95), 0 0 0 1px rgba(240, 235, 255, 0.2) inset;
305340
}
306341

307342
#quarto-header .navbar-toggler {
@@ -367,6 +402,10 @@ main.content > * {
367402
margin-bottom: 1rem;
368403
}
369404

405+
.page-projects #title-block-header.quarto-title-block {
406+
display: none;
407+
}
408+
370409
.quarto-title-meta {
371410
color: var(--text-dim);
372411
font-size: 0.38rem;
@@ -814,6 +853,20 @@ footer {
814853
font-size: 0.44rem;
815854
}
816855

856+
#quarto-header .navbar-collapse > .navbar-nav:last-of-type {
857+
flex-direction: row;
858+
gap: 0.34rem;
859+
margin-top: 0.28rem;
860+
}
861+
862+
#quarto-header .navbar-collapse > .navbar-nav:last-of-type .nav-link {
863+
margin-bottom: 0;
864+
min-width: 2.08rem;
865+
min-height: 2.08rem;
866+
padding: 0.38rem;
867+
font-size: 0.86rem;
868+
}
869+
817870
#quarto-header .navbar-brand {
818871
font-size: 0.48rem;
819872
}

0 commit comments

Comments
 (0)