SidebarNav.module.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @use '~/styles/variables' as var;
  2. .grw-sidebar-nav :global {
  3. $sidebar-nav-button-height: 55px;
  4. %fukidashi-for-active {
  5. position: relative;
  6. // speech balloon
  7. &:after {
  8. position: absolute;
  9. right: -0.1em;
  10. display: block;
  11. width: 0;
  12. content: '';
  13. border: 9px solid transparent;
  14. border-right-color: white;
  15. border-left-width: 0;
  16. transform: translateY(-#{$sidebar-nav-button-height / 2});
  17. }
  18. }
  19. height: 100vh;
  20. .btn {
  21. width: var.$grw-sidebar-nav-width;
  22. line-height: 1em;
  23. border-radius: 0;
  24. box-shadow: none !important;
  25. // icon opacity
  26. &:not(.active) {
  27. i {
  28. opacity: 0.4;
  29. }
  30. &:hover,
  31. &:focus {
  32. i {
  33. opacity: 0.7;
  34. }
  35. }
  36. }
  37. }
  38. .grw-sidebar-nav-primary-container {
  39. .btn {
  40. padding: 1em;
  41. i {
  42. font-size: 2.3em;
  43. }
  44. &.active {
  45. @extend %fukidashi-for-active;
  46. }
  47. }
  48. }
  49. .grw-sidebar-nav-secondary-container {
  50. position: fixed;
  51. bottom: 1.5rem;
  52. .btn {
  53. padding: 0.9em;
  54. i {
  55. font-size: 1.5em;
  56. }
  57. }
  58. }
  59. }