mirror of
https://github.com/Wcowin/Mkdocs-Wcowin.git
synced 2025-07-20 08:56:35 +00:00
70 lines
1.7 KiB
CSS
70 lines
1.7 KiB
CSS
:root {
|
|
--admonition-border-left-width: 0.2rem;
|
|
--base-border-radius: 0.5rem;
|
|
--card-hover-shadow: 0 0 0.2rem #ffffff40;
|
|
}
|
|
|
|
/* 卡片圆角与悬浮阴影 */
|
|
.md-typeset .grid.cards > ul > li,
|
|
.md-typeset .md-button,
|
|
.md-typeset table:not([class]) {
|
|
border-radius: var(--base-border-radius);
|
|
}
|
|
.md-typeset .grid.cards > ul > li:hover {
|
|
box-shadow: var(--card-hover-shadow);
|
|
}
|
|
|
|
/* 页脚社交图标高度 */
|
|
.md-social__link svg {
|
|
max-height: 1rem;
|
|
}
|
|
|
|
/* 搜索框及下拉结果圆角 */
|
|
.md-search__form,
|
|
[data-md-toggle="search"]:checked ~ .md-header .md-search__form,
|
|
[dir="ltr"] .md-search__output {
|
|
border-radius: var(--base-border-radius);
|
|
}
|
|
|
|
/* 可选:如需恢复代码块、警告框等样式,取消注释即可 */
|
|
/*
|
|
.highlight span.filename {
|
|
border-bottom: none;
|
|
border-radius: var(--base-border-radius);
|
|
display: inline;
|
|
font-family: var(--md-code-font-family);
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
margin-bottom: 5px;
|
|
text-align: center;
|
|
}
|
|
.highlight span.filename + pre > code,
|
|
.md-typeset pre > code {
|
|
border-radius: var(--base-border-radius);
|
|
border-top-left-radius: 0;
|
|
}
|
|
.md-typeset .admonition {
|
|
border-width: 0px;
|
|
border-left-width: var(--admonition-border-left-width);
|
|
}
|
|
[dir="ltr"] .md-typeset blockquote {
|
|
border-radius: 0.2rem;
|
|
border-left-width: var(--admonition-border-left-width);
|
|
}
|
|
*/
|
|
|
|
/* 可选:博客相关样式,按需启用 */
|
|
/*
|
|
.md-post--excerpt {
|
|
background-color: var(--md-accent-fg-color--transparent);
|
|
box-shadow: 0 0 0 1rem var(--md-accent-fg-color--transparent);
|
|
border-radius: var(--base-border-radius);
|
|
}
|
|
.md-post--excerpt .md-post__header {
|
|
justify-content: left;
|
|
}
|
|
.md-post--excerpt .md-post__content > h2,
|
|
.md-post__action {
|
|
text-align: left;
|
|
}
|
|
*/ |