_topbar.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // Topbar
  2. .topbar {
  3. height: $topbar-base-height;
  4. #sidebarToggleTop {
  5. height: 2.5rem;
  6. width: 2.5rem;
  7. &:hover {
  8. background-color: $gray-200;
  9. }
  10. &:active {
  11. background-color: $gray-300;
  12. }
  13. }
  14. .navbar-search {
  15. width: 25rem;
  16. input {
  17. font-size: 0.85rem;
  18. height: auto;
  19. }
  20. }
  21. .topbar-divider {
  22. width: 0;
  23. border-right: 1px solid $border-color;
  24. height: calc(#{$topbar-base-height} - 2rem);
  25. margin: auto 1rem;
  26. }
  27. .nav-item {
  28. .nav-link {
  29. height: $topbar-base-height;
  30. display: flex;
  31. align-items: center;
  32. padding: 0 0.75rem;
  33. &:focus {
  34. outline: none;
  35. }
  36. }
  37. &:focus {
  38. outline: none;
  39. }
  40. }
  41. .dropdown {
  42. position: static;
  43. .dropdown-menu {
  44. width: calc(100% - #{$grid-gutter-width});
  45. right: $grid-gutter-width / 2;
  46. }
  47. }
  48. .dropdown-list {
  49. padding: 0;
  50. border: none;
  51. overflow: hidden;
  52. .dropdown-header {
  53. background-color: $primary;
  54. border: 1px solid $primary;
  55. padding-top: 0.75rem;
  56. padding-bottom: 0.75rem;
  57. color: $white;
  58. }
  59. .dropdown-item {
  60. white-space: normal;
  61. padding-top: 0.5rem;
  62. padding-bottom: 0.5rem;
  63. border-left: 1px solid $border-color;
  64. border-right: 1px solid $border-color;
  65. border-bottom: 1px solid $border-color;
  66. line-height: 1.3rem;
  67. .dropdown-list-image {
  68. position: relative;
  69. height: 2.5rem;
  70. width: 2.5rem;
  71. img {
  72. height: 2.5rem;
  73. width: 2.5rem;
  74. }
  75. .status-indicator {
  76. background-color: $gray-200;
  77. height: 0.75rem;
  78. width: 0.75rem;
  79. border-radius: 100%;
  80. position: absolute;
  81. bottom: 0;
  82. right: 0;
  83. border: .125rem solid $white;
  84. }
  85. }
  86. .text-truncate {
  87. max-width: 10rem;
  88. }
  89. &:active {
  90. background-color: $gray-200;
  91. color: $gray-900;
  92. }
  93. }
  94. }
  95. @include media-breakpoint-up(sm) {
  96. .dropdown {
  97. position: relative;
  98. .dropdown-menu {
  99. width: auto;
  100. right: 0;
  101. }
  102. }
  103. .dropdown-list {
  104. width: 20rem !important;
  105. .dropdown-item {
  106. .text-truncate {
  107. max-width: 13.375rem;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. .topbar.navbar-dark {
  114. .navbar-nav {
  115. .nav-item {
  116. .nav-link {
  117. color: fade-out($white, 0.2);
  118. &:hover {
  119. color: $white;
  120. }
  121. &:active {
  122. color: $white;
  123. }
  124. }
  125. }
  126. }
  127. }
  128. .topbar.navbar-light {
  129. .navbar-nav {
  130. .nav-item {
  131. .nav-link {
  132. color: $gray-400;
  133. &:hover {
  134. color: $gray-500;
  135. }
  136. &:active {
  137. color: $gray-600;
  138. }
  139. }
  140. }
  141. }
  142. }