_variables.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. // screen breakpoints
  20. $breakpoints: (
  21. xs: 0,
  22. sm: 50em,
  23. // 800px
  24. md: 56.25em,
  25. // 900px
  26. lg: 75em,
  27. // 1200px
  28. xl: 100em,
  29. // 1440px
  30. );
  31. // colours
  32. $color-teal: theme('colors.secondary.DEFAULT');
  33. $color-teal-darker: theme('colors.secondary.400');
  34. $color-teal-dark: theme('colors.secondary.600');
  35. $color-white: theme('colors.white.DEFAULT');
  36. $color-black: theme('colors.black.DEFAULT');
  37. // darker to lighter
  38. $color-grey-1: theme('colors.grey.600');
  39. $color-grey-2: theme('colors.grey.400');
  40. $color-grey-3: theme('colors.grey.200');
  41. $color-grey-4: theme('colors.grey.100');
  42. $color-grey-5: theme('colors.grey.50');
  43. $color-menu-text: theme('colors.white-80');
  44. $color-text-base: theme('colors.grey.600');
  45. $color-input-text: $color-text-base;
  46. $color-input-bg: theme('colors.white.DEFAULT');
  47. $color-input-border: theme('colors.grey.150');
  48. $color-input-disabled-text: theme('colors.grey.400');
  49. $color-input-disabled-bg: theme('colors.grey.50');
  50. $color-input-disabled-border: theme('colors.grey.100');
  51. $color-input-hover-border: theme('colors.grey.200');
  52. $color-input-error-border: theme('colors.critical.200');
  53. $color-button: $color-teal;
  54. $color-button-hover: $color-teal-darker;
  55. $color-button-yes: theme('colors.positive.100');
  56. $color-button-no: theme('colors.critical.200');
  57. $color-button-warning: theme('colors.warning.100');
  58. $color-link: $color-teal-darker;
  59. $color-link-hover: $color-teal-dark;
  60. // The focus outline color is defined without reusing a named color variable
  61. // because it shouldn’t be reused for anything else in the UI.
  62. $color-focus-outline: #ffbf47;
  63. // System Colors
  64. $media-forced-colours: active;
  65. $system-color-link-text: LinkText;
  66. $system-color-button-text: ButtonText;
  67. // Fonts
  68. // Our fonts are based off of a list of system fallbacks to ensure
  69. // that the most 'up-to-date' and available system font is used and rendered consistently as possible across browsers.
  70. $font-sans: theme('fontFamily.sans');
  71. $font-mono: theme('fontFamily.mono');
  72. // Legacy icon font, to be removed in the near future.
  73. $font-wagtail-icons: wagtail;
  74. // misc sizing
  75. $menu-width: 200px;
  76. $menu-width-slim: 60px;
  77. $side-panel-width: 500px;
  78. $mobile-nav-indent: 50px;
  79. $sidebar-toggle-spacing: 12px;
  80. $sidebar-toggle-size: 35px;
  81. // transitions
  82. // Please keep in sync with SIDEBAR_TRANSITION_DURATION variable in `client/src/components/Sidebar/Sidebar.tsx`
  83. $menu-transition-duration: 150ms;
  84. $focus-outline-width: 3px;
  85. $object-title-height: 40px;