_navbars.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /* Navbar */
  2. .navbar .navbar-nav .nav-item {
  3. margin-right: 7px;
  4. &:last-child {
  5. margin-right: 0px;
  6. }
  7. .nav-link {
  8. display: inline-block;
  9. vertical-align: middle;
  10. color: #666;
  11. letter-spacing: 0.04em;
  12. padding: 10px;
  13. border-radius: 3px;
  14. position: relative;
  15. font-size: 12px;
  16. font-weight: $font-weight-normal;
  17. text-align: center;
  18. &:hover, &:focus {
  19. background: #eee !important;
  20. }
  21. i {
  22. font-size: 18px;
  23. vertical-align: middle;
  24. line-height: 1 !important;
  25. }
  26. }
  27. &.active {
  28. .nav-link {
  29. background: #eee !important;
  30. }
  31. }
  32. }
  33. .navbar-expand-lg .navbar-nav .dropdown-menu {
  34. left: auto;
  35. right: 0;
  36. }
  37. .dropdown-item {
  38. font-size: 13px;
  39. }
  40. .navbar .navbar-nav .notification {
  41. position: absolute;
  42. background-color: $success-color;
  43. text-align: center;
  44. border-radius: 10px;
  45. min-width: 17px;
  46. height: 17px;
  47. font-size: 10px;
  48. color: $white-color;
  49. font-weight: $font-weight-light;
  50. line-height: 17px;
  51. top: 3px;
  52. right: 3px;
  53. letter-spacing: -1px;
  54. }
  55. .navbar-header {
  56. padding: 0px 15px;
  57. .dropdown-toggle {
  58. &::after {
  59. margin-left: 0;
  60. }
  61. }
  62. }
  63. .profile-pic {
  64. &:hover, &:focus {
  65. text-decoration: none;
  66. }
  67. }
  68. .navbar-header .dropdown-toggle::after {
  69. vertical-align: middle;
  70. color: #555;
  71. }
  72. .hidden-caret .dropdown-toggle::after {
  73. display: none !important;
  74. }
  75. .profile-pic {
  76. span {
  77. font-size: 13px;
  78. font-weight: $font-weight-light;
  79. padding: 0 10px;
  80. color: #555;
  81. }
  82. }
  83. .navbar {
  84. &[class*="bg-"] {
  85. border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  86. border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  87. .navbar-brand {
  88. color: $white-color;
  89. }
  90. .navbar-toggler-icon{
  91. background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  92. }
  93. .navbar-nav {
  94. > .nav-item {
  95. > .nav-link {
  96. color: $white-color;
  97. &.disabled {
  98. color: #d8d8d8 !important;
  99. }
  100. &:hover {
  101. background: rgba(255,255,255,0.22) !important;
  102. }
  103. }
  104. &.active {
  105. > .nav-link {
  106. background: rgba(255,255,255,0.22) !important;
  107. }
  108. }
  109. }
  110. }
  111. .btn-toggle {
  112. background: rgba(19, 19, 19, 0.25) !important;
  113. color: $white-color !important;
  114. }
  115. .nav-search{
  116. .input-group {
  117. border: 0;
  118. background: rgba(19, 19, 19, 0.25) !important;
  119. .form-control {
  120. color: $white-color !important
  121. }
  122. }
  123. .search-icon {
  124. color: $white-color !important;
  125. }
  126. }
  127. }
  128. }
  129. .row-nav-line {
  130. margin-left: -20px;
  131. margin-right: -20px;
  132. }
  133. .nav{
  134. &.nav-line {
  135. width: 100%;
  136. border-bottom: 1px solid $grey-color;
  137. .nav-link {
  138. padding: 15px 20px;
  139. color: $body-text-color;
  140. border-width: 0px;
  141. font-size: 14px;
  142. font-weight: 600;
  143. &:hover, &:focus{
  144. color: $primary-color;
  145. border-width: 0px;
  146. }
  147. &.active {
  148. border-width: 0;
  149. background-color: $transparent-bg;
  150. color: $primary-color;
  151. border-bottom: 2px solid $primary-color;
  152. border-radius: 0px;
  153. }
  154. }
  155. @mixin nav-line-color-style($color){
  156. .nav-link{
  157. &:hover, &:focus{
  158. color: $color;
  159. }
  160. &.active{
  161. color: $color;
  162. border-color: $color;
  163. }
  164. }
  165. }
  166. &.nav-color-default {
  167. @include nav-line-color-style($dark-color);
  168. }
  169. &.nav-color-primary {
  170. @include nav-line-color-style($primary-color);
  171. }
  172. &.nav-color-secondary {
  173. @include nav-line-color-style($secondary-color);
  174. }
  175. &.nav-color-info {
  176. @include nav-line-color-style($info-color);
  177. }
  178. &.nav-color-success {
  179. @include nav-line-color-style($success-color);
  180. }
  181. &.nav-color-danger {
  182. @include nav-line-color-style($danger-color);
  183. }
  184. &.nav-color-warning {
  185. @include nav-line-color-style($warning-color);
  186. }
  187. &.nav-color-light {
  188. @include nav-line-color-style($white-color);
  189. .nav-link {
  190. color: $grey-color;
  191. }
  192. }
  193. }
  194. }