settings
プロジェクトのCSSが書ける
結果を反映するにはブラウザリロードが必要です。
settingsというページを作り、コードブロックでcode:style.cssというCSSを書く そのプロジェクト内の全員に有効なCSSとなります。 公開プロジェクトの場合、ログインしていないゲストに対しても有効です。
結果を反映するにはブラウザリロードが必要です。
code:style.css
/* 外部リンクにiconをつける */
font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
font-weight: 900;
font-size: 0.8rem;
content: ' \f35d';
display: inline-block;
}
/* コードブロック行頭の空白の色を変えるCSS */
.code-block .indent-mark {
height: 100%;
}
.code-block .indent-mark .pad {
height: 100%;
overflow: unset;
}
.code-block .indent-mark span:last-child .pad {
background-color: rgba(0, 0, 0, 0.05);
}
/* コードブロックに行番号を追加する */
}
.section-title,
.code-block-start {
counter-reset: codeline
}
.code-block .indent-mark>span.char-index:last-child {
counter-increment: codeline
}
body:not(.presentation) .code-block .indent-mark>span.char-index:last-child::before {
content: counter(codeline);
position: absolute;
}
.code-block .indent-mark>span.char-index:last-child::before {
color: var(--code-line-number-color, #3f3f3f); }
/* カーソル選択時の行番号の色 */
.cursor-line .code-block .indent-mark>span.char-index:last-child::before {
color: var(--cursor-code-line-number-color, #FF00F0); font-weight: bolder;
}
/* ピン留めされたページを独立した段に表示する */
.page-list-item.pin+.page-list-item:not(.pin) {
grid-column-start: 1;
}
/* 注意書き記法 */
.deco-\! {
padding: 0.5em 0.25em;
margin: 2em 0;
}
.deco-\!::before {
font-size: 85%;
font-family: 'Font Awesome 5 Free';
font-weight: 900;
content: '\f071';
margin-right: 0.5rem;
}
/* コメント記法 */
.deco-\# {
color: green;
font-size: smaller;
padding: 0 .2em
}
/* <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;
}
/* 水平線の誤クリックを防ぐ */
/* #で始まるタグをラベル風にする */
display: inline-block;
padding: 2px 8px;
margin: 0 8px 10px 0;
font-size: 0.8em;
border-radius: 3px;
transition: .3s;
-webkit-transform: scale(1);
transform: scale(1);
}
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
独自記法:注意書き:[! 独自記法:注意書き]を追加
独自記法:コメント:[# 独自記法:コメント]を追加