_nav.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // Main navbar
  3. //
  4. .bd-navbar {
  5. min-height: 4rem;
  6. background-color: $bd-purple;
  7. box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .1);
  8. @include media-breakpoint-down(md) {
  9. padding-right: .5rem;
  10. padding-left: .5rem;
  11. .navbar-nav-scroll {
  12. max-width: 100%;
  13. height: 2.5rem;
  14. margin-top: .25rem;
  15. overflow: hidden;
  16. font-size: .875rem;
  17. .navbar-nav {
  18. padding-bottom: 2rem;
  19. overflow-x: auto;
  20. white-space: nowrap;
  21. -webkit-overflow-scrolling: touch;
  22. }
  23. }
  24. }
  25. @include media-breakpoint-up(md) {
  26. @supports (position: sticky) {
  27. position: sticky;
  28. top: 0;
  29. z-index: 1071; // over everything in bootstrap
  30. }
  31. }
  32. .navbar-nav {
  33. .nav-link {
  34. padding-right: .5rem;
  35. padding-left: .5rem;
  36. color: $bd-purple-light;
  37. &.active,
  38. &:hover {
  39. color: #fff;
  40. background-color: transparent;
  41. }
  42. &.active {
  43. font-weight: 500;
  44. }
  45. }
  46. }
  47. .navbar-nav-svg {
  48. display: inline-block;
  49. width: 1rem;
  50. height: 1rem;
  51. vertical-align: text-top;
  52. }
  53. .dropdown-menu {
  54. font-size: .875rem;
  55. }
  56. .dropdown-item.active {
  57. font-weight: 500;
  58. color: $gray-900;
  59. background-color: transparent;
  60. background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23292b2c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
  61. background-repeat: no-repeat;
  62. background-position: .4rem .6rem;
  63. background-size: .75rem .75rem;
  64. }
  65. }