_tabs.scss 974 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. color: $text-color;
  20. i {
  21. margin-right: 5px;
  22. }
  23. .gicon {
  24. position: relative;
  25. top: -2px;
  26. }
  27. &:hover,
  28. &:focus {
  29. color: $link-hover-color;
  30. }
  31. &.active,
  32. &.active:hover,
  33. &.active:focus {
  34. border-color: $orange $tab-border-color transparent;
  35. background: $page-bg;
  36. color: $link-color;
  37. overflow: hidden;
  38. &::before {
  39. display: block;
  40. content: " ";
  41. position: absolute;
  42. left: 0;
  43. right: 0;
  44. height: 2px;
  45. top: 0;
  46. background-image: linear-gradient(
  47. to right,
  48. #ffd500 0%,
  49. #ff4400 99%,
  50. #ff4400 100%
  51. );
  52. }
  53. }
  54. }