settings
https://gyazo.com/6310e3c5a5575b362350517772645293 https://rakugakiicon.com/?p=424
みんなに適用されるUserCSS
@importは先頭に書かないと読み込まれない
code:style.css
/* @import "/api/code/programming-notes/背景画像を設定するUserCSS/style.css"; /* */
@import "/api/code/programming-notes/ブランドアイコンを変更するUserCSS/style.css"; /* */
@import "/api/code/programming-notes/チートシートを表示するUserCSS/style.css"; /* */
PopupMenuのbuttonに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
code:style.css
.page-list-item.pin + .page-list-item:not(.pin) {
clear: both;
}
インライン引用するUserCSS
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;
overflow-y: auto;
}
/yuta0801/ScrapboxのStreamページでの文字選択を可能にするUserCSS
code:style.css
.time-range .lines {
user-select: unset;
-webkit-user-select: unset;
}
/scrasobox/画像を並べて表示
via /villagepump/settings#5f818b421280f00000bedd4a
使い方:
一行に敷き詰め: [| [画像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 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 }
kakeruの背景を白にする
code:style.css
.page-list-item img[src^="https://i.kakeru.app"] {
background-color: white;
}
/icons/iine.iconyosider.icon
プロジェクトタイトルを台無しにするUserCSS
2021/10/1 もう飽きた頃でしょうから外しましたsuto3.icon
code:stylexx.css
.quick-launch .project-home .title {
background: linear-gradient(to right,
#111,
#333,
#FFF,
#333,
#111
) 0% center / 200% auto ; /* グラデーション */
padding: 0.1em 0.2em 0.1em 0.2em;
animation: rainbow 10s linear infinite;
animation-direction: reverse;
-webkit-background-clip: text; /* */
-webkit-text-fill-color: transparent; /* */
background-clip: text;
color: transparent;
}
@keyframes rainbow {
to { background-position-x: 200%; }
}
/villagepump/navbarが画面幅いっぱいに表示されるようになった
code:style.css
.app .navbar .row {
max-width: 1200px;
margin: 0 auto;
}
/takker/scrapboxのtitleをnav barに固定するUserCSS
code:style.css
@media screen {
.quick-launch .left-box {
position: fixed;
top: -5px;
left: 35px; /* brand-iconの幅に応じて変えてください */
z-index: 1000;
}
}
@media screen and (min-width: 768px) and (max-width: 991px) {
.quick-launch .left-box {
left: 70px;
}
}
@media screen and (min-width: 992px) and (max-width: 1260px) {
.quick-launch .left-box {
left: 90px;
}
}
@media screen and (min-width: 1261px) {
.quick-launch .left-box {
left: calc((100% - 1280px)/2 + 110px);
}
}
やってみたyosider.icon
外部リンクを区別する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
.line .deco-\. {
font-size: .8em;
position: relative;
top: -0.5em;
}
.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;
}
.line:not(.cursor-line) .deco-\. .page-link:not(.icon) span.empty-char-index ~ span.char-index {
display: inherit;
width: inherit;
text-indent: inherit;
}
.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-left: 1px;
/* padding: 0 1px; */
font-family: "Font Awesome 5 Free","Font Awesome 5 Brands";
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";
}
テストdeno testqutebrowserだよ
背景に雪を降らせるUserCSS
2021/12/27 クリスマスも終わったので終了
code:stylexxx.css
body {
background-image: url('https://svg-hosting.vercel.app/api/svg?url=https://scrapbox.io/api/code/programming-notes/雪を降らせる/s02.svg');
}
/Mijinko/コードブロックの行番号を表示するUserCSS
code:style.css
/* 色設定 */
body *::before {
--code-number-color: #1C2B27;
--code-accent-color: #C9E6DE;
}
code:style.css
/* コード記法の行番号を表示 -- ウィンドウ幅768px以上で適用 */
@media screen and (min-width: 768px) {
.section-title {
counter-reset: codeline;
}
.code-block span.indent code.code-body {
counter-increment: codeline;
margin-left: -1.5em;
padding-left: 2.3em;
}
.code-block span.indent code.code-body::before {
content: counter(codeline);
position: absolute;
display: inline-block;
z-index: 10;
margin-left: -2.4em;
width: 2em;
padding-right: 0.2em;
text-align: right;
vertical-align: bottom;
border-right: solid 1px #fff;
/* ↓行番号の色の指定はここ */
color: var(--code-number-color);
}
/* カーソル行の行番号を濃く表示する */
.code-block span.indent code.code-body::before {
opacity: .5;
}
.cursor-line .code-block span.indent code.code-body::before {
opacity: 1;
font-weight: bolder;
/* ↓カーソル行の背景色の色はここ */
background-color: var(--code-accent-color);
}
}
#UserCSS UserCSS.icon