(页面间差异)
无编辑摘要 |
(创建页面,内容为“:root { --my-shadow-color: rgba(0, 0, 0, 0.3); } :root.skin-citizen-light { --my-color-surface-crystal: rgba(255, 255, 255, 0.9191981); --my-color-surface-solid: rgba(255, 255, 255, 114514); } :root.skin-citizen-dark { --my-color-surface-crystal: rgba(20, 26, 32, 0.9191981); --my-color-surface-solid: rgba(20, 26, 32, 1114514); } body { background: transparent; box-sizing: border-box; } body::after { content: ""; background: url(/webp-images/X…”) |
||
第1行: | 第1行: | ||
:root { | |||
--my-shadow-color: rgba(0, 0, 0, 0.3); | |||
} | |||
:root.skin-citizen-light { | |||
--my-color-surface-crystal: rgba(255, 255, 255, 0.9191981); | |||
--my-color-surface-solid: rgba(255, 255, 255, 114514); | |||
} | |||
:root.skin-citizen-dark { | |||
--my-color-surface-crystal: rgba(20, 26, 32, 0.9191981); | |||
--my-color-surface-solid: rgba(20, 26, 32, 1114514); | |||
} | |||
body { | |||
background: transparent; | |||
box-sizing: border-box; | |||
} | |||
body::after { | |||
content: ""; | |||
background: url(/webp-images/X-index.webp) no-repeat fixed 50% 0; | |||
background-size: cover; | |||
position: fixed; | |||
top: 0; | |||
height: 100%; | |||
width: 100%; | |||
z-index: -1; | |||
} | |||
a.image > img { | |||
max-width: 100vw; | |||
} | |||
.mw-header { | |||
background-color: var(--my-color-surface-solid); | |||
} | |||
.mw-header::before { | |||
display: none; | |||
} | |||
.mw-footer { | |||
margin-top: 0; | |||
} | |||
.mw-footer::before { | |||
display: none; | |||
} | |||
.mw-body { | |||
display: flex; | |||
flex-direction: column; | |||
box-shadow: 24px 0px 24px -24px var(--my-shadow-color), | |||
-24px 0px 24px -24px var(--my-shadow-color); | |||
background-color: var(--my-color-surface-crystal); | |||
box-sizing: border-box; | |||
max-width: calc(var(--width-layout) - 48px); | |||
margin: 56px auto 0 auto; | |||
padding: 0 24px; | |||
} | |||
.mw-body > * { | |||
margin-right: 0 !important; | |||
margin-left: 0 !important; | |||
} | |||
.mw-body-header { | |||
margin-top: 0; | |||
margin-bottom: 0; | |||
padding-top: 2.4rem; | |||
padding-bottom: 0.8rem; | |||
width: 100%; | |||
} | |||
table { | |||
margin-top: 0 !important; | |||
box-sizing: border-box; | |||
} | |||
.citizen-body { | |||
padding-top: 0.8rem; | |||
flex-grow: 1; | |||
width: 100%; | |||
padding-bottom: 1.6rem; | |||
} | |||
.toc { | |||
background-color: var(--my-color-surface-crystal); | |||
box-shadow: 0px 12px 24px var(--my-shadow-color); | |||
} | |||
@media screen and (max-width: 1300px) { | |||
.toc { | |||
background-color: transparent; | |||
box-shadow: none; | |||
} | |||
} | |||
@media screen and (max-width: 720px) { | |||
table { | |||
width: 100% !important; | |||
display: inline-table; | |||
} | |||
} |
2023年7月17日 (一) 22:54的版本
:root {
--my-shadow-color: rgba(0, 0, 0, 0.3);
}
:root.skin-citizen-light {
--my-color-surface-crystal: rgba(255, 255, 255, 0.9191981);
--my-color-surface-solid: rgba(255, 255, 255, 114514);
}
:root.skin-citizen-dark {
--my-color-surface-crystal: rgba(20, 26, 32, 0.9191981);
--my-color-surface-solid: rgba(20, 26, 32, 1114514);
}
body {
background: transparent;
box-sizing: border-box;
}
body::after {
content: "";
background: url(/webp-images/X-index.webp) no-repeat fixed 50% 0;
background-size: cover;
position: fixed;
top: 0;
height: 100%;
width: 100%;
z-index: -1;
}
a.image > img {
max-width: 100vw;
}
.mw-header {
background-color: var(--my-color-surface-solid);
}
.mw-header::before {
display: none;
}
.mw-footer {
margin-top: 0;
}
.mw-footer::before {
display: none;
}
.mw-body {
display: flex;
flex-direction: column;
box-shadow: 24px 0px 24px -24px var(--my-shadow-color),
-24px 0px 24px -24px var(--my-shadow-color);
background-color: var(--my-color-surface-crystal);
box-sizing: border-box;
max-width: calc(var(--width-layout) - 48px);
margin: 56px auto 0 auto;
padding: 0 24px;
}
.mw-body > * {
margin-right: 0 !important;
margin-left: 0 !important;
}
.mw-body-header {
margin-top: 0;
margin-bottom: 0;
padding-top: 2.4rem;
padding-bottom: 0.8rem;
width: 100%;
}
table {
margin-top: 0 !important;
box-sizing: border-box;
}
.citizen-body {
padding-top: 0.8rem;
flex-grow: 1;
width: 100%;
padding-bottom: 1.6rem;
}
.toc {
background-color: var(--my-color-surface-crystal);
box-shadow: 0px 12px 24px var(--my-shadow-color);
}
@media screen and (max-width: 1300px) {
.toc {
background-color: transparent;
box-shadow: none;
}
}
@media screen and (max-width: 720px) {
table {
width: 100% !important;
display: inline-table;
}
}