-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbootstrap-adaptive-tabs.css
74 lines (62 loc) · 1.61 KB
/
bootstrap-adaptive-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
.nav.nav-tabs.bs-adaptive-tabs li a label {
font-weight: normal;
}
@media (max-width: 768px) {
.nav.nav-tabs.bs-adaptive-tabs {
position: relative;
height: 45px;
margin-bottom: 50px;
outline: none;
}
.nav.nav-tabs.bs-adaptive-tabs li {
position: static;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(n+6) {
visibility: hidden;
float: right;
clear: right;
z-index: 10;
margin-left: -100%;
transition: visibility .3s;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(-n+5) {
width: 16.6%; /* 100/(5+1) */
text-align: center;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(6) {
margin-top: 44px;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(5):after {
content: "\f142";
font-family: "FontAwesome";
cursor: pointer;
display: block;
position: absolute;
top: 0;
right: 0;
padding: 10px 15px;
}
.nav.nav-tabs.bs-adaptive-tabs:focus:hover li {
visibility: visible;
}
.nav.nav-tabs.bs-adaptive-tabs li a {
position: static;
}
.nav.nav-tabs.bs-adaptive-tabs li:nth-child(n+6) a {
background-color: #fff;
border-color: #ddd;
border-radius: 0;
margin-top: 0;
margin-right: 0;
}
.nav.nav-tabs.bs-adaptive-tabs li a label {
visibility: hidden;
position: absolute;
top: 100%;
left: 0;
padding: 10px 15px;
}
.nav.nav-tabs.bs-adaptive-tabs li.active a label {
visibility: visible;
}
}