settings-base
プレゼンテーションモード
code:style.csss
.presentation .line {
display: block !important;
}
.presentation .section-title:not(:first-child) {
margin-top: 50vh;
}
.app.presentation .line.section-title {
font-size: 4vw;
margin-bottom: .5em
}
.app.presentation .line {
font-size: 2.5vw;
line-height: 1.4em
}
/icons/hr.icon
code:style.cssss
body{
font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}
行間調整
code:style.cssss
padding: 0.1em 0;
}
インラインコードブロックを色づけしない
code:style.css
code.code span {
color: inherit !important;
}
ピン止めを区切る
code:style.css
.page-list-item.pin + .page-list-item:not(.pin) {
clear: both;
}
code:style.css
/* #で始まるタグをラベル風にする */
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);
}
*/
基本
code:style.css
.line span.code-block, .line span.quote{
font-size: 90%;
line-height: 1.3em;
}
.line code {
font-size: 80%;
line-height: 1.0em;
}
.line span.code-block .code-block-start{
}
@media only screen and (max-width: 640px) {
.lines {
overflow-x: scroll;
}
}
.table-block {
font-size: 90%;
line-height: 1.5em;
}
.table-block .table-block-start {
}
.table-block .table-block-start a {
text-decoration: none;
}
/** 背景色がはみ出るのを緩和**/
.line span.code-block .code-block-margin {
background-color: transparent;
}
印刷
,付のリンクは印刷しない
code:sty.css
@media print {
display: inline-block;
break-after: page;
page-break-after: always;
}
body {
background-image: none !important;
font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
/*font-family: "游明朝体", YuMincho, "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN W3", HiraMinProN-W3, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "HGS明朝E", "MS P明朝", "MS PMincho", Georgia, Times, "Times New Roman", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
}
.line {
}
.line a.page-link{
}
.line a.link:not(.icon)::after {
content: " (" attr(href) ")" !important;
}
.line span.deco-\, a.link:not(.icon)::after {
content: "" !important;
}
.line span.deco-\, a.link:not(.icon) {
pointer-events: none;
content: "" !important;
}
}
/icons/hr.icon
スタイル調整
code:style.css
.line .quote {
font-style: normal;
}
.editor, .stream, li.page-list-item {font-family: unset !important;}
.grid li.page-list-item a {
box-shadow: 0 1px 0 rgba(0,0,0,0);
}
ul.grid li.page-list-item a .header{
}
ul.grid-md.grid li.page-list-item a .header{
}
ul.grid-lg.grid li.page-list-item a .header{
}
.grid li.page-list-item a:hover{
box-shadow: none;
}
.page {
box-shadow: 0 1px 0 rgba(0,0,0,0.16);
}
form {
}
/icons/hr.icon
ピンスタイルのカスタマイズ
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: 20px; color: #999; bottom: 0; display: inline-block; transform: rotate(35deg) }
/icons/hr.icon
はりつくメニューバー
code:style.csss
@media screen and (min-height: 600px) and (min-width: 768px) {
body:not(.presentation) { padding-top: 90px; padding-right: 0 !important }
body:not(.presentation) .page-menu { position: fixed; top: 90px }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 990; overflow: unset }
.dropdown.open .dropdown-menu {
position: absolute; left: auto; top: auto;
max-height: calc(100vh - 100px); overflow-y: auto }
.dropdown.open .dropdown-menu.global-menu { left: 0; top: 54px }
.page-menu .dropdown.open .dropdown-menu { position: absolute; top: 0 } }
/icons/hr.icon
code:style.csssss
/* 1. Scrapboxアイコンをバーガーアイコンに置き換え */
.navbar-brand img, .navbar-brand span { display: none !important }
.navbar-brand::before {
content: '\f0c9'; font-family: FontAwesome; font-size: 28px; color: #ffffff; } /icons/hr.icon
code:style.css
.navbar-form .dropdown.open .dropdown-menu {
min-width: 100%; max-height: calc(100vh - 130px) !important; overflow-y: auto }
/icons/hr.icon
スリムなテロメア
/icons/hr.icon
カーソルをカスタマイズ
code:style.css
/* カーソルの幅と色替え */
.cursor {width: 2px; background-color: rgb(0,0,0); }
/icons/hr.icon
ホームマーク削除
code:style.css
.icon-home { display: none !important; }
/icons/hr.icon
外部リンク
code:style.css
/* External links */
.line a.link:not(.icon)::after { font-family:'Font Awesome 5 Free'; font-weight: 900; content: ' \f360'; display: inline-block }
{
content:'';
display: inline-block;
background-size: contain;
background-repeat: no-repeat;
height: 1.2em;
width: 1.2em;
margin-right: 0.2em;
vertical-align: middle;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
/icons/hr.icon
Pin
code:style.css
a#Pinned.tool-btn:hover { text-decoration: none }
a#Pinned.tool-btn::before { position: absolute; left: calc(46px/3); content: '\f08d'; font: 22px/46px 'Font Awesome 5 Free'; font-weight: 900; }
a#Pinned.tool-btn img { opacity: 0 }
/icons/hr.icon
テーブルのセルをわかりやすくする
code:style.css
.table-block .cell {margin: 1px}
.section-title+.line .table-block .cell { font-weight: bolder; text-align: center }
table:test
属性 値
a 1
b 2
/icons/hr.icon
行頭のドットスタイル
箇条書き記号
code:style.css
.line .indent-mark .dot {
top: 11px;
width: 6px;
height: 3px;
}
/icons/hr.icon
セクション区切りを可視化
DECO
/icons/hr.icon
二重括弧にマーカーを引く
二重括弧[[]]で蛍光ペン(ラインマーカー) (ハイライト)を引く
/icons/hr.icon
code:style.css
.line strong:not(class) { /* background: #ABFF4F; padding: 0em 0.2em;*/ /* background: linear-gradient(transparent 10%, #ABFF4F 25%, #ABFF4F 70%, transparent 90%) */ /* background: linear-gradient( transparent 70%, #e8a2a2 0% );*/ }
code:style.csss
color:#0a0705;
/* background: linear-gradient(#ffffff 30%,#00ff01 80%)*/
}
/icons/hr.icon
強調文字に色を付ける
code:style.csss
.line strong {
}
/icons/hr.icon
ハンコ記法
code:style.css
display: inline-block; border-radius: 50%; border: .05em solid #f40; min-width: 1em; padding: .1em; vertical-align: text-bottom;
line-height: 1; color: #f40; font-weight: 600 } /icons/hr.icon
吹き出し
yuunkjm.icon 吹き出しが書ける yuunkjm.icon 反対サイド yuunkjm.icon
コメントをつける時に使うかな.
code:style.css
/* フキダシ記法版 */
.line:not(.cursor-line) .deco-\{ {
display: inline-block; position: relative; max-width: calc(100% - 4em);
line-height: 1.2; color: #FFF !important; background-color: #5e8af7; padding: 3px 4px 2px 5px; margin: 0 .6em .4em .6em;
border-radius: .4em; }
.line:not(.cursor-line) .deco-\{::after {
display: block; /* reduce the damage in FF3.0 */
position: absolute; bottom: 0.4em; left: -0.45em;
width: 0; content: '';
border-width: 0 0 .5em .5em; border-style: solid; border-color: #5e8af7 transparent } .line:not(.cursor-line) .deco-\} {
display: inline-block; position: relative; max-width: calc(100% - 4em);
line-height: 1.2; color: #FFF !important; background-color: rgba(107, 177, 148, 1.0); padding: 5px 4px 2px 3px; margin: 0 .6em .4em .6em;
border-radius: .4em; }
.line:not(.cursor-line) .deco-\}::after {
display: block; /* reduce the damage in FF3.0 */
position: absolute; bottom: 0.4em; right: -0.45em;
width: 0; content: '';
border-width: 0 .5em .5em 0; border-style: solid; border-color: rgba(107, 177, 148, 1.0) transparent }
code:style.csssss
/* { で始まるタグを吹き出しにする ※アイコン記法は除く */
display: inline-block; position: relative; vertical-align: text-top;
line-height: 1; font-size: 91%; color: #FFF !important; background-color: rgba(107, 177, 148, 0.85); padding: 3px 4px 1px 5px; margin-left: 10px;
border-radius: 4px; border-bottom-left-radius: 0 }
display: block; /* reduce the damage in FF3.0 */
position: absolute; bottom: 0; left: -7px;
width: 0; content: "";
border-width: 0 0 7px 7px; border-style: solid; border-color: rgba(107, 177, 148, 0.85) transparent }
.line ahref^="./%7B":not(.icon) span:first-child { display: none } .line.cursor-line ahref^="./%7B":not(.icon) span:first-child { display: inline } code:style.ssscss
/* 吹き出し本体 */
.deco-\{, .deco-\} {
font-size: 1em;
padding: 0em 0.8em;
border-radius: 0.8em;
margin: 0em 0.3em;
display: inline-block;
max-width: calc(100% - 100px);
vertical-align: top;
}
/* 左吹き出しの角 */
.deco-\{:before {
position: absolute;
margin: 0;
padding: 0;
transform: translateX(-100%) translateY(calc(1.4em - 80%));
width: 0;
content: "";
border-width: 0 0 1.4em 1.4em;
border-style: solid;
}
/* 右吹き出しの角 */
.deco-\}:after {
position: absolute;
margin: 0;
padding: 0;
transform: translateY(calc(1.4em - 80%));
width: 0;
content: "";
border-width: 0 1.4em 1.4em 0;
border-style: solid;
}
.deco-\{.deco-\}:before,.deco-\{.deco-\}:after {
border-style: none;
}
/* 吹き出し内のリンク色の調整 */
.deco-\{ a.page-link, .deco-\} a.page-link {
}
.line .deco-\{.deco-_ { text-decoration: underline }
/icons/hr.icon
コメント記入用
yuunkjm.icon コメント124
[% [yuunkjm.icon] コメント]
code:style.css
.deco-\% {
font-style: italic;
font-size: 90%;
}
/icons/hr.icon
文中に引用を挿入
ねこだいすき[" ねこだいすき]
例)文章の途中ですがここだけ引用です。
code:style.css
.deco-\" {
border-radius: .2em; padding: 0 .4em; background-color: rgba(128,128,128,0.1);
font-size:95%; font-style: italic }
.deco-\"::before {
color: #a0a0a0; font-size:85%; font-family: 'Font Awesome 5 Free'; font-weight: 900; content: '\f10d'; vertical-align: super }
/icons/hr.icon
位置揃えをする
左寄せ
右寄せ
センタリング
https://gyazo.com/ca331fb733c8d25b5894e6ca67b6edc2
https://gyazo.com/ca331fb733c8d25b5894e6ca67b6edc2
/yuunkjm/blank.icon
code:style.css
@media print, (min-width: 768px) {
.app:not(.presentation) .deco-\< img.image{float: left; margin-right: 1em; }
}
.app:not(.presentation) .deco-\> {text-align:right; float:right;}
.app:not(.presentation) .deco-\> img.image { margin-left: auto; margin-right: 0; }
.app:not(.presentation) .deco-\<.deco-\> { text-align: center; width:100%;}
.app:not(.presentation) .deco-\<.deco-\> img.image{margin-left: auto; margin-right: auto; float:none; display:block;}
/* .deco-\<.deco-\> { position: absolute; width: 100%; text-align: center } */
/* .deco-\<.deco-\> { text-align: center; margin-left: auto; margin-right: auto; width: 100%;}*/
/icons/hr.icon
画像
画像を四角で囲む
https://gyazo.com/60339090fec49eb468b2b160b8bebe0d
code:style.css
.deco-\! img{
padding: 4px;
}
ミニ画像アイコン表示
https://gyazo.com/60339090fec49eb468b2b160b8bebe0d
code:style.css
.deco-\, img{
max-width: none !important;
max-height: 1em !important;
vertical-align: middle !important;
}
画像サイズ
code:style.css
.level-1 img.image { width: 12.5%; max-height: none; }
.level-2 img.image { width: 25.0%; max-height: none; }
.level-3 img.image { width: 37.5%; max-height: none; }
.level-4 img.image { width: 50.0%; max-height: none; }
.level-5 img.image { width: 66.6%; max-height: none; }
.level-6 img.image { width: 83.3%; max-height: none; }
/icons/hr.icon
画像を並べて表示
一行に敷き詰め [| [画像URL][画像URL][画像URL]…]
横幅いっぱい1列並べ [*| [画像URL][画像URL][画像URL]…]
3列並べ [*| [画像URL][画像URL][画像URL]…]
5列並べ [***| [画像URL][画像URL][画像URL]…]
code:style.css
/* マトリクス記法 */
.line:not(.cursor-line) .deco-\| { display: inline-flex }
.line .deco-\| img.image { object-fit: contain; margin: 0 }
/* 太字記法と組み合わせて列数を変える */
.line .level-1 .deco-\| > span { width: calc(100%/1) }
.line .level-2 .deco-\| > span { width: calc(100%/2) }
.line .level-3 .deco-\| > span { width: calc(100%/3) }
.line .level-4 .deco-\| > span { width: calc(100%/4) }
.line .level-5 .deco-\| > span { width: calc(100%/5) }
.line class^="level" .deco-\| img.image { object-fit: cover; width: 100%; height: 100% } /* 並べた画像の間にスキマが欲しい場合はこの2行を追加・ぴっちり敷き詰めたい場合はこの2行は不要 */
.line .deco-\| > span, .line class^="level" .deco-\| > span { overflow: hidden } .line .deco-\| img.image, .line class^="level" .deco-\| img.image { margin: .2em } /icons/hr.icon
栞
code:style.css
/* しおり記法 -- 栞箇所のマークやハイライトが不要な場合はこのブロックは消してね */
.app:not(.presentation) .line .deco-\. {
/* padding: 0.1em 0.4em;
padding: 0.1em 0.4em;
}
/*
@media screen {
.app:not(.presentation) .line .deco-\.::after {
padding-left: .3em;
content: '\f02e'; font: 1.7rem/1 'Font Awesome 5 Free'; color: yellowgreen }
}
*/
/* 栞一覧を出すページメニューボタンのスタイル -- ここは必要 */
button#Bookmarks.tool-btn:hover { text-decoration: none }
button#Bookmarks.tool-btn::before {
position: absolute; content: '\f02e'; font: 400 20px/46px 'Font Awesome 5 Free' }
button#Bookmarks.tool-btn img { opacity: 0 }
/icons/hr.icon
はみ出し付箋
テスト
テスト
テスト
code:style.css
/* 付箋記法のスタイル例 */
.app:not(.presentation) .line:not(.cursor-line) .deco-\~ {
display: inline-block;
margin-left: -0.5rem;
max-width: 100%; padding: .3rem 1rem;
/*transform: rotate(-0.8deg);*/
box-shadow: 4px 1px 3px rgba(0,0,0,.2) }
.presentation .line .deco-\~ { position: static; max-width: 0% }
@media screen and (max-width: 768px) { .line:not(.cursor-line) .deco-\~ { position: static; max-width: 100% } }
@media print { .line:not(.cursor-line) .deco-\~ {
right: 0; border-bottom: 1px solid #ccc; background-color: #f9f8f6 } } /* 太字記法との組み合わせでスタイルを変える場合 */
.line .level-2 .deco-\~ { border-left-color: #009175 } .line .level-3 .deco-\~ { border-left-color: #EFBB33 } .line .level-4 .deco-\~ { border-left-color: #F23E2E } /* 付箋記法内で打消し線記法と下線記法を併用する場合 */
.line .deco-\~.deco-- { text-decoration: line-through }
.line .deco-\~.deco-_ { text-decoration: underline }
/icons/hr.icon
等幅フォント
code:style.css
.deco-\' {
font-family: Consolas, "Helvetica Neue",
Arial,
"Hiragino Kaku Gothic ProN",
"Hiragino Sans",
Meiryo,
sans-serif;
}
ブロック化
code:style.csssssss
.deco-\& {
display: block;
width: 100%;
}
ボックスを作る
これはボックスです.
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
code:style.css
.deco-\& {
padding: 0.1em 0.4em;
}
/*
.deco-\' a{
font-weight: bold;
}
*/
code:style.csss
.deco-\' {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
padding: 0.1em 0.4em;
/*border-radius: 0.4em;*/
/*display: inline-block;*
/*white-space: pre-wrap;
max-width: calc(100% - 100px);*/
}
/icons/hr.icon
重要な部分を赤で囲む
ここが重要なところです!!
code:style.css
.deco-\# {
border-radius: 0.4em;
padding: 0.1em 0.4em;
}
.deco-\# a{
font-weight: bold;
}
重要な部分を青で囲む
code:style.css
.deco-\+ {
border-radius: 0.4em;
padding: 0.1em 0.4em;
}
.deco-\+ a{
font-weight: bold;
}
/icons/hr.icon
重要な部分を赤くする
ここが重要なところです!!
code:style.css
.deco-\! {
font-weight: bold;
}
のびのびドロップダウン
code:style.cssss
.navbar-form .dropdown.open .dropdown-menu {
min-width: 100%; max-height: calc(100vh - 130px) !important; overflow-y: auto }
/icons/hr.icon
ICON
/icons/hr.icon
バッジになるタグ
code:style.css
display: inline-block; min-width: 2.2em; border-radius: .2em;
text-align: center; font: bolder 100%/normal Futura, Arial, sans-serif; color: #FFF } display: inline-block; min-width: 3.2em; border-radius: .2em;
text-align: center; font: bolder 100%/normal Futura, Arial, sans-serif; color: #FFF; }
/icons/hr.icon
タグアイコン (Font Awesome)
< [<] > [>] 矢印 * [*] 重要 !! [!!] 警告 ! [!] 注意 ? [?] 疑問 _ [_] タスク x [x] 完了タスク e [e] イベント o o x [x] code:style.css
/* タグアイコンの共通スタイル (1) */
.line:not(.cursor-line) ahref$='/!':not(.icon) span, .line:not(.cursor-line) ahref$='/*':not(.icon) span, .line:not(.cursor-line) ahref$='/_':not(.icon) span, .line:not(.cursor-line) ahref$='/x':not(.icon) span, .line:not(.cursor-line) ahref$='/o':not(.icon) span, .line:not(.cursor-line) ahref$='/e':not(.icon) span { display: inline-block; width: 0; text-indent: -9999px;
}
/* タグアイコンの共通スタイル (2) */
.line:not(.cursor-line) ahref$='/!!':not(.icon)::after, .line:not(.cursor-line) ahref$='/!':not(.icon)::after, .line:not(.cursor-line) ahref$='/*':not(.icon)::after, .line:not(.cursor-line) ahref$='/_':not(.icon)::after, .line:not(.cursor-line) ahref$='/x':not(.icon)::after, .line:not(.cursor-line) ahref$='/o':not(.icon)::after, .line:not(.cursor-line) ahref$='/oo':not(.icon)::after, .line:not(.cursor-line) ahref$='/e':not(.icon)::after { display: inline-block; min-width: 1.15em; padding-left: 1px; padding-right: 1px;
font-family: 'Font Awesome 5 Free'; font-weight: 900;
font-size: 100%; text-align: center; vertical-align: middle;}
/* ここから各アイコンの設定 */
.line:not(.cursor-line) ahref$='/%22':not(.icon)::after { content: '\f10d'; color: lightgray } .line:not(.cursor-line) ahref$='/!!':not(.icon)::after { content: '\f06a'; color: #FF4400 } .line:not(.cursor-line) ahref$='/!':not(.icon)::after { content: '\f06a'; color: #F6AE2D } .line:not(.cursor-line) ahref$='/*':not(.icon)::after { content: '\f005'; color: #F26419 } .line:not(.cursor-line) ahref$='/_':not(.icon)::after { content: '\f096'; color: #08BDBD } .line:not(.cursor-line) ahref$='/x':not(.icon)::after { content: '\f057'; color: #F6AE2D } .line:not(.cursor-line) ahref$='/o':not(.icon)::after { content: '\f058'; color: #2489C5 } .line:not(.cursor-line) ahref$='/oo':not(.icon)::after { content: '\f559'; color: #2489C5 } .line:not(.cursor-line) ahref$='/e':not(.icon)::after { content: '\f10c'; color: #F26419 } --.icon
--.iconは選択させない
code:style.css
pointer-events: none; cursor: default;
}
page-break-after: always;
}
ポップアップメニューをさっぱり
code:style.css
/* ポップアップメニューの修飾ボタンをアイコン化 */
.popup-menu .button-container .button.strong-button > strong,
.popup-menu .button-container .button.italic-button > i,
.popup-menu .button-container .button.strike-button > strike {
display: inline-block; width: 0; text-indent: -9999px }
.selections .popup-menu .button-container .button.link-button,
.selections .popup-menu .button-container .button.new-page-button,
.selections .popup-menu .button-container .button.copy-plain-button {
font-size: 0;
}
.popup-menu .button-container .button.copy-plain-button::after,
.popup-menu .button-container .button.link-button::after,
.popup-menu .button-container .button.strong-button::after,
.popup-menu .button-container .button.italic-button::after,
.popup-menu .button-container .button.strike-button::after {
font: 900 100%/normal 'Font Awesome 5 Free';
display: inline-block; min-width: 16px; text-align: center }
.popup-menu .button-container .button.strong-button::after { content: '\f032' }
.popup-menu .button-container .button.italic-button::after { content: '\f033' }
.popup-menu .button-container .button.strike-button::after { content: '\f0cc' }
.popup-menu .button-container .button.link-button::after {
font-size: 11px;
content: '\f0c1';
}
.popup-menu .button-container .button.copy-plain-button::after {
font-size: 11px;
content: '\f0c5';
}
/* ポップアップメニューのボタン周りの線を消す */
.selections .popup-menu .button-container .button:not(:first-of-type) { border: 0 }