晚秋/styles.css:修订间差异
来自RIA | Wiki
更多操作
添加友好聚落样式 |
友好聚落样式改成蓝色边框 |
||
| 第301行: | 第301行: | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
border: 1px solid #e0e0e0; | border: 1px solid #e0e0e0; | ||
border-left: 4px solid # | border-left: 4px solid #5dade2;/* 蓝色左边框 */ | ||
border-radius: 4px; | border-radius: 4px; | ||
padding: 12px 10px; | padding: 12px 10px; | ||
2025年11月26日 (三) 18:56的版本
@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: 0.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;
}
.preface p {
margin-bottom: 20px;
}
.conclusion {
border-top: 1px dashed #ccc;
padding-top: 30px;
text-align: left;
font-weight: bold;
color: #5a4a3a;
}
.main-container {
background-color: #f9f9f9;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
padding: 20px;
margin-bottom: 20px;
overflow: hidden;
font-size: 15px;
line-height: 1.8;
color: #333;
}
.main-container ul.mw-gallery-packed {
text-align:left;
margin-top:10px;
}
/* === 友好聚落样式 === */
.settlement-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 自动排列,最小140px宽 */
gap: 15px;
margin-top: 15px;
text-align: center;
}
.settlement-item {
background-color: #f9f9f9;
border: 1px solid #e0e0e0;
border-left: 4px solid #5dade2;/* 蓝色左边框 */
border-radius: 4px;
padding: 12px 10px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
transition: all 0.2s ease; /* 添加一点鼠标悬停动画 */
}
/* 鼠标放上去轻轻浮起 */
.settlement-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(204, 85, 0, 0.15);
}