You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
2.3 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //
  2. // Nav
  3. // --------------------------------------------------
  4. // Nav Pills
  5. .nav-pills {
  6. .nav-link {
  7. &:hover,
  8. &:focus {
  9. background-color: $body-bg;
  10. }
  11. }
  12. .nav-link.active,
  13. .show > .nav-link {
  14. color: $nav-pills-link-active-color;
  15. background-color: $nav-pills-link-active-bg;
  16. }
  17. }
  18. // Tabs block variation
  19. .nav-tabs-block {
  20. background-color: $body-bg-light;
  21. border-bottom: none;
  22. .nav-link {
  23. padding-top: .75rem;
  24. padding-bottom: .75rem;
  25. border-color: transparent;
  26. border-radius: 0;
  27. margin-bottom: 0;
  28. &:hover,
  29. &:focus {
  30. color: $primary;
  31. background-color: $body-bg;
  32. border-color: transparent;
  33. }
  34. }
  35. .nav-link.active,
  36. .nav-item.show .nav-link {
  37. color: $body-color;
  38. background-color: $white;
  39. border-color: transparent;
  40. }
  41. }
  42. // Tabs block alternative variation
  43. .nav-tabs-alt {
  44. background-color: transparent;
  45. border-bottom-color: $body-bg-dark;
  46. .nav-item {
  47. margin-bottom: -2px;
  48. }
  49. .nav-link {
  50. padding-top: .75rem;
  51. padding-bottom: .75rem;
  52. background-color: transparent;
  53. border-color: transparent;
  54. &:hover,
  55. &:focus {
  56. color: $primary;
  57. background-color: transparent;
  58. border-color: transparent;
  59. box-shadow: inset 0 -3px $primary;
  60. }
  61. }
  62. .nav-link.active,
  63. .nav-item.show .nav-link {
  64. color: $body-color;
  65. background-color: transparent;
  66. border-color: transparent;
  67. box-shadow: inset 0 -3px $primary;
  68. }
  69. }
  70. // Various Items Navigation
  71. .nav-items {
  72. @include list-unstyled;
  73. a {
  74. &:hover {
  75. background-color: $body-bg-light;
  76. }
  77. &:active {
  78. background-color: $body-bg;
  79. }
  80. }
  81. > li:not(:last-child) > a {
  82. border-bottom: 1px solid $body-bg;
  83. }
  84. }
  85. // Sidebar Mini Nav
  86. .mini-nav-item {
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. width: $sidebar-mini-nav-width;
  91. height: $sidebar-mini-nav-width;
  92. color: darken($body-bg-dark, 15%);
  93. font-size: 1rem;
  94. i {
  95. transition: transform 0.2s ease-out;
  96. }
  97. &.active {
  98. background-color: lighten($sidebar-dark-bg, 6%);
  99. color: $white;
  100. }
  101. &:hover {
  102. color: $white;
  103. background-color: lighten($sidebar-dark-bg, 6%);
  104. }
  105. &:active {
  106. color: darken($body-bg-dark, 15%);
  107. i {
  108. transform: scale(0.9);
  109. }
  110. }
  111. }