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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
第155行: 第155行:
   color: #409eff;
   color: #409eff;
   user-select: none;
   user-select: none;
}
.entry-section {
border: 1px solid #333;
border-radius: 8px;
padding: 12px;
margin-bottom: 1.5em;
background-color: #1e1e1e;
box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
}

2025年7月10日 (四) 07:32的版本

/* 这里放置的CSS将应用于所有皮肤 */
@font-face {
  font-family: 'ShangguSerif';
  src: url('/images/fonts/ShangguSerif-ExtraLight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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


@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;
}

.regional-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.toggle-pronunciation-btn {
  cursor: pointer;
  color: #409eff;
  user-select: none;
}

.entry-section {
border: 1px solid #333;
border-radius: 8px;
padding: 12px;
margin-bottom: 1.5em;
background-color: #1e1e1e;
box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}