tab.css
1.07 KB
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
.tab {
margin: 2em 0;
}
.tab:after, .tab>ul:after, .tab>ul>li:after{
content:"";
display:block;
clear:both;
}
.tab > ul {
list-style: none;
margin: 0;
padding: 0;
}
.tab > ul > li {
float:left;
margin-right:1px;
color: #fff;
border-top-left-radius: 0.4em;
border-top-right-radius: 0.4em;
}
.tab > ul > li > a {
display: inline-block;
padding: 0.5em 1em;
text-decoration: none;
color: #fff;
}
.tab > ul > li {
background: #4CB1E5;
}
.tab > ul > li:hover {
background: #75a44b;
}
.tab > ul > li.active,
.tab > ul > li.active:hover {
background: #eee;
color: #000;
border: 1px solid #4CB1E5;
border-bottom: 0;
margin-bottom: -1px;
}
.tab > ul > li.active a,
.tab > ul > li.active:hover a {
color: #000;
font-weight: bold;
}
.tab > .content {
border-bottom-left-radius: 0.4em;
border-bottom-right-radius: 0.4em;
border-top-right-radius: 0.4em;
background: #eee;
border: 1px solid #4CB1E5;
}
.tab > .content > div {
padding: 2em;
display: none;
}
.tab > .content > div.selected {
display: block;
}
img.full {
width: 100%;
}