/
tabs.css
86 lines (72 loc) · 1.14 KB
/
tabs.css
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
* {
font-family: Arial, sans;
}
code {
font-family: courier, sans;
background: #d1d1d1;
}
pre {
font-family: courier, sans;
background: #d1d1d1;
display: block;
}
h1 {
text-align: left;
}
#container {
}
#container input {
height: 2.5em;
visibility: hidden;
}
#container label {
background: #f9f9f9;
border-radius: .25em .25em 0 0;
color: #888;
cursor: pointer;
display: block;
float: left;
font-size: 1em;
height: 2.5em;
line-height: 2.5em;
margin-right: .25em;
padding: 0 1.5em;
text-align: left;
}
#container input:hover + label {
background: #ddd;
color: #666;
}
#container input:checked + label {
background: #f1f1f1;
color: #444;
position: relative;
z-index: 6;
}
#content {
z-index: 5;
}
#content div {
opacity: 0;
padding: 1.5em;
position: absolute;
z-index: -100;
}
#content-1 p {
width: 100%;
}
#content-2 p {
width: 100%;
}
#content-3 p {
width: 100%;
}
#container input#tab-1:checked ~ #content #content-1,
#container input#tab-2:checked ~ #content #content-2,
#container input#tab-3:checked ~ #content #content-3 {
opacity: 1;
z-index: 100;
}
input.visible {
visibility: visible !important;
}