settings
https://scrapbox.io/files/65070d512dbbe8001c156d5b.png
code:style.css
/* 使用方法 */
/* content の中身を直接書き換えるだけ。 */
/* 改行には 「\A」を使う */
.app .container .quick-launch.layout-list:before {
content: '';
display: block;
background: var(--page-bg, #F0EDD8);
color: var(--page-text-color, #F0EDD8);
width: 100%;
height: 0px;
/* 文字を書いたら高さを調整 */
overflow: hidden scroll;
white-space: pre-line;
}
hr.icon
アイコン記法のページをカードリスト(ページ一覧)から消す
code:style.css
.grid li.page-list-item:is(
data-page-title="settings",
data-page-title="Neu",
data-page-title="決定", /* ←このようにページのタイトルを変更してコンマで並列させればOK */
data-page-title="hr",
data-page-title="アイコン記法"
) {
display: none !important; /* 非表示 */
}
カードリストからの表示を消すと当該ページを見つけるのが困難になるので、対象のページをリンクしておいてください
対象のページ内にハッシュタグを埋め込んでも表示されません
検索には出てきます
現時点では、非表示にした対象ページをアイコン記法というページにおいてリンクしています
hr.icon
特定の文字列を含むカードリストの背景色を設定
黄色
code:style.css
.page-list-itemdata-page-title*="ドイツフェスティバル" .content,
.page-list-itemdata-page-title*="クリスマスマーケット" .content
{
background-color: #ffffe0;
}
赤色
code:style.css
.page-list-itemdata-page-title*="企画" .content
{
background-color: #fff7f0;
}
黄色
code:style.css
.page-list-itemdata-page-title*="定例会" .content{
background-color: #ffffe0;
}
水色
code:style.css
.page-list-itemdata-page-title*="講師派遣" .content{
background-color: #f1fcff;
}
hr.icon
code:style.css
.line img.image {
display: block;
margin: 0 auto;
}
code:css
@import 'https://scrapbox.io/api/code/teamlab-frontend/インデントのドットの色を変えるUserCSS/style.css';
code:style.css
.line .indent-mark .dot {
background-color: #5FBA98;
margin-top: 4px;
}
.line .indent-mark .c-1 + .dot {
background-color: #BED16A;
}
.line .indent-mark .c-2 + .dot {
background-color: #F0CD34;
}
.line .indent-mark .c-3 + .dot {
background-color: #F77A27;
}
.line .indent-mark .c-4 + .dot {
background-color: #DB3B48;
}
赤字強調
code:style.css
.deco-\+ {
color: #FF0000;
font-weight: bold;
font-size: 1.1em;
}
タイトル見出し編集
code:style.css
.line.line-title .text {
font-size: 24px;
font-weight: bolder;
}
code:style.css
/* 右寄せ */
.deco-\> { float: right; margin-left: .5em }
code:style.css
/* 中央寄せ */
.deco-\| {
position: absolute;
width: 100%;
text-align: center;
}
hr.icon
カードリスト
ピン留めしたページを別段で表示
code:style.css
.page-list-item.pin + .page-list-item:not(.pin) {
grid-column-start: 1;
}
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: '\f08d';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
font-size: 16px;
color: #e8e800;
bottom: 0;
display: inline-block;
transform: rotate(35deg) }
.page-list-item.pin + .page-list-item:not(.pin) {
clear: both;
}
hr.icon
エディター
行間を広くする
code:style.css
.line {
line-height: 36px;
}
.text {
font-size: 110%;
font-family: "Avenir Next", Lato, "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}
リンクの色
code:style.css
atype="link".page-link, atype="hashTag".page-link, .line a.link {
color: #0366d6 !important;/* ←リンクの色(青) */
text-decoration: none;
}
atype="link".empty-page-link, atype="hashTag".empty-page-link {
color: #309b98 !important;/* ←空ページへのリンクの色(緑) */
}
.line a:hover {
text-decoration: underline;
}
画像
code:style.css
.image {
border-radius: 5px;
}
code:style.css
.grid li.page-list-item a .header {
padding: 9px 5px 6px;
text-align: center;
}
/* 最小表示 */
.grid li.page-list-item a .title {
height: 58px;
}
.grid li.page-list-item a .icon img {
display: table-cell;
width: auto;
margin-bottom: 5px;
max-height: 85px;
max-width: 88%;
vertical-align: middle;
border-radius: 3px;
position: absolute;
top: calc(50% + 35px);
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
.grid.grid-lg li.page-list-item a .description.fix {
height: 0px;
}
code:style.css
/* 本文の最後にテキスト挿入 */
.app:not(.presentation) .page::after {
content: 'ドイツゼミナール(公認慶友会) │ Deutsches Seminar der Keio-Universität';
display: block; margin-top: 4rem; padding: 1rem 0; text-align: center;
border: solid #0003; border-width: 1px 0; font: 500 normal 1.1rem/1 ; color: #888; line-height: 1.8rem;
}}
code:style.css
.navbar{
opacity: 1;
transition: opacity 0.5s;
box-shadow: none;
}
.page-menu {
opacity: 0.5;
transition: opacity 0.5s;
}
.icon-home { display: none !important;
}
.project-home { font-size: 1.5em !important;
color: #333333 !important;
opacity: 0.5;
transition: opacity 0.5s;
}
.page-sort-menu .tool-btn{
color: #333333 !important;
opacity: 0.1;
transition: opacity 0.5s;
}
.navbar:hover, .page-menu:hover, .project-home:hover, .page-sort-menu .tool-btn:hover {
opacity: 1;
}
code:style.css
/* telomere */
.telomere-border {
border-color: #f9f9f9 !important;
}
.telomere-border.unread {
border-color: #f9f9f9 !important;
}
ルビ
code:style.css
/* <ruby>相当 */
.line:not(.cursor-line) .deco-\" {
display: inline-flex;
flex-direction: column-reverse;
vertical-align: bottom; /* Chrome 108で表示が乱れる場合の対応 */
}
/* <rb>相当 */
.line:not(.cursor-line) .deco-\" > span:nth-child(1) {
display: inline-flex;
justify-content: space-around;
width: 100%;
}
/* <rt>相当 */
.line:not(.cursor-line) .deco-\" > span:nth-child(2) {
line-height: 0;
font-size: 50%;
}
/* <rt>相当 */
.line:not(.cursor-line) .deco-\" > span:nth-child(2) > a {
display: inline-flex;
justify-content: space-around;
width: 100%;
pointer-events: none;
color: var(--page-text-color, #4a4a4a);
}
/icons/hr.icon
左上のロゴ変更
code:style.css
/* ロゴ変更 */
.brand-icon {
display: none;
}
.navbar-brand:before {
content: '';
background: url('https://scrapbox.io/files/66deaa185ca95f001c4b2d08.png');
background-size: contain;
border-radius: 50%;
width: 40px;
height: 40px;
margin: 3px 3px 3px 0;
flex-shrink: 0;
}
code:style.css
.deco-\' {
border-left: #0588DF solid 0.5rem;
background: #EEF6FA;
padding: 6px 20px;
}