Files
LinuxMirrors/docs/stylesheets/extra.css

227 lines
4.5 KiB
CSS
Raw Normal View History

2023-05-03 22:50:12 +08:00
:root {
2024-12-14 17:29:50 +08:00
--md-text-font: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Segoe UI', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
--md-code-font: 'SF Mono';
2023-06-06 13:53:36 +08:00
--md-primary-fg-color--light: hsl(0, 0%, 100%, 0.33);
2023-12-30 00:07:34 +08:00
--md-default-bg-color--light: #ffffff;
2024-12-14 17:29:50 +08:00
--md-default-bg-color--dark: hsla(var(--md-hue), 15%, 14%, 1);
2023-05-03 22:50:12 +08:00
}
2024-12-14 17:29:50 +08:00
2025-04-08 02:28:46 +08:00
[data-md-color-primary=white] {
--md-typeset-a-color: #2080f0;
}
[data-md-color-scheme='slate'][data-md-color-primary=black] {
--md-typeset-a-color: #2080f0;
}
.md-typeset .admonition.tip, .md-typeset details.tip {
border-color: #009400;
}
.md-typeset .tip>.admonition-title, .md-typeset .tip>summary {
background-color: #0094001a;
}
2023-12-30 00:07:34 +08:00
.md-header {
background-color: hsla(240, 9%, 75%, 0.33);
2025-04-04 13:15:39 +08:00
-webkit-backdrop-filter: blur(8px);
2024-10-24 20:00:48 +08:00
backdrop-filter: blur(8px);
2025-03-28 18:43:22 +08:00
z-index: 999 !important;
2023-05-09 20:09:38 +08:00
}
2024-12-14 17:29:50 +08:00
2023-05-09 20:09:38 +08:00
[data-md-color-scheme='slate'] .md-header {
2024-12-24 16:05:35 +08:00
background-color: hsla(var(--md-hue), 15%, 9%, 0.33);
2023-05-09 20:09:38 +08:00
}
2024-12-14 17:29:50 +08:00
2023-12-30 00:07:34 +08:00
.md-tabs {
background-color: hsla(240, 9%, 75%, 0.33);
}
2024-12-14 17:29:50 +08:00
2023-05-09 20:09:38 +08:00
[data-md-color-scheme='slate'] .md-tabs {
2024-12-24 16:05:35 +08:00
background-color: hsla(var(--md-hue), 15%, 9%, 0.33);
2023-05-09 20:09:38 +08:00
}
2024-12-14 17:29:50 +08:00
2025-04-01 12:14:41 +08:00
[data-md-color-scheme="default"] .md-logo img {
content: url(/assets/images/brand/svg/logo-light.svg);
}
2025-04-04 13:15:39 +08:00
2025-04-01 12:14:41 +08:00
[data-md-color-scheme="slate"] .md-logo img {
content: url(/assets/images/brand/svg/logo-dark.svg);
}
2025-04-05 17:21:37 +08:00
[data-md-color-scheme="slate"] .md-typeset .admonition.quote, .md-typeset details.quote {
border-color: hsla(225deg,15%,90%,0.24);
}
2023-05-03 22:50:12 +08:00
@font-face {
2024-12-14 17:29:50 +08:00
font-family: 'SF Mono';
2023-05-03 22:50:12 +08:00
src: url('./fonts/SF-Mono-Regular.otf');
}
2024-12-14 17:29:50 +08:00
2023-05-09 20:09:38 +08:00
@keyframes heart {
2024-12-14 17:29:50 +08:00
2023-05-09 20:09:38 +08:00
0%,
40%,
80%,
100% {
transform: scale(1);
}
2024-12-14 17:29:50 +08:00
2023-05-09 20:09:38 +08:00
20%,
60% {
transform: scale(1.15);
}
}
2024-12-14 17:29:50 +08:00
2025-01-04 19:20:15 +08:00
.home-cmd pre>code {
padding-right: 3em;
}
2023-05-09 20:09:38 +08:00
.heart {
animation: heart 1000ms infinite;
}
2024-12-14 17:29:50 +08:00
2023-06-06 13:53:36 +08:00
.md-tabs__link {
2024-12-14 17:29:50 +08:00
font-size: 0.8rem !important;
2023-06-06 13:53:36 +08:00
font-weight: 600 !important;
}
2024-12-14 17:29:50 +08:00
2023-06-24 11:06:30 +08:00
.md-typeset {
font-size: 16px;
}
2024-12-14 17:29:50 +08:00
.md-typeset .emojione,
.md-typeset .gemoji,
.md-typeset .twemoji {
2024-10-24 20:00:48 +08:00
height: 100%;
2024-10-24 12:58:52 +08:00
vertical-align: -0.2em !important;
}
2024-12-14 17:29:50 +08:00
2024-10-24 20:00:48 +08:00
.md-typeset .middle {
vertical-align: -0.35em !important;
}
2024-12-14 17:29:50 +08:00
2025-04-08 02:28:46 +08:00
.sponsor {
2024-12-14 17:29:50 +08:00
margin-top: 2rem;
padding-top: 1rem;
border-top: 1px solid var(--md-default-fg-color--lightest);
}
2025-04-08 02:28:46 +08:00
.sponsor .sponsor-label {
2024-12-14 17:29:50 +08:00
font-size: 0.8rem;
text-align: center;
margin-bottom: 0.2rem;
color: var(--md-default-fg-color);
}
2025-04-08 02:28:46 +08:00
.sponsor .sponsor-wrapper {
2024-12-14 17:29:50 +08:00
width: 100%;
padding: 0.5rem 0;
}
2025-04-08 02:28:46 +08:00
.sponsor .sponsor-item {
2024-12-14 17:29:50 +08:00
display: flex;
align-items: center;
justify-content: center;
width: 100%;
text-align: center;
padding: 1rem;
border-radius: 5px;
transition: background-color 0.2s;
height: 80px;
max-height: 80px;
}
2025-04-08 02:28:46 +08:00
.sponsor .sponsor-item:hover {
2024-12-14 17:29:50 +08:00
background-color: var(--md-code-bg-color);
}
2025-04-08 02:28:46 +08:00
.sponsor .sponsor-item img {
2024-12-14 17:29:50 +08:00
max-width: 100%;
height: auto;
vertical-align: middle;
}
2025-01-04 19:20:15 +08:00
.sponsor-flex-wrapper {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
}
.sponsor-flex-item {
flex: 0 1 calc(33.33% - 1rem);
min-width: 200px;
max-width: 300px;
}
2025-04-08 02:28:46 +08:00
@media screen and (max-width: 768px) {
2025-01-04 19:20:15 +08:00
.sponsor-flex-item {
flex: 0 1 calc(50% - 1rem);
2025-04-08 02:28:46 +08:00
min-width: 150px;
max-width: calc(50% - 1rem);
}
}
@media screen and (max-width: 480px) {
.sponsor .sponsor-item {
padding: 0;
height: 40px;
2025-01-04 19:20:15 +08:00
}
}
2024-12-14 17:29:50 +08:00
@media screen and (max-width: 768px) {
2025-04-08 02:28:46 +08:00
.sponsor-toc {
2024-12-14 17:29:50 +08:00
display: none;
}
2025-01-04 19:20:15 +08:00
}
2025-03-28 18:43:22 +08:00
2025-04-04 13:15:39 +08:00
/* TDesign 组件相关 */
2025-03-28 18:43:22 +08:00
.t-tag .t-icon {
margin-right: 0 !important;
}
[theme-mode="dark"] .t-table {
--td-bg-color-container: hsla(var(--md-hue), 15%, 14%, 1) !important;
--td-component-border: hsla(225deg, 15%, 95%, 0.12) !important;
}
[theme-mode="dark"] .t-tag {
--td-warning-color-light: #cf6e2d48 !important;
}
.t-table--hoverable tbody tr:hover {
background-color: rgba(0, 0, 0, 0.016) !important;
}
[theme-mode="dark"] .t-table--hoverable tbody tr:hover {
background-color: rgba(240, 241, 244, 0.016) !important;
}
2025-04-04 13:15:39 +08:00
/* termynal 插件 */
.termy {
padding: 65px 25px 35px !important;
}
/* 切换主题动画 */
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
mix-blend-mode: normal;
}
.dark::view-transition-old(root) {
z-index: 999;
}
.dark::view-transition-new(root) {
z-index: 1;
}
/* 浅色主题下的设置 */
::view-transition-old(root) {
z-index: 1;
}
::view-transition-new(root) {
z-index: 999;
}