Newer
Older
John Albin Wilkins
committed
/**
* @file
* Tabs Styling
*
* Adds styles for the primary and secondary tabs.
*
* Compare this with default CSS found in the system module's stylesheet (a copy
* of which is in drupal7-reference.css.)
John Albin Wilkins
committed
John Albin Wilkins
committed
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
/*
* Basic positioning styles shared by primary and secondary tabs.
*/
ul.primary,
ul.secondary {
border-bottom: 1px solid #bbbbbb;
list-style: none;
margin: 1em 0 1.5em;
padding: 0 2px;
white-space: nowrap;
}
/* Add clearfix styling to tab containers. */
ul.primary:after,
ul.secondary:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ie6 ul.primary,
.ie6 ul.secondary {
height: 1%;
}
.ie7 ul.primary,
.ie7 ul.secondary {
min-height: 1%;
}
/*
* Primary tabs
*/
ul.primary li,
ul.secondary li {
float: left;
margin: 0.5em 3px 0;
John Albin Wilkins
committed
}
John Albin Wilkins
committed
ul.primary a,
ul.secondary a {
border: 1px solid #e9e9e9;
border-right: 0;
border-bottom: 0;
display: block;
line-height: 1.5em;
text-decoration: none;
John Albin Wilkins
committed
}
ul.primary li {
John Albin Wilkins
committed
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
-o-border-top-left-radius: 4px;
-ms-border-top-left-radius: 4px;
-khtml-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
-o-border-top-right-radius: 4px;
-ms-border-top-right-radius: 4px;
-khtml-border-top-right-radius: 4px;
border-top-right-radius: 4px;
text-shadow: white 1px 1px 0;
border: 1px solid #bbbbbb;
border-bottom: 0;
margin: 0.5em 0 0 3px;
John Albin Wilkins
committed
}
John Albin Wilkins
committed
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
ul.primary li.active {
border-bottom: 1px solid white;
margin-bottom: -1px; /* Overlap the ul's border. */
}
ul.primary a:link,
ul.primary a:visited {
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
-o-border-top-left-radius: 4px;
-ms-border-top-left-radius: 4px;
-khtml-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
-o-border-top-right-radius: 4px;
-ms-border-top-right-radius: 4px;
-khtml-border-top-right-radius: 4px;
border-top-right-radius: 4px;
-moz-transition: background-color 0.3s;
-webkit-transition: background-color 0.3s;
-o-transition: background-color 0.3s;
transition: background-color 0.3s;
color: #333;
background-color: #dedede;
letter-spacing: 1px;
padding: 0 1em;
text-align: center;
}
ul.primary a:hover,
ul.primary a:focus {
background-color: #e9e9e9;
border-color: #f2f2f2;
}
ul.primary a.active {
background-color: white;
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE9E9E9', endColorstr='#FFFFFFFF');
John Albin Wilkins
committed
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e9e9e9), color-stop(100%, #ffffff));
background-image: -webkit-linear-gradient(#e9e9e9, #ffffff);
background-image: -moz-linear-gradient(#e9e9e9, #ffffff);
background-image: -o-linear-gradient(#e9e9e9, #ffffff);
background-image: -ms-linear-gradient(#e9e9e9, #ffffff);
background-image: linear-gradient(#e9e9e9, #ffffff);
border-color: #fff;
}
/*
* Secondary tabs
*/
ul.secondary {
John Albin Wilkins
committed
font-size: .9em;
margin-top: -1.5em; /* Collapse bottom margin of ul.primary. */
padding-bottom: .5em;
John Albin Wilkins
committed
}
John Albin Wilkins
committed
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
ul.secondary a:link,
ul.secondary a:visited {
-moz-border-radius: 0.75em;
-webkit-border-radius: 0.75em;
-o-border-radius: 0.75em;
-ms-border-radius: 0.75em;
-khtml-border-radius: 0.75em;
border-radius: 0.75em;
-moz-transition: background-color 0.3s;
-webkit-transition: background-color 0.3s;
-o-transition: background-color 0.3s;
transition: background-color 0.3s;
text-shadow: white 1px 1px 0;
background-color: #f2f2f2;
color: #666;
padding: 0 .5em;
}
ul.secondary a:hover,
ul.secondary a:focus {
background-color: #dedede;
border-color: #999;
color: #333;
}
ul.secondary a.active,
ul.secondary a:active {
text-shadow: #333333 1px 1px 0;
background-color: #666;
border-color: #000;
color: #fff;