settings
特定のリンクを持つカードの背景色を変更する+タイトルに絵文字を付与する
code:style.css
/* @index があるページを最優先で 🗂️ にする */
body .grid li.page-list-itemdata-page-links*='@index'>a .title:before {
content: "🗂️" !important;
}
.grid li.page-list-itemdata-page-links*='@reference:'>a .title:before{
content:"🔗"
}
.grid li.page-list-itemdata-page-links*='@reference:'>a{
background-color: #fff7e6;
}
.grid li.page-list-itemdata-page-links*='@idea'>a .title:before{
content:"💡"
}
.grid li.page-list-itemdata-page-links*='@idea'>a{
background-color: #eee8aa;
}
.grid li.page-list-itemdata-page-links*='@question'>a .title:before{
content:"🔍"
}
.grid li.page-list-itemdata-page-links*='@question'>a{
background-color: #eee8aa;
}
.grid li.page-list-itemdata-page-links*='@output'>a .title:before{
content:"📰"
}
.grid li.page-list-itemdata-page-links*='@output'>a{
background-color: #ffe6ea;
}
.grid li.page-list-itemdata-page-links*='@clip'>a .title:before{
content:"📎"
}
.grid li.page-list-itemdata-page-links*='@clip'>a{
background-color: #DBE6D3;
}
.grid li.page-list-itemdata-page-links*='61.13_🎥映画'>a .title:before{
content:"🎥"
}
.grid li.page-list-itemdata-page-links*='61.14_📺ドラマ'>a .title:before{
content:"📺"
}
.grid li.page-list-itemdata-page-links*='61.17_📗漫画'>a .title:before{
content:"📗"
}
.grid li.page-list-itemdata-page-links*='🍳レシピ'>a .title:before{
content:"🍳"
}
.grid li.page-list-itemdata-page-links*='61.20_📻ラジオ・ポッドキャスト'>a .title:before{
content:"📻"
}
.grid li.page-list-itemdata-page-links*='61.21_🎵音楽'>a .title:before{
content:"🎵"
}
.grid li.page-list-itemdata-page-links*='61.15_📺アニメ'>a .title:before{
content:"📺"
}
.grid li.page-list-itemdata-page-links*='61.16_🎮ゲーム'>a .title:before{
content:"🎮"
}
.grid li.page-list-itemdata-page-links*='61.19_🎭ライブ(イベント)'>a .title:before{
content:"🎭"
}
ネタバレ配慮
code:style.css
.deco-\#{ /* 記法のキーとして#を使ったけど何でもいいと思う */
background-color: #4a4a4a; /* 背景色をテキスト色と同じにする */
}
.line.cursor-line .deco-\#, .deco-\#:hover { /* カーソルがある行とマウスホバー時だけ背景を戻す */
background-color: inherit;
}
吹き出し
code:style.css
.deco-\{, .deco-\} {
font-size: 1em;
color: #fff;
background-color: #b2bcba;
padding: 0.1em 0.2em 0.1em 0.2em;
border-radius: 0.4em;
margin: auto 0.3em;
display: inline-block;
max-width: calc(100% - 100px);
vertical-align: top;
}
左吹き出しの角
code:style.css
.deco-\{:before {
position: absolute;
margin: 0;
padding: 0;
transform: translateX(-100%) translateY(calc(1em - 80%));
width: 0;
content: "";
border-width: 0 0 0.6em 0.6em;
border-style: solid;
border-color: #b2bcba transparent;
}
右吹き出しの角
code:style.css
.deco-\}:after {
position: absolute;
margin: 0;
padding: 0;
transform: translateY(calc(1em - 80%));
width: 0;
content: "";
border-width: 0 0.6em 0.6em 0;
border-style: solid;
border-color: #b2bcba transparent;
}
強調吹き出しの角
code:style.css
.deco-\!:before, .deco-\!:after {
border-color: #ee6666 transparent;
}
吹き出し内のリンク色の調整
code:style.css
.deco-\{ a,
.deco-\} a {
color: #66F;
}
ハイライト
code:style.css
/* 二重括弧による強調をマーカーっぽくする */
.line strong:not(class) {
background: linear-gradient(transparent 10%, #ABFF4F 25%, #ABFF4F 70%, transparent 90%)
}