1
|
/**
|
2
|
* @file
|
3
|
* Tabs Styling
|
4
|
*
|
5
|
* Adds styles for the primary and secondary tabs.
|
6
|
*
|
7
|
* Compare this with default CSS found in the system module's stylesheet (a copy
|
8
|
* of which is in drupal7-reference.css.)
|
9
|
*/
|
10
|
|
11
|
|
12
|
/*
|
13
|
* Basic positioning styles shared by primary and secondary tabs.
|
14
|
*/
|
15
|
|
16
|
ul.primary,
|
17
|
ul.secondary {
|
18
|
overflow: hidden;
|
19
|
*zoom: 1;
|
20
|
border-bottom: 1px solid #bbbbbb;
|
21
|
list-style: none;
|
22
|
margin: 1em 0 1.5em;
|
23
|
padding: 0 2px;
|
24
|
white-space: nowrap;
|
25
|
}
|
26
|
|
27
|
ul.primary li,
|
28
|
ul.secondary li {
|
29
|
float: left; /* LTR */
|
30
|
margin: 0.5em 3px 0;
|
31
|
}
|
32
|
|
33
|
ul.primary a,
|
34
|
ul.secondary a {
|
35
|
border: 1px solid #e9e9e9;
|
36
|
border-right: 0;
|
37
|
border-bottom: 0;
|
38
|
display: block;
|
39
|
line-height: 1.5em;
|
40
|
text-decoration: none;
|
41
|
}
|
42
|
|
43
|
/*
|
44
|
* Primary tabs
|
45
|
*/
|
46
|
|
47
|
ul.primary li {
|
48
|
-moz-border-radius-topleft: 4px;
|
49
|
-webkit-border-top-left-radius: 4px;
|
50
|
-ms-border-top-left-radius: 4px;
|
51
|
-o-border-top-left-radius: 4px;
|
52
|
border-top-left-radius: 4px;
|
53
|
-moz-border-radius-topright: 4px;
|
54
|
-webkit-border-top-right-radius: 4px;
|
55
|
-ms-border-top-right-radius: 4px;
|
56
|
-o-border-top-right-radius: 4px;
|
57
|
border-top-right-radius: 4px;
|
58
|
text-shadow: white 1px 1px 0;
|
59
|
border: 1px solid #bbbbbb;
|
60
|
border-bottom: 0;
|
61
|
margin: 0.5em 0 0 3px; /* LTR */
|
62
|
}
|
63
|
|
64
|
ul.primary li.active {
|
65
|
border-bottom: 1px solid white;
|
66
|
margin-bottom: -1px; /* Overlap the ul's border. */
|
67
|
}
|
68
|
|
69
|
ul.primary a:link,
|
70
|
ul.primary a:visited {
|
71
|
-moz-border-radius-topleft: 4px;
|
72
|
-webkit-border-top-left-radius: 4px;
|
73
|
-ms-border-top-left-radius: 4px;
|
74
|
-o-border-top-left-radius: 4px;
|
75
|
border-top-left-radius: 4px;
|
76
|
-moz-border-radius-topright: 4px;
|
77
|
-webkit-border-top-right-radius: 4px;
|
78
|
-ms-border-top-right-radius: 4px;
|
79
|
-o-border-top-right-radius: 4px;
|
80
|
border-top-right-radius: 4px;
|
81
|
-webkit-transition: background-color 0.3s;
|
82
|
-moz-transition: background-color 0.3s;
|
83
|
-ms-transition: background-color 0.3s;
|
84
|
-o-transition: background-color 0.3s;
|
85
|
transition: background-color 0.3s;
|
86
|
color: #333;
|
87
|
background-color: #dedede;
|
88
|
letter-spacing: 1px;
|
89
|
padding: 0 1em;
|
90
|
text-align: center;
|
91
|
}
|
92
|
|
93
|
ul.primary a:hover,
|
94
|
ul.primary a:focus {
|
95
|
background-color: #e9e9e9;
|
96
|
border-color: #f2f2f2;
|
97
|
}
|
98
|
|
99
|
ul.primary a.active {
|
100
|
background-color: transparent;
|
101
|
*zoom: 1;
|
102
|
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE9E9E9', endColorstr='#00E9E9E9');
|
103
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e9e9e9), color-stop(100%, rgba(233, 233, 233, 0)));
|
104
|
background-image: -webkit-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
|
105
|
background-image: -moz-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
|
106
|
background-image: -o-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
|
107
|
background-image: -ms-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
|
108
|
background-image: linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
|
109
|
border-color: #fff;
|
110
|
}
|
111
|
|
112
|
/*
|
113
|
* Secondary tabs
|
114
|
*/
|
115
|
|
116
|
ul.secondary {
|
117
|
font-size: .9em;
|
118
|
margin-top: -1.5em; /* Collapse bottom margin of ul.primary. */
|
119
|
padding-bottom: .5em;
|
120
|
}
|
121
|
|
122
|
ul.secondary a:link,
|
123
|
ul.secondary a:visited {
|
124
|
-webkit-border-radius: 0.75em;
|
125
|
-moz-border-radius: 0.75em;
|
126
|
-ms-border-radius: 0.75em;
|
127
|
-o-border-radius: 0.75em;
|
128
|
border-radius: 0.75em;
|
129
|
-webkit-transition: background-color 0.3s;
|
130
|
-moz-transition: background-color 0.3s;
|
131
|
-ms-transition: background-color 0.3s;
|
132
|
-o-transition: background-color 0.3s;
|
133
|
transition: background-color 0.3s;
|
134
|
text-shadow: white 1px 1px 0;
|
135
|
background-color: #f2f2f2;
|
136
|
color: #666;
|
137
|
padding: 0 .5em;
|
138
|
}
|
139
|
|
140
|
ul.secondary a:hover,
|
141
|
ul.secondary a:focus {
|
142
|
background-color: #dedede;
|
143
|
border-color: #999;
|
144
|
color: #333;
|
145
|
}
|
146
|
|
147
|
ul.secondary a.active,
|
148
|
ul.secondary a:active {
|
149
|
text-shadow: #333333 1px 1px 0;
|
150
|
background-color: #666;
|
151
|
border-color: #000;
|
152
|
color: #fff;
|
153
|
}
|