GrowiSubNavigationSwitcher.module.scss 577 B

1234567891011121314151617181920212223242526272829303132
  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. &:global {
  21. &.grw-subnav-switcher-hidden {
  22. .grw-subnav-fixed-container {
  23. transition: unset;
  24. transform: translateY(-100%);
  25. }
  26. }
  27. }
  28. }