settings
#private
他のプロジェクトをパクりまくっています
参考にしたCosenseプロジェクトの一覧
code:style.css
@import url('./mainStyle.css');
@import url('./telomereColor.css');
@import url('./indentVertialLine.css');
@import url('./checkbox.css');
@import url('./externalLinkMarker.css');
@import url('./titleLayout.css');
@import url('./boldMarker.css');
@import url('./inlineQuote.css');
@import url('./imageAlign.css');
@import url('./tagLabel.css');
@import url('./imageResize.css');
@import url('./codeLineNum.css');
@import url('./centered thumbnail.css');
@import url('./resizeIndentMark.css');
@import url('./linkColor.css');
@import url('./hideBoxShadow.css');
@import url('./hideAlias.css');
@import url('./rubi.css');
@import url('./separator.css');
@import url('./videoPlayer.css');
チェックボックス
o v
code:checkbox.css
@import "https://scrapbox.io/api/code/scrasobox/チェックボックスになるタグ_2/style.css";
/scrasobox/箇条書きを控えめにする
/scrapboxlab/行頭のドット(バレット | ビュレット)を少し薄くするUserCSS
/customize/pin折り返し部分の背景色
中黒の位置調整
code:resizeIndentMark.css
.line .indent-mark .dot {
top: 10.8px;
width: .5rem;
height: .5rem;
background-color: var(--text-line);
}
/yozba/インデントに縦線を表示するUserCSS
code:indentVertialLine.css
.lines .line .indent-mark {
height: 100%;
}
.lines .line .table-block .indent-mark {
height: auto; /*tableは除外する*/
}
.indent-mark .pad {
height: 100% !important;
overflow: unset !important;
}
.indent-mark span:not(:nth-last-child(1)):not(:nth-last-child(2)) .pad {
border-right: 1px solid #c9c9c9;
}
a
a
a
a
フォント
/Glisp改変
code:mainStyle.css
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@1,500;1,600;1,700;1,800&family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&family=Noto+Sans:wght@100;200;300;400;500;600;700;800&display=swap");
html {
/* PALETTE */
--C-BLACK: #121214;
--C-INK: #121214;
--C-WHITE: #fff;
--C-GREY: #242428;
--C-LINK: oklab(0.667018 -0.040119 -0.144886);
--C-GLASS-10: rgba(140, 140, 200, 0.06);;
--C-HOVER-BG: --C-WHITE;
--C-EMPTY-LINK: #ff056d;
/* TYPO */
--FONT-TEXT: "Zen Kaku Gothic New", sans-serif;
--FONT-HEADING: "Inter", Helvetica, "Noto Sans", sans-serif;
--FONT-CODE: "Fira Code", Monaco, monospace;
/* ROLES */
--bg-page: var(--C-INK);
--text-base: var(--C-WHITE);
--text-line: var(--C-WHITE);
--border-strong: var(--C-BLACK);
--card-bg-role: var(--C-GLASS-10);
--page-bg-role: var(--C-GLASS-10);
--link-hover-bg: var(--C-HOVER-BG);
--link-hover-text: var(--C-BLACK);
--empty-hover-bg: var(--C-EMPTY-LINK);
--empty-hover-text: var(--C-WHITE);
}
body {
background: var(--bg-page);
color: var(--text-base);
font-family: var(--FONT-TEXT);
--tool-badge-bg: currentColor;
--card-description-link-color: currentColor;
--card-pin-overhang-color: currentColor;
--card-box-hover-shadow: none;
--card-bg: var(--card-bg-role) !important;
--page-bg: var(--page-bg-role) !important;
/* Kept for compatibility with existing rules that read --body-bg */
--body-bg: var(--link-hover-text);
}
.editor {
font-family: var(--FONT-TEXT) !important;
}
/* Typography */
.line {
color: var(--text-line);
.page & {
line-height: 1.8;
}
&.line-title {
font-family: var(--FONT-HEADING);
font-size: 2.8rem;
font-weight: 400;
line-height: 1.7;
text-wrap: balance;
}
strong {
font-weight: 700 !important;
font-family: var(--FONT-HEADING);
&.level-1 {
text-decoration: inherit;
text-decoration-color: var(--text-line);
font-family: var(--FONT-TEXT) !important;
}
}
}
/* Links hover */
data-hover-visible .line a:is(.link, .page-link, .empty-page-link):hover {
color: var(--link-hover-text);
text-decoration: none;
border-radius: 0;
background: var(--link-hover-bg);
background-attachment: fixed;
background-position: 0 0;
background-size: 1000px 1px;
filter: grayscale(100%) invert(1);
font-weight: 700;
animation: link-bg-anim 4s linear 0s infinite;
-webkit-animation: link-bg-anim 4s linear 0s infinite;
}
data-hover-visible .line a.empty-page-link:hover {
background: var(--empty-hover-bg) !important;
color: var(--empty-hover-text) !important;
filter: invert(0) !important;
}
/* HashTag */
atype="hashTag" {
font-family: var(--FONT-HEADING);
&.empty-page-link {
font-family: var(--FONT-HEADING);
}
}
/* Grid cards */
ul.grid {
--border-color: var(--border-strong);
li.page-list-item a {
position: relative;
box-shadow: inset 0 0 0 0.5px var(--border-color);
overflow: visible;
height: 100%;
border-radius: 2px;
transition: 0.15s;
&::after {
content: "";
position: absolute;
inset: 0;
background: var(--border-color);
mix-blend-mode: screen;
z-index: 20;
pointer-events: none;
}
&:hover {
filter: contrast(100%) grayscale(100%) invert(1);
scale: 92%;
border-radius: 2px;
}
.pin {
right: 0;
border-radius: 0 0 0 2px;
z-index: 100;
background: linear-gradient(
45deg,
var(--body-bg) 50%,
var(--border-color) 50%
);
}
.content {
font-family: var(--FONT-TEXT);
height: calc(100% - 14px);
border-radius: 3px;
overflow: hidden;
margin: 0;
padding-top: 0;
}
.header {
border-top: none;
padding: 12px;
}
.title {
font-weight: 700 !important;
font-size: 14px;
color: var(--text-line);
font-family: var(--FONT-HEADING);
}
.description {
color: var(--text-line);
font-family: inherit;
}
}
}
.page-list-item.pin + .page-list-item:not(.pin) {
grid-column-start: 1;
}
/* cursor-line bg fix: 入力行背景を明示(ダークテーマで後ろの文字が透けるバグ対策) */
.cursor-line {
background-color: var(--bg-page);
}
/* Customize Title Layout */
.line.line-title {
font-weight: bold;
line-height: 1.4;
color: var(--text-base);
}
.line.line-title .text {
font-size: 1.7em;
padding-bottom: .2em;
}
/* スマホ表示用に調整 */
@media screen and (max-width: 670px) {
.line.line-title .text {
font-size: 1.8rem;
}
}
/customize/外部リンクを区別するUserCSS
code:externalLinkMarker.css
/* 外部リンクにiconをつける */
.line span:not(.modal-image):not(.pointing-device-map) > a.link:not(.icon)::after {
font-family: 'Font Awesome 5 Free';
color: rgba(255, 255, 255, 0.2);
content: ' \f35d';
font-weight: 900;
display: inline-block;
}
/scrasobox/テンプレートを使ってページを作成(UserScript版)
code:style-test.css
button#Templates.tool-btn:hover { text-decoration: none }
button#Templates.tool-btn::before { position: absolute; content: '\f067'; font: 900 21px/46px 'Font Awesome 5 Free' }
button#Templates.tool-btn img { opacity: 0 }
/scrasobox/画像を並べて表示
code:imageAlign.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:titleLayout.css
"#"で始まるタグをラベル風にする
code:tagLabel.css
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Shippori+Mincho:wght@400;700&family=Inter@400;700&family=Zen+Kaku+Gothic+New:wght@400;700&display=swap');
atype="hashTag" {
color: var(--text-line) !important; /* リンクされたハッシュタグの色 */
display: inline-block;
padding: 0px 0px;
margin: 0 6px 10px 0;
font-size: 0.8em;
text-decoration: none !important;
transition: 0s;
-webkit-transform: scale(1);
transform: scale(1);
}
atype="hashTag".empty-page-link {
color: --C-EMPTY-LINK !important;
/* border: 0px solid #ed8362; */
}
atype="hashTag":hover {
-webkit-transform: scale(1.1);
transform: scale(1.1);
color: #fff
}
小見出し
code:strongLevel3.css
/* *** <-これを小見出しに */
.line strong.level-3{
padding: 0.5em;/*文字周りの余白*/
color: #494949;/*文字色*/
background: #fffaf4;/*背景色*/
border-left: solid 5px #ffaf58;/*左線(実線 太さ 色)*/
font-size:1.3em
}
リンク色を変更
code:linkColor.css
atype="link".page-link, atype="hashTag".page-link, .line a.link {
color: var(--C-LINK);
text-decoration: underline;
text-decoration-color: rgba(255, 255, 255, 0);
}
atype="link".empty-page-link, atype="hashTag".empty-page-link {
color: var(--C-EMPTY-LINK) !important;
text-decoration: none;
}
/takker/インライン引用
code:inlineQuote.css
/* インライン引用 */
.navbar-form .dropdown.open .dropdown-menu {
min-width: 100%; max-height: calc(100vh - 130px) !important; overflow-y: auto }
.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';
content: '\f10d';
font-weight: 900;
vertical-align: super;
}
/scrapboxlab/画像のサイズを変えるUserCSS
code:imageResize.css
.level-1 img { width: 16.7% }
.level-2 img { width: 33.3% }
.level-3 img { width: 50% }
.level-4 img { width: 66.7% }
.level-5 img { width: 83.3% }
.level-6 img { width: 100% }
/takker/コードブロック記法に行番号を表示するUserCSS
code:codeLineNum.css
@import '../コードブロック行頭の空白の色を変えるCSS/style.css';
htmldata-project-theme="paper-dark-dark",
htmldata-project-theme="defaut-dark" {
--code-line-number-color: #D181FF;
}
.section-title, .code-block-start {
counter-reset: codeline
}
.code-block .indent-mark > span.char-index:last-child {
counter-increment: codeline
}
body:not(.presentation) .code-block .indent-mark > span.char-index:last-child::before {
content: counter(codeline);
position: absolute;
}
.code-block .indent-mark > span.char-index:last-child::before {
color: var(--code-line-number-color, #3f3f3f);
}
/* カーソル選択時の行番号の色 */
.cursor-line .code-block .indent-mark > span.char-index:last-child::before {
color: var(--cursor-code-line-number-color, #FF00F0);
font-weight: bolder;
}
サムネイル画像を中央に収める
code:centered thumbnail.css
.grid li.page-list-item a .content .icon {
display: flex;
justify-content: center;
align-items: center;
img {
width: auto;
max-width: 100%;
max-height: 100%;
border-radius: 3px;
}
}
ページミュート
privateタグでリンクとStreamから消す
code:style.css
.page-list-itemdata-page-links*="'private'",
.stream .pagedata-page-links*="'private'" {
display: none;
}
hideタグでホームから消す
code:style.css
.page-list .grid li.page-list-itemdata-page-links*="'hide'" {
display: none !important;
}
日報をホームから消す
code:hideDiary.css
.page-list .grid li.page-list-itemdata-page-links*="日報" {
display: none !important;
}
/public-minaph/別名記事をメニューから非表示にするUserCSS
code:hideAlias.css
.page-list :is(
data-page-title*='`',
) {
display: none;
}
リンクに下線を引く
code:linkUnderline.css
.line{
a:is(.link, .page-link) {
text-decoration: underline;
text-decoration-color: rgba(255, 255, 255, 0.4);
}
}
.line{
a:is(.empty-page-link ) {
text-decoration: none !important;
}
}
ページの陰を消す
code:hideBoxShadow.css
.page {
box-shadow: 1px 2px 4px 2px rgba(0,0,0,0);
}
テロメアの色変更
code:telomereColor.css
.line .telomere .telomere-border { border-color: var(--C-GREY); width: 1px}
.line .telomere .telomere-border.unread.updated-after-load { border-color: var(--C-GREY); width: 12px}
ナビバー調整
code:navbar.css
.navbar{
opacity: .25;
transition: opacity 0.1s;
box-shadow: none;
}
/*.page-sort-menu*/ .tool-btn{
color: #333333 !important;
opacity: 0.1;
transition: opacity 0.5s;
}
.navbar:hover, .page-menu:hover, .project-home:hover, /*.page-sort-menu*/ .tool-btn:hover {
opacity: 1;
}
カーソル点滅
code:blinkCursor.css
.cursor {
animation: blink 1s infinite;
}
@keyframes blink {
0% { opacity: 0; }
50% { opacity: 0; }
51% { opacity: 1; }
100% { opacity: 1;}
}
ルビ記法 こんな感じでルビをふる
code:rubi.css
.deco-\| {
display: inline-block ;
position: relative ;
}
.deco-\| a{
display: inline-flex ;
position: absolute ;
top: -1em ;
left: 0 ;
right: 0 ;
justify-content: space-around ;
font-size: 0.6em ;
}
.deco-\| a:link,
.deco-\| a:visited {
text-decoration: none;
color: #000 !important;
}
セパレーター
/yozba/行頭に---を入れるだけでセパレーターになるUserCSS
code:separator.css
.line:has(span.char-index.c-0data-char="-"):has(span.char-index.c-1data-char="-"):has(span.char-index.c-2data-char="-"){
&{
display: flex;
align-items: center;
text-align: center;
}
&:not(.cursor-line):after{
flex-grow: 1;
content: "";
border-top: 1px solid #afafaf;
}
&:not(.cursor-line){
height:28px;
}
}
.line:not(.cursor-line):has(.c-0data-char="-"):has(.c-1data-char="-"):has(.c-2data-char="-") span.char-index{
&.c-0data-char="-",
&.c-1data-char="-",
&.c-2data-char="-"{
display:none;
}
}
コード表記
code:style.css
@font-face {
/*フォントの名前*/
font-family: "MNoto Sans";
/*フォントファイルへのパス(複数指定の場合、上から順に読み込まれる)*/
src: url("https://dl.dropboxusercontent.com/s/2cksgaa3zwhm9a8/MNotoSans-alpha-ExtraBold.woff2") format("woff2"),
url("https://dl.dropboxusercontent.com/s/jfzrktobimbqcm3/MNotoSans-alpha-ExtraBold.woff") format("woff");
}
.deco-\# {
font-family: "MNoto Sans";
}
Asus
GitHub - lefb766/scrapbox-video-seek-button
code:style.css
.deco-\> { color: #f77; text-decoration: underline; cursor: pointer; }
.deco-\>::before { content: "▶️️"; text-decoration: none; color: #fff; display: inline-block; background: #e55; border-radius: 1em; width: 48px; height: 32px; line-height: 32px; text-align: center; margin-right: 5px; vertical-align: middle; font-size: 16px; }
.deco-\>:hover::before { background: #f77; transition: background 0.2s; }
code:videoPlayer.css
.iframe-video-player:not(.floating):not(:has(.anchor-fm)) { /* Spotify for Podcastersを除外 */
iframe {
width: 99%;
max-width: 640px;
height: auto;
max-height: 360px;
aspect-ratio: 16 / 9;
}
&:hover .control {
right: unset;
left: min(99% - 24px, 616px); /* calc(min(99%, 640px) - 24px) */
}
}
strong .iframe-video-player:not(.floating) {
iframe {
max-width: 99%;
max-height: none;
}
&:hover .control {
left: calc(99% - 24px);
}
}
UserCSS backup
public.icon