No Description
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.

_navbar.scss 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //
  2. // Navbar
  3. //
  4. // Navbar links
  5. .navbar-horizontal {
  6. .navbar-nav {
  7. .nav-link {
  8. font-size: $navbar-nav-link-font-size;
  9. font-weight: $navbar-nav-link-font-weight;
  10. text-transform: $navbar-nav-link-text-transform;
  11. letter-spacing: $navbar-nav-link-letter-spacing;
  12. @include transition($navbar-transition);
  13. .nav-link-inner--text {
  14. margin-left: .25rem;
  15. }
  16. }
  17. }
  18. // Navbar brand (logo)
  19. .navbar-brand {
  20. font-size: $font-size-sm;
  21. font-weight: 600;
  22. text-transform: uppercase;
  23. font-size: .875rem;
  24. letter-spacing: .05px;
  25. img {
  26. height: 30px;
  27. }
  28. }
  29. .navbar-dark {
  30. .navbar-brand {
  31. color: $white;
  32. }
  33. }
  34. .navbar-light {
  35. .navbar-brand {
  36. color: $gray-800;
  37. }
  38. }
  39. .navbar-nav {
  40. .nav-item {
  41. .media:not(:last-child){
  42. margin-bottom: 1.5rem;
  43. }
  44. }
  45. }
  46. @include media-breakpoint-up(lg) {
  47. .navbar-nav {
  48. .nav-item {
  49. margin-right: .5rem;
  50. [data-toggle="dropdown"]::after {
  51. transition: $transition-base;
  52. }
  53. &.show {
  54. [data-toggle="dropdown"]::after {
  55. transform: rotate(180deg);
  56. }
  57. }
  58. }
  59. .nav-link {
  60. padding-top: $navbar-nav-link-padding-y;
  61. padding-bottom: $navbar-nav-link-padding-y;
  62. border-radius: $navbar-nav-link-border-radius;
  63. i {
  64. margin-right: .625rem;
  65. }
  66. }
  67. .nav-link-icon {
  68. padding-left: .5rem !important;
  69. padding-right: .5rem !important;
  70. font-size: 1rem;
  71. border-radius: $navbar-nav-link-border-radius;
  72. i {
  73. margin-right: 0;
  74. }
  75. }
  76. }
  77. }
  78. // Transparent navbar
  79. .navbar-transparent {
  80. position: absolute;
  81. top: 0;
  82. width: 100%;
  83. z-index: 100;
  84. background-color: transparent;
  85. border: 0;
  86. box-shadow: none;
  87. .navbar-brand {
  88. color: rgba(255, 255, 255, 1);
  89. }
  90. .navbar-toggler {
  91. color: rgba(255, 255, 255, 1);
  92. }
  93. .navbar-toggler-icon {
  94. background-image: $navbar-dark-toggler-icon-bg;
  95. }
  96. }
  97. @include media-breakpoint-up(md) {
  98. .navbar-transparent {
  99. .navbar-nav {
  100. .nav-link {
  101. color: $navbar-dark-color;
  102. @include hover-focus {
  103. color: $navbar-dark-hover-color;
  104. }
  105. &.disabled {
  106. color: $navbar-dark-disabled-color;
  107. }
  108. }
  109. .show > .nav-link,
  110. .active > .nav-link,
  111. .nav-link.show,
  112. .nav-link.active {
  113. color: $navbar-dark-active-color;
  114. }
  115. }
  116. .navbar-brand {
  117. color: $navbar-dark-color;
  118. @include hover-focus {
  119. color: $navbar-dark-color;
  120. }
  121. }
  122. }
  123. }
  124. }