settings
#hide
#工事中
他の人のsettingページを見て参考にしたり、Geminiを利用して制作したのであんまり参考にならないかも
---
メイン
code: style.css
/*
* ==========================================================
* Scrapbox Custom CSS
* ==========================================================
*/
:root {
/* 古いインターネットとWindows UIをベースにした配色 */
--win-gray: #c0c0c0;
--win-dark: #808080;
--win-darker: #404040;
--win-light: #dfdfdf;
--win-lighter: #ffffff;
--bg-page: #fbfbfb;
--text-main: #2a2a2a;
--text-muted: #777777;
/* 冷たいインクブルー(選択色) */
--color-link: #0033cc;
--color-visited: #330099;
--color-hover-bg: #e6f0fa;
--clinic-blue: #336699;
--clinic-pale: #f0f4f8;
}
/* =========================================
1. カルテ線とデータストリーム/AI
========================================= */
body, .app {
background-color: var(--win-gray) !important;
color: var(--text-main) !important;
font-family: "MS PGothic", "MS Pゴシック", Tahoma, Arial, sans-serif !important;
font-size: 13.5px !important;
line-height: 1.6 !important;
letter-spacing: 0.03em !important;
z-index: 0;
}
/* ごく薄い罫線(静止状態) */
body::before {
content: "";
position: fixed;
top: 0; left: 0; width: 100vw; height: 100vh;
background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
background-size: 100% 24px;
z-index: -3;
pointer-events: none;
}
/* -----------------------------------------
レイヤー3(画面下部で微かに動くデータストリーム)
----------------------------------------- */
.app::before {
content: "ପ₍ᐢ๑• ֊ •๑ᐢ₎ଓ";
position: fixed;
bottom: 2px;
left: 0;
width: 200vw;
font-family: "Courier New", monospace;
font-size: 10px;
color: rgba(0, 0, 0, 0.04);
white-space: nowrap;
pointer-events: none;
z-index: -1;
animation: dataStream 60s linear infinite;
}
@keyframes dataStream {
0% { transform: translateX(0); }
100% { transform: translateX(-50vw); }
}
/* -----------------------------------------
右下の無機質なAI(ASCII)
----------------------------------------- */
.app::after {
content: "ପ₍ᐢ๑• ֊ •๑ᐢ₎ଓ" ;
position: fixed;
bottom: 20px;
right: 20px;
font-family: "MS PGothic", "MS Pゴシック", monospace;
font-size: 11px;
line-height: 1.2;
color: var(--win-dark);
white-space: pre;
pointer-events: none;
z-index: 1000;
opacity: 0.3;
transition: all 0.5s ease;
}
/* 画面ホバーで変化 */
.app:hover::after {
content: "ପ₍ᐢ๑• ֊ •๑ᐢ₎ଓ";
color: var(--clinic-blue);
opacity: 0.7;
text-shadow: 0 0 5px rgba(51, 102, 153, 0.4);
}
/* =========================================
2. ヘッダー(旧式タイトルバー)
========================================= */
.navbar {
background: linear-gradient(90deg, #000080, #1084d0) !important;
border-bottom: 2px outset var(--win-light) !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.navbar .navbar-brand span,
.navbar a,
.navbar .title,
.navbar i {
color: #ffffff !important;
font-weight: bold !important;
text-shadow: 1px 1px 0px #000000 !important;
letter-spacing: 0.05em;
}
/* 検索窓(古典的テキストボックス) */
inputtype="text", .search-input {
background-color: var(--win-lighter) !important;
color: var(--text-main) !important;
border: 2px solid !important;
border-top-color: var(--win-dark) !important;
border-left-color: var(--win-dark) !important;
border-bottom-color: var(--win-light) !important;
border-right-color: var(--win-light) !important;
border-radius: 0 !important;
font-family: inherit !important;
padding: 4px 8px !important;
text-shadow: none !important;
}
inputtype="text":focus, .search-input:focus {
background-color: var(--color-hover-bg) !important;
outline: none !important;
}
/* =========================================
3. Windows風ウィンドウUI構造(ページ本体)
========================================= */
.page {
background-color: var(--bg-page) !important;
border: 2px solid;
border-top-color: var(--win-dark) !important;
border-left-color: var(--win-dark) !important;
border-bottom-color: var(--win-lighter) !important;
border-right-color: var(--win-lighter) !important;
box-shadow:
-1px -1px 0 var(--win-darker),
1px 1px 0 var(--win-lighter),
-2px -2px 0 var(--win-gray),
2px 2px 0 var(--win-gray),
-3px -3px 0 var(--win-light),
3px 3px 0 var(--win-darker) !important;
border-radius: 0 !important;
padding: 36px 30px !important;
margin-top: 20px !important;
max-width: 800px !important;
margin-left: auto !important;
margin-right: auto !important;
}
/* 本文を区切るテキストサイト風の極薄の点線 */
.line {
border-bottom: 1px dotted rgba(0, 0, 0, 0.08) !important;
}
/* -----------------------------------------
MODIFIED コードとプログラムブロック
枠線は敷かず、背景色だけを微かに濃くして識別可能に
----------------------------------------- */
code, .code-block {
background-color: rgba(0, 0, 0, 0.04) !important; /* メイン背景より微かに濃いグレー */
border: none !important;
border-radius: 0 !important;
color: var(--text-main) !important;
font-family: "MS Gothic", "MS ゴシック", Courier, monospace !important;
padding: 2px 4px !important; /* インラインでの余白 */
}
/* 複数行コード(pre)のスタイル */
pre {
background-color: rgba(0, 0, 0, 0.04) !important;
border: none !important;
/* 視認性のために左端にだけ控えめな線を残す */
border-left: 2px solid var(--win-dark) !important;
border-radius: 0 !important;
color: var(--text-main) !important;
font-family: "MS Gothic", "MS ゴシック", Courier, monospace !important;
padding: 8px 12px !important;
margin: 8px 0 !important;
display: block !important;
}
/* =========================================
4. タイポグラフィと見出し(日記風の静けさ)
========================================= */
.line.line-title {
margin-bottom: 24px !important;
border-bottom: 1px solid var(--win-dark) !important;
padding-bottom: 8px !important;
}
.line.line-title .text {
font-size: 1.3rem !important;
font-weight: normal !important;
color: var(--clinic-blue) !important;
font-family: "MS PMincho", "MS P明朝", serif !important;
}
/* 明滅するカーソル */
.line.line-title .text::after {
content: " _";
color: var(--win-dark);
animation: blinkDiary 1.2s steps(2, start) infinite;
}
@keyframes blinkDiary {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* =========================================
5. リンクとインタラクション(選択風ハイライト)
========================================= */
a, .page-link, .link {
color: var(--color-link) !important;
text-decoration: underline !important;
display: inline-block;
padding: 0 2px;
transition: background-color 0s;
}
a:visited, .page-link.visited {
color: var(--color-visited) !important;
}
/* ホバー:旧Windowsの選択範囲のように白抜き+青背景にパッと切り替わる */
a:hover, .page-link:hover, .link:hover {
background-color: var(--color-link) !important;
color: #ffffff !important;
text-decoration: none !important;
outline: 1px dotted rgba(255,255,255,0.5) !important;
outline-offset: -1px;
}
/* =========================================
6. カード一覧画面(Windowsフォルダ的挙動)
========================================= */
.grid-style-item {
background-color: var(--bg-page) !important;
border: 1px dotted var(--win-dark) !important;
border-radius: 0 !important;
box-shadow: none !important;
transition: none !important;
}
/* カードHover: 青く反転して文字が白になる */
.grid-style-item:hover {
background-color: var(--color-link) !important;
border: 1px solid var(--color-link) !important;
outline: 1px dotted rgba(255,255,255,0.5) !important;
outline-offset: -1px;
}
.grid-style-item:hover .title,
.grid-style-item:hover .description {
color: #ffffff !important;
}
/*
* ==========================================================
* MODIFIED 引用デザイン(折り返し&連続行の完全結合)
* 1行の折り返しで入る真ん中の線を消し、
* 改行でつなげた場合も1つの大きな箱に結合します。
* (空行などを挟むと別々の箱になります)
* ==========================================================
*/
/* 1. 引用の基本スタイル(ブロック化して箇条書き・折り返し時の分断を防ぐ) */
.line .quote {
background-color: var(--clinic-pale) !important;
border: 1px solid var(--win-gray) !important;
border-left: 3px solid var(--clinic-blue) !important;
color: var(--text-main) !important;
padding: 8px 12px !important;
font-size: 0.95em !important;
font-style: normal !important;
display: block !important; /* ★インライン要素の枠線分断を修正 */
margin-top: 4px;
margin-bottom: 4px;
}
/* 2. 引用符の前に「>」を自動挿入 */
.line .quote::before {
content: "> ";
color: var(--win-dark);
font-family: inherit;
}
/* --------------------------------------------------
3. 複数行の引用を改行(Enter)でつなげた場合の処理
-------------------------------------------------- */
/* 直後にまた引用が続く行(上の行:下枠線と下余白を消す) */
.line:has(+ .line .quote) .quote {
border-bottom: none !important;
margin-bottom: 0 !important;
padding-bottom: 2px !important;
}
/* 直前が引用だった行(下の行:上枠線と上余白を消す) */
.line:has(.quote) + .line .quote {
border-top: none !important;
margin-top: 0 !important;
padding-top: 2px !important;
}
/* 本文を区切る極薄の点線が、引用箱の間に入り込むのを防ぐ */
.line:has(.quote) {
border-bottom: none !important;
}
/* おまけ機能:2行目以降の「>」を透明にしてスッキリさせる */
.line:has(.quote) + .line .quote::before {
color: transparent !important; /* 完全に消さず透明化することで左の開始位置を揃える */
}
/* =========================================
一時無効化中 引用のデザインをコメントアウト、有効化の際は上記と入れ替えて
========================================= */
/*
.line .quote {
background-color: var(--clinic-pale) !important;
border: 1px solid var(--win-gray) !important;
border-left: 3px solid var(--clinic-blue) !important;
color: var(--text-main) !important;
padding: 8px 12px !important;
font-size: 0.95em !important;
font-style: normal !important;
margin-top: 4px;
}
.line .quote::before {
content: "> ";
color: var(--win-dark);
font-family: inherit;
}
*/
/* 箇条書きドット(小さい無機質な四角) */
.line .indent-mark .dot {
background-color: var(--win-dark) !important;
border-radius: 0 !important;
width: 3px !important; height: 3px !important;
}
/* Web1.0時代の立体的な水平線を再現 */
.line hr {
border: 0 !important;
height: 2px !important;
background: var(--win-dark) !important;
border-bottom: 1px solid var(--win-lighter) !important;
margin: 16px 0 !important;
}
/* サイドバーボタン */
.page-menu .tool-btn {
background-color: var(--win-gray) !important;
border: 2px solid !important;
border-top-color: var(--win-light) !important;
border-left-color: var(--win-light) !important;
border-bottom-color: var(--win-dark) !important;
border-right-color: var(--win-dark) !important;
border-radius: 0 !important;
margin-bottom: 4px !important;
color: var(--text-main) !important;
}
.page-menu .tool-btn:active {
border-top-color: var(--win-dark) !important;
border-left-color: var(--win-dark) !important;
border-bottom-color: var(--win-light) !important;
border-right-color: var(--win-light) !important;
background-color: var(--win-light) !important;
}
/* Windows9x風カスタムスクロールバー */
::-webkit-scrollbar {
width: 16px;
background: var(--win-gray);
border-left: 1px solid var(--win-dark);
}
::-webkit-scrollbar-thumb {
background: var(--win-gray);
border-top: 2px solid var(--win-light);
border-left: 2px solid var(--win-light);
border-right: 2px solid var(--win-darker);
border-bottom: 2px solid var(--win-darker);
}
/* 選択反転色(Windowsのクラシックブルー) */
::selection { background: #000080; color: #ffffff; }
::-moz-selection { background: #000080; color: #ffffff; }
画面
---
上部アイコン
code:style(無効化中).css`
.brand-icon {
--logo-url: url("https://pbs.twimg.com/profile_images/1973707934355116032/m-N23xXR_400x400.jpg");
width: 40px;
height: 40px;
background-color: none;
background-image: var(--logo-url);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
border-radius: 100vh;
svg { display: none; }
}
非表示
code:style.css
/* 追加したいときは###を任意の言葉に置換してください */
.page-list > .grid > .page-list-itemdata-page-links~="'hide'",
.page-list > .grid > .page-list-itemdata-page-links~="'###'",
.page-list > .grid > .page-list-itemdata-page-links~="'###'" {
display: none !important;
}
タグのラベル化 #test
code:style.css
atype="hashTag" {
background: var(--quote-bg);
border: 1px solid;
border-radius: 4px;
font-size: 0.9em;
margin: 0 0.2em;
padding: 4px 6px;
}
atype="hashTag":hover {border: 1.4px solid;}
日報っぽいタイトルの記事だけ色を変える
code:style.css
/*
* ==========================================================
* ADDITIONAL: FIXED V2 日報・日付記事用の特別デザイン
* Concept: デイリー監視ログ / バイタル記録データの際立ち
* 適用対象: 「202」から始まるタイトルのページ (2020〜2029年全てに対応)
* ==========================================================
*/
:root {
/* ターミナル/ハッカー風のインターネットグリーンを追加 */
--terminal-green: #00ff00;
--terminal-green-dim: rgba(0, 255, 0, 0.1);
}
/* 1. トップページ等のカード一覧での日報デザイン */
.grid-style-itemdata-page-title^="202",
li.page-list-itemdata-page-title^="202" {
border: 1px solid var(--clinic-cyan) !important;
border-left: 6px solid var(--clinic-cyan) !important;
background-image: repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
rgba(0, 170, 255, 0.03) 10px,
rgba(0, 170, 255, 0.03) 20px
) !important;
transition: all 0.2s ease !important;
}
/* 日報カードのタイトルフォントを無機質な等幅フォントに */
.grid-style-itemdata-page-title^="202" .title,
li.page-list-itemdata-page-title^="202" .title {
font-family: "Courier New", Courier, monospace !important;
color: var(--clinic-cyan) !important;
font-weight: bold !important;
letter-spacing: 0.1em;
transition: all 0.2s ease !important;
}
/* ★ホバー時はインターネット感のある「ターミナルグリーン」に変貌 */
.grid-style-itemdata-page-title^="202":hover,
li.page-list-itemdata-page-title^="202":hover {
background-color: var(--terminal-green-dim) !important; /* 背景は薄い緑に */
border-color: var(--terminal-green) !important;
border-left-color: var(--terminal-green) !important;
filter: none !important; /* 隔離ブラーを即座に解除 */
box-shadow: 0 0 10px rgba(0, 255, 0, 0.2), inset 0 0 8px rgba(0, 255, 0, 0.1) !important;
}
/* ★ホバー時のタイトルもグリーンに発光 */
.grid-style-itemdata-page-title^="202":hover .title,
li.page-list-itemdata-page-title^="202":hover .title {
color: var(--terminal-green) !important;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.7) !important;
}
/* 2. 日報ページのタイトル(ページを開いた時) */
bodydata-page-title^="202" .line.line-title {
border-left: 6px solid var(--clinic-cyan) !important;
padding-left: 12px !important;
transition: all 0.3s ease;
}
bodydata-page-title^="202" .line.line-title .text {
font-family: "Courier New", Courier, monospace !important;
color: var(--clinic-cyan) !important;
font-weight: bold !important;
letter-spacing: 0.2em !important;
transition: all 0.3s ease;
}
/* タイトルエリアにホバーした時も緑に光るギミック(おまけ) */
bodydata-page-title^="202" .line.line-title:hover {
border-left-color: var(--terminal-green) !important;
}
bodydata-page-title^="202" .line.line-title:hover .text {
color: var(--terminal-green) !important;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5) !important;
}
/* 3. 日報へのリンク(本文中の青リンク) */
a.page-linkhref*="/202",
a.page-linkhref^="202" {
font-family: "Courier New", Courier, monospace !important;
color: var(--clinic-cyan) !important;
border-bottom: 1px dashed var(--clinic-cyan) !important;
background-color: rgba(0, 170, 255, 0.05) !important;
padding: 0 4px !important;
border-radius: 2px;
transition: all 0.15s ease !important;
}
/* ★リンクホバー時もターミナルグリーンに反転 */
a.page-linkhref*="/202":hover,
a.page-linkhref^="202":hover {
background-color: var(--terminal-green) !important;
color: #000000 !important; /* 黒文字でバシッと目立たせる */
border-bottom: 1px solid var(--terminal-green) !important;
text-shadow: none !important;
box-shadow: 0 0 5px var(--terminal-green) !important;
}
インデント一番左に縦線を挿入
code:style.css
/* インデントの縦線(黒) */
.app:not(.presentation) .indent-mark .char-index:not(:nth-last-child(1)):not(:nth-last-child(2)) {
position: relative;
}
.app:not(.presentation) .indent-mark .char-index:not(:nth-last-child(1)):not(:nth-last-child(2))::before {
content: " ";
position: absolute;
left: 50%;
/* 下の行のドットまで届くように調整 */
margin: -4px 0;
height: calc(100% + 8px);
/* 白背景で見えるように不透明度を上げた黒 */
border-left: 1px solid rgba(0, 0, 0, 0.2) !important;
}
ピン留めを段分け
code:style.css
.page-list-item.pin + .page-list-item:not(.pin) {grid-column-start: 1}
テーブル
---
テーブル内の強調表示[* ]
code:style.css
/* テーブル内の強調記法を太字にする */
.table-block .table-block-cell span.deco-\* {
font-weight: bold;
}
記法
---
水平線:---
code:style.css
/* 行が「---」のみで構成されている場合のみ、レイアウトを横線用に変更 */
/* 条件:1文字目, 2文字目, 3文字目が「-」であり、かつ4文字目(c-3)が存在しない */
.line:not(.cursor-line):has(.c-0data-char="-"):has(.c-1data-char="-"):has(.c-2data-char="-"):not(:has(.c-3)) {
display: flex !important;
align-items: center !important;
height: 1.5em !important;
}
/* 記号の「---」自体を隠す */
.line:not(.cursor-line):has(.c-0data-char="-"):has(.c-1data-char="-"):has(.c-2data-char="-"):not(:has(.c-3)) .text {
display: none !important;
}
/* 実際に表示される黒い横線 */
.line:not(.cursor-line):has(.c-0data-char="-"):has(.c-1data-char="-"):has(.c-2data-char="-"):not(:has(.c-3))::after {
content: "" !important;
flex-grow: 1 !important;
height: 0 !important;
/* 背景白に合わせて少し濃いめの黒 */
border-top: 1px solid rgba(0, 0, 0, 0.4) !important;
margin-left: 10px;
margin-right: 10px;
}
二重括弧による強調をマーカーっぽくする
code:style.css
.line strong:not(class) {
color: var(--text-color);
background: linear-gradient(transparent 75%, rgb(255 255 102 / 0.6) 25%);
}
アイコン
---
[特定リンクにアイコン
code:style.css
/* pdf */
:is(.line, .line .deco) a.link:is(
href$=".pdf",
)::before {
font-family:"Font Awesome 5 Free", "Font Awesome 5 Brands";
content:"\f1c1";
font-weight:400;
margin-right:1px;
}
/* wikipedia */
:is(.line, .line .deco) a.link:is(href*=".wikipedia.org")::before{
font-family:'Font Awesome 5 Free', 'Font Awesome 5 Brands';
content:'\f266';
font-weight:400;
margin-right:0px;
}
/* favicon */
:is(.line, .line .deco) a.link:is(
href*="archive.org",
[href^="https://web.archive.org/"],
href*="bandcamp.com",
[href^="https://bsky.app"],
[href^="https://main.bsky.dev"],
[href^="https://discord.com"],
[href^="https://discord.gg"],
[href^="https://github.com"],
[href^="https://gist.github.com"],
[href^="https://raw.githubusercontent.com"],
href*="hatenablog.com",
[href^="https://www.instagram.com"],
[href^="https://kiite.jp"],
[href^="https://music.apple.com"],
[href^="https://www.netflix.com"],
[href^="https://www.nicovideo.jp"],
[href^="https://sp.nicovideo.jp"],
[href^="https://nico.ms"],
[href^="https://dic.nicovideo.jp"],
[href^="https://note.com"],
[href^="https://note.mu"],
href*="p5js.org",
[href^="https://www.pixiv.net"],
[href^="https://dic.pixiv.net"],
[href^="https://dic.pixiv.net"],
[href^="https://soundcloud.com"],
href*="tumblr.com",
[href^="https://www.youtube.com"],
[href^="https://youtube.com"],
[href^="https://youtu.be"],
[href^="https://music.youtube.com"]
):not(
href*="&noicon"
)::before {
content: '';
border-bottom: 2px;
width: 16px;
height: 16px;
margin-right: 2px;
vertical-align: -3px;
display: inline-block;
background-size: contain;
background-repeat: no-repeat;
}
:is(.line, .line .deco) a.link:is([href^="https://twitter.com"]):not([href*="status"])::before {
content: '';
border-bottom: 2px;
width: 16px;
height: 16px;
margin-right: 2px;
vertical-align: -3px;
display: inline-block;
background-size: contain;
background-repeat: no-repeat;
}
:is(.line, .line .deco) a.link:is([href^="https://x.com"]):not([href*="status"])::before {
content: '';
border-bottom: 2px;
width: 16px;
height: 16px;
margin-right: 2px;
vertical-align: -3px;
display: inline-block;
background-size: contain;
background-repeat: no-repeat;
}
:is(.line, .line .deco) a.link:is(href*="archive.org")::before {
background-image: url('https://gyazo.com/753ad792a8ff97474359b5ae5dc8ff53/max_size/32');
}
:is(.line, .line .deco) a.link:is(href*="bandcamp.com")::before {
background-image: url('https://gyazo.com/d72edb0d01b6eb4036488635fa6cbe49/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://bsky.app"], [href^="https://main.bsky.dev"])::before {
background-image: url('https://gyazo.com/9eb3e19daaabd009d2802c5cdb3a7c1e/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://discord.com"], [href^="https://discord.gg"])::before {
background-image: url('https://gyazo.com/e301e743a3fa5db966e68a465b7b1bd5/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://www.instagram.com"])::before {
background-image: url('https://gyazo.com/80f9c62c853ce8ee97e88fded2f79566/max_size/32');
}
:is(.line, .line .deco) a.link:is(href*="hatenablog.com")::before {
background-image: url('https://gyazo.com/55ace14afe3e56bca35a74cff98264b6/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://kiite.jp"])::before {
background-image: url('https://gyazo.com/b8f6d7cc4e36f9032709e55fc1b5e225/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://music.apple.com"])::before {
background-image: url('https://gyazo.com/36d70a77f77b95ba47ca4a92401bc3ce/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://www.netflix.com"])::before {
background-image: url('https://gyazo.com/9e0513c6182cee40b2d4e22f2942a967/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://www.nicovideo.jp"],[href^="https://sp.nicovideo.jp"],[href^="https://nico.ms"])::before {
background-image: url('https://gyazo.com/0a4c9a9ac6f600709d034c9667757b6e/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://dic.nicovideo.jp"])::before {
background-image: url('https://gyazo.com/8c9d10e418921822ce77b6760a4b2d29/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://note.com"])::before {
background-image: url('https://gyazo.com/88ad65eb751176a53d2c13ad155e90c8/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://note.mu"])::before {
background-image: url('https://gyazo.com/8fbe641ebbcccb9fe7c77123e91b4724/max_size/32');
}
:is(.line, .line .deco) a.link:is(href*="p5js.org")::before {
background-image: url('https://gyazo.com/514918e6acea2c588ce023d5b709ce78/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://www.pixiv.net"])::before {
background-image: url('https://gyazo.com/0bde5a9b6eb57e4f8dc759568e1f34a7/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://dic.pixiv.net"])::before {
background-image: url('https://gyazo.com/325cdab24d1656475bc05945bbde8be2/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://soundcloud.com"])::before {
background-image: url('https://gyazo.com/a62dfc8fe7512b5785b352f66fcb1eb6/max_size/32');
}
:is(.line, .line .deco) a.link:is(href*="tumblr.com")::before {
background-image: url('https://gyazo.com/332023c28a119b50638a8ac6f723ca2f/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://twitter.com"]):not([href*="status"])::before {
background-image: url('https://gyazo.com/c2125a70ba8ec33a2757e045a6f1d70c/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://x.com"]):not([href*="status"])::before {
background-image: url('https://gyazo.com/c2125a70ba8ec33a2757e045a6f1d70c/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://www.youtube.com"], [href^="https://youtube.com"], [href^="https://youtu.be"]):not([href*="&noicon"])::before {
background-image: url('https://gyazo.com/ca6d67e60f758d352745329b283e8f32/max_size/32');
}
:is(.line, .line .deco) a.link:is([href^="https://music.youtube.com"])::before {
background-image: url('https://gyazo.com/76b42d72a52852ef696583d82db522dd/max_size/32');
}
:is(.line, .line .deco) a.link:is(
[href^="https://github.com"],
[href^="https://gist.github.com"],
[href^="https://raw.githubusercontent.com"],
)::before{
background-image: url('https://gyazo.com/58f957ae3a6a01539b4a61059eb83b03/max_size/32');
}
画像
---
画像を並べる[**| ]
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 }
/scrasobox/画像を並べて表示