settings
https://scrapbox.io/files/60a7e6664380f10021789aa3.png
CSS
code:style.css
/* トップページの書式 */
li.page-list-item.grid-style-item a {
}
li.page-list-item.grid-style-item.pin a .header {
border-top-color: #8D9BDF;
}
.grid li.page-list-item.grid-style-item:not(.pin) a .header {
border-top-color: #2D3B7F;
}
li.page-list-item.grid-style-item:not(.pin) a {
/*background: #31353d;*/
background: #252733;
}
/* 画像の表示サイズをhogeのスタイルで調整できるようにする */
.level-1 img.image { width: 16.7%; height: auto; max-height: none; }
.level-2 img.image { width: 33.3%; height: auto; max-height: none; }
.level-3 img.image { width: 50%; height: auto; max-height: none; }
.level-4 img.image { width: 66.7%; height: auto; max-height: none; }
.level-5 img.image { width: 83.3%; height: auto; max-height: none; }
.level-6 img.image { width: 100%; height: auto; max-height: none; }
/* 強調レベルごとの書式 */
.line strong.level-2{
color: #428DBB;
}
.line strong.level-3{
color: #71BF50;
}
.line strong.level-4{
border-bottom: solid 2px #47A4B1;
line-height: 2em;
}
.line strong.level-5{
padding: 10px 20px;
border-left: solid 10px #d14;
line-height: 2em;
}
/* タグの見た目に関する記述 */
atype="hashTag"{
display: inline-block;
color: #47A4B1;
padding: 0px 14px;
font-size: 0.9em;
background-color: #EEEEEE;
border: px solid #47A4B1;
border-radius: 50px;
transition: .6s;
}
atype="hashTag":hover{
background-color: #F0F0F0;
color: #67C4D1;
}
/* hoge */
.deco-\{, .deco-\} {
font-size: 1em;
color: #fff;
background-color: #b2bcba;
padding: 0.1em 0.2em 0.1em 0.2em;
border-radius: 0.4em;
margin: auto 0.3em;
display: inline-block;
max-width: calc(100% - 100px);
vertical-align: top;
}
/* 吹き出しの尖った部分に関する記述 */
.deco-\{:before {
position: absolute;
margin: 0;
padding: 0;
transform: translateX(-100%) translateY(calc(1em - 80%));
width: 0;
content: "";
border-width: 0 0 0.6em 0.6em;
border-style: solid;
border-color: #b2bcba transparent;
}
.deco-\}:after {
position: absolute;
margin: 0;
padding: 0;
transform: translateY(calc(1em - 80%));
width: 0;
content: "";
border-width: 0 0.6em 0.6em 0;
border-style: solid;
border-color: #b2bcba transparent;
}
/* 吹き出し中のリンクに関する書式 */
.deco-\{ a,
.deco-\} a {
color: #66F;
}
/* hoge */
.deco-\! {
color: #fff;
background-color: #ee6666;
padding: 0.1em 0.2em 0.1em 0.2em;
}
.deco-\!:before,
.deco-\!:after {
border-color: #ee6666 transparent;
}
/* hogeで赤字 */
.deco-\# {
color: #d52222;
}
JavaScript
code:script.js
import '/api/code/7cancerWriting/7cancer/script.js'
import '/api/code/kn1cht/embed-tweet/script.js'