修改下划线显示逻辑
我真不想写 desc。
This commit is contained in:
@@ -65,7 +65,7 @@ const placeholder = siteConfig.search.provider === 'pagefind' ? siteConfig.searc
|
|||||||
.navbar-search-container > .search-form {
|
.navbar-search-container > .search-form {
|
||||||
transform-origin: right center;
|
transform-origin: right center;
|
||||||
scale: 0 1;
|
scale: 0 1;
|
||||||
transition: scale 200ms ease-out, opacity 200ms ease-out;
|
transition: scale 200ms cubic-bezier(0, 0.55, 0.45, 1), opacity 200ms cubic-bezier(0, 0.55, 0.45, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-form input[type='search']::-webkit-search-cancel-button {
|
.search-form input[type='search']::-webkit-search-cancel-button {
|
||||||
|
|||||||
+18
-12
@@ -49,20 +49,26 @@
|
|||||||
font-size: 1.65rem;
|
font-size: 1.65rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose :where(h2, h3) {
|
.prose h2,
|
||||||
display: grid;
|
.prose h3 {
|
||||||
grid-template-columns: auto 1fr;
|
display: block !important;
|
||||||
column-gap: 0.6em;
|
width: fit-content;
|
||||||
align-items: center;
|
max-width: 100%;
|
||||||
|
padding-bottom: 0.08em;
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
transparent calc(100% - 0.3em),
|
||||||
|
color-mix(in srgb, var(--color-accent) 32%, transparent) calc(100% - 0.3em)
|
||||||
|
);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose :where(h2, h3)::before {
|
/* Remove the legacy heading marker even when an old stylesheet survives a PJAX swap. */
|
||||||
width: 4px;
|
.prose h2::before,
|
||||||
height: 1.05em;
|
.prose h3::before {
|
||||||
border-radius: 2px;
|
display: none !important;
|
||||||
background: var(--color-accent);
|
content: none !important;
|
||||||
transform: translateY(0.08em);
|
|
||||||
content: '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.prose :where(p, ul, ol, blockquote, pre, table) {
|
.prose :where(p, ul, ol, blockquote, pre, table) {
|
||||||
|
|||||||
@@ -276,6 +276,10 @@
|
|||||||
}
|
}
|
||||||
.prose .shortcode-tools-title {
|
.prose .shortcode-tools-title {
|
||||||
display: block;
|
display: block;
|
||||||
|
width: auto;
|
||||||
|
max-width: none;
|
||||||
|
padding-bottom: 0;
|
||||||
|
background: none;
|
||||||
}
|
}
|
||||||
.prose .shortcode-tools-title::before {
|
.prose .shortcode-tools-title::before {
|
||||||
content: none;
|
content: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user