Jump to content

User:1108-Kiju/global.css

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
@import "https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css";

/* 目次 */
#toc {
    background-color: #f5f5f5; /* 背景 */
    border: 1px solid #ccc; /* ボーダー */
    padding: 10px; /* 余白 */
    border-radius: 5px; /* 角丸 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* シャドウ */
}

/* リンク */
#toc a {
    text-decoration: none; /* 下線を非表示 */
    color: #333; /* テキスト色 */
}

#toc a:hover {
    color: #0066cc; /* テキスト色 */
}

/* 見出しのスタイル */
#toc ul {
    list-style: none; /* リストを非表示 */
    padding-left: 0; /* 左の余白を0に設定 */
}

#toc li {
    margin: 5px 0; /* 項目 */
}

/* 番号のスタイル */
#toc ol {
    list-style-type: decimal; /* 数字リスト */
}

#toc ul ul {
    margin-left: 15px; /* 左の余白 */
}

#toc ul ul ul {
    margin-left: 30px; /* 左の余白 */
}