settings
https://scrapbox.io/files/65070d512dbbe8001c156d5b.png
code:style.css
/* 使用方法 */
/* content の中身を直接書き換えるだけ。 */
/* 改行には 「\A」を使う */
.app .container .quick-launch.layout-list:before {
content: '';
display: block;
width: 100%;
height: 0px;
/* 文字を書いたら高さを調整 */
overflow: hidden scroll;
white-space: pre-line;
}
hr.icon
アイコン記法のページをカードリスト(ページ一覧)から消す
code:style.css
.grid li.page-list-item:is(
) {
display: none !important; /* 非表示 */
}
カードリストからの表示を消すと当該ページを見つけるのが困難になるので、対象のページをリンクしておいてください
対象のページ内にハッシュタグを埋め込んでも表示されません
検索には出てきます
現時点では、非表示にした対象ページをアイコン記法というページにおいてリンクしています hr.icon
特定の文字列を含むカードリストの背景色を設定
黄色
code:style.css
{
}
赤色
code:style.css
{
}
黄色
code:style.css
}
水色
code:style.css
}
hr.icon
code:style.css
.line img.image {
display: block;
margin: 0 auto;
}
code:css
code:style.css
.line .indent-mark .dot {
margin-top: 4px;
}
.line .indent-mark .c-1 + .dot {
}
.line .indent-mark .c-2 + .dot {
}
.line .indent-mark .c-3 + .dot {
}
.line .indent-mark .c-4 + .dot {
}
赤字強調
code:style.css
.deco-\+ {
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;
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
color: #0366d6 !important;/* ←リンクの色(青) */ text-decoration: none;
}
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;
opacity: 0.5;
transition: opacity 0.5s;
}
.page-sort-menu .tool-btn{
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 {
}
.telomere-border.unread {
}
ルビ
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;
}
/icons/hr.icon
左上のロゴ変更
code:style.css
/* ロゴ変更 */
.brand-icon {
display: none;
}
.navbar-brand:before {
content: '';
background-size: contain;
border-radius: 50%;
width: 40px;
height: 40px;
margin: 3px 3px 3px 0;
flex-shrink: 0;
}
code:style.css
.deco-\' {
padding: 6px 20px;
}