settings
フォントを変える
code:style.css
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;700;900&family=Zen+Kaku+Gothic+Antique:wght@300;400;500;700;900&family=Zen+Maru+Gothic:wght@400;500;700;900&family=Edu+NSW+ACT+Foundation:wght@400;500;600;700&display=swap');
/* 本文用 */
body, .title, .description, .line-title, .editor {
font-family: 'Inter', 'Zen Kaku Gothic Antique', -apple-system, BlinkMacSystemFont, sans-serif;
font-weight: 400;
}
/* 見出し用 */
.project-home .title,
.line-title,
strong.level-3,
strong.level-4,
strong.level-5,
strong.level-6,
strong.level-7,
strong.level-8,
strong.level-9,
strong.level-10 {
font-family: 'Edu NSW ACT Foundation', 'Zen Maru Gothic', sans-serif;
}
背景色を変える
code:style.css
:root {
--page-bg-color: #d9dfdf;
}
body {
background-color: var(--page-bg-color);
}
.grid li.page-list-item a {
background-color: var(--page-bg-color);
}
/* .grid li.page-list-item a .pin {
background: linear-gradient(45deg, #aaa, #aaa 50%, #fff 50%, #fff);
} */
.page {
background-color: var(--page-bg-color);
}
.line span.code-block .code-block-start {
background-color: #acacac;
}
パラメータ調整機能を非表示
code:style.css
input.grid-size-range {
display: none;
}
div.page-sort-menu {
display: none;
}
ヘッダーまわりの調整
code:style.css
.navbar-default {
background-color: var(--page-bg-color);
}
.search-form .form-group input {
background-color: #f1f1f1;
border: none;
}
.search-form .form-group .button-container button .kamon {
fill: var(--search-form-icon-color, #bfbfbf);
}
.navbar-default .navbar-form {
border-color: transparent;
}
タイトルの調整
code:style.css
.line.line-title .text {
font-size: 1.3em;
line-height: 1.3;
font-weight: 200;
text-align: left;
margin-bottom: 2em;
}
.line.line-title .text:before {
text-align: center;
content: '';
position: absolute;
bottom: 0em;
width: 2em;
height: 0.15em;
background-color: #ddd;
}
各アイテムまわりの調整
code:style.css
.grid li.page-list-item a {
background-color: #f1f1f1;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.grid li.page-list-item a:hover {
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.grid li.page-list-item a .header {
border-top: 0;
}
.grid li.page-list-item a .title {
font-weight: 400 !important;
}
リンク関連:色・見た目の調整
code:style.css
:root {
--page-link-color: #8b9c9c;
--card-description-link-color: #8b9c9c;
--page-link-hover-color: #7ac2c1;
--relation-label-links-bg: #7ac2c1;
}
.line a.page-link {
color: var(--page-text-color);
border-bottom: 1px solid var(--page-link-color);
}
.line a.page-link:hover {
/*color: #93c2c1;*/
}
.line a.empty-page-link {
color: #4a4a4a;
background: none;
border-bottom: 1px dashed #93c2c1;
}
各ページの調整
code:style.css
.page {
box-shadow: none;
}
スリムなテロメア from /scrasobox/スリムなテロメア
code:style.css
.line .telomere .telomere-border, .line .telomere .telomere-border.unread {
transition: none;
box-sizing: content-box; border-color: #bbb }
.line .telomere .telomere-border:hover, .line .telomere .telomere-border.unread:hover {
box-sizing: border-box; width: auto;
border-color: #8f9899; background-color: transparent }
/* ↓新着以外のテロメアの色と太さ */
.line .telomere .telomere-border { background-color: transparent; width: 2px }
/* ↓新着のテロメアの色と太さ */
.line .telomere .telomere-border.unread { background-color: transparent; width: 5px }
ヘッダーメニューをカスタマイズ from /scrasobox/ヘッダーメニューをカスタマイズ
code:style.css_DISABLED
/* 1. Scrapboxアイコンをバーガーアイコンに置き換え */
.navbar-brand img, .navbar-brand span { display: none !important }
.navbar-brand::before {
content: '\f0c9'; font-family: FontAwesome; font-size: 28px; color: #aaa; }
/* 2. ページ追加ボタンを検索ボックスの右に移動 */
.navbar-form { flex-flow: row-reverse }
.new-button { margin-left: 10px; margin-right: 0 }
箇条書きを控えめにする Fork from /scrasobox/箇条書きを控えめにする
code:style.css
/* 箇条書きを控えめにする */
.app .line .indent-mark .dot {
height: .2.5em;
width: .5em;
border-radius: 0;
background-color: rgba(200,200,200,1);
}
.app:not(.presentation) .line .indent-mark .dot {
top: auto;
bottom: 0;
}
テーブルのセルをわかりやすく Fork from /scrasobox/テーブルのセルをわかりやすくする
code:style.css
.table-block table {
background-color: transparent;
border-collapse: separate;
border-spacing: 2px;
}
.table-block table tr td {
padding: .2em .6em;
background-color: rgba(0,0,0,0.04);
}
.table-block table tr:nth-child(even) td {
background-color: rgba(0,0,0,0.06);
}
/* 偶数行を濃くする */
.table-block table tr:first-child td {
font-weight: bolder;
text-align: center;
}
/* 1行目だけ太字&中央揃え */
.table-block table tr td:first-child {
padding: 0;
background-color: transparent;
border-width: 0;
}
ハッシュタグをラベル風にする from /ootaki/settings
code:style.css
/* #で始まるタグをラベル風にする */
atype="hashTag"{
display: inline-block;
padding: 2px 8px;
margin: 0 8px 10px 0;
background: var(--page-link-hover-color);
color: white !important;
font-size: 0.8em;
border-bottom: none !important;
border-radius: 3px;
}
/* 野良サイン事例集 */
atype="hashTag"href$="/%E9%87%8E%E8%89%AF%E3%82%B5%E3%82%A4%E3%83%B3%E4%BA%8B%E4%BE%8B%E9%9B%86" {
background: #d6bb61 !important;
}
atype="hashTag":hover{
/*background: #e3e3e3 !important;*/
opacity: 0.8;
}
@media print {
atype="hashTag" {display:none;}
}
ピン留めしたページのスタイルの変更
code:style.css
.grid li.page-list-item a .pin {
background-color: transparent;
background-image: none;
}
.grid li.page-list-item a .pin::after {
content: '\f02e';
font-family: 'Font Awesome 5 Free';
font-size: 20px;
color: rgba(20,20,20,0.2);
display: inline-block;
}
ピンしたページだけの列をつくる
from /forum-jp/Pin at home したページを強調したい
code:style.css
.page-list-item.pin + .page-list-item:not(.pin) {
clear: both;
}
settings のカードを薄くする
code:style.css
.grid li.page-list-item > ahref^="/eidantoei/settings" {
opacity: 0.3;
}
.grid li.page-list-item > ahref^="/eidantoei/settings":hover {
opacity: 0.5;
}
.grid li.page-list-item > ahref^="/eidantoei/settings" * {
opacity: 0;
}
.grid li.page-list-item > ahref^="/eidantoei/settings":hover * {
opacity: 1;
}
カードのタイトル部分の高さ調整
code:style.css
.grid li.page-list-item a .title {
min-height: 40px;
}
カードの角丸の調整
code:style.css
.grid li.page-list-item a {
border-radius: 5px;
}
.grid.grid-md li.page-list-item a {
border-radius: 8px;
}
水平線をクリックさせない
code:style.css
.line a.iconhref="/icons/hr",
.line a.iconhref="./hr" {
pointer-events: none;
}
カードをマウスオーバーしたときの影を消す
code:style.css
data-hover-visible .grid li.page-list-item a:hover {
box-shadow: none;
}
カードの画像をグレースケールにする
code:style.css
li.page-list-item .icon img {
filter: grayscale(100%) sepia(50%) hue-rotate(130deg) contrast(0.6);
}
li.page-list-item:hover .icon img {
filter: grayscale(0%) contrast(1);
}