MediaWiki:Common.css:修订间差异

来自白墙纪念馆
跳到导航 跳到搜索
(基础美化)
 
(再次美化)
 
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
//* 全局字體設置 */
/* 白墙纪念馆 Wiki 全站通用美化样式 */
body, p, li {
 
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
/* 页面整体背景色与字体 */
  line-height: 1.7;
body {
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
}
}


/* 页面标题 */
/* 標題美化 */
.firstHeading {
h1, h2, h3, h4 {
    font-size: 2rem;
  font-weight: 600;
    font-weight: bold;
  border-bottom: 1px solid #ccc;
    color: #2c3e50;
  padding-bottom: 0.2em;
    border-bottom: 2px solid #ccc;
  margin-top: 1.5em;
    margin-bottom: 1rem;
}
}


/* 页面内容容器 */
/* 首頁區塊留白與內邊距 */
#bodyContent {
.mw-body {
    background: #ffffff;
  padding: 2em;
    padding: 2rem;
  background: #fff;
    border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
}


/* 左侧边栏 */
/* 連結樣式 */
#mw-panel {
a {
    background-color: #f0f0f0;
  color: #005fa3;
  text-decoration: none;
}
}
 
a:hover {
/* 顶部栏 Logo 与背景 */
  text-decoration: underline;
#p-logo {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
}


/* 链接颜色 */
/* 自訂頁首主標題樣式 */
a {
.firstHeading {
    color: #2980b9;
  font-size: 2em;
    text-decoration: none;
  color: #333;
}
  margin-top: 0.5em;
a:hover {
    text-decoration: underline;
}
}


/* 页脚优化 */
/* 子頁導覽區塊 */
#footer {
#contentSub {
    font-size: 0.85rem;
  font-size: 0.9em;
    color: #888;
  color: #777;
  margin-bottom: 1em;
}
}

2025年4月30日 (三) 02:34的最新版本

//* 全局字體設置 */
body, p, li {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  line-height: 1.7;
}

/* 標題美化 */
h1, h2, h3, h4 {
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
  margin-top: 1.5em;
}

/* 首頁區塊留白與內邊距 */
.mw-body {
  padding: 2em;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

/* 連結樣式 */
a {
  color: #005fa3;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 自訂頁首主標題樣式 */
.firstHeading {
  font-size: 2em;
  color: #333;
  margin-top: 0.5em;
}

/* 子頁導覽區塊 */
#contentSub {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 1em;
}