settings
code:style.css
/* Section title */
//.app:not(.presentation) .line.section-title:not(.line-title) .text {
// border-top: 1px dashed rgba(173,173,173,.5) }
body {
background-color:#e7e7df;
}
.navbar-default {
background-color:#d8d8c6;
}
/* 箇条書きを控えめにする */
.app .line .indent-mark .dot {
height: .2em; width: .4em; border-radius: 25%;
background-color: rgba(173,173,173,.55) }
.app:not(.presentation) .line .indent-mark .dot { top: auto; bottom: 0 }
/* 画像を[* ]で囲むと小さくなる */
/* 画像を選択してpopupのmenuからStrongを選ぶと良い */
span.deco strong.level-1 span.modal-image a img.image{
height: 5em;
/*display:none;*/
}
/* 禁則処理(検証中) */
body {
line-break:strict;
word-break:break-word;
overflow-wrap:break-word;
word-wrap:break-word;
}
プレゼンテーション
code:presentation.css
/* Section title */
//.app:not(.presentation) .line.section-title:not(.line-title) .text {
// border-top: 1px dashed rgba(173,173,173,.5) }
body {
}
/* 箇条書きを控えめにする */
.app .line .indent-mark .dot {
height: .2em; width: .4em; border-radius: 25%;
background-color: rgba(173,173,173,.55) }
.app:not(.presentation) .line .indent-mark .dot { top: auto; bottom: 0 }
/* 画像を[* ]で囲むと小さくなる */
/* 画像を選択してpopupのmenuからStrongを選ぶと良い */
span.deco strong.level-1 span.modal-image a img.image{
height: 5em;
/*display:none;*/
}
font-size:4.5vw !important;
text-align:left !important;
}
.presentation .line {
font-size:3vw !important;
margin-top:0.5em;
margin-bottom:0.5em;
font-family: '游ゴシック体', YuGothic, '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック', 'Yu Gothic', 'メイリオ', sans-serif !important;
}
.presentation span.indent {
line-height:1.5em;
}
.presentation LI {
line-height:1.6em;
}
/* 強調をアンダーラインぽく */
.presentation .line strong {
//border-bottom: 0.2em solid yellow;
background:linear-gradient(transparent 60%, #ff6 60%); }
/* 二重括弧による強調をマーカーっぽくする */
//.line strong:not(class) { // background: linear-gradient(transparent 10%, #ffff7c 25%, #ffff7c 70%, transparent 90%) //}
/* 画像をフルサイズ表示 */
//.presentation .line img.image {
// max-height: 95% !important;
// max-width: 95% !important;
//}
code:page.js
scrapbox.PageMenu.addItem({
title: () => {
if (!scrapbox.Page.lines) return
const chars = scrapbox.Page.lines.map(line => line.text.length).reduce((a,b) => a + b)
const words = scrapbox.Page.lines.map(line => line.text.split(/\s+/).length).reduce((a,b) => a + b)
return ${chars}文字 ${words}単語 ${scrapbox.Page.lines.length}行
},
onClick: () => null
})