mirror of
https://github.com/Vb-Lg/class-history-template.git
synced 2026-11-03 18:46:40 +00:00
feat: initial class history template
This commit is contained in:
commit
92fa0f8f37
33 files changed
+10714
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,600 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg: #080c17;
|
||||
--panel: rgba(255, 255, 255, .045);
|
||||
--panel-hi: rgba(255, 255, 255, .08);
|
||||
--line: rgba(230, 192, 104, .22);
|
||||
--gold: #e6c068;
|
||||
--gold-soft: #f4e0a8;
|
||||
--blue: #6ea8fe;
|
||||
--text: #e9ecf5;
|
||||
--muted: #96a0b8;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
|
||||
line-height: 1.8;
|
||||
overflow-x: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba(230, 192, 104, .3);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ===== 背景 ===== */
|
||||
#stars {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.glow {
|
||||
position: fixed;
|
||||
border-radius: 50%;
|
||||
filter: blur(90px);
|
||||
opacity: .35;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.glow.g1 {
|
||||
width: 520px;
|
||||
height: 520px;
|
||||
background: #1b3a7a;
|
||||
top: -180px;
|
||||
left: -160px;
|
||||
}
|
||||
|
||||
.glow.g2 {
|
||||
width: 460px;
|
||||
height: 460px;
|
||||
background: #5a3d1a;
|
||||
bottom: -160px;
|
||||
right: -140px;
|
||||
}
|
||||
|
||||
.glow.g3 {
|
||||
width: 380px;
|
||||
height: 380px;
|
||||
background: #123f45;
|
||||
top: 45%;
|
||||
left: 60%;
|
||||
opacity: .25;
|
||||
}
|
||||
|
||||
.wrap {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* ===== 顶部进度条 ===== */
|
||||
#progress {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 2px;
|
||||
width: 0;
|
||||
background: linear-gradient(90deg, var(--gold), var(--blue));
|
||||
z-index: 99;
|
||||
transition: width .1s linear;
|
||||
box-shadow: 0 0 12px rgba(230, 192, 104, .7);
|
||||
}
|
||||
|
||||
/* ===== 顶部导航 ===== */
|
||||
.topbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 60;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 14px 28px;
|
||||
background: rgba(8, 12, 23, .62);
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, .05);
|
||||
}
|
||||
|
||||
.back {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13.5px;
|
||||
letter-spacing: .1em;
|
||||
color: var(--gold);
|
||||
text-decoration: none;
|
||||
padding: 7px 16px;
|
||||
border-radius: 100px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(230, 192, 104, .05);
|
||||
transition: .35s;
|
||||
}
|
||||
|
||||
.back:hover {
|
||||
background: var(--gold);
|
||||
color: #151006;
|
||||
transform: translateX(-3px);
|
||||
}
|
||||
|
||||
.nav-tag {
|
||||
font-size: 12px;
|
||||
letter-spacing: .35em;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width:600px) {
|
||||
.topbar {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.nav-tag {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== 通用 ===== */
|
||||
.container {
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(30px);
|
||||
transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
|
||||
}
|
||||
|
||||
.reveal.visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* ===== 文章头部 ===== */
|
||||
.post-head {
|
||||
padding: 150px 0 46px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.post-date {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
letter-spacing: .4em;
|
||||
color: var(--gold);
|
||||
margin-bottom: 22px;
|
||||
padding: 8px 22px;
|
||||
border-radius: 100px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(230, 192, 104, .05);
|
||||
animation: fadeDown 1s .05s both;
|
||||
}
|
||||
|
||||
.post-head h1 {
|
||||
font-size: clamp(30px, 6.2vw, 52px);
|
||||
font-weight: 800;
|
||||
letter-spacing: .05em;
|
||||
line-height: 1.25;
|
||||
background: linear-gradient(180deg, #fff 10%, #e8d9a8 60%, #9c7c2e 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
animation: fadeDown 1.1s .18s both;
|
||||
filter: drop-shadow(0 8px 34px rgba(230, 192, 104, .2));
|
||||
}
|
||||
|
||||
.post-sub {
|
||||
margin-top: 20px;
|
||||
font-size: clamp(14px, 2vw, 16.5px);
|
||||
color: var(--muted);
|
||||
letter-spacing: .1em;
|
||||
animation: fadeDown 1.1s .34s both;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
margin-top: 28px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
flex-wrap: wrap;
|
||||
font-size: 12.5px;
|
||||
letter-spacing: .14em;
|
||||
color: #66708a;
|
||||
animation: fadeDown 1.1s .5s both;
|
||||
}
|
||||
|
||||
.post-meta i {
|
||||
font-style: normal;
|
||||
color: rgba(230, 192, 104, .5);
|
||||
}
|
||||
|
||||
.head-line {
|
||||
width: 1px;
|
||||
height: 64px;
|
||||
margin: 46px auto 0;
|
||||
background: linear-gradient(180deg, transparent, var(--gold));
|
||||
animation: fadeDown 1.3s .62s both;
|
||||
}
|
||||
|
||||
.head-line::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: var(--gold);
|
||||
margin: 0 auto;
|
||||
transform: translateY(-2px);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes fadeDown {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-16px)
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: none
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
opacity: .4;
|
||||
transform: translateY(-2px) scale(1)
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 1;
|
||||
transform: translateY(-2px) scale(1.6)
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== 封面图 ===== */
|
||||
.cover {
|
||||
margin: 0 auto 56px;
|
||||
max-width: 980px;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.cover .ph {
|
||||
aspect-ratio: 21/9;
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255, 255, 255, .07);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(150deg, rgba(230, 192, 104, .1), rgba(110, 168, 254, .06) 55%, rgba(255, 255, 255, .015));
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
letter-spacing: .2em;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cover .ph::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: radial-gradient(circle at 50% 130%, rgba(230, 192, 104, .16), transparent 60%);
|
||||
}
|
||||
|
||||
/* ===== 正文 ===== */
|
||||
.post-body {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.post-body p {
|
||||
font-size: 16.5px;
|
||||
line-height: 2.05;
|
||||
color: #c3cad9;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.post-body h2 {
|
||||
font-size: clamp(19px, 3vw, 23px);
|
||||
font-weight: 700;
|
||||
letter-spacing: .04em;
|
||||
margin: 52px 0 18px;
|
||||
padding-left: 18px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.post-body h2::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: .42em;
|
||||
bottom: .28em;
|
||||
width: 3px;
|
||||
border-radius: 3px;
|
||||
background: linear-gradient(180deg, var(--gold), rgba(230, 192, 104, .12));
|
||||
}
|
||||
|
||||
.post-body strong {
|
||||
color: var(--gold-soft);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.post-body blockquote {
|
||||
margin: 30px 0;
|
||||
padding: 20px 26px;
|
||||
background: var(--panel);
|
||||
border-left: 2px solid var(--gold);
|
||||
border-radius: 0 16px 16px 0;
|
||||
color: var(--gold-soft);
|
||||
font-size: 15.5px;
|
||||
line-height: 1.95;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.post-body blockquote::before {
|
||||
content: '“';
|
||||
position: absolute;
|
||||
right: 18px;
|
||||
top: -6px;
|
||||
font-size: 56px;
|
||||
color: rgba(230, 192, 104, .14);
|
||||
font-family: Georgia, serif;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.post-body ul {
|
||||
margin: 22px 0 26px;
|
||||
padding-left: 4px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.post-body li {
|
||||
font-size: 16px;
|
||||
color: #c3cad9;
|
||||
line-height: 1.95;
|
||||
padding-left: 24px;
|
||||
position: relative;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.post-body li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
top: .72em;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--gold);
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.figure {
|
||||
margin: 34px 0;
|
||||
}
|
||||
|
||||
.figure .ph {
|
||||
aspect-ratio: 16/9;
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(255, 255, 255, .07);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(150deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
letter-spacing: .16em;
|
||||
transition: .5s;
|
||||
}
|
||||
|
||||
.figure .ph:hover {
|
||||
border-color: var(--line);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.figure figcaption {
|
||||
text-align: center;
|
||||
font-size: 12.5px;
|
||||
color: #66708a;
|
||||
letter-spacing: .12em;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
/* 分隔符 */
|
||||
.divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 14px;
|
||||
margin: 56px 0;
|
||||
color: rgba(230, 192, 104, .5);
|
||||
font-size: 12px;
|
||||
letter-spacing: .4em;
|
||||
}
|
||||
|
||||
.divider::before,
|
||||
.divider::after {
|
||||
content: '';
|
||||
height: 1px;
|
||||
flex: 1;
|
||||
max-width: 120px;
|
||||
background: linear-gradient(90deg, transparent, var(--line), transparent);
|
||||
}
|
||||
|
||||
/* ===== 上下篇 ===== */
|
||||
.post-nav {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
margin-top: 30px;
|
||||
padding-top: 44px;
|
||||
border-top: 1px solid rgba(255, 255, 255, .06);
|
||||
}
|
||||
|
||||
.post-nav a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
background: var(--panel);
|
||||
border: 1px solid rgba(255, 255, 255, .07);
|
||||
border-radius: 16px;
|
||||
padding: 20px 22px;
|
||||
transition: .45s cubic-bezier(.2, .7, .2, 1);
|
||||
}
|
||||
|
||||
.post-nav a:hover {
|
||||
background: var(--panel-hi);
|
||||
border-color: var(--line);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
|
||||
}
|
||||
|
||||
.post-nav .label {
|
||||
font-size: 11.5px;
|
||||
letter-spacing: .24em;
|
||||
color: var(--gold);
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
.post-nav .title {
|
||||
font-size: 15px;
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
letter-spacing: .03em;
|
||||
}
|
||||
|
||||
.post-nav .next {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (max-width:600px) {
|
||||
.post-nav {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.post-nav .next {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== 页脚 ===== */
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 80px 24px 60px;
|
||||
margin-top: 80px;
|
||||
border-top: 1px solid rgba(255, 255, 255, .06);
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
footer .sig {
|
||||
font-size: clamp(17px, 3vw, 22px);
|
||||
font-weight: 700;
|
||||
letter-spacing: .14em;
|
||||
background: linear-gradient(100deg, var(--gold-soft), var(--gold));
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
footer p {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
letter-spacing: .12em;
|
||||
}
|
||||
|
||||
footer .small {
|
||||
margin-top: 22px;
|
||||
font-size: 12px;
|
||||
color: #4c566b;
|
||||
letter-spacing: .1em;
|
||||
}
|
||||
|
||||
/* 回到顶部 */
|
||||
#top {
|
||||
position: fixed;
|
||||
right: 24px;
|
||||
bottom: 24px;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 50%;
|
||||
background: rgba(230, 192, 104, .12);
|
||||
border: 1px solid var(--line);
|
||||
color: var(--gold);
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
z-index: 50;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: .4s;
|
||||
backdrop-filter: blur(10px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#top.show {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
#top:hover {
|
||||
background: var(--gold);
|
||||
color: #151006;
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.hero-nav {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.hero-nav .nav-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13.5px;
|
||||
letter-spacing: .1em;
|
||||
color: var(--gold);
|
||||
text-decoration: none;
|
||||
padding: 7px 16px;
|
||||
border-radius: 100px;
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(230, 192, 104, .05);
|
||||
transition: .35s;
|
||||
}
|
||||
|
||||
.hero-nav .nav-link:hover {
|
||||
background: var(--gold);
|
||||
color: #151006;
|
||||
transform: translateX(-3px);
|
||||
}
|
||||
Reference in new issue
Block a user