Advertisement
Guest User

Untitled

a guest
May 21st, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @import "../../../styles/variables.scss";
  2.  
  3. @mixin toggle-button-cross {
  4. > div:nth-of-type(1) {
  5. -webkit-transform: rotate(-45deg) translate(-7px, 5px);
  6. transform: rotate(-45deg) translate(-7px, 5px);
  7. }
  8.  
  9. > div:nth-of-type(2) {
  10. opacity: 0;
  11. }
  12.  
  13. > div:nth-of-type(3) {
  14. -webkit-transform: rotate(45deg) translate(-6px, -4px);
  15. transform: rotate(45deg) translate(-6px, -4px);
  16. }
  17. }
  18.  
  19. .navbar-toggler {
  20. width: $header-height;
  21. padding: 0.75rem;
  22.  
  23. > div {
  24. width: 25px;
  25. height: 2px;
  26. background: #BBB;
  27. margin: 6px 0;
  28. transition: 0.4s;
  29. }
  30.  
  31. &.open {
  32. // sidebar forced visible
  33. @include toggle-button-cross;
  34. }
  35.  
  36. &.closed {
  37. // sidebar forced hidden
  38. }
  39.  
  40. &.auto {
  41. @media (min-width:768px) {
  42. // sidebar auto
  43. @include toggle-button-cross;
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement