_navbars.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // Navbars
  2. .navbar {
  3. box-shadow: $z-depth-1;
  4. font-weight: $navbar-font-weight;
  5. form {
  6. .md-form {
  7. input {
  8. margin: 0 $navbar-form-input-mr $navbar-form-input-mb $navbar-form-input-ml;
  9. }
  10. }
  11. }
  12. .breadcrumb {
  13. margin: 0;
  14. padding: $navbar-breadcrumb-padding-top 0 0 $navbar-breadcrumb-padding-left;
  15. background-color: inherit;
  16. font-size: $navbar-double-font-size;
  17. font-weight: $navbar-font-weight;
  18. .breadcrumb-item {
  19. color: $white-base;
  20. &.active {
  21. color: $navbar-breadcrumb-color;
  22. }
  23. &:before {
  24. color: $navbar-breadcrumb-color;
  25. }
  26. }
  27. }
  28. .navbar-toggler {
  29. outline: 0;
  30. border-width: 0;
  31. }
  32. .nav-flex-icons {
  33. flex-direction: row;
  34. }
  35. .container {
  36. @media (max-width: $medium-screen) {
  37. width: 100%;
  38. .navbar-toggler-right {
  39. right: 0;
  40. }
  41. }
  42. }
  43. .nav-item {
  44. .nav-link {
  45. display: block;
  46. &.disabled {
  47. &:active {
  48. pointer-events: none;
  49. }
  50. }
  51. .fas, .fab, .far {
  52. padding-right: $navbar-flex-icons-padding-lg;
  53. padding-left: $navbar-flex-icons-padding-lg;
  54. }
  55. @media (max-width: $medium-screen) {
  56. padding-right: $navbar-flex-icons-padding-md;
  57. padding-left: $navbar-flex-icons-padding-md;
  58. }
  59. }
  60. }
  61. .dropdown-menu {
  62. position: absolute !important;
  63. margin-top: 0;
  64. a {
  65. padding: $navbar-dropdown-menu-padding;
  66. font-size: $navbar-dropdown-font-size;
  67. font-weight: $navbar-font-weight;
  68. color: $black;
  69. }
  70. form {
  71. @media (max-width: $small-screen) {
  72. width: 17rem;
  73. }
  74. @media (min-width: $small-screen) {
  75. width: 22rem;
  76. }
  77. }
  78. }
  79. &.navbar-light {
  80. @include make-navbar($navbar-light-disabled-color, $navbar-light-toggler-icon, $black, $navbar-light-hover-color, $navbar-light-bg-active-color);
  81. }
  82. &.navbar-dark {
  83. @include make-navbar($navbar-dark-disabled-color, $navbar-dark-toggler-icon, $white, $navbar-dark-hover-color, $navbar-dark-bg-active-color);
  84. }
  85. &.scrolling-navbar {
  86. @media (min-width: $small-screen) {
  87. transition: $navbar-scrolling-transition;
  88. padding-top: $navbar-scrolling-padding;
  89. padding-bottom: $navbar-scrolling-padding;
  90. .navbar-nav > li {
  91. transition-duration: $navbar-scrolling-transition-duration;
  92. }
  93. &.top-nav-collapse {
  94. padding-top: $navbar-top-collapse-padding;
  95. padding-bottom: $navbar-top-collapse-padding;
  96. }
  97. }
  98. }
  99. &.fixed-top,
  100. &.sticky-top {
  101. .navbar-collapse {
  102. @media (min-width: 400px) and (max-width: 767px), (min-width: 800px) and (max-width: 850px) {
  103. max-height: 340px;
  104. overflow-x: hidden;
  105. overflow-y: auto;
  106. }
  107. }
  108. }
  109. }