settings
bearの何がいいのかを参考にしながら作ったテーマです。(2019/1/12)
https://gyazo.com/f115aa5f78bb8c447484c93533a84ec0
https://gyazo.com/20dd5a1fbd306383dd69fb5991cf6a58
https://gyazo.com/6759a412d0f82b9f4b506e75f1e29d33
https://gyazo.com/bc77221a50ed4a37af1208f6d4b3a353
https://gyazo.com/162186c0981d083041721b0032921f13
全体
code:style.css
body {
margin: 0px 30px 0px 30px;
background-color: #f9f9f9;
}
文字数表示
code:style.css
/* カウンターのスタイル */
#__charCounter__ span {
cursor: pointer; font: 88%/1 monospace;
opacity: .35; /* ←マウスを乗せてないときの濃さ 35% */
transition: opacity .2s ease-out }
#__charCounter__ span:hover { opacity: 1 } /* ←マウスを乗せたときの濃さ 100% */
#__charCounter__ { z-index: 30; position: sticky; bottom: 0; text-align: right }
/* ポップアップのスタイル */
#__charCounterPopup__ {
z-index: 30; position: absolute; bottom: 2em; right: -1em;
border-radius: .25em; border: 1px solid #ddd; box-shadow: 0 0 8px 1px rgba(8,8,8,.1);
padding: .8em; background-color: azure; color: #5F9EA0; font: 13.5px/1.4 monospace;
transition: opacity .3s ease-out }
/* プレゼンモードのときは非表示にする */
.presentation #__charCounter__,
.presentation #__charCounterPopup__ { display: none }
一人で使うのでテロメアは消す
code:style.css
/* telomere */
.telomere-border {
border-color: #f9f9f9 !important;
}
.telomere-border.unread {
border-color: #f9f9f9 !important;
}
ページ・テキスト
code:style.css
/* Disable shadow */
.page {
line-height: 36px;
background-color: #f9f9f9;
box-shadow: 0 1px 0 rgba(0,0,0,0.16);
column-count: 1;
}
.text {
color: #000;
font-size: 110%;
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;
}
ナビバーをグレー&隠す/scrapboxタイトル
code:style.css
.navbar{
opacity: 1;
transition: opacity 0.5s;
box-shadow: none;
}
.page-menu {
opacity: 0.06;
transition: opacity 0.5s;
}
.icon-home { display: none !important;
}
.project-home { font-size: 2em !important;
color: #333333 !important;
opacity: 0;
transition: opacity 0.5s;
}
.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:style.css
.line.line-title .text {
font-size: 20px;
}
画像
code:style.css
.image {
border-radius: 7px;
max-height: none !important;
max-width: 95% !important;
}
カーソルのある行の背景色と下線を薄いグレーにする
code:style.css
.cursor-line {
color: #000;
background-color: #f9f9f9;
}
マーカー・太字
code:style.css
.line strong:not(class) {
font-size: 100%;
background: #ffd70f;
padding: 0 0px;
margin: 0 0px;
width: auto;
}
.line strong{
font-size: 100%;
}
span.quote {
padding: 10px;
width: 100%;
display: block;
border-left: solid 1px #4b7ff5;
}
インデントしたときのドットの色
https://gyazo.com/51fc7d0c58a02e403e1583977e2ffdc0
code:style.css
.line .indent-mark .dot {
background-color: #000;
margin-top: 4px;
}
.line .indent-mark .c-1 + .dot {
background-color: #000;
}
.line .indent-mark .c-2 + .dot {
background-color: #000;
}
.line .indent-mark .c-3 + .dot {
background-color: #000;
}
→/customize/インデントレベルごとに行頭文字を変更
選択した文字の背景色
code:style.css
.selection {
background: #ffd900;
}
行間を広くする
code:style.css
.line {
line-height: 37px;
}
引用
code:style.css
.line .quote {
font-style: normal ;
font-size: 100%;
padding-left: 23px ;
margin-left: -23px;
border-color: #2968ce ;
background-color: #f9f9f9 ;
}
.line .quote .c-0 {
visibility: hidden ;
}
.line .quote .c-0 + a:last-child {
float: right ;
margin-right: 1em ;
}
張り付くメニューバー
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
.navbar-default {
background-color: #f9f9f9 ;
}
.search-form .form-group input {
background-color: #fcfcfc ;
}
ロゴ変更
code:style.css
/* ロゴ変更 */
.navbar .navbar-brand img {
display: none;
}
.navbar-brand:before {
content: '';
background: url('https://gyazo.com/27c4668f73461782a2adb2cdabbdc75e.png');
background-size: contain;
width: 0;
height: 0;
margin: 10px 16px 0 0;
flex-shrink: 0;
border-radius: 25%;
}
.icon-arrow-down:before {
color: #333333 !important;
opacity: 0.1;
transition: opacity 0.5s;
}
コードブロックを見やすく
code:style.css
/* code blockの頭を静かな色にする */
.line span.code-block .code-block-start {
background-color: #efefef;
padding: 2px 5px 2px 5px !important;
}
.line span.code-block .code-block-start a { font-size: 110%; color: #919191}
のびのびドロップダウン
code:style.css
.navbar-form .dropdown.open .dropdown-menu {
min-width: 100%; max-height: calc(100vh - 130px) !important; overflow-y: auto }
code:import.css
@import "https://scrapbox.io/api/code/scrasobox/のびのびドロップダウン/style.css";
リンク
code:style.css
a,
.page-list-item .description .link {
color: #000;
font-weight: 550;
}
a:hover, a:active {
color: #3068ff ;
}
.line a.empty-page-link {
color: #000 ;
font-weight: 550;
}
.line a.empty-page-link:hover {
color: #3068ff ;
}
Linksのlabelの色をおとなしくする
code:style.css
.grid li.relation-label.links .arrow {
border-left-color: #afafaf;
}
.grid li.relation-label.links a {
background-color: #f9f9f9;
border-radius: 7px;
}
.grid li.relation-label.links a .title {
color: #afafaf;
}
.grid li.relation-label a {
color: #afafaf;
background-color: #f9f9f9;
border-radius: 7px;
}
グリッド
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 .title {
text-align: center;
}
.grid li.page-list-item a,
.grid.grid-md li.page-list-item a,
.grid.grid-lg li.page-list-item a {
background-color: #ffffff ;
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 {
background: #ffffff ;
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
atype="hashTag"{
display: inline-block;
padding: 2px 8px;
margin: 0 8px 10px 0;
background: #f9f9f9;
color: #d1d1d1;
font-size: 0.8em;
border: 1px solid #d1d1d1;
border-radius: 3px;
/* transition: .3s; */
-webkit-transform: scale(1);
transform: scale(1);
}
atype="hashTag":hover{
color: #FFFFFF;
background: #212121;
border: 1px solid #212121;
}
code:style.css
.selection {
background-color: #ffd230 ;
}
新規ボタンを下に表示・固定
code:style.css
.new-button {
z-index: 2;
position: fixed;
bottom: 20px;
right: 20px;
}
特殊文字色
code:style.css
.deco-\# {
color: #fff; /* 白文字 */
background-color: #1372d8; /* 緑背景 */
}
.deco-\! { /* 重要な部分は!を付ける */
color: #000;
background-color: #ffd800; /* 赤背景 */
font-size: 1.2em; /* 重要なので最初から大きな文字にする */
}
#テーマ #UI