_burger.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .hamburger {
  2. display: none;
  3. position: absolute;
  4. top: 40px;
  5. right: 50px;
  6. cursor: pointer;
  7. flex-direction: column;
  8. align-items: flex-end;
  9. z-index: 20;
  10. span {
  11. display: block;
  12. margin-top: 6px;
  13. width: 30px;
  14. height: 3px;
  15. background: #151812;
  16. }
  17. span.long {
  18. width: 36px;
  19. }
  20. &_active {
  21. span {
  22. transform: rotate(-45deg);
  23. margin-top: -3px;
  24. background: #33382e;
  25. transition: all .6s;
  26. &:last-child {
  27. transform: rotate(45deg);
  28. }
  29. &:nth-child(2){
  30. display: none;
  31. }
  32. }
  33. }
  34. }
  35. .menu {
  36. position: fixed;
  37. top: 0;
  38. left: 100%;
  39. width: 40vw;
  40. height: 100vh;
  41. padding-top: 30px;
  42. z-index: 10;
  43. visibility: hidden;
  44. opacity: 0;
  45. transition: all 0.6s;
  46. list-style: none;
  47. background-color: #727272;;
  48. &_active {
  49. visibility: visible;
  50. opacity: 1;
  51. left: 0;
  52. }
  53. &__link {
  54. border: 1px blanchedalmond solid;
  55. border-radius: 10px;
  56. position: relative;
  57. margin-bottom: 15px;
  58. margin-right: 20px;
  59. a {
  60. color:rgb(255, 255, 255);
  61. padding: 0;
  62. }
  63. }
  64. }