_variables.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @use 'sass:color';
  2. // Paths
  3. // We can't use absolute paths here, because those are dependent on Django's
  4. // STATIC_URL setting. Instead, relative paths from the final location of the
  5. // compiled CSS files are used.
  6. $images-root: '../images/';
  7. $mobile-nice-padding: theme('spacing.5');
  8. $desktop-nice-padding: theme('spacing.20');
  9. // All text inputs have a 42px set height to simplify alignment.
  10. $text-input-height: 2.625rem;
  11. // Forms should be constrained to a maximum width for legibility.
  12. $max-form-width: 840px;
  13. // Consistent spacing between form fields.
  14. $form-field-spacing: theme('spacing.[7.5]');
  15. // Indentation for nested fields.
  16. $nested-field-indent: theme('spacing.[7.5]');
  17. $nested-field-indent-sm: theme('spacing.3');
  18. // screen breakpoints
  19. $breakpoints: (
  20. xs: 0,
  21. sm: 50em,
  22. // 800px
  23. md: 56.25em,
  24. // 900px
  25. lg: 75em,
  26. // 1200px
  27. xl: 100em,
  28. // 1440px
  29. );
  30. // Fonts
  31. // Our fonts are based off of a list of system fallbacks to ensure
  32. // that the most 'up-to-date' and available system font is used and rendered consistently as possible across browsers.
  33. // misc sizing
  34. $menu-width-slim: 60px;
  35. $menu-width: 200px;
  36. $mobile-nav-indent: 50px;
  37. // transitions
  38. // Please keep in sync with SIDEBAR_TRANSITION_DURATION variable in `client/src/components/Sidebar/Sidebar.tsx`
  39. $menu-transition-duration: 150ms;
  40. $focus-outline-width: 3px;