Skip to content

Commit c35d4e6

Browse files
committed
style: improve documentation subsection (H3/H4) aesthetics
1 parent 6596f78 commit c35d4e6

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

site/templates/base.html

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,26 @@
453453
padding-bottom: 0.5rem;
454454
}
455455

456+
.doc-content h3 {
457+
font-size: 1.25rem;
458+
margin-top: 3.5rem;
459+
margin-bottom: 1.5rem;
460+
padding: 0.75rem 1rem;
461+
background: #fcfaf6;
462+
border-left: 4px solid var(--muted);
463+
border-radius: 0 8px 8px 0;
464+
color: var(--primary);
465+
font-weight: 800;
466+
}
467+
468+
.doc-content h4 {
469+
font-size: 1.1rem;
470+
margin-top: 2.5rem;
471+
margin-bottom: 1rem;
472+
font-weight: 700;
473+
color: var(--secondary);
474+
}
475+
456476
.doc-content p {
457477
margin-bottom: 1.5rem;
458478
color: var(--muted);
@@ -865,6 +885,11 @@
865885
background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
866886
}
867887

888+
[data-theme="dark"] .doc-content h3 {
889+
background: #1a1916;
890+
border-left-color: #475569;
891+
}
892+
868893
[data-theme="dark"] .doc-content code {
869894
background: transparent;
870895
}
@@ -1213,7 +1238,7 @@
12131238

12141239
{% if lang != "zh-cn" and lang != "zh-tw" %}
12151240
<div class="search-container">
1216-
<input type="text" id="search" class="search-input" placeholder="{{ trans(key="search-placeholder",
1241+
<input type="text" id="search" class="search-input" placeholder="{{ trans(key=" search-placeholder",
12171242
lang=lang) }}" autocomplete="off">
12181243
<div class="search-results" id="search-results"></div>
12191244
</div>

0 commit comments

Comments
 (0)