AppTitle.module.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. @use '@growi/core/scss/growi-official-colors';
  3. @use '../button-styles';
  4. @use '../variables' as var;
  5. // GROWI Logo
  6. .grw-app-title :global {
  7. .grw-logo {
  8. $width: var.$grw-sidebar-nav-width;
  9. $height: var.$grw-sidebar-nav-width; // declare $height with the same value as the sidebar nav width
  10. $logomark-width: 27.7px;
  11. $logomark-height: 24px;
  12. width: $width;
  13. svg {
  14. width: $width;
  15. height: $height;
  16. padding: (($height - $logomark-height) / 2) (($width - $logomark-width) / 2);
  17. }
  18. }
  19. }
  20. // Collapsed Mode
  21. .grw-app-title {
  22. &:global {
  23. &.collapsed {
  24. left: 48px;
  25. }
  26. }
  27. }
  28. // == Colors
  29. .grw-app-title :global {
  30. .grw-logo {
  31. // set transition for fill
  32. svg, svg * {
  33. transition: fill 0.8s ease-out;
  34. }
  35. fill: var(--grw-app-title-color, var(--bs-tertiary-color));
  36. &:hover {
  37. svg {
  38. .group1 {
  39. fill: growi-official-colors.$growi-green;
  40. }
  41. .group2 {
  42. fill: growi-official-colors.$growi-blue;
  43. }
  44. }
  45. }
  46. }
  47. .grw-site-name {
  48. --bs-link-color-rgb: var(--grw-app-title-color-rgb, var(--bs-tertiary-color-rgb));
  49. --bs-link-opacity: 0.5;
  50. }
  51. }