tabs.less 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .ol-tabs {
  2. // Overrides for nav.less
  3. .nav-tabs {
  4. border: 0 !important;
  5. margin-bottom: 0;
  6. margin-top: -@line-height-computed; //- adjusted for portal-name
  7. padding: @padding-lg 0 @padding-md;
  8. text-align: center;
  9. }
  10. .nav-tabs > li {
  11. display: inline-block;
  12. float: none;
  13. a {
  14. border: 0;
  15. color: @link-color-alt;
  16. &:focus,
  17. &:hover {
  18. background-color: transparent !important;
  19. border: 0;
  20. color: @link-hover-color-alt;
  21. }
  22. }
  23. }
  24. li.active > a {
  25. background-color: transparent !important;
  26. border: 0 !important;
  27. border-bottom: 1px solid @accent-color-secondary!important;
  28. color: @accent-color-secondary!important;
  29. &:hover {
  30. border-bottom: 1px solid @accent-color-secondary!important;
  31. color: @accent-color-secondary!important;
  32. }
  33. }
  34. .tab-content:extend(.container) {
  35. background-color: transparent !important;
  36. border: none !important;
  37. }
  38. }
  39. .website-redesign-ol-tabs {
  40. // Styling for Website redesign, it will be used in CMS Later on.
  41. .nav-tabs {
  42. border: 0 !important;
  43. margin-bottom: 0;
  44. margin-top: -@line-height-computed; //- adjusted for portal-name
  45. padding: @padding-lg 0 @padding-md;
  46. text-align: center;
  47. }
  48. .nav-tabs > li {
  49. display: inline-block;
  50. float: none;
  51. a {
  52. border: 0;
  53. color: @neutral-70;
  54. border-bottom: 3px solid @neutral-20 !important;
  55. margin-right: unset;
  56. padding: var(--spacing-04);
  57. &:focus,
  58. &:hover {
  59. background-color: transparent !important;
  60. border: 0;
  61. }
  62. }
  63. }
  64. li.active > a {
  65. background-color: transparent !important;
  66. border: 0 !important;
  67. border-bottom: 3px solid @emerald-green !important;
  68. color: @neutral-90 !important;
  69. &:hover {
  70. border-bottom: 3px solid @emerald-green !important;
  71. }
  72. }
  73. .tab-content:extend(.container) {
  74. background-color: transparent !important;
  75. border: none !important;
  76. }
  77. }
  78. // Scroll the page up a bit to allow tab links to be shown when navigating to
  79. // a bookmarked tab hash
  80. [data-ol-bookmarkable-tabset] .tab-pane {
  81. scroll-margin-top: calc(
  82. @line-height-computed + // Computed text height
  83. 20px + // nav-link-padding top & bottom
  84. @padding-md + // ol-tabs bottom padding
  85. (@line-height-computed / 2) // tab-content top padding
  86. );
  87. }