GrowiSubNavigationSwitcher.module.scss 736 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @use '~/styles/variables' as var;
  2. @use '~/styles/bootstrap/init' as bs;
  3. /*
  4. * Fixed ver
  5. */
  6. $easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
  7. .grw-subnav-fixed-container {
  8. top: var.$grw-navbar-border-width;
  9. z-index: bs.$zindex-sticky - 5;
  10. }
  11. /*
  12. * Switching show/hide
  13. */
  14. .grw-subnav-switcher {
  15. :global {
  16. .grw-subnav-fixed-container {
  17. transition: transform 150ms $easeInOutCubic;
  18. }
  19. /*
  20. * shadow
  21. */
  22. .grw-subnav-append-shadow-container {
  23. .grw-subnav {
  24. box-shadow: 0px 0px 6px 3px rgba(black, 0.15);
  25. }
  26. }
  27. }
  28. &:global {
  29. &.grw-subnav-switcher-hidden {
  30. .grw-subnav-fixed-container {
  31. transition: unset;
  32. transform: translateY(-100%);
  33. }
  34. }
  35. }
  36. }