夜间模式
This commit is contained in:
+634
-13
@@ -15,6 +15,18 @@
|
||||
--narrow-width: 1000px;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
--bg: #0f171a;
|
||||
--surface: #162225;
|
||||
--text: #e9f0ee;
|
||||
--muted: #a7b4b1;
|
||||
--line: rgba(174, 205, 197, 0.18);
|
||||
--accent: #72ded2;
|
||||
--accent-strong: #9af0d6;
|
||||
--shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -29,6 +41,15 @@ body {
|
||||
background:
|
||||
linear-gradient(rgba(247, 245, 239, 0.86), rgba(247, 245, 239, 0.95)),
|
||||
url('/images/background.png') center top / cover fixed;
|
||||
transition:
|
||||
color 0.22s ease,
|
||||
background-color 0.22s ease;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] body {
|
||||
background:
|
||||
linear-gradient(rgba(8, 13, 16, 0.86), rgba(10, 17, 20, 0.94)),
|
||||
url('/images/background.png') center top / cover fixed;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -49,9 +70,9 @@ a {
|
||||
min-height: 58px;
|
||||
margin: 0 auto;
|
||||
padding: 0 18px;
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, 0.56);
|
||||
@@ -109,8 +130,18 @@ a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.nav-links a,
|
||||
.nav-search {
|
||||
.nav-random,
|
||||
.nav-search,
|
||||
.theme-toggle {
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
padding: 7px 12px;
|
||||
@@ -122,7 +153,9 @@ a {
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-search {
|
||||
.nav-search,
|
||||
.nav-random,
|
||||
.theme-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
@@ -133,7 +166,9 @@ a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-search svg {
|
||||
.nav-search svg,
|
||||
.nav-random svg,
|
||||
.theme-toggle svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
fill: none;
|
||||
@@ -143,15 +178,31 @@ a {
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
justify-content: center;
|
||||
width: 38px;
|
||||
min-height: 38px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:root:not([data-theme='dark']) .theme-toggle-sun,
|
||||
:root[data-theme='dark'] .theme-toggle-moon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-random:hover,
|
||||
.nav-search:hover,
|
||||
.theme-toggle:hover,
|
||||
.site-footer a:hover,
|
||||
.section-heading a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-search:hover {
|
||||
.nav-random:hover,
|
||||
.nav-search:hover,
|
||||
.theme-toggle:hover {
|
||||
border-color: rgba(255, 255, 255, 0.62);
|
||||
background: rgba(255, 255, 255, 0.38);
|
||||
box-shadow:
|
||||
@@ -160,6 +211,38 @@ a {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .nav {
|
||||
border-color: rgba(174, 205, 197, 0.2);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(29, 47, 51, 0.78), rgba(14, 23, 27, 0.54)),
|
||||
rgba(12, 19, 22, 0.62);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
inset 0 -18px 38px rgba(0, 0, 0, 0.18),
|
||||
0 18px 54px rgba(0, 0, 0, 0.34);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .nav::before {
|
||||
background:
|
||||
radial-gradient(circle at 18% 0%, rgba(114, 222, 210, 0.18), transparent 32%),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(114, 222, 210, 0.1));
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .nav::after {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .nav-links a:hover,
|
||||
:root[data-theme='dark'] .nav-random:hover,
|
||||
:root[data-theme='dark'] .nav-search:hover,
|
||||
:root[data-theme='dark'] .theme-toggle:hover {
|
||||
border-color: rgba(114, 222, 210, 0.26);
|
||||
background: rgba(114, 222, 210, 0.12);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
0 8px 18px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.hero {
|
||||
width: min(var(--wide-width), calc(100% - (var(--page-gutter) * 2)));
|
||||
min-height: 360px;
|
||||
@@ -329,7 +412,9 @@ a {
|
||||
}
|
||||
|
||||
.home-sidebar {
|
||||
align-self: stretch;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@@ -337,6 +422,7 @@ a {
|
||||
position: sticky;
|
||||
top: 84px;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@@ -630,10 +716,21 @@ a {
|
||||
}
|
||||
|
||||
.article-sidebar {
|
||||
align-self: stretch;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.article-sticky-sidebar {
|
||||
position: sticky;
|
||||
top: 90px;
|
||||
display: grid;
|
||||
max-height: calc(100vh - 110px);
|
||||
align-content: start;
|
||||
gap: 20px;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.article-author-card {
|
||||
@@ -1263,8 +1360,10 @@ time {
|
||||
|
||||
.prose .code-block pre {
|
||||
max-height: none;
|
||||
padding: 46px 18px 18px;
|
||||
padding: 44px 18px 18px;
|
||||
background: transparent;
|
||||
white-space: normal !important;
|
||||
word-wrap: normal !important;
|
||||
transition: max-height 0.24s ease;
|
||||
}
|
||||
|
||||
@@ -1290,16 +1389,63 @@ time {
|
||||
|
||||
.prose .code-block code {
|
||||
color: #e8edf2;
|
||||
line-height: 1.65;
|
||||
line-height: 1.42;
|
||||
}
|
||||
|
||||
.code-block-header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
min-height: 42px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
padding: 8px 10px 8px 16px;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.code-block-language {
|
||||
overflow: hidden;
|
||||
color: rgba(232, 237, 242, 0.72);
|
||||
font-family: "JetBrains Mono", Consolas, monospace;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0;
|
||||
text-overflow: ellipsis;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.code-block-toolbar {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
gap: 8px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.prose .code-block.has-line-numbers code > .line {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-height: 1.42em;
|
||||
padding-left: calc(var(--line-number-width, 3ch) + 16px);
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.prose .code-block.has-line-numbers code > .line::before {
|
||||
content: attr(data-line);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: var(--line-number-width, 3ch);
|
||||
color: rgba(232, 237, 242, 0.34);
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: right;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.code-block-copy,
|
||||
@@ -1805,6 +1951,298 @@ time {
|
||||
background: rgba(255, 253, 248, 0.9);
|
||||
}
|
||||
|
||||
.shuoshuo-page {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
#talk {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
#talk:empty::before {
|
||||
content: "说说加载中...";
|
||||
display: grid;
|
||||
min-height: 180px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(255, 255, 255, 0.58);
|
||||
border-radius: 8px;
|
||||
color: var(--muted);
|
||||
background:
|
||||
radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(226, 248, 241, 0.35)),
|
||||
rgba(255, 253, 248, 0.68);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(18px) saturate(165%);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(165%);
|
||||
}
|
||||
|
||||
#talk .talk_item {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: calc(33.333% - 8px);
|
||||
margin: 0 12px 12px 0;
|
||||
border: 1px solid rgba(255, 255, 255, 0.58);
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
|
||||
linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(226, 248, 241, 0.35)),
|
||||
rgba(255, 253, 248, 0.78);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(18px) saturate(165%);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(165%);
|
||||
transition:
|
||||
box-shadow 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
#talk .talk_item:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 20px 54px rgba(44, 55, 63, 0.18);
|
||||
}
|
||||
|
||||
#talk .talk_meta,
|
||||
#talk .talk_bottom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#talk .talk_meta {
|
||||
width: 100%;
|
||||
border-bottom: 1px dashed rgba(104, 111, 120, 0.34);
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
#talk .talk_meta .avatar {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin: 0 !important;
|
||||
border-radius: 8px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
#talk .talk_meta .info {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
margin-left: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#talk .talk_meta .info .talk_nick {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: #3eb8be;
|
||||
font-size: 1.08rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
#talk .talk_meta .info svg.is-badge.icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
#talk .talk_meta .info span.talk_date {
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content {
|
||||
margin-top: 12px;
|
||||
overflow-wrap: anywhere;
|
||||
color: #33433f;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content a {
|
||||
color: #d75f54;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content .zone_imgbox {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
--talk-image-size: calc(25% - 8px);
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content .zone_imgbox a {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: var(--talk-image-size);
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content .zone_imgbox a:first-child {
|
||||
width: 100%;
|
||||
aspect-ratio: 1.8;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content .zone_imgbox img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0 !important;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_bottom {
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-top: 15px;
|
||||
border-top: 1px dashed rgba(104, 111, 120, 0.34);
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_bottom span.talk_tag,
|
||||
#talk .talk_item .talk_bottom span.location_tag {
|
||||
display: inline-flex;
|
||||
max-width: 100%;
|
||||
min-height: 30px;
|
||||
align-items: center;
|
||||
border: 1px solid rgba(15, 118, 110, 0.16);
|
||||
border-radius: 999px;
|
||||
padding: 3px 11px;
|
||||
color: var(--accent);
|
||||
font-size: 0.86rem;
|
||||
background: rgba(236, 253, 245, 0.7);
|
||||
transition:
|
||||
color 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_bottom span.talk_tag:hover,
|
||||
#talk .talk_item .talk_bottom span.location_tag:hover,
|
||||
#talk .talk_item .talk_bottom .icon:hover {
|
||||
color: #fff;
|
||||
background: #3eb8be;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_bottom .icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 999px;
|
||||
color: var(--accent);
|
||||
transition:
|
||||
color 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content .shuoshuo-external-link {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
margin-top: 12px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(15, 118, 110, 0.14);
|
||||
border-radius: 8px;
|
||||
color: var(--text);
|
||||
background: rgba(236, 253, 245, 0.64);
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.shuoshuo-external-link:hover {
|
||||
background: #3eb8be;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.shuoshuo-external-link .external-link {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.shuoshuo-external-link .external-link:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.shuoshuo-external-link .external-link-left {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 10px;
|
||||
flex: 0 0 auto;
|
||||
border-radius: 8px;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.shuoshuo-external-link .external-link-right {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
width: calc(100% - 80px);
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.shuoshuo-external-link .external-link-right .external-link-title {
|
||||
overflow: hidden;
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.talk_content iframe {
|
||||
min-height: 150px;
|
||||
}
|
||||
|
||||
meting-js {
|
||||
display: block;
|
||||
min-height: 100px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.limit {
|
||||
width: 100%;
|
||||
margin-top: 30px;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] #talk:empty::before,
|
||||
:root[data-theme='dark'] #talk .talk_item {
|
||||
border-color: rgba(174, 205, 197, 0.18);
|
||||
background:
|
||||
radial-gradient(circle at 14% 0%, rgba(114, 222, 210, 0.1), transparent 34%),
|
||||
linear-gradient(145deg, rgba(28, 43, 47, 0.82), rgba(12, 22, 25, 0.72)),
|
||||
rgba(17, 28, 31, 0.74);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] #talk .talk_item .talk_content {
|
||||
color: #dce9e6;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] #talk .talk_item .talk_bottom span.talk_tag,
|
||||
:root[data-theme='dark'] #talk .talk_item .talk_bottom span.location_tag,
|
||||
:root[data-theme='dark'] #talk .talk_item .talk_content .shuoshuo-external-link {
|
||||
border-color: rgba(114, 222, 210, 0.2);
|
||||
background: rgba(114, 222, 210, 0.1);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] #talk .talk_meta,
|
||||
:root[data-theme='dark'] #talk .talk_item .talk_bottom {
|
||||
border-color: rgba(174, 205, 197, 0.2);
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
position: relative;
|
||||
margin-top: 64px;
|
||||
@@ -1961,6 +2399,157 @@ time {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] :where(
|
||||
.page-header-card,
|
||||
.post-card,
|
||||
.sidebar-card,
|
||||
.article,
|
||||
.article-summary-card,
|
||||
.post-copyright-card,
|
||||
.twikoo-comments,
|
||||
.table-scroll,
|
||||
.term-grid a,
|
||||
.pagination-link,
|
||||
.pagination-number
|
||||
) {
|
||||
border-color: rgba(174, 205, 197, 0.18);
|
||||
background:
|
||||
radial-gradient(circle at 14% 0%, rgba(114, 222, 210, 0.1), transparent 34%),
|
||||
linear-gradient(145deg, rgba(28, 43, 47, 0.82), rgba(12, 22, 25, 0.72)),
|
||||
rgba(17, 28, 31, 0.74);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] :where(
|
||||
.page-header-card::after,
|
||||
.post-copyright-card::after
|
||||
) {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] :where(
|
||||
.page-header-card h1,
|
||||
.content-wrap .page-header-card h1,
|
||||
.sidebar-card h2,
|
||||
.profile-name,
|
||||
.calendar-summary strong,
|
||||
.schedule-left strong,
|
||||
.sidebar-post strong,
|
||||
.toc-link-main,
|
||||
.post-copyright-card h2,
|
||||
.post-copyright-meta dd,
|
||||
.twikoo-comments h2,
|
||||
.footer-brand
|
||||
) {
|
||||
color: #edf7f5;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] :where(
|
||||
.notice-card p,
|
||||
#welcome-info,
|
||||
#welcome-ip-location-info,
|
||||
.toc-link-child,
|
||||
.same-category-list a,
|
||||
.profile-links,
|
||||
.footer-contact p
|
||||
) {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] :where(
|
||||
.meta-list a,
|
||||
.article-tag-list a,
|
||||
.post-copyright-tags a,
|
||||
.post-copyright-action,
|
||||
.post-copyright-icon
|
||||
) {
|
||||
border-color: rgba(114, 222, 210, 0.22);
|
||||
color: var(--accent);
|
||||
background: rgba(114, 222, 210, 0.1);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] :where(
|
||||
.follow-button,
|
||||
.calendar-grid .today,
|
||||
.post-copyright-action.is-primary,
|
||||
.post-copyright-tags a:hover,
|
||||
.post-copyright-action:hover,
|
||||
.post-copyright-icon:hover,
|
||||
.pagination-link:hover,
|
||||
.pagination-number:hover,
|
||||
.pagination-number.is-current
|
||||
) {
|
||||
color: #081315;
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .article-header {
|
||||
border-bottom-color: var(--line);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .article-header-cover {
|
||||
background: #0d1f21;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .article-header-cover::before {
|
||||
background:
|
||||
linear-gradient(180deg, rgba(5, 12, 14, 0.54), rgba(7, 19, 21, 0.22) 38%, rgba(3, 10, 11, 0.82)),
|
||||
linear-gradient(90deg, rgba(5, 18, 20, 0.62), rgba(12, 60, 57, 0.16) 54%, rgba(5, 18, 20, 0.44));
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .prose .code-block {
|
||||
border-color: rgba(114, 222, 210, 0.2);
|
||||
background: rgba(5, 10, 12, 0.96);
|
||||
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .prose table {
|
||||
color: #dce9e6;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .prose thead th {
|
||||
color: #effaf7;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(40, 70, 70, 0.86), rgba(22, 41, 44, 0.76)),
|
||||
rgba(13, 24, 27, 0.8);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .prose tbody tr:nth-child(even) td {
|
||||
background: rgba(114, 222, 210, 0.07);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .prose tbody tr:hover td {
|
||||
background: rgba(114, 222, 210, 0.12);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .prose :where(th, td) {
|
||||
border-color: rgba(114, 222, 210, 0.12);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .site-footer {
|
||||
color: rgba(197, 214, 211, 0.74);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(12, 20, 23, 0.68), rgba(8, 14, 17, 0.88)),
|
||||
rgba(8, 14, 17, 0.84);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .footer-socials a {
|
||||
border-color: rgba(174, 205, 197, 0.18);
|
||||
color: rgba(218, 234, 231, 0.82);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(34, 51, 55, 0.78), rgba(14, 24, 27, 0.72)),
|
||||
rgba(18, 29, 32, 0.72);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 10px 24px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] .footer-bottom {
|
||||
border-top-color: rgba(174, 205, 197, 0.16);
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
.post-list {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@@ -1973,10 +2562,19 @@ time {
|
||||
}
|
||||
|
||||
.article-sidebar {
|
||||
align-self: auto;
|
||||
position: static;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.article-sticky-sidebar {
|
||||
position: static;
|
||||
grid-column: 1 / -1;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.toc-card {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
@@ -1985,12 +2583,20 @@ time {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
#talk .talk_item {
|
||||
width: calc(50% - 6px);
|
||||
}
|
||||
|
||||
.home-sidebar {
|
||||
align-self: auto;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.sticky-sidebar {
|
||||
.sticky-sidebar,
|
||||
.article-sticky-sidebar {
|
||||
position: static;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2000,6 +2606,7 @@ time {
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
min-height: auto;
|
||||
padding: 12px 14px;
|
||||
align-items: flex-start;
|
||||
@@ -2015,6 +2622,7 @@ time {
|
||||
}
|
||||
|
||||
.nav-links a,
|
||||
.nav-random,
|
||||
.nav-search {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
@@ -2027,6 +2635,15 @@ time {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
#talk .talk_item {
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#talk .talk_item .talk_content .zone_imgbox {
|
||||
--talk-image-size: calc(50% - 5px);
|
||||
}
|
||||
|
||||
.calendar-widget,
|
||||
.schedule-widget {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -2036,6 +2653,10 @@ time {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.article-sticky-sidebar {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.archive-list a {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2px;
|
||||
|
||||
Reference in New Issue
Block a user