_variables.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. // */
  7. $images-root: '../images/';
  8. // grid settings
  9. $mobile-nice-padding: 20px;
  10. $desktop-nice-padding: 80px;
  11. // All text inputs have a 42px set height to simplify alignment.
  12. $text-input-height: 2.625rem;
  13. // Forms should be constrainted to a maximum width for legibility.
  14. $max-form-width: 840px;
  15. // Consistent spacing between form fields.
  16. $form-field-spacing: theme('spacing.[7.5]');
  17. // Indentation for nested fields.
  18. $nested-field-indent: theme('spacing.[7.5]');
  19. $nested-field-indent-sm: theme('spacing.3');
  20. // screen breakpoints
  21. $breakpoints: (
  22. xs: 0,
  23. sm: 50em,
  24. // 800px
  25. md: 56.25em,
  26. // 900px
  27. lg: 75em,
  28. // 1200px
  29. xl: 100em,
  30. // 1440px
  31. );
  32. // Fonts
  33. // Our fonts are based off of a list of system fallbacks to ensure
  34. // that the most 'up-to-date' and available system font is used and rendered consistently as possible across browsers.
  35. // misc sizing
  36. $menu-width: 200px;
  37. $menu-width-slim: 60px;
  38. $side-panel-width: 500px;
  39. $mobile-nav-indent: 50px;
  40. // transitions
  41. // Please keep in sync with SIDEBAR_TRANSITION_DURATION variable in `client/src/components/Sidebar/Sidebar.tsx`
  42. $menu-transition-duration: 150ms;
  43. $focus-outline-width: 3px;