Skip to content

Commit a949a73

Browse files
authored
fix: visual touch-ups (#23012)
- **increase h2 mt** - **tabs: remove rounded border** - **fix page action icons** - **increase article width** - **reduce breadcrumb font size**
1 parent f3123f0 commit a949a73

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

assets/css/components.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@
110110
}
111111

112112
.tab-item {
113-
@apply inline-block rounded-sm px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-900;
113+
@apply inline-block rounded-t-sm px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-900;
114114
@apply dark:text-gray-200;
115115
}

assets/css/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ input[type="search"]::-ms-clear {
4949
margin-bottom: 0.4em !important;
5050
}
5151
> h2 {
52-
@apply mt-5! mb-3!;
52+
@apply mt-7! mb-3!;
5353
font-size: 160% !important;
5454
a {
5555
@apply hover:no-underline!;

assets/css/utilities.css

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
@utility icon-svg {
2-
svg {
3-
font-size: 24px;
4-
width: 1em;
5-
height: 1em;
6-
display: inline-block;
7-
fill: currentColor;
8-
}
9-
}
10-
111
@utility icon-xs {
122
svg {
133
font-size: 12px;
@@ -91,6 +81,15 @@
9181
fill: currentColor;
9282
}
9383
}
84+
@utility icon-svg-stroke {
85+
svg {
86+
font-size: 24px;
87+
width: 1em;
88+
height: 1em;
89+
display: inline-block;
90+
stroke: currentColor;
91+
}
92+
}
9493

9594
@utility icon-xs {
9695
svg {
@@ -257,3 +256,7 @@
257256
@utility pagination-link {
258257
@apply flex items-center justify-center rounded-sm p-2;
259258
}
259+
260+
@utility breadcrumbs {
261+
font-size: 90%;
262+
}

layouts/partials/breadcrumbs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
id="breadcrumbs"
33
{{- $breadcrumbTitles := slice }}
44
data-pagefind-ignore
5-
class="mb-4 flex min-w-0 items-center gap-2 text-gray-400 dark:text-gray-300"
5+
class="breadcrumbs mb-4 flex min-w-0 items-center gap-2 text-gray-400 dark:text-gray-300"
66
>
77
{{ range .Ancestors.Reverse }}
88
{{ $breadcrumbTitles = $breadcrumbTitles | append .LinkTitle }}

layouts/partials/content-default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1 data-pagefind-weight="10">{{ .Title }}</h1>
1313
</div>
1414
{{ .Content }}
1515
</article>
16-
<div class="-mt-8 -mr-8 hidden min-w-52 flex-1 lg:block">
16+
<div class="-mt-8 -mr-20 hidden min-w-48 flex-1 lg:block">
1717
{{ partial "aside.html" . }}
1818
</div>
1919
</div>

layouts/partials/github-links.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ with .File }}
88
{{ if not (in .Filename "/_vendor/") }}
99
<p class="flex items-center gap-1">
10-
<span class="icon-svg icon-sm">
10+
<span class="icon-svg-stroke icon-sm">
1111
{{ partial "utils/svg.html" "theme/icons/edit.svg" }}
1212
</span>
1313
<a class="link" rel="noopener"
@@ -16,7 +16,7 @@
1616
{{ end }}
1717
{{ end }}
1818
<p class="flex items-center gap-1">
19-
<span class="icon-svg icon-sm">
19+
<span class="icon-svg-stroke icon-sm">
2020
{{ partial "utils/svg.html" "theme/icons/issue.svg" }}
2121
</span>
2222
<a class="link" rel="noopener"

layouts/partials/md-dropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<details id="markdownDropdown" class="group relative z-10 inline-block" data-heap-id="markdown-dropdown">
1+
<details id="markdownDropdown" class="ml-3 group relative z-10 inline-block" data-heap-id="markdown-dropdown">
22
<summary
33
class="inline-flex cursor-pointer items-center gap-0 rounded-sm border border-gray-600 bg-white py-1 pl-2
44
text-base font-semibold text-gray-600 transition-colors hover:bg-gray-50 dark:border-gray-50 dark:bg-gray-950 dark:text-gray-100 dark:hover:bg-gray-900"

0 commit comments

Comments
 (0)