模板:首页/styles.css:修订间差异
来自高中笔记
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的30个中间版本) | |||
| 第14行: | 第14行: | ||
} | } | ||
.subject- | .subject-item { | ||
border: 1px solid var(--border-color-base); | border: 1px solid var(--border-color-base); | ||
border-radius: 8px; | border-radius: 8px; | ||
background: var(--background-color-base); | background: var(--background-color-base); | ||
overflow: hidden; | |||
} | } | ||
/* | /* 让链接撑满整个卡片 */ | ||
.subject- | .subject-item > a { | ||
display: | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 0. | gap: 0.4em; | ||
padding: 0.4em 0.6em; | |||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
color: var(--color-link); | color: var(--color-link); | ||
text-decoration: none; | text-decoration: none; | ||
white-space: nowrap; /* emoji + 文字永不换行 */ | |||
} | } | ||
/* hover | /* hover 效果 */ | ||
.subject- | .subject-item:hover { | ||
background: var(--background-color-neutral-subtle); | background: var(--background-color-neutral-subtle); | ||
} | |||
.info-card { | |||
border: 1px solid var(--border-color-base); | |||
border-radius: 8px; | |||
padding: 0.8em 1em; | |||
background: var(--background-color-base); | |||
margin: 0; | |||
} | |||
.info-main-title { | |||
font-size: 1.35em; /* 比 info-title 更大 */ | |||
font-weight: bold; | |||
margin-bottom: 0.4em; | |||
display: flex; | |||
align-items: center; | |||
gap: 0.35em; | |||
} | |||
.info-title { | |||
font-size: 1.1em; | |||
font-weight: bold; | |||
margin-bottom: 0.4em; | |||
display: flex; | |||
align-items: center; | |||
gap: 0.3em; | |||
} | |||
.info-list { | |||
margin: 0.4em 0; | |||
padding-left: 1.2em; | |||
} | |||
.info-list li { | |||
margin: 0.3em 0; | |||
} | |||
.info-footer { | |||
margin-top: 0.6em; | |||
} | |||
/* 让 info-title 在前面有内容时自动增加上边距 */ | |||
.info-title:not(:first-child) { margin-top: 0.8em; } | |||
.homepage-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); | |||
gap: 1em; | |||
grid-auto-flow: dense; | |||
} | |||
@media (max-width: 480px) { | |||
.homepage-grid { | |||
grid-template-columns: 1fr !important; | |||
} | |||
} | |||
.homepage-dyk { | |||
background: var(--background-color-notice-subtle); | |||
border-left: 3px solid var(--border-color-base); /* 你要的竖线 */ | |||
border-radius: 8px; /* 和 info-card 一样的圆角 */ | |||
padding: 0.8em 1em; /* 和 info-card 一样的内边距 */ | |||
} | |||
.homepage-formula { | |||
display: block; | |||
width: 100%; | |||
white-space: normal; | |||
min-width: 0; | |||
} | } | ||