settings
https://gyazo.com/f5aad8e143b8d197c25d5e884bb315a2
このプロジェクト全体に有効なCSSを書きます
参考
code:style.css
.line .indent-mark .dot {
top: 11px;
width: 6px;
height: 3px;
}
カラーテーマ
code:style.css
.navbar {
top: 0;
left: 0;
right: 0;
z-index: 990;
overflow: unset;
border-bottom: solid #666 0.5px; opacity: 1;
transition: opacity 0.5s;
box-shadow: none;
}
.new-button {
background-color: rgb(158, 121, 33) !important;
}
.new-button:hover {
background-color: rgb(107, 81, 22) !important;
}
.code-block-margin {
background-color: rgb(249, 249, 249) !important;
}
カーソル行ハイライト
code:style.css
/* カーソルのある行の背景色と下線を薄いグレーにする */
.cursor-line {
background-color: rgba(0, 0, 0, .02);
}
code:style.css
.line a.link:not(.icon)::after { font-family:'Font Awesome 5 Free'; font-weight: 600; content: ' \f35d'; display: inline-block }
テーブルのセルをわかりやすくする
code:style.css
.table-block table { background-color: transparent; border-collapse: separate; border-spacing: 2px }
.table-block table tr td { padding: .1em; background-color: rgba(0,0,0,0.04) }
.table-block table tr:nth-child(even) td { background-color: rgba(0,0,0,0.06) } /* 偶数行を濃くする */
.table-block table tr:first-child td { font-weight: bolder; } /* 1行目だけ太字&中央揃え */
.table-block table tr td:first-child { padding: 0; background-color: transparent; border-width: 0 }
水平線を押せなくする
/icons/hr.icon
code:style.css
pointer-events: none;
}
pointer-events: none;
}
pointer-events: none;
}
全体
code:style.css
body {
padding: 0px 0px 0px !important;
font-family: 'Meiryo',-apple-system,BlinkMacSystemFont,'.SFNSDisplay-Regular','Hiragino Kaku Gothic Pro','Yu Gothic','MS PGothic','Segoe UI','Verdana','Helvetica','Arial',sans-serif;
}
ナビバーをグレー&隠す/scrapboxタイトル
code:style.css
.page-menu {
opacity: 0.06;
transition: opacity 0.5s;
}
/* .icon-home { display: none !important; }*/
/*.project-home { font-size: 2em !important;*/
/*opacity: 0;*/
/*transition: opacity 0.5s;*/
/*}*/
.plan-badge { font-size: 2em !important;
opacity: 0;
transition: opacity 0.5s;
}
.private-badge { font-size: 2em !important;
opacity: 0;
transition: opacity 0.5s;
}
.page-sort-menu .tool-btn{
opacity: 0.1;
transition: opacity 0.5s;
}
.navbar:hover, .page-menu:hover, .project-home:hover, .page-sort-menu .tool-btn:hover {
opacity: 1;
}
一人で使うのでテロメアは消す
code:style.css
/* telomere */
.telomere-border {
}
.telomere-border.unread {
}
ページ・テキスト
code:style.css
/* Disable shadow */
.page {
line-height: 36px;
box-shadow: 0 1px 0 rgba(0,0,0,0.16);
}
選択した文字の背景色
code:style.css
.selection {
background: rgb(155, 185, 204);
}
張り付くメニューバー
code:style.css
/* はりつくメニューバー */
@media screen and (min-height: 600px) and (min-width: 768px) {
body:not(.presentation) { padding-top: 90px; padding-right: 0 !important }
body:not(.presentation) .page-menu { position: fixed; top: 90px }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 990; overflow: unset }
.dropdown.open .dropdown-menu {
position: absolute; left: auto; top: auto;
max-height: calc(100vh - 100px); overflow-y: auto }
.dropdown.open .dropdown-menu.global-menu { left: 0; top: 54px }
.page-menu .dropdown.open .dropdown-menu { position: absolute; top: 0 } }
コードブロックを見やすく
code:style.css
/* code blockの頭を静かな色にする */
.line span.code-block .code-block-start {
padding: 2px 5px 2px 5px !important;
}
.line span.code-block .code-block-start a { font-size: 110%; color: #919191} .line code,
.line span.code-block {
line-height: 1.2;
}
グリッド
code:style.css
.grid li.page-list-item {
margin-bottom: 0.7em ;
font-family: "Avenir Next", Lato, "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}
.grid li.page-list-item .text{
}
.grid li.page-list-item a,
.grid.grid-md li.page-list-item a,
.grid.grid-lg li.page-list-item a {
box-shadow: 7px 7px 15px rgba(0,0,0,0.02);
border-radius: 7px ;
}
.grid li.page-list-item a:hover,
.grid.grid-md li.page-list-item a:hover,
.grid.grid-lg li.page-list-item a:hover {
box-shadow: 7px 7px 15px rgba(0,0,0,0.02);
}
.grid li.page-list-item a::before,
.grid li.page-list-item a::after {
display: block ;
content: '' ;
position: absolute ;
width: 13em ;
}
.grid li.page-list-item a::before {
}
.grid li.page-list-item a::after {
}
.grid li.page-list-item a .pin {
width: 100% ;
height: 100% ;
border-radius: 0px ;
background-image: none ;
}
.grid li.page-list-item a .pin::before,
.grid li.page-list-item a .pin::after {
display: block ;
content: '' ;
position: absolute ;
width: 13em ;
}
.grid li.page-list-item a .pin::before {
;
}
.grid li.page-list-item a .pin::after {
}
.grid li.page-list-item a .header {
border-top: 0 ;
}
#で始まるタグをラベル風にする
code:style.css
display: inline-block;
padding: 2px 8px;
margin: 0 8px 10px 0;
font-size: 0.8em;
border-radius: 3px;
/* transition: .3s; */
-webkit-transform: scale(1);
transform: scale(1);
}
}
特殊文字色
code:style.css
.deco-\# {
}
.deco-\! { /* 重要な部分は!を付ける */
font-size: 1.2em; /* 重要なので最初から大きな文字にする */
}