Files
LinuxMirrors/docs/stylesheets/extra.css

115 lines
2.3 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
2023-12-30 00:07:34 +08:00
.md-header {
background-color: hsla(240, 9%, 75%, 0.33);
2024-10-24 20:00:48 +08:00
backdrop-filter: blur(8px);
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
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
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
.md-nav__sponsor-bottom {
margin-top: 2rem;
padding-top: 1rem;
border-top: 1px solid var(--md-default-fg-color--lightest);
}
.md-nav__sponsor-bottom .sponsor-label {
font-size: 0.8rem;
text-align: center;
margin-bottom: 0.2rem;
color: var(--md-default-fg-color);
}
.md-nav__sponsor-bottom .sponsor-wrapper {
width: 100%;
padding: 0.5rem 0;
}
.md-nav__sponsor-bottom .sponsor-item {
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;
}
.md-nav__sponsor-bottom .sponsor-item:hover {
background-color: var(--md-code-bg-color);
}
.md-nav__sponsor-bottom .sponsor-item img {
max-width: 100%;
height: auto;
vertical-align: middle;
}
@media screen and (max-width: 768px) {
.md-nav__sponsor-bottom {
display: none;
}
}