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

MediaWiki:Common.css

MediaWiki界面页面
沙茶ちゃん留言 | 贡献2025年7月10日 (四) 06:52的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */
@font-face {
  font-family: 'ShangguSerif';
  src: url('/resources/fonts/ShangguSerif-ExtraLight.woff2') format('woff2'),
       url('/resources/fonts/ShangguSerif-ExtraLight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.shanggu-serif {
  font-family: 'ShangguSerif', serif;
}

@media (max-width: 768px) {
  /* 让表格和父容器不限制高度、不出现滚动 */
  .wikitable, .wikitable * {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* 桌面端样式 */
.table-container {
  display: flex;
  flex-wrap: nowrap;
}

.table-box {
  flex: 1 1 auto;
}

.desktop-text {
  width: 35%;
  float: left;
  padding-left: 10px;
}

.mobile-text {
  display: none;
  clear: both;
  margin-top: 10px;
}

/* 手机端样式 */
@media (max-width: 768px) {
  .table-container {
    display: block;
  }

  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }

  .wikitable {
    width: 100% !important;
    float: none !important;
    overflow: visible !important;
    max-height: none !important;
  }
}

.region-group {
    margin-bottom: 1.5em;
    padding: 10px;
    border: 1px solid #282828;
    border-radius: 6px;
    background-color: #1a1a1a;
}

.region-group h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #3a3a3a;
}

.dialect-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 600px) {
    .dialect-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .dialect-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dialect-list li {
    background-color: #2a2a2a;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.dialect-list li .place {
    color: #e0e0e0;
    font-weight: normal;
}

.dialect-list li .pronunciation {
    color: #ffd700;
    font-family: 'Consolas', 'Monaco', monospace;
    margin-left: 20px;
    white-space: nowrap;
}

a {
    color: #82b1ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.toggle-pronunciation-btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #444;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 90%;
  user-select: none;
}
.toggle-pronunciation-btn:hover {
  background-color: #666;
}