settings
https://gyazo.com/11ae5813e8d96de2798777c2b0cf4a5c
https://coolors.co/171a21-617073-afb3f7-f6f7felight
https://gyazo.com/1ec1e99e7a76904873d71f54621c1113
https://coolors.co/171a21-2c2f3f-41435d-f6f7fedark
code:style.css
@import "/api/code/work4ai/外部リンクをファビコンに置き換える記法/style.css";
@import "/api/code/work4ai/infoboxカスタムUserCSS/style.css";
@import "../ダークモードcss/style.css";
@import "/api/code/villagepump/中央揃え記法/style.css"; /* text */
@import "/api/code/villagepump/セパレーター記法/style.css"; /* '_ */
@import "/api/code/villagepump/アイコン記法を画像記法っぽくするUserCSS/style.css"; /* .icon */
code:style.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');
@font-face {
font-family: 'l-safe';
src:local("Bahnschrift"), local("DIN"), local("MS Pゴシック"), local("MS PGothic");
unicode-range: U+006C;
}
html, body, #editor, .grid li{font-family:'l-safe','calibri','Zen Kaku Gothic New',"YuGothic",'Yu Gothic',"Font Awesome 5 Free","Font Awesome 5 Brands","Roboto","メイリオ", "Meiryo", "Osaka", "MS Pゴシック", "MS PGothic", "sans-serif";
text-autospace:normal;}
.code-block span { font-family: Menlo,Monaco,Consolas,"Courier New",monospace;}
code:style.css
/* 既存の変数置き換え */
htmldata-project-theme{
--body-bg: #f6f7fe; /* 全体背景 */
/* --- ヘッダー --- */
--navbar-bg: #f7f7f7; /* ヘッダー背景 */
--navbar-title-color: #afb3f7; /* プロジェクト名 */
--new-button-bg: transparent; /* 新規作成ボタン ↓ */
--new-button-hover-bg: transparent;
--new-button-active-bg: transparent;
--new-button-horizontal-color: #afb3f7;
--new-button-vertical-color: #afb3f7; /* ↑ */
--search-form-bg: #efefef; /* 検索画面 */
--search-form-icon-color: #afb3f7; /* 🔍 */
--search-form-text-color: #555; /* 検索の文字 */
--navbar-icon-color: #afb3f7; /* ^ */
--navbar-icon-hovered-color: #000; /* ^:hover */
--navbar-icon-active-color: #afb3f7;
--telomere-updated: #afb3f7; /* テロメア編集 */
--telomere-unread: #D3D5FB; /* テロメア未読 */
/* --- 関連ページ ラベルデザイン --- */
--relation-label-bg: #fefefe;
--relation-label-empty-bg: #fefefe;
--relation-label-links-bg: #fefefe;
--relation-label-text:#304ea2;
--relation-label-empty-text: #b10e0e;
--relation-label-links-text: #304ea2;
--card-description-code-color: #808080;
}
code:style.css
/*スリムなテロメア*/
/* ↓新着以外のテロメアの色と太さ */
.line .telomere .telomere-border {
border-width: 0 0 0 2px !important;
}
/* ↓新着のテロメアの色と太さ */
.line .telomere .telomere-border.unread {
border-width: 0 0 0 5px !important;
}
/*のびのびドロップダウン*/
.navbar-form .dropdown.open .dropdown-menu {
min-width: 100%;
max-height: calc(100vh - 130px) !important;
overflow-y: auto;
}
/* 不要なバッジ */
.status-bar .plan-badge { display: none; }
.status-bar .private-badge { display: none; }
/* タイトル */
.line.line-title .text{
text-align: center;
font-weight: bold;
letter-spacing: 0.06em;
text-indent: 0.06em;
}
data-hover-visible .navbar .navbar-brand:hover{color: #000;}
data-hover-visible .new-button:hover{
--new-button-horizontal-color: #000;
--new-button-vertical-color: #000;
}
.navbar .navbar-menu>li>a:hover,.navbar .navbar-menu>li>a:active,.navbar .navbar-menu>li>a:focus{color: #000;}
.dropdown-menu>li>a.selected, data-hover-visible .dropdown-menu>li>a.selected{ /* ソートメニュー */
color: #afb3f7;}
.page { box-shadow:none; }
code:style.css
.navbar {
box-shadow: none;
border-bottom: 7px solid #ECEDF0;
}
@media screen {
.quick-launch .project-home {
position: fixed;
top: -3px;
left: 45px;
z-index: 1000;
}
}
@media screen and (min-width: 768px) and (max-width: 991px) {
.quick-launch .project-home {
left: 60px;
}
}
@media screen and (min-width: 992px) and (max-width: 1260px) {
.quick-launch .project-home {
left: 75px;
}
}
@media screen and (min-width: 1261px) {
.quick-launch .project-home {
/* left: calc((100% - 1280px)/2 + 70px); */
}
}
.quick-launch .project-home {
font-weight: 400;
letter-spacing: 0.2em;
}
code:style.css
body{
/*カードの下部影*/
--card-box-shadow:none;
--card-box-hover-shadow:none;
}
.page-list .grid li{
margin: 0 0 1.4em 0;
box-shadow: none;
}
.related-page-list {
padding: 0 3px;
}
.grid li.page-list-item a{
border-radius: 5px ;
outline: 3px solid #efefef;
transition: all 100ms cubic-bezier(0.2, 0.91, 0.85, 0.96) 0s;
}
.grid li.page-list-item a:hover{
border-radius: 5px;
}
.grid li.page-list-item a{outline: 3px solid #efefef;}
.grid li.page-list-item a:hover{outline: 3px solid #afb3f7;}
.grid li.page-list-item a .icon {
position: relative;
padding: 0;
margin: auto;
}
.grid li.page-list-item a .icon img{
width: auto;
max-height: 90px;
max-width: 90%;
border-radius: 5px;
}
.grid li.page-list-item a .header{
padding: 13px 10px 8px;
border-top: none;
}
.grid li.page-list-item a .title{
font-size: 0.9em;
text-align: center;
}
.grid li.page-list-item a .hover{background: transparent;}
data-hover-visible .grid li.page-list-item.pin a:hover .hover {
opacity: 0;
}
.related-page-list .grid li{margin: 0 14.4px 15.4px 0;}
.grid li.relation-label a {border-radius: 5px;}
.quick-launch .right-box{justify-content: center;}
.dropdown-toggle{letter-spacing:0.1em;/*text-indent:0.1em;*/ }
.quick-launch .open>.dropdown-menu{
left: 50%;
transform: translateX(-50%);
}
code:style.css
/* その他 */
::-webkit-scrollbar {
width: 0.5rem;
background: transparent;
}
::-webkit-scrollbar-track {
border-radius: 6px; /* 角の丸み */
}
::-webkit-scrollbar-thumb {
background: #dadce0;
border-radius: 8px; /* 角の丸み */
}
::-webkit-scrollbar-thumb:hover {
background: #bdc1c6; /* ホバー時のサムの色 */
}
/* indent */
:root {
--li-color-0: #B6D094;
--li-color-1: #afb3f7;
--li-color-2: #B6D094;
--li-color-3: #afb3f7;
--li-color-4: #B6D094;
--li-color-5: #afb3f7;
}
.line .indent-mark .dot::before {
display: block;
position: absolute;
right: -4px;
top: -10px;
font-family: 'Font Awesome 5 Free';
font-weight: 900;
font-size: 6px;
content: '\f068';
color: var(--li-color-0);
}
.line .indent-mark .dot {
background-color: transparent;
}
.line .indent-mark .c-0 + .dot::before {
color: var(--li-color-1);
}
.line .indent-mark .c-1 + .dot::before {
color: var(--li-color-2);
}
.line .indent-mark .c-2 + .dot::before {
color: var(--li-color-3);
}
.line .indent-mark .c-3 + .dot::before {
color: var(--li-color-4);
}
.line .indent-mark .c-4 + .dot::before {
color: var(--li-color-5);
}
.line.formula-line .dot { display: block }
code:style.css
/* スマホ */
@media(max-width: 767px) {
.col-page { padding: 0 }
::-webkit-scrollbar { height: 0 }
.flex-box .history-back-button { position: fixed; margin-top:20px; left: 40px }
.quick-launch { margin-top: 0; margin-bottom: 15px; }
.search-form { margin-top: 15px; }
}
/* https://scrapbox.io/work4ai/settings */
.expandable-menu{
background-color: #f7f7f7;
z-index: 2;
max-width: calc(100% - 85px);
}
.expandable-menu .page-menu .tool-btn i::before{color: #afb3f7; }
.expandable-menu .toggle-button{
color: #afb3f7;
opacity: 1;}
.page-menu.xs{margin-bottom: -0.5em;}
@media (max-width: 767px){
.app:has(.expandable-menu .toggle-button.open) .quick-launch .btn.project-home{
width: 41px;
color: transparent;
border-radius: 50%;
}
.app:has(.expandable-menu .toggle-button.open) .quick-launch .btn.project-home::after{
content: "";
position: absolute;
left: 0;
background-image: url(https://lh3.googleusercontent.com/a/AEdFTp7b7DCx98815QOeVAReEfQXKtjw0OJM83t5rBUSEQ=s96-c#.png);
background-size: 100%;
background-position: center;
height: 100%;
width: 100%;
transition: cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}
.app:has(.expandable-menu .toggle-button.open) .quick-launch .btn.project-home:hover::after{
background-size: 110%;
transition: cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
}
code:style.css
/* インライン引用 */
.line:not(.cursor-line) .deco-\" {
padding: 0 0.4em;
font-size: 95%;
font-style: italic;
background-color: rgb(128 128 128 / 10%);
border-radius: 0.2em;
&::before {
position: relative;
top: -0.5em;
left: -0.2em;
font-family: "Font Awesome 5 Free";
font-size: 85%;
font-weight: 900;
color: #a0a0a0;
content: "\f10d";
}
}
/* 正規表現で展開されたリンク */
.line:not(.cursor-line) .deco-\, {
font-size: 0;
&::before {
font-size: 13px;
color: #afb3f7;
content: " ";
background-color: #111827;
}
}
/* youtube */
.iframe-video-player:not(.floating) {
iframe {
width: 99%;
max-width: 500px;
height: auto;
max-height: 360px;
aspect-ratio: 16 / 9;
}
&:hover .control {
right: unset;
left: min(99% - 24px, 476px); /* calc(min(99%, 640px) - 24px) */
}
}
strong .iframe-video-player:not(.floating) {
iframe {
max-width: 99%;
max-height: none;
}
&:hover .control {
left: calc(99% - 24px);
}
}