模板:首页/styles.css:修订间差异
来自ANACHRONISM
更多操作
< 模板:首页
无编辑摘要 |
Maintenance script(留言 | 贡献) 2026-10-13 首页两列单图预览上线 |
||
| 第1行: | 第1行: | ||
/* | /* TemplateStyles 草案:继承站点/Citizen 字体,不加载外部字体。 */ | ||
.anach-home-grid { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1.9fr) minmax(16rem, .82fr); | |||
gap: 1.4rem; | |||
align-items: stretch; | |||
} | |||
.anach-home-carousel { | |||
.home- | position: relative; | ||
min-height: 32rem; | |||
aspect-ratio: 1.58; | |||
overflow: hidden; | |||
border-top: 4px solid #650b19; | |||
background: #161012; | |||
} | } | ||
.home- | |||
.home-right | .anach-home-carousel__slide, | ||
.anach-home-carousel__image { | |||
position: absolute; | |||
top: 0; | |||
right: 0; | |||
bottom: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
} | } | ||
.anach-home-carousel__image { | |||
object-fit: cover; | |||
object-position: center; | |||
} | |||
.anach-home-carousel__veil { | |||
.home- | position: absolute; | ||
right: 0; | |||
bottom: 0; | |||
left: 0; | |||
height: 45%; | |||
background: linear-gradient(0deg, rgba(18, 8, 11, .48), transparent); | |||
pointer-events: none; | |||
} | } | ||
.home- | |||
.anach-home-carousel__badge { | |||
position: absolute; | |||
top: 1.2rem; | |||
left: 1.3rem; | |||
padding: .45rem .65rem; | |||
background: rgba(17, 12, 14, .7); | |||
color: #f7eeee; | |||
font-size: .7rem; | |||
letter-spacing: .16em; | |||
} | } | ||
.home- | |||
.anach-home-carousel__controls { | |||
position: absolute; | |||
top: 50%; | |||
right: 1.1rem; | |||
left: 1.1rem; | |||
display: flex; | |||
justify-content: space-between; | |||
transform: translateY(-50%); | |||
pointer-events: none; | |||
} | } | ||
.anach-home-carousel__arrow { | |||
width: 2.8rem; | |||
height: 2.8rem; | |||
display: grid; | |||
place-items: center; | |||
border: 1px solid rgba(255, 255, 255, .55); | |||
border-radius: 50%; | |||
background: rgba(20, 12, 14, .56); | |||
color: #fff; | |||
font-size: 1.65rem; | |||
line-height: 1; | |||
opacity: .46; | |||
} | |||
.anach-home-carousel__counter { | |||
.home- | position: absolute; | ||
right: 1.2rem; | |||
bottom: 1.1rem; | |||
padding: .35rem .6rem; | |||
background: rgba(17, 12, 14, .7); | |||
color: #fff; | |||
font-size: .75rem; | |||
letter-spacing: .16em; | |||
} | } | ||
.home- | |||
.anach-home-aside { | |||
min-height: 32rem; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
padding: 2.25rem 1.8rem; | |||
border-top: 4px solid #8b1e2e; | |||
background: #faf8f7; | |||
} | } | ||
.home- | |||
.anach-home-aside__eyebrow { | |||
margin: 0 0 1.2rem; | |||
color: #98535c; | |||
font-size: .7rem; | |||
font-weight: 700; | |||
letter-spacing: .17em; | |||
line-height: 1.7; | |||
} | } | ||
.home- | |||
.anach-home-aside h2 { | |||
margin: 0; | |||
color: #2d2325; | |||
font-size: clamp(1.55rem, 2.2vw, 2.125rem); | |||
font-weight: 500; | |||
line-height: 1.55; | |||
} | } | ||
.home- | |||
.anach-home-aside__motto { | |||
margin: 1rem 0 1.3rem; | |||
color: #716568; | |||
font-size: .875rem; | |||
line-height: 1.8; | |||
} | } | ||
.anach-home-aside__divider { | |||
width: 2.9rem; | |||
height: 2px; | |||
margin: 0 0 1.2rem; | |||
background: #8b1e2e; | |||
. | |||
} | } | ||
.anach-home-aside__nav p { | |||
margin: 0; | |||
.home- | padding: .75rem 0; | ||
border-bottom: 1px solid #e5dfe0; | |||
. | |||
} | } | ||
.anach-home-aside__nav span { | |||
display: block; | |||
.home- | color: #a4616a; | ||
font-size: .7rem; | |||
letter-spacing: .12em; | |||
} | } | ||
.anach-home-aside a { | |||
display: block; | |||
.home- | color: #342a2c; | ||
font-size: 1rem; | |||
text-decoration: none; | |||
} | } | ||
.anach-home-aside a:hover { | |||
color: #8b1e2e; | |||
} | } | ||
@media (max-width: 850px) { | |||
.anach-home-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.anach-home-carousel, | |||
.anach-home-aside { | |||
min-height: auto; | |||
} | |||
} | |||
.anach-home-carousel { | |||
aspect-ratio: 1.4; | |||
} | |||
.anach-home-aside { | |||
padding: 1.6rem; | |||
} | |||
} | } | ||
@media (max-width: 520px) { | |||
.anach-home-carousel { | |||
@media (max-width: | aspect-ratio: 1.12; | ||
} | |||
} | } | ||
2026年10月13日 (二) 20:07的版本
/* TemplateStyles 草案:继承站点/Citizen 字体,不加载外部字体。 */
.anach-home-grid {
display: grid;
grid-template-columns: minmax(0, 1.9fr) minmax(16rem, .82fr);
gap: 1.4rem;
align-items: stretch;
}
.anach-home-carousel {
position: relative;
min-height: 32rem;
aspect-ratio: 1.58;
overflow: hidden;
border-top: 4px solid #650b19;
background: #161012;
}
.anach-home-carousel__slide,
.anach-home-carousel__image {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
}
.anach-home-carousel__image {
object-fit: cover;
object-position: center;
}
.anach-home-carousel__veil {
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 45%;
background: linear-gradient(0deg, rgba(18, 8, 11, .48), transparent);
pointer-events: none;
}
.anach-home-carousel__badge {
position: absolute;
top: 1.2rem;
left: 1.3rem;
padding: .45rem .65rem;
background: rgba(17, 12, 14, .7);
color: #f7eeee;
font-size: .7rem;
letter-spacing: .16em;
}
.anach-home-carousel__controls {
position: absolute;
top: 50%;
right: 1.1rem;
left: 1.1rem;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
pointer-events: none;
}
.anach-home-carousel__arrow {
width: 2.8rem;
height: 2.8rem;
display: grid;
place-items: center;
border: 1px solid rgba(255, 255, 255, .55);
border-radius: 50%;
background: rgba(20, 12, 14, .56);
color: #fff;
font-size: 1.65rem;
line-height: 1;
opacity: .46;
}
.anach-home-carousel__counter {
position: absolute;
right: 1.2rem;
bottom: 1.1rem;
padding: .35rem .6rem;
background: rgba(17, 12, 14, .7);
color: #fff;
font-size: .75rem;
letter-spacing: .16em;
}
.anach-home-aside {
min-height: 32rem;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2.25rem 1.8rem;
border-top: 4px solid #8b1e2e;
background: #faf8f7;
}
.anach-home-aside__eyebrow {
margin: 0 0 1.2rem;
color: #98535c;
font-size: .7rem;
font-weight: 700;
letter-spacing: .17em;
line-height: 1.7;
}
.anach-home-aside h2 {
margin: 0;
color: #2d2325;
font-size: clamp(1.55rem, 2.2vw, 2.125rem);
font-weight: 500;
line-height: 1.55;
}
.anach-home-aside__motto {
margin: 1rem 0 1.3rem;
color: #716568;
font-size: .875rem;
line-height: 1.8;
}
.anach-home-aside__divider {
width: 2.9rem;
height: 2px;
margin: 0 0 1.2rem;
background: #8b1e2e;
}
.anach-home-aside__nav p {
margin: 0;
padding: .75rem 0;
border-bottom: 1px solid #e5dfe0;
}
.anach-home-aside__nav span {
display: block;
color: #a4616a;
font-size: .7rem;
letter-spacing: .12em;
}
.anach-home-aside a {
display: block;
color: #342a2c;
font-size: 1rem;
text-decoration: none;
}
.anach-home-aside a:hover {
color: #8b1e2e;
}
@media (max-width: 850px) {
.anach-home-grid {
grid-template-columns: 1fr;
}
.anach-home-carousel,
.anach-home-aside {
min-height: auto;
}
.anach-home-carousel {
aspect-ratio: 1.4;
}
.anach-home-aside {
padding: 1.6rem;
}
}
@media (max-width: 520px) {
.anach-home-carousel {
aspect-ratio: 1.12;
}
}