-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathch-lang-bbs-list.scss
52 lines (42 loc) · 1.27 KB
/
ch-lang-bbs-list.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
title: Chinese-language BBS List CSS
description: Stylesheet for <https://hackmd.io/@holishing/r1pdt-59b>
---
/*
<style> */ #_ { }
body {
counter-reset: bbstotal bbsup;
}
.bbslist > table {
counter-reset: catetotal cateup;
}
.bbslist:not(.excluded) > table td:nth-of-type(1) > img.emoji:nth-of-type(1) {
counter-increment: bbstotal catetotal;
}
.bbslist:not(.excluded) > table td:nth-of-type(1) > img.emoji[alt=":white_check_mark:"] {
counter-increment: bbstotal catetotal bbsup cateup;
}
.bbslist:not(.excluded) > table td:nth-of-type(1):hover::after,
.bbslist:not(.excluded) > table td:nth-of-type(1):focus-within::after {
content: counter(bbsup) "/" counter(bbstotal);
display: block;
position: absolute;
color: white;
background: #068de9;
}
.bbslist:not(.excluded)::after {
content: "此分類可連:" counter(cateup) "/" counter(catetotal);
background: rgba(0, 255, 255, .3);
}
#bbstotal::after {
content: "全部可連:" counter(bbsup) "/" counter(bbstotal);
background: rgba(0, 255, 255, .3);
}
#doc.markdown-body .hide-next-in-hackmd + :not(footer),
#content.main-content .hide-next-in-jekyll + :not(footer),
#doc.markdown-body #end-of-article ~ :not(footer),
#content.main-content #end-of-article ~ :not(footer) {
display: none;
}
/*
</style> */