模板:Mainpage/styles.css:修订间差异
来自星砂岛百科
更多操作
new page |
无编辑摘要 |
||
| (未显示同一用户的8个中间版本) | |||
| 第1行: | 第1行: | ||
.main-page-wrapper { | .main-page-wrapper { | ||
--color-primary: var(--accent-color-base); | |||
} | |||
.main-page-wrapper { | |||
margin: 0 auto; | margin: 0 auto; | ||
display: flex; | display: flex; | ||
| 第45行: | 第48行: | ||
font-weight: bold; | font-weight: bold; | ||
border: none; | border: none; | ||
line-height: normal; | |||
} | } | ||
| 第58行: | 第62行: | ||
border-radius: 12px; | border-radius: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 8px 25px rgba(0,0,0,0.15); | /* box-shadow: 0 8px 25px rgba(0,0,0,0.15); */ | ||
} | } | ||
| 第69行: | 第73行: | ||
height: auto; | height: auto; | ||
display: block; | display: block; | ||
border-radius: 12px; | /* border-radius: 12px; */ | ||
} | } | ||
| 第118行: | 第122行: | ||
} | } | ||
.nav-card a | .nav-card span>a { | ||
padding-top: 5px; | padding-top: 5px; | ||
padding-bottom: 20px; | padding-bottom: 20px; | ||
| 第244行: | 第248行: | ||
margin-left: auto; | margin-left: auto; | ||
text-align: right; | text-align: right; | ||
} | |||
.hero-text .nav-card a { | |||
padding: 5px; | |||
} | |||
.link-list li img { | |||
filter: invert(11%) sepia(50%) saturate(3000%) hue-rotate(185deg) brightness(95%) contrast(105%); | |||
} | |||
html.skin-theme-clientpref-night .link-list li img { | |||
filter: invert(86%) sepia(10%) saturate(457%) hue-rotate(162deg) brightness(90%) contrast(88%); | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .link-list li img { | |||
filter: invert(86%) sepia(10%) saturate(457%) hue-rotate(162deg) brightness(90%) contrast(88%); | |||
} | |||
} | |||
.hero-text .nav-card { | |||
border-radius: 12px; | |||
} | } | ||
2026年3月4日 (三) 11:20的最新版本
.main-page-wrapper {
--color-primary: var(--accent-color-base);
}
.main-page-wrapper {
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 24px;
color: inherit;
}
.glass-panel {
background-color: var(--ts-glass-bg);
backdrop-filter: blur(10px);
border: 1px solid var(--color-border-subtle);
border-radius: var(--border-radius--large, 12px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
overflow: hidden;
}
.panel-title {
margin: 0 0 16px 0;
color: var(--color-primary);
font-size: 1.5em;
border-bottom: var(--ts-panel-title-border);
padding-bottom: 10px;
padding-top: 10px;
text-align: center;
}
.hero-section {
display: flex;
align-items: center;
gap: 30px;
padding: 40px;
}
.hero-text {
flex: 1;
}
.hero-text h1,
.hero-text h2 {
margin: 0 0 16px 0;
color: var(--color-primary);
font-size: 2.8em;
font-weight: bold;
border: none;
line-height: normal;
}
.hero-text p {
font-size: 1.1em;
line-height: 1.6;
margin-bottom: 20px;
}
.hero-image {
flex: 1;
max-width: 500px;
border-radius: 12px;
overflow: hidden;
/* box-shadow: 0 8px 25px rgba(0,0,0,0.15); */
}
.hero-image p {
margin: 0;
}
.hero-image img {
width: 100%;
height: auto;
display: block;
/* border-radius: 12px; */
}
.main-page-nav-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 16px;
}
.nav-card {
padding: 0;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: stretch;
}
.nav-card p {
margin: 0;
display: flex;
flex-direction: column;
height: 100%;
}
.nav-card:hover {
transform: translateY(-5px);
border-color: var(--color-primary);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.nav-card a {
color: var(--color-primary);
font-size: 1.1em;
font-weight: 600;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
padding: 10px;
width: 100%;
box-sizing: border-box;
}
.nav-card a:first-child {
padding-top: 20px;
padding-bottom: 5px;
}
.nav-card span>a {
padding-top: 5px;
padding-bottom: 20px;
}
.nav-card img {
width: 50px;
height: 50px;
object-fit: contain;
transition: filter 0.3s ease;
display: block;
}
.content-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 24px;
align-items: stretch;
}
.content-column {
display: flex;
flex-direction: column;
gap: 24px;
height: 100%;
}
.content-column > :last-child {
flex-grow: 1;
}
.content-box {
padding: 0px 24px 24px;
}
.spotlight-content {
display: flex;
gap: 20px;
align-items: center;
}
.spotlight-img {
flex: 0 0 150px;
border-radius: 50%;
border: 3px solid var(--color-primary);
overflow: hidden;
}
.spotlight-img img {
width: 100%;
height: auto;
display: block;
}
.spotlight-text {
flex: 1;
}
.news-list {
list-style: none;
padding: 0;
margin: 0;
}
.news-list li {
padding: 12px 0;
border-bottom: var(--ts-list-border-dashed);
}
.news-list li:last-child {
border-bottom: none;
}
.news-date {
font-size: 0.85em;
color: var(--ts-news-date-color);
display: block;
margin-bottom: 4px;
}
.footer-banner {
padding: 30px;
text-align: center;
background: var(--ts-footer-bg);
}
@media (max-width: 900px) {
.content-grid {
grid-template-columns: 1fr;
}
.hero-section {
flex-direction: column;
text-align: center;
}
.hero-image {
max-width: 100%;
}
.spotlight-content {
flex-direction: column;
text-align: center;
}
}
.link-list {
list-style: none;
padding: 0;
margin: 0;
}
.link-list li {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 0;
border-bottom: var(--ts-list-border-dashed);
}
.link-list li:last-child {
border-bottom: none;
}
.link-meta {
font-size: 0.85em;
opacity: 0.8;
margin-left: auto;
text-align: right;
}
.hero-text .nav-card a {
padding: 5px;
}
.link-list li img {
filter: invert(11%) sepia(50%) saturate(3000%) hue-rotate(185deg) brightness(95%) contrast(105%);
}
html.skin-theme-clientpref-night .link-list li img {
filter: invert(86%) sepia(10%) saturate(457%) hue-rotate(162deg) brightness(90%) contrast(88%);
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .link-list li img {
filter: invert(86%) sepia(10%) saturate(457%) hue-rotate(162deg) brightness(90%) contrast(88%);
}
}
.hero-text .nav-card {
border-radius: 12px;
}