Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Customized Bootstrap Tabs |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | /* Tabs and pills */ |
||
| 6 | |||
| 7 | .nav-tabs, |
||
| 8 | .nav-pills { |
||
| 9 | margin-bottom: 10px; |
||
| 10 | |||
| 11 | > li { |
||
| 12 | > a { |
||
| 13 | font-size: 14px; |
||
| 14 | |||
| 15 | > .badge { |
||
| 16 | margin-top: -3px; |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | .dropdown-menu { |
||
| 21 | &:before, |
||
| 22 | &:after { |
||
| 23 | display: none; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | &.nav-tabs-sm, |
||
| 29 | &.nav-pills-sm { |
||
| 30 | > li > a { |
||
| 31 | font-size: 13px; |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | .dropdown.open { |
||
| 36 | > .dropdown-toggle { |
||
| 37 | background: #eee; |
||
| 38 | color: #0d638f; |
||
| 39 | border-color: transparent; |
||
| 40 | } |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 44 | /* Left and right tabs */ |
||
| 45 | |||
| 46 | .tabs-right.nav-tabs, |
||
| 47 | .tabs-left.nav-tabs { |
||
| 48 | border-bottom: 0; |
||
| 49 | |||
| 50 | > li { |
||
| 51 | float: none; |
||
| 52 | |||
| 53 | > a { |
||
| 54 | margin-right: 0; |
||
| 55 | margin-bottom: 3px; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | } |
||
| 59 | |||
| 60 | /* Left tabs */ |
||
| 61 | |||
| 62 | .tabs-left.nav-tabs { |
||
| 63 | border-right: 1px solid #ddd; |
||
| 64 | |||
| 65 | > li > a { |
||
| 66 | display: block; |
||
| 67 | margin-right: -1px; |
||
| 68 | |||
| 69 | &:hover, |
||
| 70 | &:focus { |
||
| 71 | @include border-radius($general-border-radius 0 0 $general-border-radius); |
||
| 72 | border-color: #eeeeee #dddddd #eeeeee #eeeeee; |
||
| 73 | } |
||
| 74 | } |
||
| 75 | |||
| 76 | > li.active > a, |
||
| 77 | > li.active > a:hover |
||
| 78 | > li.active > a:focus { |
||
| 79 | @include border-radius($general-border-radius 0 0 $general-border-radius); |
||
| 80 | border-color: #ddd transparent #ddd #ddd; |
||
| 81 | *border-right-color: #ffffff; |
||
| 82 | } |
||
| 83 | } |
||
| 84 | |||
| 85 | /* Right tabs */ |
||
| 86 | |||
| 87 | .tabs-right.nav-tabs { |
||
| 88 | border-left: 1px solid #ddd; |
||
| 89 | |||
| 90 | > li > a { |
||
| 91 | display: block; |
||
| 92 | margin-left: -1px; |
||
| 93 | |||
| 94 | &:hover, |
||
| 95 | &:focus { |
||
| 96 | @include border-radius(0 $general-border-radius $general-border-radius 0); |
||
| 97 | border-color: #eeeeee #eeeeee #eeeeee #dddddd; |
||
| 98 | } |
||
| 99 | } |
||
| 100 | |||
| 101 | > li.active > a, |
||
| 102 | > li.active > a:hover |
||
| 103 | > li.active > a:focus { |
||
| 104 | @include border-radius(0 $general-border-radius $general-border-radius 0); |
||
| 105 | border-color: #ddd #ddd #ddd transparent; |
||
| 106 | *border-left-color: #ffffff; |
||
| 107 | } |
||
| 108 | } |
||
| 109 | |||
| 110 | /* Below tabs */ |
||
| 111 | |||
| 112 | .tabs-below > .nav-tabs, |
||
| 113 | .tabs-below > .nav-pills { |
||
| 114 | border-bottom: 0; |
||
| 115 | margin-bottom: 0px; |
||
| 116 | margin-top: 10px; |
||
| 117 | } |
||
| 118 | |||
| 119 | .tabs-below > .nav-tabs { |
||
| 120 | border-top: 1px solid #ddd; |
||
| 121 | margin-bottom: 0; |
||
| 122 | margin-top: 10px; |
||
| 123 | |||
| 124 | > li > a{ |
||
| 125 | margin-top: -1px; |
||
| 126 | margin-bottom: 0; |
||
| 127 | |||
| 128 | &:hover, |
||
| 129 | &:focus { |
||
| 130 | border-top-color: #ddd; |
||
| 131 | border-bottom-color: transparent; |
||
| 132 | } |
||
| 133 | |||
| 134 | .dropdown-menu { |
||
| 135 | @include border-radius($general-border-radius); |
||
| 136 | } |
||
| 137 | } |
||
| 138 | |||
| 139 | .active a, |
||
| 140 | .active a:hover |
||
| 141 | .active a:focus { |
||
| 142 | @include border-radius(0 0 $general-border-radius $general-border-radius); |
||
| 143 | |||
| 144 | border-color: transparent #ddd #ddd #ddd; |
||
| 145 | } |
||
| 146 | } |
||
| 147 | |||
| 148 | /*** |
||
| 149 | Custom tabs |
||
| 150 | ***/ |
||
| 151 | |||
| 152 | /* In BS3.0.0 tabbable class was removed. We had to added it back */ |
||
| 153 | |||
| 154 | .tabbable { |
||
| 155 | @include clearfix(); |
||
| 156 | } |
||
| 157 | |||
| 158 | .tabbable-custom { |
||
| 159 | margin-bottom: 15px; |
||
| 160 | padding: 0px; |
||
| 161 | overflow: hidden; |
||
| 162 | |||
| 163 | > .nav-tabs { |
||
| 164 | border: none; |
||
| 165 | margin: 0px; |
||
| 166 | |||
| 167 | > li { |
||
| 168 | margin-right: 2px; |
||
| 169 | border-top: 2px solid transparent; |
||
| 170 | |||
| 171 | |||
| 172 | > a { |
||
| 173 | margin-right: 0; |
||
| 174 | @include border-radius(0); |
||
| 175 | |||
| 176 | &:hover { |
||
| 177 | background: none; |
||
| 178 | border-color:transparent; |
||
| 179 | } |
||
| 180 | } |
||
| 181 | |||
| 182 | &.active { |
||
| 183 | border-top: 3px solid $brand-danger; |
||
| 184 | margin-top: 0; |
||
| 185 | position: relative; |
||
| 186 | |||
| 187 | > a { |
||
| 188 | border-top: none !important; |
||
| 189 | font-weight: 400; |
||
| 190 | |||
| 191 | @include border-radius(0); |
||
| 192 | |||
| 193 | |||
| 194 | &:hover { |
||
| 195 | @include border-radius(0); |
||
| 196 | |||
| 197 | border-top: none; |
||
| 198 | background: #fff; |
||
| 199 | border-color: #d4d4d4 #d4d4d4 transparent; |
||
| 200 | } |
||
| 201 | } |
||
| 202 | } |
||
| 203 | } |
||
| 204 | } |
||
| 205 | |||
| 206 | > .tab-content { |
||
| 207 | background-color: #fff; |
||
| 208 | border: 1px solid #ddd; |
||
| 209 | padding: 10px; |
||
| 210 | |||
| 211 | @include border-radius(0 0 $general-border-radius $general-border-radius); |
||
| 212 | } |
||
| 213 | |||
| 214 | /* justified tabs */ |
||
| 215 | |||
| 216 | &.nav-justified > .tab-content { |
||
| 217 | margin-top: -1px; |
||
| 218 | } |
||
| 219 | |||
| 220 | /* boxless tabs */ |
||
| 221 | |||
| 222 | &.boxless > .tab-content { |
||
| 223 | padding:15px 0; |
||
| 224 | border-left:none; |
||
| 225 | border-right:none; |
||
| 226 | border-bottom:none; |
||
| 227 | } |
||
| 228 | |||
| 229 | /* below justified tabs */ |
||
| 230 | |||
| 231 | &.tabs-below.nav-justified .tab-content { |
||
| 232 | margin-top: 0px; |
||
| 233 | margin-bottom: -2px; |
||
| 234 | |||
| 235 | @include border-radius($general-border-radius $general-border-radius 0 0); |
||
| 236 | } |
||
| 237 | |||
| 238 | /* full width tabs */ |
||
| 239 | |||
| 240 | &.tabbable-full-width { |
||
| 241 | > .nav-tabs > li > a { |
||
| 242 | color:#424242; |
||
| 243 | font-size:15px; |
||
| 244 | padding:9px 15px; |
||
| 245 | } |
||
| 246 | |||
| 247 | > .tab-content { |
||
| 248 | padding:15px 0; |
||
| 249 | border-left:none; |
||
| 250 | border-right:none; |
||
| 251 | border-bottom:none; |
||
| 252 | } |
||
| 253 | } |
||
| 254 | |||
| 255 | /* below tabs */ |
||
| 256 | |||
| 257 | &.tabs-below .nav-tabs { |
||
| 258 | |||
| 259 | > li > a { |
||
| 260 | border-top: none; |
||
| 261 | border-bottom: 2px solid transparent; |
||
| 262 | margin-top: -1px; |
||
| 263 | } |
||
| 264 | |||
| 265 | > li.active { |
||
| 266 | border-top: none; |
||
| 267 | border-bottom: 3px solid #d12610; |
||
| 268 | margin-bottom: 0; |
||
| 269 | position: relative; |
||
| 270 | |||
| 271 | > a { |
||
| 272 | border-bottom: none; |
||
| 273 | |||
| 274 | &:hover { |
||
| 275 | background: #fff; |
||
| 276 | border-color: #d4d4d4 #d4d4d4 transparent; |
||
| 277 | } |
||
| 278 | } |
||
| 279 | } |
||
| 280 | } |
||
| 281 | } |
||
| 282 | |||
| 283 | |||
| 284 | .tabbable-custom.tabbable-noborder { |
||
| 285 | > .nav-tabs > li > a { |
||
| 286 | border: 0; |
||
| 287 | } |
||
| 288 | |||
| 289 | .tab-content { |
||
| 290 | border: 0; |
||
| 291 | } |
||
| 292 | } |
||
| 293 | |||
| 294 | |||
| 295 | $tabbable-line-font-color: #333 !default; |
||
| 296 | |||
| 297 | .tabbable-line { |
||
| 298 | > .nav-tabs { |
||
| 299 | border: none; |
||
| 300 | margin: 0px; |
||
| 301 | |||
| 302 | > li { |
||
| 303 | margin-right: 2px; |
||
| 304 | |||
| 305 | |||
| 306 | > a { |
||
| 307 | border: 0; |
||
| 308 | margin-right: 0; |
||
| 309 | color: lighten($tabbable-line-font-color, 25%); |
||
| 310 | |||
| 311 | > i { |
||
| 312 | color: lighten($tabbable-line-font-color, 45%); |
||
| 313 | } |
||
| 314 | } |
||
| 315 | |||
| 316 | &.open, |
||
| 317 | &:hover { |
||
| 318 | border-bottom: 4px solid lighten($brand-danger, 25%); |
||
| 319 | |||
| 320 | > a { |
||
| 321 | border: 0; |
||
| 322 | background: none !important; |
||
| 323 | color: $tabbable-line-font-color; |
||
| 324 | |||
| 325 | > i { |
||
| 326 | color: lighten($tabbable-line-font-color, 45%); |
||
| 327 | } |
||
| 328 | } |
||
| 329 | |||
| 330 | .dropdown-menu { |
||
| 331 | margin-top: 0px; |
||
| 332 | } |
||
| 333 | } |
||
| 334 | |||
| 335 | &.active { |
||
| 336 | border-bottom: 4px solid $brand-danger; |
||
| 337 | position: relative; |
||
| 338 | |||
| 339 | > a { |
||
| 340 | border: 0; |
||
| 341 | color: $tabbable-line-font-color; |
||
| 342 | |||
| 343 | > i { |
||
| 344 | color: lighten($tabbable-line-font-color, 5%); |
||
| 345 | } |
||
| 346 | } |
||
| 347 | } |
||
| 348 | } |
||
| 349 | } |
||
| 350 | |||
| 351 | > .tab-content { |
||
| 352 | margin-top: -3px; |
||
| 353 | background-color: #fff; |
||
| 354 | border: 0; |
||
| 355 | border-top: 1px solid #eee; |
||
| 356 | padding: 15px 0; |
||
| 357 | |||
| 358 | .portlet & { |
||
| 359 | padding-bottom: 0; |
||
| 360 | } |
||
| 361 | } |
||
| 362 | } |
||
| 363 | |||
| 364 | .tabbable-line.tabs-below { |
||
| 365 | > .nav-tabs { |
||
| 366 | > li { |
||
| 367 | border-top: 4px solid transparent; |
||
| 368 | |||
| 369 | > a { |
||
| 370 | margin-top: 0; |
||
| 371 | } |
||
| 372 | |||
| 373 | &:hover { |
||
| 374 | border-bottom: 0; |
||
| 375 | border-top: 4px solid lighten($brand-danger, 25%); |
||
| 376 | } |
||
| 377 | |||
| 378 | &.active { |
||
| 379 | margin-bottom: -2px; |
||
| 380 | border-bottom: 0; |
||
| 381 | border-top: 4px solid $brand-danger; |
||
| 382 | } |
||
| 383 | } |
||
| 384 | } |
||
| 385 | |||
| 386 | > .tab-content { |
||
| 387 | margin-top: -10px; |
||
| 388 | border-top: 0; |
||
| 389 | border-bottom: 1px solid #eee; |
||
| 390 | padding-bottom: 15px; |
||
| 391 | } |
||
| 392 | } |