mirror of
https://github.com/ZSCNetSupportDept/website.git
synced 2025-10-29 01:15:04 +08:00
更改了渲染markdown文档时h2的样式,使得这些元素显眼一点了
This commit is contained in:
@@ -28,3 +28,22 @@
|
|||||||
--ifm-color-primary-lightest: #4fddbf;
|
--ifm-color-primary-lightest: #4fddbf;
|
||||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown h2 {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 16px;
|
||||||
|
border-left: 6px solid var(--ifm-color-primary);
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 32px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: linear-gradient(to right, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0));
|
||||||
|
display: inline-block;
|
||||||
|
max-width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
html[data-theme='dark'] .markdown h2 {
|
||||||
|
background: linear-gradient(to right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
|
||||||
|
border-left-color: var(--ifm-color-primary-light);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user