| 1 |
/* TabContainer |
| 2 |
* |
| 3 |
* Styling TabContainer means styling the TabList and Its content container (dijitTitlePane) |
| 4 |
* |
| 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 |
| 10 |
* |
| 11 |
* Tab Strip Button: |
| 12 |
* .dijitTabStripIcon - tab strip button icon |
| 13 |
* .dijitTabStripMenuIcon - down arrow icon position |
| 14 |
* .dijitTabStripSlideLeftIcon - left arrow icon position |
| 15 |
* .dijitTabStripSlideRightIcon - right arrow icon position |
| 16 |
* |
| 17 |
* .tabStripButtonDisabled - styles for disabled tab strip buttons |
| 18 |
* |
| 19 |
* Tab Button: |
| 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 |
| 24 |
* |
| 25 |
* .dijitTabContainerTop-tabs .dijitTabChecked .dijitTab |
| 26 |
* - styles for selected status of top tab button |
| 27 |
* same to Bottom, Left, Right Tabs |
| 28 |
* |
| 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 |
| 32 |
* |
| 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 |
| 36 |
* |
| 37 |
* Tab Button: (checked status) |
| 38 |
* |
| 39 |
* Tab Content Container: |
| 40 |
* .dijitTabContainerTop-dijitContentPane |
| 41 |
* .dijitTabContainerBottom-dijitContentPane |
| 42 |
* .dijitTabContainerLeft-dijitContentPane |
| 43 |
* .dijitTabContainerRight-dijitContentPane - for background and padding |
| 44 |
* |
| 45 |
* Nested Tabs: |
| 46 |
* .dijitTabContainerNested - Container for nested tabs |
| 47 |
* .dijitTabContainerTabListNested - tab list container for nested tabs |
| 48 |
*/ |
| 49 |
|
| 50 |
@import 'dijit_layout_variables'; |
| 51 |
|
| 52 |
.{$theme-name} { |
| 53 |
|
| 54 |
/************ common styles *************/ |
| 55 |
|
| 56 |
.dijitTabContainer { |
| 57 |
border-radius: $tab-wrapper-border-radius; |
| 58 |
} |
| 59 |
|
| 60 |
.dijitTabPaneWrapper { |
| 61 |
background: $tab-wrapper-background-color; |
| 62 |
border: 1px solid $tab-wrapper-border-color; |
| 63 |
margin: 0; |
| 64 |
padding: 0; |
| 65 |
border-radius: 0 0 $tab-wrapper-border-radius $tab-wrapper-border-radius; |
| 66 |
} |
| 67 |
|
| 68 |
.dijitTabContainerTop-tabs, |
| 69 |
.dijitTabContainerBottom-tabs, |
| 70 |
.dijitTabContainerLeft-tabs, |
| 71 |
.dijitTabContainerRight-tabs { |
| 72 |
border: none; |
| 73 |
} |
| 74 |
|
| 75 |
.dijitTabSpacer { |
| 76 |
// display: none if !$tab-has-gutter; |
| 77 |
display: none; |
| 78 |
} |
| 79 |
|
| 80 |
/* tabs */ |
| 81 |
|
| 82 |
.dijitTab { |
| 83 |
border: 1px solid $tab-border-color; |
| 84 |
background-color: $tab-background-color; |
| 85 |
text-align: center; |
| 86 |
transition-property: background, padding, margin; |
| 87 |
transition-duration: .2s; |
| 88 |
transition-timing-function: ease; |
| 89 |
position: relative; |
| 90 |
z-index: 0; |
| 91 |
if ($tab-checked-has-highlight-border) { |
| 92 |
&:before { |
| 93 |
content: ""; |
| 94 |
display: block; |
| 95 |
position: absolute; |
| 96 |
} |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 100 |
/* tabs: hover */ |
| 101 |
|
| 102 |
.dijitTabHover { |
| 103 |
background-color: $tab-hover-background-color; |
| 104 |
} |
| 105 |
|
| 106 |
/* tabs: active */ |
| 107 |
|
| 108 |
.dijitTabActive { |
| 109 |
background-color: $tab-active-background-color; |
| 110 |
} |
| 111 |
|
| 112 |
/* tabs: checked */ |
| 113 |
|
| 114 |
.dijitTabChecked { |
| 115 |
border: 1px solid $tab-checked-border-color; |
| 116 |
z-index: 1; |
| 117 |
&.dijitTabHover, |
| 118 |
&.dijitTabActive { |
| 119 |
border: 1px solid $tab-checked-border-color; |
| 120 |
background-color: $tab-checked-background-color; |
| 121 |
color: $tab-checked-text-color; |
| 122 |
} |
| 123 |
} |
| 124 |
|
| 125 |
/* tabs: disabled */ |
| 126 |
|
| 127 |
.dijitTabDisabled { |
| 128 |
opacity: $disabled-opacity; |
| 129 |
} |
| 130 |
|
| 131 |
/* tabs: strip button */ |
| 132 |
|
| 133 |
.tabStripButton { |
| 134 |
background-color: transparent; |
| 135 |
border: none; |
| 136 |
} |
| 137 |
|
| 138 |
/* tabs: close button */ |
| 139 |
|
| 140 |
.dijitTabCloseButton { |
| 141 |
_icon-core-style(); |
| 142 |
line-height: 1; |
| 143 |
font-size: 1em; |
| 144 |
vertical-align: middle; |
| 145 |
margin-left: $tab-padding; |
| 146 |
opacity: $tab-close-button-opacity; |
| 147 |
&:before { |
| 148 |
content: $tab-close-button-icon; |
| 149 |
} |
| 150 |
} |
| 151 |
.dijitTabCloseButtonHover { |
| 152 |
opacity: $tab-close-button-hover-opacity; |
| 153 |
} |
| 154 |
.dijitTabCloseButtonActive { |
| 155 |
opacity: $tab-close-button-active-opacity; |
| 156 |
} |
| 157 |
|
| 158 |
/************* end common **************/ |
| 159 |
|
| 160 |
|
| 161 |
/*************** top tabs ***************/ |
| 162 |
|
| 163 |
.dijitTabContainerTop-tabs { |
| 164 |
.dijitTab { |
| 165 |
margin-right: $tab-spacing; |
| 166 |
padding: $tab-top-padding; |
| 167 |
border-bottom-color: $tab-wrapper-border-color; |
| 168 |
border-left: none; |
| 169 |
border-right: none; |
| 170 |
} |
| 171 |
// .dijitTabHover, |
| 172 |
// .dijitTabActive, |
| 173 |
// .dijitTabChecked { |
| 174 |
// } |
| 175 |
.dijitTabChecked { |
| 176 |
border-bottom: 1px solid $tab-wrapper-background-color; |
| 177 |
border-left: 1px solid $tab-wrapper-border-color; |
| 178 |
border-right: 1px solid $tab-wrapper-border-color; |
| 179 |
if ($tab-checked-has-highlight-border) { |
| 180 |
&:before { |
| 181 |
height: 3px; |
| 182 |
background: $tab-highlight-color; |
| 183 |
top: -1px; |
| 184 |
left: -1px; |
| 185 |
right: -1px; |
| 186 |
} |
| 187 |
} |
| 188 |
} |
| 189 |
} |
| 190 |
|
| 191 |
.dijitTabListContainer-top { |
| 192 |
margin-top: 1px; |
| 193 |
.dijitTab { |
| 194 |
top:0; |
| 195 |
} |
| 196 |
} |
| 197 |
|
| 198 |
/*************** end top tabs **************/ |
| 199 |
|
| 200 |
/*************** bottom tabs ***************/ |
| 201 |
|
| 202 |
.dijitTabPaneWrapper.dijitTabContainerBottom-container { |
| 203 |
border-radius: $tab-wrapper-border-radius $tab-wrapper-border-radius 0 0; |
| 204 |
} |
| 205 |
|
| 206 |
.dijitTabContainerBottom-tabs { |
| 207 |
.dijitTab { |
| 208 |
margin-right: $tab-spacing; |
| 209 |
padding: $tab-bottom-padding; |
| 210 |
border-top-color: $tab-wrapper-border-color; |
| 211 |
border-left: none; |
| 212 |
border-right: none; |
| 213 |
} |
| 214 |
// .dijitTabHover, |
| 215 |
// .dijitTabActive, |
| 216 |
// .dijitTabChecked { |
| 217 |
// } |
| 218 |
.dijitTabChecked { |
| 219 |
border-top: 1px solid $tab-wrapper-background-color; |
| 220 |
border-left: 1px solid $tab-wrapper-border-color; |
| 221 |
border-right: 1px solid $tab-wrapper-border-color; |
| 222 |
if ($tab-checked-has-highlight-border) { |
| 223 |
&:before { |
| 224 |
height: 3px; |
| 225 |
background: $tab-highlight-color; |
| 226 |
bottom: -1px; |
| 227 |
left: -1px; |
| 228 |
right: -1px; |
| 229 |
} |
| 230 |
} |
| 231 |
} |
| 232 |
} |
| 233 |
|
| 234 |
.dijitTabListContainer-bottom { |
| 235 |
margin-top: -1px; |
| 236 |
.dijitTab { |
| 237 |
top: 0; |
| 238 |
} |
| 239 |
} |
| 240 |
|
| 241 |
/************ end bottom tabs ************/ |
| 242 |
|
| 243 |
/*************** left tabs ***************/ |
| 244 |
|
| 245 |
.dijitTabPaneWrapper.dijitTabContainerLeft-container { |
| 246 |
border-radius: 0 $tab-wrapper-border-radius $tab-wrapper-border-radius 0; |
| 247 |
} |
| 248 |
|
| 249 |
.dijitTabContainerLeft-tabs { |
| 250 |
.dijitTab { |
| 251 |
margin-bottom: $tab-spacing; |
| 252 |
padding: $tab-left-padding; |
| 253 |
border-right-color: $tab-wrapper-border-color; |
| 254 |
border-top: none; |
| 255 |
border-bottom: none; |
| 256 |
} |
| 257 |
// .dijitTabHover, |
| 258 |
// .dijitTabActive, |
| 259 |
// .dijitTabChecked { |
| 260 |
// } |
| 261 |
.dijitTabChecked { |
| 262 |
border-right: 1px solid $tab-wrapper-background-color; |
| 263 |
border-top: 1px solid $tab-wrapper-border-color; |
| 264 |
border-bottom: 1px solid $tab-wrapper-border-color; |
| 265 |
if ($tab-checked-has-highlight-border) { |
| 266 |
&:before { |
| 267 |
width: 3px; |
| 268 |
background: $tab-highlight-color; |
| 269 |
bottom: -1px; |
| 270 |
left: -1px; |
| 271 |
top: -1px; |
| 272 |
} |
| 273 |
} |
| 274 |
} |
| 275 |
} |
| 276 |
|
| 277 |
/************** end left tabs *************/ |
| 278 |
|
| 279 |
/*************** right tabs ***************/ |
| 280 |
|
| 281 |
.dijitTabPaneWrapper.dijitTabContainerRight-container{ |
| 282 |
border-radius: $tab-wrapper-border-radius 0 0 $tab-wrapper-border-radius |
| 283 |
} |
| 284 |
|
| 285 |
.dijitTabContainerRight-tabs { |
| 286 |
.dijitTab { |
| 287 |
margin-bottom: $tab-spacing; |
| 288 |
padding: $tab-right-padding; |
| 289 |
border-left-color: $tab-wrapper-border-color; |
| 290 |
border-top: none; |
| 291 |
border-bottom: none; |
| 292 |
} |
| 293 |
// .dijitTabHover, |
| 294 |
// .dijitTabActive, |
| 295 |
// .dijitTabChecked { |
| 296 |
// } |
| 297 |
.dijitTabChecked { |
| 298 |
border-left: 1px solid $tab-wrapper-background-color; |
| 299 |
border-top: 1px solid $tab-wrapper-border-color; |
| 300 |
border-bottom: 1px solid $tab-wrapper-border-color; |
| 301 |
if ($tab-checked-has-highlight-border) { |
| 302 |
&:before { |
| 303 |
width: 3px; |
| 304 |
background: $tab-highlight-color; |
| 305 |
bottom: -1px; |
| 306 |
right: -1px; |
| 307 |
top: -1px; |
| 308 |
} |
| 309 |
} |
| 310 |
} |
| 311 |
} |
| 312 |
|
| 313 |
/************* end right tabs *************/ |
| 314 |
|
| 315 |
/************ left/right scroll buttons + menu button ***********/ |
| 316 |
.tabStripButton { |
| 317 |
background-color: $tab-strip-button-background-color; |
| 318 |
border: 1px solid $tab-strip-button-border-color; |
| 319 |
transition-property: background-color; |
| 320 |
} |
| 321 |
|
| 322 |
.dijitTabListContainer-top , |
| 323 |
.dijitTabListContainer-bottom { |
| 324 |
.tabStripButton { |
| 325 |
padding: $tab-padding $tab-padding*2; |
| 326 |
margin-left: $tab-spacing; |
| 327 |
margin-right $tab-spacing; |
| 328 |
} |
| 329 |
} |
| 330 |
|
| 331 |
.dijitTabListContainer-top { |
| 332 |
.tabStripButton { |
| 333 |
margin-bottom: 1px; |
| 334 |
} |
| 335 |
} |
| 336 |
|
| 337 |
.dijitTabListContainer-bottom { |
| 338 |
.tabStripButton { |
| 339 |
margin-top: 1px; |
| 340 |
} |
| 341 |
} |
| 342 |
|
| 343 |
.tabStripButtonHover { |
| 344 |
background-color: $tab-strip-button-hover-background-color; |
| 345 |
} |
| 346 |
|
| 347 |
.tabStripButtonActive { |
| 348 |
background-color: $tab-strip-button-active-background-color; |
| 349 |
} |
| 350 |
|
| 351 |
.dijitTabStripIcon { |
| 352 |
_icon-core-style(); |
| 353 |
color: $tab-strip-button-arrow-color; |
| 354 |
vertical-align: middle; |
| 355 |
&:before { |
| 356 |
content: $tab-left-icon; |
| 357 |
} |
| 358 |
} |
| 359 |
|
| 360 |
.dijitTabStripSlideRightIcon { |
| 361 |
&:before { |
| 362 |
content: $tab-right-icon; |
| 363 |
} |
| 364 |
} |
| 365 |
|
| 366 |
.dijitTabStripMenuIcon { |
| 367 |
&:before { |
| 368 |
content: $tab-menu-icon; |
| 369 |
} |
| 370 |
} |
| 371 |
|
| 372 |
/* disabled */ |
| 373 |
|
| 374 |
.dijitTabListContainer-top .tabStripButtonDisabled, |
| 375 |
.dijitTabListContainer-bottom .tabStripButtonDisabled { |
| 376 |
opacity: $disabled-opacity; |
| 377 |
} |
| 378 |
|
| 379 |
/*********** end left/right scroll buttons + menu button *********/ |
| 380 |
|
| 381 |
/*************** nested tabs ***************/ |
| 382 |
|
| 383 |
.dijitTabContainerNested .dijitTabListWrapper { |
| 384 |
height: auto; |
| 385 |
} |
| 386 |
|
| 387 |
.dijitTabContainerTabListNested { |
| 388 |
.dijitTab { |
| 389 |
color: $nestedtab-text-color; |
| 390 |
margin: $tab-padding; |
| 391 |
padding: $nestedtab-padding; |
| 392 |
border: 1px solid $nestedtab-border-color; |
| 393 |
border-radius: $nestedtab-border-radius; |
| 394 |
transition-property: background-color, border-color; |
| 395 |
transition-duration: .3s; |
| 396 |
} |
| 397 |
.dijitTabHover { |
| 398 |
background-color: $nestedtab-hover-background-color; |
| 399 |
} |
| 400 |
.dijitTabActive { |
| 401 |
color: $nestedtab-active-text-color; |
| 402 |
background-color:$nestedtab-active-background-color; |
| 403 |
} |
| 404 |
.dijitTabChecked, |
| 405 |
.dijitTabChecked.dijitTabHover, |
| 406 |
.dijitTabChecked.dijitTabActive { |
| 407 |
color: $nestedtab-checked-text-color; |
| 408 |
background-color: $nestedtab-checked-background-color; |
| 409 |
&:before { |
| 410 |
display: none; |
| 411 |
} |
| 412 |
} |
| 413 |
|
| 414 |
} |
| 415 |
|
| 416 |
/************* nested top tabs *************/ |
| 417 |
|
| 418 |
.dijitTabContainerTabListNested.dijitTabContainerTop-tabs .dijitTab { |
| 419 |
margin-right: $nestedtab-spacing; |
| 420 |
} |
| 421 |
|
| 422 |
/************* nested bottom tabs *************/ |
| 423 |
|
| 424 |
.dijitTabContainerTabListNested.dijitTabContainerBottom-tabs .dijitTab { |
| 425 |
margin-right: $nestedtab-spacing; |
| 426 |
} |
| 427 |
|
| 428 |
/************* nested left tabs *************/ |
| 429 |
|
| 430 |
.dijitTabContainerTabListNested.dijitTabContainerLeft-tabs .dijitTab { |
| 431 |
margin-bottom: $nestedtab-spacing; |
| 432 |
} |
| 433 |
|
| 434 |
/************* nested right tabs *************/ |
| 435 |
|
| 436 |
.dijitTabContainerTabListNested.dijitTabContainerRight-tabs .dijitTab { |
| 437 |
margin-bottom: $nestedtab-spacing; |
| 438 |
} |
| 439 |
|
| 440 |
|
| 441 |
.dijitTabPaneWrapperNested { |
| 442 |
border: none; /* prevent double border */ |
| 443 |
box-shadow: none; |
| 444 |
} |
| 445 |
|
| 446 |
} |