3 * Styling TabContainer means styling the TabList and Its content container (dijitTitlePane)
5 * Tab List: (including 4 kinds of tab location)
6 * .dijitTabContainerTop-tabs - tablist container at top
7 * .dijitTabContainerBottom-tabs - tablist container at bottom
8 * .dijitTabContainerLeft-tabs - tablist container at left
9 * .dijitTabContainerRight-tabs - tablist container at right
12 * .dijitTabStripIcon - tab strip button icon
13 * .dijitTabStripMenuIcon - down arrow icon position
14 * .dijitTabStripSlideLeftIcon - left arrow icon position
15 * .dijitTabStripSlideRightIcon - right arrow icon position
17 * .tabStripButtonDisabled - styles for disabled tab strip buttons
20 * .dijitTabContainerTop-tabs .dijitTab - styles for top tab button container
21 * .dijitTabContainerBottom-tabs .dijitTab - styles for bottom tab button container
22 * .dijitTabContainerLeft-tabs .dijitTab - styles for left tab button container
23 * .dijitTabContainerRight-tabs .dijitTab - styles for right tab button container
25 * .dijitTabContainerTop-tabs .dijitTabChecked .dijitTab
26 * - styles for selected status of top tab button
27 * same to Bottom, Left, Right Tabs
29 * .dijitTabHover .dijitTab - styles when mouse hover on tab buttons
30 * .dijitTabActive .dijitTab - styles when mouse down on tab buttons
31 * .dijitTabChecked .dijitTab - styles when on buttons of selected tab
33 * .dijitTabCloseButton - the close action buttons lie at the right top of each tab button on closable tabs
34 * .dijitTabCloseButtonHover - styles when mouse hover on close action button
35 * .dijitTabCloseButtonActive - styles when mouse down on close action button
37 * Tab Button: (checked status)
39 * Tab Content Container:
40 * .dijitTabContainerTop-dijitContentPane
41 * .dijitTabContainerBottom-dijitContentPane
42 * .dijitTabContainerLeft-dijitContentPane
43 * .dijitTabContainerRight-dijitContentPane - for background and padding
46 * .dijitTabContainerNested - Container for nested tabs
47 * .dijitTabContainerTabListNested - tab list container for nested tabs
50 @import "../variables";
52 .unselected-tab-gradient (@direction) {
53 // white line, dark line, then fade from light to dark
54 .alpha-white-gradient (@direction, 1,0px, 1,1px, 0.1,2px, 0.6,7px, 0,100%);
56 .topBottom-selected-tab-gradient (@direction) {
57 .alpha-white-gradient (@direction, 1,0px, 1,1px, 0,2px, 1,7px); // white line, blue line, remainder white
59 /*** some common features ***/
60 .claro .dijitTabPaneWrapper {
61 background:@pane-background-color;
63 .claro .dijitTabPaneWrapper,
64 .claro .dijitTabContainerTop-tabs,
65 .claro .dijitTabContainerBottom-tabs,
66 .claro .dijitTabContainerLeft-tabs,
67 .claro .dijitTabContainerRight-tabs {
68 /* todo: add common class name for this div */
69 border-color: @border-color;
71 .claro .dijitTabCloseButton {
72 background: url("../@{image-layout-tab-close}") no-repeat;
78 .claro .dijitTabCloseButtonHover {
79 background-position:-14px;
81 .claro .dijitTabCloseButtonActive {
82 background-position:-28px;
84 .claro .dijitTabSpacer {
85 /* set the spacer invisible. note that height:0 doesn't work on IE/quirks, it's still 10px. */
89 border: 1px solid @border-color;
90 background-color:@unselected-background-color;
91 .transition-property(background-color, border);
92 .transition-duration(.35s);
93 color:@unselected-text-color;
95 .claro .dijitTabHover {
96 border-color: @hovered-border-color;
97 background-color:@hovered-background-color;
98 .transition-duration(.25s);
99 color:@hovered-text-color;
101 .claro .dijitTabActive {
102 border-color: @pressed-border-color;
103 background-color:@pressed-background-color;
104 color:@selected-text-color;
105 .transition-duration(.1s);
107 .claro .dijitTabChecked {
109 border-color: @border-color; // don't use @selected-border-color because need to match border of TabContainer
110 background-color: @selected-background-color;
111 color: @selected-text-color;
113 .claro .dijitTabDisabled {
114 background-color: @tab-disabled-background-color;
117 .claro .tabStripButton {
118 background-color: transparent;
124 /*************** top tab ***************/
125 .claro .dijitTabContainerTop-tabs .dijitTab {
126 /* unselected (and not hovered/pressed) tab */
127 top: 1px; /* used for overlap */
130 border-bottom-width: 0;
134 // gradient (CSS gradient, with backup image for IE6-9)
135 background-image: url("images/tabTopUnselected.png");
136 background-repeat: repeat-x;
137 .unselected-tab-gradient(top);
139 .box-shadow(0 -1px 1px rgba(0, 0, 0, 0.04));
142 .claro .dijitTabContainerTop-tabs .dijitTabChecked {
147 // gradient (CSS gradient, with backup image for IE6-9)
148 background-image: url("images/tabTopSelected.png");
149 .topBottom-selected-tab-gradient (top);
151 .box-shadow(0 -1px 2px rgba(0, 0, 0, 0.05));
157 /*************** bottom tab ***************/
158 .claro .dijitTabContainerBottom-tabs .dijitTab {
159 /* unselected (and not hovered/pressed) tab */
160 top: -1px; /* used for overlap */
167 // gradient (CSS gradient, with backup image for IE6-9)
168 background-image: url("images/tabBottomUnselected.png");
169 background-repeat: repeat-x;
170 background-position: bottom;
171 .unselected-tab-gradient(bottom);
173 .box-shadow(0 1px 1px rgba(0, 0, 0, 0.04));
177 .claro .dijitTabContainerBottom-tabs .dijitTabChecked {
181 // gradient (CSS gradient, with backup image for IE6-9)
182 background-image: url("images/tabBottomSelected.png");
183 .topBottom-selected-tab-gradient (bottom);
185 .box-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
187 /** end bottom tab **/
189 /*************** left tab ***************/
190 .claro .dijitTabContainerLeft-tabs .dijitTab {
191 /* unselected (and not hovered/pressed) tab */
192 left: 1px; /* used for overlap */
194 padding:3px 8px 4px 4px;
196 // gradient (CSS gradient, with backup image for IE6-9)
197 background-image: url("images/tabLeftUnselected.png");
198 background-repeat: repeat-y;
199 .unselected-tab-gradient(left);
203 .claro .dijitTabContainerLeft-tabs .dijitTabChecked {
204 border-right-width: 0;
207 // gradient (CSS gradient, with backup image for IE6-9)
208 background-image: url("images/tabLeftSelected.png");
209 .alpha-white-gradient (left, 0.5,0px, 1,30px); // 1/2 inch blue gradient, remainder white
211 .box-shadow(-1px 0 2px rgba(0, 0, 0, .05));
215 /*************** right tab ***************/
216 .claro .dijitTabContainerRight-tabs .dijitTab {
217 /* unselected (and not hovered/pressed) tab */
218 left: -1px; /* used for overlap */
220 padding:3px 8px 4px 4px;
222 // gradient (CSS gradient, with backup image for IE6-9)
223 background-image: url("images/tabRightUnselected.png");
224 background-repeat: repeat-y;
225 background-position: right;
226 .unselected-tab-gradient(right);
228 .claro .dijitTabContainerRight-tabs .dijitTabChecked {
231 border-left-width: 0;
233 // gradient (CSS gradient, with backup image for IE6-9)
234 background-image: url("images/tabRightSelected.png");
235 .alpha-white-gradient (right, 0.5,0px, 1,30px); // 1/2 inch blue gradient, remainder white
237 .box-shadow(1px 0 2px rgba(0, 0, 0, 0.07));
239 /** end right tab **/
242 .claro .dijitTabContainerTop-tabs .dijitTab {
243 .border-radius(2px 2px 0 0);
245 .claro .dijitTabContainerBottom-tabs .dijitTab {
246 .border-radius(0 0 2px 2px);
248 .claro .dijitTabContainerLeft-tabs .dijitTab {
249 .border-radius(2px 0 0 2px);
252 .claro .dijitTabContainerRight-tabs .dijitTab {
253 .border-radius(0 2px 2px 0);
256 /************ left/right scroll buttons + menu button ************/
257 .claro .tabStripButton {
258 background-color:@button-background-color;
259 border: 1px solid @border-color;
261 .claro .dijitTabListContainer-top .tabStripButton {
264 .alpha-white-gradient (top, 1,0px, 0.1,1px, 0.6,6px, 0,100%); // to match unselected tab, but had to tweak numbers
266 .claro .dijitTabListContainer-bottom .tabStripButton {
269 .alpha-white-gradient (bottom, 1,0px, 0.1,1px, 0.6,6px, 0,100%); // to match unselected tab, but had to tweak numbers
271 .claro .tabStripButtonHover {
272 background-color:@hovered-background-color;
274 .claro .tabStripButtonActive {
275 background-color:@pressed-background-color;
277 .claro .dijitTabStripIcon {
281 background:url("../@{image-form-button-arrows}") no-repeat -75px 50%;
282 background-color: transparent;
284 .claro .dijitTabStripSlideRightIcon{
285 background-position: -24px 50%;
287 .claro .dijitTabStripMenuIcon {
288 background-position: -51px 50%;
291 /*disabled styles for tab strip buttons*/
292 .claro .dijitTabListContainer-top .tabStripButtonDisabled,
293 .claro .dijitTabListContainer-bottom .tabStripButtonDisabled {
294 background-color:@tab-disabled-background-color;
295 border:1px solid @border-color; /* to match border of TabContainer itself */
297 .claro .tabStripButtonDisabled .dijitTabStripSlideLeftIcon {
298 background-position:-175px 50%;
300 .claro .tabStripButtonDisabled .dijitTabStripSlideRightIcon {
301 background-position: -124px 50%;
303 .claro .tabStripButtonDisabled .dijitTabStripMenuIcon {
304 background-position: -151px 50%;
307 .claro .dijitTabContainerNested .dijitTabListWrapper {
310 .claro .dijitTabContainerNested .dijitTabContainerTop-tabs {
311 border-bottom:solid 1px @border-color;
314 .claro .dijitTabContainerTabListNested .dijitTab {
315 background:rgba(255, 255, 255, 0) none repeat scroll 0 0;
318 border-color: rgba(118,157,192,0);
319 .transition-property(background-color, border-color);
320 .transition-duration(.3s);
323 .claro .dijitTabContainerTabListNested .dijitTab {
326 top: 0;/* to override top: 1px/-1px for normal tabs */
329 .claro .dijitTabContainerTabListNested .dijitTabHover {
330 background-color: @nestedtab-hovered-background-color;
331 border:solid 1px @nestedtab-hovered-border-color;
332 padding: 3px; // 4px above padding - 1px compensation for border
333 .transition-duration(.2s);
335 .claro .dijitTabContainerTabListNested .dijitTabHover .tabLabel {
336 text-decoration: none;
338 .claro .dijitTabContainerTabListNested .dijitTabActive {
339 border:solid 1px @nestedtab-selected-border-color;
342 // CSS gradient with fallback to image for IE
343 // this is in a weird place, only for active state; mailed Jason about it
344 background: @nestedtab-selected-background-color url("images/tabNested.png") repeat-x;
345 .alpha-white-gradient (0.61,0%, 0,17%, 0,83%, 0.61,100%);
347 .transition-duration(.1s);
349 .claro .dijitTabContainerTabListNested .dijitTabChecked {
351 border:solid 1px @selected-border-color;
352 background-color:@selected-background-color;
354 .claro .dijitTabContainerTabListNested .dijitTabChecked .tabLabel {
355 text-decoration: none;
356 background-image:none;
358 .claro .dijitTabPaneWrapperNested {
359 border: none;/* prevent double border */
363 .claro .tabStripButton {
364 // IE6 can't handle background-image and background-color on same node
365 _background-image: none !important;