_navigation.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // Navbar and light theme styling
  2. .navbar-vertical.navbar-expand-lg {
  3. // Adds spacing to the bottom of the side navigation to avoid hidden nav items
  4. @include media-breakpoint-up(lg) {
  5. padding-bottom: 2rem;
  6. }
  7. // Adjust hover color & style for menu items
  8. .navbar-collapse {
  9. .nav-link-icon {
  10. color: var(--tblr-nav-link-color) !important;
  11. }
  12. .text-secondary {
  13. color: $dark-teal !important;
  14. }
  15. .dropdown-menu {
  16. // Adjust hover color & style for menu items
  17. .dropdown-item {
  18. a {
  19. color: $rich-black;
  20. }
  21. .btn-group {
  22. visibility: hidden;
  23. }
  24. // Style menu item hover state
  25. &:hover {
  26. background-color: var(--tblr-navbar-active-bg);
  27. a {
  28. text-decoration: none;
  29. }
  30. .btn-group {
  31. visibility: visible;
  32. }
  33. }
  34. // Style active menu item
  35. &.active {
  36. background-color: var(--tblr-navbar-active-bg);
  37. a {
  38. color: $rich-black;
  39. }
  40. .btn-group {
  41. visibility: visible;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. // Ensures theme toggle appears above background image
  48. .navbar-nav {
  49. z-index: 1;
  50. }
  51. // Logo text for non-community editions
  52. .navbar-brand {
  53. // Reduce logo padding on mobile view
  54. @include media-breakpoint-down(lg) {
  55. padding: 0.2rem 0;
  56. }
  57. a:hover {
  58. text-decoration: none;
  59. }
  60. }
  61. // Navigation geometric graphic for non-community editions
  62. img.motif {
  63. bottom: 0;
  64. display: none;
  65. left:0;
  66. mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.30) 100%);
  67. opacity: .5;
  68. position: fixed;
  69. user-drag: none;
  70. user-select: none;
  71. -moz-user-select: none;
  72. -webkit-user-drag: none;
  73. -webkit-user-select: none;
  74. -ms-user-select: none;
  75. width:18rem;
  76. @include media-breakpoint-up(lg) {
  77. display: block;
  78. }
  79. }
  80. }
  81. // Light theme styling
  82. body[data-bs-theme=light] .navbar-vertical.navbar-expand-lg {
  83. // Background Gradient
  84. background: linear-gradient(180deg, rgba(0, 133, 125, 0.00) 0%, rgba(0, 133, 125, 0.10) 100%), #FFF;
  85. }
  86. // Dark theme styling
  87. body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg {
  88. // Background Gradient
  89. background: linear-gradient(180deg, rgba(0, 242, 212, 0.00) 0%, rgba(0, 242, 212, 0.10) 100%), #001423;
  90. // Border color for active dropdown list
  91. .nav-item.dropdown.active:after {
  92. border-color: $bright-teal !important;
  93. }
  94. // Adjust hover color & style for menu items
  95. .dropdown-item {
  96. a {
  97. color: white !important;
  98. }
  99. &.active {
  100. background-color: $navbar-dark-active-bg !important;
  101. a {
  102. color: white !important;
  103. }
  104. }
  105. &:hover {
  106. background-color: $navbar-dark-active-bg !important;
  107. }
  108. .nav-link-title {
  109. color: white !important;
  110. }
  111. }
  112. .text-secondary {
  113. color: $bright-teal !important;
  114. }
  115. img.motif {
  116. opacity: .25;
  117. }
  118. }