settings
https://gyazo.com/6310e3c5a5575b362350517772645293 https://rakugakiicon.com/?p=424
みんなに適用されるUserCSS
@importは先頭に書かないと読み込まれない
FontAwesomeを使うUserCSS
code:style.css
.popup-menu .button-container .button {
font-family: "Open Sans", Helvetica, Arial, "Hiragino Sans", sans-serif, "Font Awesome 5 Free", "Font Awesome 5 Brands";
font-size: 11px;
font-weight: 600;
display: inline-block;
text-align: center;
}
.page-menu arole="menuitem" {
font-family: "Open Sans", Helvetica, Arial, "Hiragino Sans", sans-serif, "Font Awesome 5 Free", "Font Awesome 5 Brands";
}
.grid li {
font-family: "Roboto", Helvetica, Arial, "Hiragino Sans", sans-serif, "Font Awesome 5 Free", "Font Awesome 5 Brands";
}
.grid i {
font-style: normal;
}
/customize/Streamにアクセスするボタンを表示するCSS
code:style.css!
.navbar .navbar-menu>li.stream-btn,
.navbar .navbar-menu>li.stream-btn.hidden-xs
{ display: block !important; }
/forum-jp/箇条書きの最初に数式がくると中黒が表示されない
code:style.css
.line.formula-line .dot { display: block }
/forum-jp/LaTeXが2行で表示される#5f33761e75a14100006f83aa
code:style.css
.line .katex .mord.text { display: inline; }
/forum-jp/インラインのコード記法は色をつけないで欲しい
code:style.css
code.code span {
color: inherit !important;
}
ピン留めされたページを独立した段に表示するUserCSS
from /aioilight/settings
code:style.css
.page-list-item.pin + .page-list-item:not(.pin) {
grid-column-start: 1;
}
インライン引用するUserCSS
from /scrasobox/拡張記法がきた!#59e5376896b9040000af691a
test
code:style.css
.deco-\" {
border-radius: .2em;
padding: 0 .4em;
background-color: rgba(128,128,128,0.1);
font-size: 95%;
font-style: italic;
}
.line:not(.cursor-line) .deco-\"::before {
color: #a0a0a0;
font-size: 85%;
font-family: "Font Awesome 5 Free";
content: '\f10d';
font-weight: 900;
position: relative;
top: -0.5em;
left: -0.2em;
}
/scrasobox/のびのびドロップダウン
code:style.css
.navbar-form .dropdown.open .dropdown-menu {
min-width: 100%;
/*max-height: calc(100vh - 130px) !important;*/
max-height: 60vh !important;
overflow-y: auto;
}
/rmaruon-settings/center-thumbnails
code:style.css!
.grid li.page-list-item a .icon {
position: relative;
padding: 0;
margin: auto;
}
.grid li.page-list-item a .icon img {
display: table-cell;
width: auto;
/*max-height: 100px;*/
max-height: 100%;
max-width: 90%;
vertical-align: middle;
border-radius: 3px;
}
画像を並べて表示
from /scrasobox/画像を並べて表示
code:style.css!
/* マトリクス記法 */
.line:not(.cursor-line) .deco-\| { display: inline-flex }
.line .deco-\| img.image { object-fit: contain; margin: 0 }
/* 太字記法と組み合わせて列数を変える */
.line class^="level" .deco-\| { flex-wrap: wrap }
.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 }*/
動画を並べて表示する記法
code:style.css
/* マトリクス記法 */
.line:not(.cursor-line) .deco-\| { display: inline-flex }
.line .deco-\| :where(.iframe-video-player iframe, video.video) { object-fit: contain; margin: 0 }
/* 太字記法と組み合わせて列数を変える */
.line class^="level" .deco-\| { flex-wrap: wrap }
.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-\| :where(.iframe-video-player iframe, video.video) { object-fit: cover; width: 100%; height: 100% }
/* 並べた画像の間にスキマが欲しい場合はこの2行を追加・ぴっちり敷き詰めたい場合はこの2行は不要 */
/*
.line .deco-\| > span, .line class^="level" .deco-\| > span { overflow: hidden }
.line .deco-\| :where(.iframe-video-player iframe, video.video) { margin: .2em }
*/
/* 文字サイズは元のまま */
.line .deco-\|.deco-\* > span{ font-size: 15px; line-height: 15px; font-weight: normal;}
箇条書きのbulletを控えめにするUserCSS
from /takker/settings#5ff6d1631280f000009bc367
code:style.css
.line .indent-mark .dot {
top: 11px;
width: 6px;
height: 3px;
background-color: #c9c9c9;
}
/villagepump/navbarが画面幅いっぱいに表示されるようになった
code:style.css
.app .navbar .row {
max-width: 1200px;
margin: 0 auto;
}
外部リンクを区別するUserCSS
from /takker/外部リンクを区別するUserCSS
code:style.css
/* 外部リンクにiconをつける */
.line span:not(.modal-image):not(.pointing-device-map) > a.link:not(.icon)::after {
font-family: 'Font Awesome 5 Free';
content: ' \f35d';
font-weight: 600;
display: inline-block;
}
リンクを出典アイコンにするUserCSS
from /villagepump/リンクを出典アイコンにするUserCSS
code:style.css
/* 上付きにする */
.deco-\. {
font-size: .8em;
position: relative;
top: -0.5em;
}
/* リンク文字列の3文字目以降を消す */
.line:not(.cursor-line) .deco-\. a:is(.page-link:not(.icon), .link) span:not(.empty-char-index) + span + span ~ span {
display: inline-block;
width: 0;
text-indent: -9999px;
}
/* 行リンクの行idの部分は表示する */
.line:not(.cursor-line) .deco-\. .page-link:not(.icon) span.empty-char-index ~ span.char-index {
display: inherit;
width: inherit;
text-indent: inherit;
}
/* 行idの直前に#をつける */
.line:not(.cursor-line) .deco-\. a.page-link:not(.icon) span.empty-char-index + span::before {
content: "#";
}
/* . の場合のマーク */
.line .deco-\. :is(.page-link:not(.icon), .link)::before {
display: inline-block;
min-width: 1.15em;
padding: 0 1px;
font-family: 'Font Awesome 5 Free';
text-align: center;
vertical-align: middle;
font-weight: 900;
content: "\f02d";
}
/* ./ の場合のマーク */
/* 斜体を取り消す */
.line .deco-\..deco-\/ {
font-style: initial;
}
.line .deco-\..deco-\/ :is(.page-link:not(.icon), .link)::before {
font-weight: 400;
content: "\f15c";
}