往年今日
This commit is contained in:
@@ -198,6 +198,225 @@ h1 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.on-this-day-band {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 8% 14%, rgba(232, 168, 76, 0.2), transparent 24%),
|
||||
linear-gradient(135deg, #f6f0df, #fffdf7 48%, #eef4e9);
|
||||
}
|
||||
|
||||
.on-this-day-band::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -80px;
|
||||
bottom: -110px;
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
border: 1px solid rgba(55, 109, 90, 0.12);
|
||||
border-radius: 50%;
|
||||
box-shadow:
|
||||
0 0 0 34px rgba(55, 109, 90, 0.035),
|
||||
0 0 0 68px rgba(55, 109, 90, 0.025);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.on-this-day-shell {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 150px minmax(0, 1fr);
|
||||
gap: clamp(28px, 5vw, 64px);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.memory-date-card {
|
||||
position: sticky;
|
||||
top: 26px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(55, 109, 90, 0.2);
|
||||
border-radius: 14px;
|
||||
background: #fffdf7;
|
||||
box-shadow: 0 18px 42px rgba(39, 55, 52, 0.11);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.memory-date-card span,
|
||||
.memory-date-card small {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.memory-date-card span {
|
||||
padding: 8px 12px;
|
||||
background: var(--green);
|
||||
color: #fffdf7;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.memory-date-card strong {
|
||||
display: block;
|
||||
padding: 12px 12px 2px;
|
||||
color: var(--ink);
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
font-size: 62px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.memory-date-card small {
|
||||
padding: 8px 12px 13px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.on-this-day-heading {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
|
||||
gap: clamp(20px, 4vw, 52px);
|
||||
align-items: end;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.on-this-day-heading .eyebrow {
|
||||
color: var(--coral);
|
||||
}
|
||||
|
||||
.on-this-day-heading p:last-child {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.memory-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.memory-card {
|
||||
min-height: 190px;
|
||||
display: grid;
|
||||
grid-template-columns: 150px minmax(0, 1fr);
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(31, 43, 42, 0.12);
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.82);
|
||||
box-shadow: 0 8px 28px rgba(39, 55, 52, 0.06);
|
||||
transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
|
||||
}
|
||||
|
||||
.memory-card:hover {
|
||||
transform: translateY(-3px);
|
||||
border-color: rgba(55, 109, 90, 0.34);
|
||||
box-shadow: 0 16px 38px rgba(39, 55, 52, 0.12);
|
||||
}
|
||||
|
||||
.memory-card > img,
|
||||
.memory-card-visual {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 190px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.memory-card-visual {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: rgba(255, 253, 247, 0.9);
|
||||
background: linear-gradient(135deg, rgba(55, 109, 90, 0.94), rgba(69, 111, 148, 0.88));
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.memory-card-copy {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.memory-card-meta {
|
||||
color: var(--coral);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.memory-card-copy > strong {
|
||||
margin-top: 7px;
|
||||
font-size: 19px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.memory-card-text {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
margin-top: 8px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.memory-card-action {
|
||||
margin-top: auto;
|
||||
padding-top: 14px;
|
||||
color: var(--green);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.memory-empty {
|
||||
min-height: 190px;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 22px;
|
||||
align-items: center;
|
||||
padding: clamp(24px, 4vw, 38px);
|
||||
border: 1px dashed rgba(55, 109, 90, 0.3);
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 255, 255, 0.56);
|
||||
}
|
||||
|
||||
.memory-empty[hidden],
|
||||
.memory-grid[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.memory-empty-mark {
|
||||
color: var(--sun);
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.memory-empty h3 {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.memory-empty p,
|
||||
.memory-noscript {
|
||||
margin: 6px 0 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.memory-empty-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 9px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.memory-empty-links a {
|
||||
padding: 7px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: var(--green);
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
main {
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -2227,6 +2446,8 @@ h2 {
|
||||
|
||||
.stats,
|
||||
.section-title,
|
||||
.on-this-day-shell,
|
||||
.on-this-day-heading,
|
||||
.message-wall,
|
||||
.twikoo-sticky-wall .tk-comments,
|
||||
.twikoo-sticky-wall .tk-comments-container,
|
||||
@@ -2428,6 +2649,16 @@ h2 {
|
||||
padding-inline: 14px;
|
||||
}
|
||||
|
||||
.memory-card {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.memory-card > img,
|
||||
.memory-card-visual {
|
||||
height: 190px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: grid;
|
||||
}
|
||||
@@ -2442,6 +2673,19 @@ h2 {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.memory-date-card {
|
||||
position: static;
|
||||
width: 104px;
|
||||
}
|
||||
|
||||
.memory-date-card strong {
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.memory-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.photo-card,
|
||||
.photo-card:nth-child(2),
|
||||
.photo-card:nth-child(4) {
|
||||
|
||||
Reference in New Issue
Block a user