Skip to content

Commit a76777b

Browse files
authored
Content: Adjust horizontal spacing to improve readability + small UI touchups (#431)
1 parent 03e8a65 commit a76777b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

assets/css/v2/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ textarea:not([rows]) {
309309

310310
--header-height: 4rem;
311311

312-
--sidebar-width: min(24rem, 100%);
312+
--sidebar-width: min(22rem, 100%);
313313
--sidebar-item-padding-lr: 0.75rem;
314314
--sidebar-item-padding-tb: 0.25rem;
315315
--content-max-width: 88rem;
@@ -442,7 +442,7 @@ ol li:last-child {
442442
}
443443
}
444444
.content {
445-
padding: 0 var(--space-l) 2rem;
445+
padding: 0 var(--space-xl) 2rem;
446446
}
447447

448448
.header__logo-small {
@@ -749,7 +749,7 @@ ol li:last-child {
749749
background: oklch(var(--color-background));
750750
box-sizing: border-box;
751751
transform: translateX(0);
752-
padding: 0 0 var(--space-s) var(--space-s);
752+
padding-inline-start: var(--space-s);
753753

754754
.sidebar__container {
755755
display: flex;
@@ -1593,6 +1593,7 @@ nav.sidebar.sidebar__mobile-open {
15931593
transition:
15941594
background-color 0.2s ease,
15951595
color 0.2s ease;
1596+
text-wrap: wrap;
15961597

15971598
&:hover {
15981599
background-color: oklch(var(--color-brand) / 0.08);
@@ -1857,6 +1858,7 @@ a:hover {
18571858
display: flex;
18581859
flex-direction: row;
18591860
gap: 1rem;
1861+
word-break: break-word;
18601862
align-items: flex-start;
18611863
color: oklch(var(--color-brand));
18621864

layouts/partials/banner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{- if isset . "md" -}}
1111
<!-- Show markdown if "md" is provided -->
1212
{{- $bannerPage := readFile .md -}}
13-
<div class="banner{{ if .type }} banner-{{ .type }}{{ end }}" data-grid="first-two-thirds">
13+
<div class="banner{{ if .type }} banner-{{ .type }}{{ end }}">
1414
{{ $bannerPage | markdownify }}
1515
</div>
1616
{{- else -}}

0 commit comments

Comments
 (0)