master
ブランチ master
LittleBeast / public / static / style-tabs.css
1.2 KB、55行 生 Blame 履歴
1.code-tabs {
2 margin: 1em 0;
3}
4
5.code-tabs > input {
6 position: absolute;
7 opacity: 0;
8 pointer-events: none;
9}
10
11.code-tabs > label {
12 display: inline-block;
13 padding: 4px 14px;
14 margin-right: 4px;
15 border: 1px solid #f545f5;
16 border-bottom: none;
17 border-radius: 6px 6px 0 0;
18 background: #120f12;
19 color: #bcb4bc;
20 cursor: pointer;
21 user-select: none;
22}
23
24.code-tabs > label:hover {
25 color: #fcfcfc;
26}
27
28.code-tabs > input:checked + label {
29 background: #f545f5;
30 color: #120f12;
31 font-weight: bold;
32}
33
34.code-tabs > input:focus-visible + label {
35 outline: 2px solid #b421f8;
36 outline-offset: 2px;
37}
38
39.code-tabs > .code-tab-panel {
40 display: none;
41}
42
43.code-tabs > .code-tab-panel > pre {
44 margin-top: 0;
45 border-top-left-radius: 0;
46}
47
48.code-tabs > input:nth-of-type(1):checked ~ .code-tab-panel:nth-of-type(1),
49.code-tabs > input:nth-of-type(2):checked ~ .code-tab-panel:nth-of-type(2),
50.code-tabs > input:nth-of-type(3):checked ~ .code-tab-panel:nth-of-type(3),
51.code-tabs > input:nth-of-type(4):checked ~ .code-tab-panel:nth-of-type(4),
52.code-tabs > input:nth-of-type(5):checked ~ .code-tab-panel:nth-of-type(5),
53.code-tabs > input:nth-of-type(6):checked ~ .code-tab-panel:nth-of-type(6) {
54 display: block;
55}