-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbootleg-tabs.css
51 lines (46 loc) · 1.29 KB
/
bootleg-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
/*
* Bootleg.css
* https://github.com/ryanseddon/bootleg
*
* WTFPL - http://sam.zoy.org/wtfpl/
*/
#tabs .tab-content {
clear: both;
border-top: 1px solid #ddd;
padding-top: 5px;
}
.tabs input[type="radio"]:checked + label {
color: #555;
cursor: default;
background-color: white;
border: 1px solid #DDD;
border-bottom-color: transparent;
position: relative;
top: 1px;
padding: 7px 12px 9px;
cursor: default;
}
.tabs > label {
padding: 8px 12px;
line-height: 20px;
border: 1px solid transparent;
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
margin: 0 2px 0 0;
float: left;
cursor: pointer;
}
.tabs > label:hover {
background-color: #EEE;
color: #005580;
}
.tabs [type="radio"]:nth-of-type(1):checked ~ .tab-content > div:nth-of-type(1),
.tabs [type="radio"]:nth-of-type(2):checked ~ .tab-content > div:nth-of-type(2),
.tabs [type="radio"]:nth-of-type(3):checked ~ .tab-content > div:nth-of-type(3),
.tabs [type="radio"]:nth-of-type(4):checked ~ .tab-content > div:nth-of-type(4),
.tabs [type="radio"]:nth-of-type(5):checked ~ .tab-content > div:nth-of-type(5),
.tabs [type="radio"]:nth-of-type(6):checked ~ .tab-content > div:nth-of-type(6) {
display: block;
opacity: 1;
}