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

模板:MUCWikiHome/styles.css

来自MUC Wiki
Admin留言 | 贡献2026年6月14日 (日) 00:54的版本 (style: adapt homepage for Citizen skin)
.mucwiki-home {
  display: grid;
  gap: 1rem;
  color: #202122;
  font-size: 1rem;
}

.mucwiki-home,
.mucwiki-home * {
  box-sizing: border-box;
}

.mucwiki-home a {
  color: #8f1d2c;
  text-decoration: none;
}

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

.mucwiki-home p {
  margin: 0;
}

.mucwiki-home-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1rem;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.mucwiki-home-copy {
  display: grid;
  align-content: center;
  gap: .62rem;
  min-height: 15rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #eaded7;
  border-left: 4px solid #8f1d2c;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fffaf8);
}

.mucwiki-home-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: .42rem;
  padding: .22rem .58rem;
  border: 1px solid #ead0cc;
  border-radius: 999px;
  background: #fff4f3;
  color: #7f1d1d;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}

.mucwiki-home-kicker::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: #8f1d2c;
}

.mucwiki-home-title {
  color: #181d22;
  font-size: 2.28rem;
  font-weight: 800;
  line-height: 1.08;
}

.mucwiki-home-lede {
  max-width: 42rem;
  color: #29323b;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.55;
}

.mucwiki-home-copy > p:not([class]) {
  max-width: 44rem;
  color: #555f69;
}

.mucwiki-home-side {
  display: grid;
  grid-template-rows: auto auto;
  gap: .62rem;
  min-width: 0;
}

.mucwiki-home-media {
  position: relative;
  overflow: hidden;
  border: 1px solid #e4dfd6;
  border-radius: 8px;
  background: #f7f4ef;
}

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

.mucwiki-home-media-caption {
  position: absolute;
  left: .55rem;
  bottom: .55rem;
  max-width: calc(100% - 1.1rem);
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(24, 29, 34, .72);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.mucwiki-home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e8e3dc;
  border-radius: 8px;
  background: #fff;
}

.mucwiki-home-stat {
  min-width: 0;
  padding: .48rem .35rem;
  border-left: 1px solid #ece7df;
  color: #656f7a;
  line-height: 1.2;
  text-align: center;
}

.mucwiki-home-stat:first-child {
  border-left: 0;
}

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

.mucwiki-home-stat strong,
.mucwiki-home-stat strong a {
  color: #67151f;
  font-size: 1rem;
  font-weight: 800;
}

.mucwiki-home-stat span {
  margin-top: .12rem;
  font-size: .76rem;
  font-weight: 700;
}

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

.mucwiki-home-section h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .65rem;
  padding-bottom: .42rem;
  border-bottom: 1px solid #e8e3dc;
  color: #181d22;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mucwiki-home-section h2::before {
  content: "";
  width: .28rem;
  height: 1rem;
  border-radius: 999px;
  background: #8f1d2c;
}

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

.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 #e1e5e0;
  border-radius: 8px;
  background: #fff;
}

.mucwiki-home-card {
  position: relative;
  min-height: 5.1rem;
  padding: .82rem 2rem .82rem .92rem;
  overflow: hidden;
  border-color: #d5e3d8;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mucwiki-home-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .22rem;
  background: #2e6b57;
}

.mucwiki-home-card::after {
  content: "›";
  position: absolute;
  top: .78rem;
  right: .86rem;
  color: #7c8b7f;
  font-size: 1.28rem;
  line-height: 1;
  transition: color .16s ease, transform .16s ease;
}

.mucwiki-home-card:hover {
  border-color: #96b79e;
  background: #fbfdfb;
  box-shadow: 0 8px 18px rgba(35, 64, 45, .07);
  transform: translateY(-1px);
}

.mucwiki-home-card:hover::after {
  color: #2e6b57;
  transform: translateX(1px);
}

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

.mucwiki-home-card strong {
  padding-left: .25rem;
  color: #181d22;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.mucwiki-home-card strong a {
  color: inherit;
}

.mucwiki-home-card strong a:focus {
  outline: 2px solid rgba(143, 29, 44, .28);
  outline-offset: 2px;
  border-radius: 4px;
  text-decoration: none;
}

.mucwiki-home-card span {
  margin-top: .3rem;
  padding-left: .25rem;
  color: #5f6972;
  font-size: .94rem;
  line-height: 1.48;
}

.mucwiki-home-topline {
  padding: .68rem .84rem;
  border-style: dashed;
  background: #fffdfa;
  color: #555f69;
  line-height: 1.55;
}

.mucwiki-home-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .46fr);
  gap: .75rem;
  padding: .78rem .9rem;
  background: #fbfaf7;
  color: #555f69;
  line-height: 1.58;
}

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

.mucwiki-home-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: .88rem 1rem;
}

.mucwiki-home-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: .18rem;
  background: #2e6b57;
}

.mucwiki-home-panel--building::before {
  background: #b98513;
}

.mucwiki-home-panel ul {
  display: grid;
  gap: .22rem;
  margin: 0;
  padding-left: 1.2rem;
}

.mucwiki-home-panel li {
  margin: 0;
  color: #5f6972;
}

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

.mucwiki-home-link-cloud span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: .32rem .62rem;
  border: 1px solid #e1e5e0;
  border-radius: 999px;
  background: #fff;
  color: #4d5862;
  font-size: .92rem;
  line-height: 1.25;
}

.mucwiki-home-link-cloud span:hover {
  border-color: #d7b7ae;
  background: #fff7f5;
}

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

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

.mucwiki-home-help h3 {
  margin: 0 0 .35rem;
  color: #22272d;
  font-size: .98rem;
  font-weight: 800;
}

.mucwiki-home-help p {
  color: #5f6972;
  font-size: .94rem;
  line-height: 1.52;
}

@media screen and (max-width: 980px) {
  .mucwiki-home-masthead {
    grid-template-columns: minmax(0, 1fr);
  }

  .mucwiki-home-copy {
    min-height: 0;
  }

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

  .mucwiki-home-media {
    max-width: 34rem;
  }
}

@media screen and (max-width: 720px) {
  .mucwiki-home {
    gap: .8rem;
  }

  .mucwiki-home-copy {
    padding: 1rem;
  }

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

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

  .mucwiki-home-card {
    min-height: 0;
  }
}