Skip to content

Commit 1badf86

Browse files
committed
exposition-onlyの斜体・バッジ表示に対応
1 parent 16b31c4 commit 1badf86

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

css/kunai/site/article.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ div[itemtype="http://schema.org/Article"] {
181181
color: #333;
182182
text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
183183

184+
&.exposition-only {
185+
font-style: italic;
186+
}
187+
184188
span {
185189
display: block;
186190

css/kunai/site/badge-ext.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@ main[role="main"] {
1717

1818
span.cpp {
1919
@include cr-badge;
20+
21+
&.exposition-only {
22+
border-color: #666;
23+
color: #666;
24+
font-style: italic;
25+
26+
i {
27+
display: none;
28+
}
29+
30+
&::before {
31+
@include fa-patch;
32+
content: "\f24a"; // fa-sticky-note-o
33+
}
34+
35+
&::after {
36+
content: "説明専用";
37+
}
38+
}
2039
}
2140
}
2241
}

0 commit comments

Comments
 (0)