blob: d0a18bc9b10d8626669c220a605244d447b00986 (
plain)
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
53
54
55
56
57
58
|
.tabs {
position: relative;
clear: both;
margin: 25px 0;
}
.tabs label {
background: #eee;
padding: 10px;
border: 1px solid #ccc;
margin-left: -1px;
position: relative;
left: 1px;
}
.tabs [type=radio] {
display: none;
}
.content-rendering, .content-code {
background: white;
margin-top: 10px;
margin-bottom: -10px;
padding: 5px;
border: 1px solid #ccc;
}
/* Does not require immediate sibbling */
.tab-rendering[type=radio]:checked ~ .label-rendering {
background: white;
border-bottom: 1px solid white;
}
.tab-code[type=radio]:checked ~ .label-code {
background: white;
border-bottom: 1px solid white;
}
.tab-metadata[type=radio]:checked ~ .label-metadata {
background: white;
border-bottom: 1px solid white;
}
.tab-rendering[type=radio]:not(:checked) ~ .content-rendering {
display: none;
}
.tab-code[type=radio]:not(:checked) ~ .content-code {
display: none;
}
.tab-metadata[type=radio]:not(:checked) ~ .content-metadata {
display: none;
}
.content-rendering img {
padding: 5px;
border: 1px solid #ccc;
}
|