晚秋/styles.css:修订间差异
来自RIA | Wiki
更多操作
CandySanjo(留言 | 贡献) // via Wikitext Extension for VSCode |
CandySanjo(留言 | 贡献) add preface // via Wikitext Extension for VSCode |
||
| 第244行: | 第244行: | ||
text-align: center; | text-align: center; | ||
letter-spacing: 0.05em; | letter-spacing: 0.05em; | ||
} | |||
.preface { | |||
background-color: #fffef9; | |||
border: 1px solid #e0e0e0; | |||
border-top: 4px solid #cc5500; | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.05); | |||
padding: 30px 50px; | |||
margin: 10px auto 20px auto; | |||
font-family: 'Georgia', 'KaiTi', 'STKaiti', serif; | |||
font-size: 18px; | |||
line-height: 2.0; | |||
color: #2c2c2c; | |||
} | } | ||
2025年11月25日 (二) 23:28的版本
@keyframes catchEntryLeft {
from {
opacity: 0;
transform: translateX(-12px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes catchEntryRight {
from {
opacity: 0;
transform: translateX(12px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes catchSweep {
0% {
background-position: -25% 50%;
background-size: 0% 100%;
}
45% {
background-position: -25% 50%;
background-size: 100% 100%;
}
55% {
background-position: 125% 50%;
background-size: 100% 100%;
}
100% {
background-position: 125% 50%;
background-size: 0% 100%;
}
}
@keyframes catchPlaceholder {
0%, 48% {
opacity: 1;
}
52%, 100% {
opacity: 0;
}
}
@keyframes catchText {
0%, 48% {
opacity: 0;
}
52%, 100% {
opacity: 1;
}
}
@keyframes catchCover {
0% {
left: 0;
width: 0%;
}
45% {
left: 0;
width: 100%;
}
55% {
left: 0;
width: 100%;
}
100% {
left: 100%;
width: 0%;
}
}
.catch-line--left {
position: relative;
display: inline-block;
padding: 0.2em 0.5em;
background-image: linear-gradient(90deg, #f7c873, #f7c873);
background-repeat: no-repeat;
background-position: -25% 50%;
background-size: 0% 100%;
opacity: 0;
transform: translateY(12px);
white-space: nowrap;
overflow: hidden;
animation:
catchEntryLeft 0.8s 1.6s ease forwards,
catchSweep 0.6s ease-in-out 2.6s both;
}
.catch-line--right {
position: relative;
display: inline-block;
padding: 0.2em 0.5em;
background-image: linear-gradient(90deg, #f7c873, #f7c873);
background-repeat: no-repeat;
background-position: -25% 50%;
background-size: 0% 100%;
opacity: 0;
transform: translateY(12px);
white-space: nowrap;
overflow: hidden;
animation:
catchEntryRight 0.8s 1.7s ease forwards,
catchSweep 0.6s ease-in-out 2.9s both;
}
.catch-line--left::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 0;
background: linear-gradient(90deg, #f7c873, #f7c873);
z-index: 1;
animation: catchCover 0.6s ease-in-out 2.6s both;
}
.catch-line--right::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 0;
background: linear-gradient(90deg, #f7c873, #f7c873);
z-index: 1;
animation: catchCover 0.6s ease-in-out 2.9s both;
}
.catch-line__placeholder,
.catch-line__text {
display: inline-block;
}
.catch-line__placeholder {
position: absolute;
top: 50%;
transform: translateY(-50%);
opacity: 1;
z-index: 2;
}
.catch-line__text {
position: relative;
z-index: 0;
opacity: 0;
}
.catch-line__placeholder-left {
animation: catchPlaceholder 0.9s ease-in-out 2.6s forwards;
}
.catch-line__placeholder-right {
animation: catchPlaceholder 0.9s ease-in-out 2.9s forwards;
}
.catch-line__text-left {
animation: catchText 0.6s ease-in-out 2.65s forwards;
}
.catch-line__text-right {
animation: catchText 0.6s ease-in-out 2.95s forwards;
}
.poem-em {
font-weight: 600;
color: #f7c873;
letter-spacing: normal;
display: inline-block;
text-shadow: 0 0 12px rgba(247, 200, 115, 0.7);
}
.news-card {
max-width: 1000px;
margin: 3rem auto;
padding: 2.5rem 2rem;
background: #fdf7ea;
color: #2e1d0d;
border: 1px solid rgba(60, 36, 20, 0.2);
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
position: relative;
}
.news-card::before {
content: "";
position: absolute;
border: 1px solid rgba(60, 36, 20, 0.15);
}
.news-card__headline {
margin: 0 0 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 2px solid rgba(60, 36, 20, 0.35);
font-size: 1.4rem;
font-weight: 700;
letter-spacing: 0.08em;
text-align: center;
text-transform: uppercase;
}
.news-card__body {
column-count: 2;
column-gap: 2rem;
font-size: 1rem;
line-height: 1.8;
text-align: justify;
}
.news-card__body p {
margin: 0 0 1.1rem;
}
.news-card__kicker {
display: inline-block;
margin-right: 0.5em;
padding: 0.05em 0.4em;
font-weight: 700;
letter-spacing: 0.05em;
background: rgba(60, 36, 20, 0.08);
}
.news-card__pull {
column-span: all;
margin: 1.5rem 0;
padding: 0.75rem 1rem;
border-left: 3px solid rgba(60, 36, 20, 0.45);
font-size: 1.1rem;
font-weight: 600;
background: rgba(60, 36, 20, 0.08);
}
.news-card__footer {
column-span: all;
margin: 1rem 0 0;
font-size: 0.95rem;
font-style: italic;
text-align: center;
letter-spacing: 0.05em;
}
.preface {
background-color: #fffef9;
border: 1px solid #e0e0e0;
border-top: 4px solid #cc5500;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
padding: 30px 50px;
margin: 10px auto 20px auto;
font-family: 'Georgia', 'KaiTi', 'STKaiti', serif;
font-size: 18px;
line-height: 2.0;
color: #2c2c2c;
}