_tabs.scss 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .gf-tabs {
  2. @include clearfix();
  3. float: left;
  4. position: relative;
  5. top: 1px;
  6. }
  7. .gf-tabs-item {
  8. float: left;
  9. list-style: none;
  10. }
  11. .gf-tabs-link {
  12. padding: $tabs-padding;
  13. margin-right: $spacer/2;
  14. position: relative;
  15. display: block;
  16. border: solid transparent;
  17. border-width: 0 1px 1px;
  18. border-radius: 3px 3px 0 0;
  19. i {
  20. margin-right: 5px;
  21. }
  22. &:hover,
  23. &:focus {
  24. color: $link-hover-color;
  25. }
  26. &.active,
  27. &.active:hover,
  28. &.active:focus {
  29. border-color: $orange $tab-border-color transparent;
  30. background: $page-bg;
  31. color: $link-color;
  32. overflow: hidden;
  33. &::before {
  34. display: block;
  35. content: ' ';
  36. position: absolute;
  37. left: 0;
  38. right: 0;
  39. height: 2px;
  40. top: 0;
  41. background-image: linear-gradient(to right, #ffd500 0%, #ff4400 99%, #ff4400 100%);
  42. }
  43. }
  44. }