_navtabs.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .nav-tabs {
  2. border-bottom: 2px solid #eee;
  3. > li {
  4. position: relative;
  5. top: 3px;
  6. left: -2px;
  7. > a {
  8. border: none !important;
  9. color: #999 !important;
  10. @include border-radius(0);
  11. &:hover,
  12. &:active,
  13. &:focus {
  14. background-color: transparent !important;
  15. }
  16. &:before {
  17. content: '';
  18. position: absolute;
  19. left: 0;
  20. width: 100%;
  21. height: 0;
  22. border-bottom: 2px solid #2196F3;
  23. bottom: 2px;
  24. @include transform(scaleX(0));
  25. @include transition(0.1s ease-in);
  26. }
  27. .material-icons {
  28. position: relative;
  29. top: 7px;
  30. margin-bottom: 8px;
  31. }
  32. }
  33. }
  34. li.active {
  35. a {
  36. color: #222 !important;
  37. &:hover,
  38. &:active,
  39. &:focus {
  40. background-color: transparent !important;
  41. }
  42. &:before {
  43. @include transform(scaleX(1));
  44. }
  45. }
  46. }
  47. + .tab-content {
  48. padding: 15px 0;
  49. }
  50. }
  51. @each $key, $val in $colors {
  52. .nav-tabs.tab-col-#{$key} {
  53. > li {
  54. > a {
  55. &:before {
  56. border-bottom: 2px solid $val;
  57. }
  58. }
  59. }
  60. }
  61. }