theme-switcher.module.scss 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .root {
  2. display: flex;
  3. flex-direction: column;
  4. gap: 8px;
  5. }
  6. .label {
  7. font-size: 12px;
  8. font-weight: 500;
  9. color: var(--theme-paragraph-subtle);
  10. text-transform: uppercase;
  11. letter-spacing: 0.5px;
  12. }
  13. .buttons {
  14. display: flex;
  15. gap: 6px;
  16. background: var(--theme-background-secondary);
  17. padding: 4px;
  18. border-radius: 8px;
  19. border: 1px solid var(--theme-border-subtle);
  20. }
  21. .button {
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. gap: 6px;
  26. padding: 8px 16px;
  27. border: none;
  28. background: transparent;
  29. color: var(--theme-paragraph);
  30. font-size: 13px;
  31. font-weight: 500;
  32. border-radius: 6px;
  33. cursor: pointer;
  34. transition: all 0.2s ease;
  35. white-space: nowrap;
  36. &:hover {
  37. background: var(--theme-background);
  38. color: var(--theme-headline);
  39. }
  40. &.active {
  41. background: var(--theme-button);
  42. color: var(--theme-button-text);
  43. box-shadow: 0 1px 3px var(--theme-shadow);
  44. }
  45. }
  46. .buttonLabel {
  47. @media (max-width: 640px) {
  48. display: none;
  49. }
  50. }