2
0

_variables.scss 1.6 KB

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