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

模板:MUCWikiHome/styles.css:修订间差异

来自MUC Wiki
Maintenance script留言 | 贡献
Polish homepage content components
Maintenance script留言 | 贡献
Refine MUC Wiki home component styles
第21行: 第21行:
.mucwiki-home-masthead {
.mucwiki-home-masthead {
   display: grid;
   display: grid;
   grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .52fr);
   grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .48fr);
   gap: 1rem;
   gap: 1.1rem;
   align-items: stretch;
   align-items: stretch;
   padding: 1rem;
   padding: 1.2rem;
   border: 1px solid #d8e2ee;
   border: 1px solid #d6e0ed;
   border-radius: 8px;
   border-radius: 8px;
   background: #fff;
   background: rgba(255, 255, 255, .96);
   box-shadow: 0 14px 34px rgba(31, 47, 70, .07);
   box-shadow: 0 18px 44px rgba(31, 47, 70, .08);
}
}


第34行: 第34行:
   display: grid;
   display: grid;
   align-content: center;
   align-content: center;
   gap: .68rem;
   gap: .72rem;
   min-height: 11.2rem;
   min-height: 12rem;
   padding: .6rem .55rem;
   padding: .75rem .65rem;
   line-height: 1.72;
   line-height: 1.76;
}
}


第47行: 第47行:
   align-items: center;
   align-items: center;
   padding: .24rem .66rem;
   padding: .24rem .66rem;
   border: 1px solid #bfd0e6;
   border: 1px solid #bfd3ea;
   border-radius: 999px;
   border-radius: 999px;
   background: #edf4ff;
   background: #edf5ff;
   color: #245b9f;
   color: #16456f;
   font-size: .84rem;
   font-size: .84rem;
   font-weight: 800;
   font-weight: 800;
第58行: 第58行:
.mucwiki-home-title {
.mucwiki-home-title {
   color: #101828;
   color: #101828;
   font-size: 2.28rem;
   font-size: 2.38rem;
   font-weight: 900;
   font-weight: 900;
   line-height: 1.08;
   line-height: 1.08;
第66行: 第66行:
   max-width: 42rem;
   max-width: 42rem;
   color: #253044;
   color: #253044;
   font-size: 1.08rem;
   font-size: 1.1rem;
   font-weight: 700;
   font-weight: 700;
}
}
第80行: 第80行:
   display: grid;
   display: grid;
   place-items: center;
   place-items: center;
   min-height: 9.4rem;
   min-height: 9.7rem;
   overflow: hidden;
   overflow: hidden;
   border: 1px solid #e8eef6;
   border: 1px solid #e7edf5;
   border-radius: 8px;
   border-radius: 8px;
   background: #fff;
   background: #fff;
第105行: 第105行:
.mucwiki-home-stat {
.mucwiki-home-stat {
   min-width: 0;
   min-width: 0;
   padding: .62rem .7rem;
   padding: .68rem .72rem;
   border: 1px solid #d8e2ee;
   border: 1px solid #d6e0ed;
   border-radius: 8px;
   border-radius: 8px;
   background: #fff;
   background: #fff;
第120行: 第120行:
.mucwiki-home-stat strong {
.mucwiki-home-stat strong {
   color: #075fc7;
   color: #075fc7;
   font-size: 1.12rem;
   font-size: 1.16rem;
   font-weight: 800;
   font-weight: 800;
}
}
第139行: 第139行:
   margin: 0 0 .72rem;
   margin: 0 0 .72rem;
   padding-bottom: .58rem;
   padding-bottom: .58rem;
   border-bottom: 1px solid #d8e2ee;
   border-bottom: 1px solid #d6e0ed;
   color: #101828;
   color: #101828;
   font-size: 1.22rem;
   font-size: 1.22rem;
第152行: 第152行:
   height: 1.08rem;
   height: 1.08rem;
   border-radius: 999px;
   border-radius: 999px;
   background: #245b9f;
   background: #1f5f99;
}
}


第169行: 第169行:
.mucwiki-home-topline,
.mucwiki-home-topline,
.mucwiki-home-note {
.mucwiki-home-note {
   border: 1px solid #d8e2ee;
   border: 1px solid #d6e0ed;
   border-radius: 8px;
   border-radius: 8px;
   background: #fff;
   background: rgba(255, 255, 255, .96);
   box-shadow: 0 1px 2px rgba(31, 47, 70, .035);
   box-shadow: 0 1px 2px rgba(31, 47, 70, .035);
}
}
第177行: 第177行:
.mucwiki-home-card {
.mucwiki-home-card {
   position: relative;
   position: relative;
   min-height: 5.6rem;
   min-height: 5.9rem;
   padding: .92rem 1rem;
   padding: 1rem 1.05rem;
   transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
   transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
}


.mucwiki-home-card:hover {
.mucwiki-home-card:hover {
   border-color: #a8bedc;
   border-color: #9eb8d7;
   box-shadow: 0 12px 30px rgba(31, 47, 70, .08);
   box-shadow: 0 14px 34px rgba(31, 47, 70, .09);
   transform: translateY(-1px);
   transform: translateY(-1px);
}
}
第195行: 第195行:
.mucwiki-home-card strong {
.mucwiki-home-card strong {
   padding-right: 1.2rem;
   padding-right: 1.2rem;
   font-size: 1rem;
   font-size: 1.02rem;
   font-weight: 800;
   font-weight: 800;
}
}
第241行: 第241行:


.mucwiki-home-panel {
.mucwiki-home-panel {
   padding: 1.05rem 1.1rem;
   padding: 1.1rem 1.15rem;
   min-height: 14rem;
   min-height: 14rem;
}
}
第255行: 第255行:
.mucwiki-home-panel--building {
.mucwiki-home-panel--building {
   border-color: #ecd79d;
   border-color: #ecd79d;
   background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
   background: #fffaf0;
}
}


第276行: 第276行:
   min-height: 2.25rem;
   min-height: 2.25rem;
   padding: .36rem .68rem;
   padding: .36rem .68rem;
   border: 1px solid #d8e2ee;
   border: 1px solid #d6e0ed;
   border-radius: 8px;
   border-radius: 8px;
   background: #fff;
   background: rgba(255, 255, 255, .96);
   color: #344054;
   color: #344054;
   line-height: 1.35;
   line-height: 1.35;
第291行: 第291行:


.mucwiki-home-help__grid > div {
.mucwiki-home-help__grid > div {
   padding: .95rem;
   padding: 1rem;
}
}



2026年6月4日 (四) 09:48的版本

.mucwiki-home {
  color: #172033;
  font-size: 1rem;
}

.mucwiki-home a {
  color: #075fc7;
  text-decoration: none;
}

.mucwiki-home a:hover,
.mucwiki-home a:focus {
  color: #064b9c;
  text-decoration: underline;
}

.mucwiki-home p {
  margin: 0;
}

.mucwiki-home-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .48fr);
  gap: 1.1rem;
  align-items: stretch;
  padding: 1.2rem;
  border: 1px solid #d6e0ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(31, 47, 70, .08);
}

.mucwiki-home-copy {
  display: grid;
  align-content: center;
  gap: .72rem;
  min-height: 12rem;
  padding: .75rem .65rem;
  line-height: 1.76;
}

.mucwiki-home-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 1.72rem;
  align-items: center;
  padding: .24rem .66rem;
  border: 1px solid #bfd3ea;
  border-radius: 999px;
  background: #edf5ff;
  color: #16456f;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
}

.mucwiki-home-title {
  color: #101828;
  font-size: 2.38rem;
  font-weight: 900;
  line-height: 1.08;
}

.mucwiki-home-lede {
  max-width: 42rem;
  color: #253044;
  font-size: 1.1rem;
  font-weight: 700;
}

.mucwiki-home-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .72rem;
  min-width: 0;
}

.mucwiki-home-media {
  display: grid;
  place-items: center;
  min-height: 9.7rem;
  overflow: hidden;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 47, 70, .035);
}

.mucwiki-home-media .mw-file-element,
.mucwiki-home-media img {
  display: block;
  width: 100%;
  max-width: 312px;
  height: auto;
  border-radius: 8px;
}

.mucwiki-home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.mucwiki-home-stat {
  min-width: 0;
  padding: .68rem .72rem;
  border: 1px solid #d6e0ed;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  line-height: 1.28;
}

.mucwiki-home-stat strong,
.mucwiki-home-stat span {
  display: block;
}

.mucwiki-home-stat strong {
  color: #075fc7;
  font-size: 1.16rem;
  font-weight: 800;
}

.mucwiki-home-stat span {
  margin-top: .18rem;
  font-size: .85rem;
}

.mucwiki-home-section {
  margin-top: 1.15rem;
}

.mucwiki-home-section h2 {
  display: flex;
  align-items: center;
  gap: .52rem;
  margin: 0 0 .72rem;
  padding-bottom: .58rem;
  border-bottom: 1px solid #d6e0ed;
  color: #101828;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mucwiki-home-section h2::before {
  content: "";
  display: inline-block;
  width: .34rem;
  height: 1.08rem;
  border-radius: 999px;
  background: #1f5f99;
}

.mucwiki-home-grid {
  display: grid;
  gap: .72rem;
}

.mucwiki-home-grid--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mucwiki-home-card,
.mucwiki-home-panel,
.mucwiki-home-help__grid > div,
.mucwiki-home-topline,
.mucwiki-home-note {
  border: 1px solid #d6e0ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 2px rgba(31, 47, 70, .035);
}

.mucwiki-home-card {
  position: relative;
  min-height: 5.9rem;
  padding: 1rem 1.05rem;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mucwiki-home-card:hover {
  border-color: #9eb8d7;
  box-shadow: 0 14px 34px rgba(31, 47, 70, .09);
  transform: translateY(-1px);
}

.mucwiki-home-card strong,
.mucwiki-home-card span {
  display: block;
}

.mucwiki-home-card strong {
  padding-right: 1.2rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.mucwiki-home-card::after {
  content: "›";
  position: absolute;
  top: .9rem;
  right: 1rem;
  color: #8aa2c2;
  font-size: 1.25rem;
  line-height: 1;
}

.mucwiki-home-card span {
  margin-top: .34rem;
  color: #667085;
  line-height: 1.58;
}

.mucwiki-home-topline,
.mucwiki-home-note {
  margin-top: .88rem;
  color: #536070;
  line-height: 1.7;
}

.mucwiki-home-topline {
  padding: .72rem .9rem;
}

.mucwiki-home-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .54fr);
  gap: .84rem;
  padding: .9rem 1rem;
  background: #f8fbff;
}

.mucwiki-home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .88rem;
}

.mucwiki-home-panel {
  padding: 1.1rem 1.15rem;
  min-height: 14rem;
}

.mucwiki-home-panel ul {
  display: grid;
  gap: .38rem;
  margin: .15rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.75;
}

.mucwiki-home-panel--building {
  border-color: #ecd79d;
  background: #fffaf0;
}

.mucwiki-home-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.mucwiki-home-link-cloud p {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
}

.mucwiki-home-link-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .36rem .68rem;
  border: 1px solid #d6e0ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #344054;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(31, 47, 70, .02);
}

.mucwiki-home-help__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .78rem;
}

.mucwiki-home-help__grid > div {
  padding: 1rem;
}

.mucwiki-home-help h3 {
  margin: 0 0 .45rem;
  color: #172033;
  font-size: 1rem;
  font-weight: 800;
}

.mucwiki-home-help p {
  color: #667085;
  line-height: 1.66;
}

.mucwiki-home-card a,
.mucwiki-home-link-cloud a,
.mucwiki-home-stat a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .mucwiki-home-masthead,
  .mucwiki-home-note,
  .mucwiki-home-columns,
  .mucwiki-home-help__grid {
    grid-template-columns: 1fr;
  }

  .mucwiki-home-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mucwiki-home-masthead {
    gap: .66rem;
    padding: .82rem;
    border-radius: 8px;
  }

  .mucwiki-home-copy {
    min-height: auto;
    gap: .5rem;
    padding: .15rem;
  }

  .mucwiki-home-copy p:nth-of-type(4) {
    display: none;
  }

  .mucwiki-home-title {
    font-size: 1.48rem;
  }

  .mucwiki-home-lede {
    font-size: .94rem;
  }

  .mucwiki-home-media {
    display: none;
  }

  .mucwiki-home-stats-grid {
    gap: .36rem;
  }

  .mucwiki-home-stat {
    padding: .46rem .42rem;
    border-radius: 8px;
  }

  .mucwiki-home-stat strong {
    font-size: .98rem;
  }

  .mucwiki-home-stat span {
    font-size: .78rem;
  }

  .mucwiki-home-section {
    margin-top: .9rem;
  }

  .mucwiki-home-section h2 {
    margin-bottom: .55rem;
    padding-bottom: .42rem;
    font-size: 1.06rem;
  }

  .mucwiki-home-grid--primary {
    grid-template-columns: 1fr;
  }

  .mucwiki-home-card {
    min-height: 4.65rem;
    padding: .72rem .78rem;
  }

  .mucwiki-home-card span {
    margin-top: .24rem;
    line-height: 1.5;
  }

  .mucwiki-home-topline,
  .mucwiki-home-note,
  .mucwiki-home-panel,
  .mucwiki-home-help__grid > div {
    padding: .76rem .82rem;
  }

  .mucwiki-home-note {
    gap: .5rem;
  }

  .mucwiki-home-link-cloud {
    display: grid;
    grid-template-columns: 1fr;
    gap: .38rem;
  }

  .mucwiki-home-link-cloud p {
    display: grid;
    grid-template-columns: 1fr;
    gap: .38rem;
  }

  .mucwiki-home-link-cloud span {
    width: 100%;
    border-radius: 8px;
  }
}