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-collapse.scss 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. //
  2. // Navabar collapse
  3. //
  4. // Collapse
  5. .navbar-collapse-header {
  6. display: none;
  7. }
  8. @include media-breakpoint-down(sm) {
  9. .navbar-nav {
  10. .nav-link {
  11. padding: .625rem 0;
  12. color: theme-color("default") !important;
  13. }
  14. .dropdown-menu {
  15. box-shadow: none;
  16. min-width: auto;
  17. .media {
  18. svg {
  19. width: 30px;
  20. }
  21. }
  22. }
  23. }
  24. .navbar-collapse {
  25. width: calc(100% - 1.4rem);
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. z-index: 1050;
  31. margin: .7rem;
  32. overflow-y: auto;
  33. height: auto !important;
  34. opacity: 0;
  35. .navbar-toggler {
  36. width: 20px;
  37. height: 20px;
  38. position: relative;
  39. cursor: pointer;
  40. display: inline-block;
  41. padding: 0;
  42. span {
  43. display: block;
  44. position: absolute;
  45. width: 100%;
  46. height: 2px;
  47. border-radius: 2px;
  48. opacity: 1;
  49. background: #283448;
  50. }
  51. :nth-child(1) {
  52. transform: rotate(135deg);
  53. }
  54. :nth-child(2) {
  55. transform: rotate(-135deg);
  56. }
  57. }
  58. .navbar-collapse-header {
  59. display: block;
  60. padding-bottom: 1rem;
  61. margin-bottom: 1rem;
  62. border-bottom: 1px solid rgba(0, 0, 0, .1);
  63. }
  64. .collapse-brand {
  65. img {
  66. height: 36px;
  67. }
  68. }
  69. .collapse-close {
  70. text-align: right;
  71. }
  72. }
  73. .navbar-collapse.collapsing,
  74. .navbar-collapse.show {
  75. padding: 1.5rem;
  76. border-radius: $border-radius;
  77. background: #FFF;
  78. box-shadow: 0 50px 100px rgba(50,50,93,.1),0 15px 35px rgba(50,50,93,.15),0 5px 15px rgba(0,0,0,.1);
  79. animation: show-navbar-collapse .2s ease forwards;
  80. }
  81. .navbar-collapse.collapsing-out {
  82. animation: hide-navbar-collapse .2s ease forwards;
  83. }
  84. }
  85. @keyframes show-navbar-collapse {
  86. 0% {
  87. opacity: 0;
  88. transform: scale(.95);
  89. transform-origin: 100% 0;
  90. }
  91. 100% {
  92. opacity: 1;
  93. transform: scale(1);
  94. }
  95. }
  96. @keyframes hide-navbar-collapse {
  97. from {
  98. opacity: 1;
  99. transform: scale(1);
  100. transform-origin: 100% 0;
  101. }
  102. to {
  103. opacity: 0;
  104. transform: scale(.95);
  105. }
  106. }