打开/关闭菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:TaffyHomepageUI/styles.css

来自永雏塔菲百科
/* Refactoring UI: §2.1/2.8 hierarchy, §3.2/3.6 spacing, §5.6 contrast, §8.5 separation.
   Token literals from design-tokens.json: TemplateStyles forbids custom property declarations.
   Existing pastel identity stays intentional, including a light content surface in Citizen dark mode.
   All selectors are scoped to the homepage .tfp root. No skin or sitewide changes. */
.tfp {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  color: #5c3b4d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.tfp *, .tfp *::before, .tfp *::after { box-sizing: border-box; }
.tfp a, .tfp a:visited { color: #5c3b4d; text-decoration: none; }
.tfp a:hover { color: #9f1534; text-decoration: underline; }
.tfp a:focus { outline: 3px solid #9f1534; outline-offset: 4px; border-radius: 4px; }
.tfp a.external { background-image: none; padding-right: 0; }
.tfp h2, .tfp h3 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #5c3b4d;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
}
.tfp p { margin: 0; }
.tfp-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 24px;
  color: #8a627c;
  font-size: 14px;
}
.tfp-preview a { color: #8a627c; }
.tfp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 12px;
  background: #ffe6f2;
}
.tfp-eyebrow { margin-bottom: 12px; color: #9f1534; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.tfp h2.tfp-title { font-size: 36px; letter-spacing: -.025em; line-height: 1.2; }
.tfp-lede { max-width: 35em; padding-top: 16px; color: #5c3b4d; font-size: 14px; line-height: 1.7; }
.tfp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 14px; }
.tfp-primary a {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #cf2e61;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
}
.tfp-primary a:visited { color: #ffffff; }
.tfp-primary a:hover, .tfp-primary a:active { background: #9f1534; color: #ffffff; text-decoration: none; }
.tfp-about a { display: inline-block; padding: 8px 0; color: #9f1534; font-weight: 700; }
.tfp-art { min-width: 0; text-align: center; }
.tfp-art img { display: block; width: 100%; height: auto; border-radius: 12px; }
.tfp-art-note { margin-top: 12px; font-size: 14px; color: #5c3b4d; }
.tfp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.tfp-tool { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: #fffafd; min-width: 0; }
/* §2.7 / §7.3: consistent 24px outline icons, softer than the navigation text. */
.tfp-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; color: #8a627c; line-height: 1; }
.tfp-icon svg { display: block; width: 24px; height: 24px; }
.tfp-tool-icon { flex: 0 0 32px; width: 32px; height: 32px; }
.tfp-tool-title { display: block; font-weight: 700; }
.tfp-description { display: block; color: #8a627c; font-size: 14px; line-height: 1.7; }
.tfp-section { margin-top: 48px; }
.tfp-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.tfp-section-heading h2 { font-size: 24px; letter-spacing: -.025em; }
.tfp-explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tfp-entry { display: flex; flex-direction: column; padding: 24px; border-radius: 12px; background: #fffafd; min-width: 0; }
.tfp-entry-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; color: #8a627c; font-size: 14px; }
.tfp-entry-label > span { font-variant-numeric: tabular-nums; }
.tfp-entry-topic { display: inline-flex; align-items: center; gap: 8px; }
.tfp-entry h3 { font-size: 20px; }
.tfp-entry h3 a { display: block; padding: 4px 0; }
.tfp-entry p { margin-top: 8px; color: #8a627c; font-size: 14px; }
.tfp-entry-help { background: #fff4bf; }
.tfp-entry-help .tfp-entry-label, .tfp-entry-help p { color: #5c3b4d; }
.tfp-entry-help .tfp-icon { color: #5c3b4d; }
.tfp-categories { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.tfp-category { min-width: 0; }
.tfp-category h3 { padding-bottom: 16px; font-size: 16px; }
.tfp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tfp-tags a { display: inline-block; padding: 8px 12px; border-radius: 12px; background: #ffe6f2; font-size: 14px; line-height: 1.5; }
.tfp-tags a:hover { background: #fff4bf; }
.tfp-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tfp-list a { display: inline-block; padding: 4px 0; }
.tfp-category-more { padding-top: 16px; font-size: 14px; }
.tfp-category-more a { color: #cf2e61; }
.tfp-social-section { padding-top: 32px; border-top: 1px solid #ffd1e6; }
.tfp-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; }
.tfp-social > div { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; }
.tfp-social img { display: block; width: 20px; height: 20px; object-fit: contain; }
.tfp-social a { display: inline-block; padding: 12px 0; }
.tfp-friend { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding: 24px; border-radius: 12px; background: #fffafd; }
.tfp-friend-name { display: block; margin-top: 4px; font-weight: 700; }
.tfp-signoff { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; color: #8a627c; font-size: 14px; }
.tfp-signoff > span { color: #cf2e61; font-size: 24px; }
/* §7.3: give the existing banner more room on desktop; retain smaller-screen sizing. */
@media screen and (min-width: 1001px) {
  .tfp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}
@media screen and (max-width: 1000px) {
  .tfp { padding: 24px; }
  .tfp-hero { padding: 24px; }
  .tfp h2.tfp-title { font-size: 30px; }
  .tfp-categories { grid-template-columns: 1fr 1fr; }
  .tfp-category:first-child { grid-column: 1 / -1; }
}
@media screen and (max-width: 600px) {
  .tfp { padding: 16px; border-radius: 12px; }
  .tfp-preview { padding-bottom: 16px; }
  .tfp-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 16px; }
  .tfp-art { order: -1; }
  .tfp-art-note { display: none; }
  .tfp h2.tfp-title { font-size: 30px; }
  .tfp-lede br { display: none; }
  .tfp-actions { gap: 8px 16px; }
  .tfp-tools { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
  .tfp-tool { padding: 12px; }
  .tfp-section { margin-top: 32px; }
  .tfp-section-heading { margin-bottom: 16px; }
  .tfp-section-heading h2 { font-size: 20px; }
  .tfp-explore { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tfp-entry { padding: 16px; }
  .tfp-entry-label { margin-bottom: 8px; }
  .tfp-categories { gap: 24px; }
  .tfp-social { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tfp-social-section { padding-top: 24px; }
  .tfp-friend { padding: 16px; }
}