2021-12-23 03:42:22 +01:00
|
|
|
|
@use 'sass:color';
|
2016-02-12 18:29:59 +01:00
|
|
|
|
// paths
|
2014-03-17 10:16:22 +01:00
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// We can't use absolute paths here, because those are dependent on Django's
|
2016-02-04 23:57:58 +01:00
|
|
|
|
// STATIC_URL setting. Instead, relative paths from the final location of the
|
|
|
|
|
// compiled CSS files are used.
|
|
|
|
|
// */
|
2014-03-17 10:16:22 +01:00
|
|
|
|
|
2021-12-23 05:21:23 +01:00
|
|
|
|
$images-root: '../images/';
|
2014-02-11 18:18:59 +01:00
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// grid settings
|
2014-04-02 17:48:26 +02:00
|
|
|
|
$grid-columns: 12;
|
2014-02-11 18:18:59 +01:00
|
|
|
|
$grid-gutter-width: 3%;
|
|
|
|
|
$grid-max-width: 1200px;
|
2015-09-25 15:17:39 +02:00
|
|
|
|
$grid-content-indent: 0.7;
|
2014-02-11 18:18:59 +01:00
|
|
|
|
|
2014-02-14 12:51:27 +01:00
|
|
|
|
$mobile-nice-padding: 20px;
|
2022-07-25 16:20:19 +02:00
|
|
|
|
$desktop-nice-padding: 80px;
|
2014-02-14 12:51:27 +01:00
|
|
|
|
|
2022-07-25 16:20:19 +02:00
|
|
|
|
// All text inputs have a 42px set height to simplify alignment.
|
|
|
|
|
$text-input-height: 2.625rem;
|
|
|
|
|
// Forms should be constrainted to a maximum width for legibility.
|
|
|
|
|
$max-form-width: 840px;
|
2022-07-25 04:33:09 +02:00
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// screen breakpoints
|
2018-11-04 22:46:42 +01:00
|
|
|
|
$breakpoints: (
|
|
|
|
|
xs: 0,
|
|
|
|
|
sm: 50em,
|
|
|
|
|
// 800px
|
|
|
|
|
md: 56.25em,
|
|
|
|
|
// 900px
|
|
|
|
|
lg: 75em,
|
|
|
|
|
// 1200px
|
|
|
|
|
xl: 100em,
|
|
|
|
|
// 1440px
|
|
|
|
|
);
|
2014-02-11 18:18:59 +01:00
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// colours
|
2022-07-09 08:32:51 +02:00
|
|
|
|
$color-teal: theme('colors.secondary.DEFAULT');
|
|
|
|
|
$color-teal-darker: theme('colors.secondary.400');
|
|
|
|
|
$color-teal-dark: theme('colors.secondary.600');
|
|
|
|
|
|
|
|
|
|
$color-white: theme('colors.white.DEFAULT');
|
|
|
|
|
$color-black: theme('colors.black.DEFAULT');
|
2014-02-11 18:18:59 +01:00
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// darker to lighter
|
2022-07-09 08:32:51 +02:00
|
|
|
|
$color-grey-1: theme('colors.grey.600');
|
|
|
|
|
$color-grey-2: theme('colors.grey.400');
|
|
|
|
|
$color-grey-3: theme('colors.grey.200');
|
|
|
|
|
$color-grey-4: theme('colors.grey.100');
|
|
|
|
|
$color-grey-5: theme('colors.grey.50');
|
2016-09-07 09:41:49 +02:00
|
|
|
|
|
2022-07-09 08:32:51 +02:00
|
|
|
|
$color-menu-text: theme('colors.white-80');
|
2018-09-22 22:13:03 +02:00
|
|
|
|
|
2022-07-25 04:33:09 +02:00
|
|
|
|
$color-text-base: theme('colors.grey.600');
|
|
|
|
|
|
|
|
|
|
$color-input-text: $color-text-base;
|
|
|
|
|
$color-input-bg: theme('colors.white.DEFAULT');
|
|
|
|
|
$color-input-border: theme('colors.grey.150');
|
|
|
|
|
$color-input-disabled-text: theme('colors.grey.400');
|
|
|
|
|
$color-input-disabled-bg: theme('colors.grey.50');
|
|
|
|
|
$color-input-disabled-border: theme('colors.grey.100');
|
|
|
|
|
$color-input-hover-border: theme('colors.grey.200');
|
|
|
|
|
$color-input-error-border: theme('colors.critical.200');
|
2018-09-22 22:13:03 +02:00
|
|
|
|
|
2014-02-11 18:18:59 +01:00
|
|
|
|
$color-button: $color-teal;
|
|
|
|
|
$color-button-hover: $color-teal-darker;
|
2022-07-09 08:32:51 +02:00
|
|
|
|
$color-button-no: theme('colors.critical.200');
|
|
|
|
|
$color-button-warning: theme('colors.warning.100');
|
2019-05-22 18:48:40 +02:00
|
|
|
|
|
2019-05-23 16:55:14 +02:00
|
|
|
|
$color-link: $color-teal-darker;
|
2014-02-11 18:18:59 +01:00
|
|
|
|
$color-link-hover: $color-teal-dark;
|
|
|
|
|
|
2019-05-22 18:48:40 +02:00
|
|
|
|
// The focus outline color is defined without reusing a named color variable
|
|
|
|
|
// because it shouldn’t be reused for anything else in the UI.
|
|
|
|
|
$color-focus-outline: #ffbf47;
|
|
|
|
|
|
2021-08-18 15:25:45 +02:00
|
|
|
|
// System Colors
|
|
|
|
|
$media-forced-colours: active;
|
|
|
|
|
$system-color-link-text: LinkText;
|
|
|
|
|
$system-color-button-text: ButtonText;
|
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// Fonts
|
Update system font stack value for compatibility. Fix #7724 (#7972)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
- `-apple-system, BlinkMacSystemFont` - These are used to target modern iOS Safari, macOS Safari, macOS Firefox and macOS Chrome's system fonts.
- ` 'Segoe UI', system-ui,` - These fonts target windows machines on Windows 7+ [reference](https://markdotto.com/2018/02/07/github-system-fonts/#the-stack). Having system-ui placed after Segoe UI allowed Segoe UI to take precedence when used on Windows machines set to Chinese ( Simplified ) language. There are some known language issues around `system-ui` being used: [This github article](https://infinnie.github.io/blog/2017/systemui.html). However, the purpose of `system-ui` [(reference here)](https://drafts.csswg.org/css-fonts-4/#valdef-font-family-system-ui) is to allow web content to integrate with the look and feel of the native OS. Which makes this font-family a good choice for other devices _if_ the problem is solved by putting Segoe UI first.
- `Roboto,` - This is our fallback font for androids devices. Having Segoe set before this allows windows to use its system default font even if you have installed Roboto for development reasons.
- `Helvetica Neue,` - This is a fallback for older macOS
- `Arial` - Using this to catch any of the very old Windows versions (shoutout windows 95)
- `sans-serif` - Our last resort to get a font without serifs
- ` 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';` - All the emoji's for the OS's mentioned above. 😁
2022-02-14 16:17:02 +01:00
|
|
|
|
// Our fonts are based off of a list of system fallbacks to ensure
|
|
|
|
|
// that the most 'up-to-date' and available system font is used and rendered consistently as possible across browsers.
|
2022-04-12 13:37:26 +02:00
|
|
|
|
|
2022-05-20 15:19:30 +02:00
|
|
|
|
$font-sans: theme('fontFamily.sans');
|
|
|
|
|
$font-mono: theme('fontFamily.mono');
|
2022-04-12 13:37:26 +02:00
|
|
|
|
|
2021-12-23 03:42:22 +01:00
|
|
|
|
// Legacy icon font, to be removed in the near future.
|
|
|
|
|
$font-wagtail-icons: wagtail;
|
2015-06-26 15:45:32 +02:00
|
|
|
|
|
2015-11-03 13:15:33 +01:00
|
|
|
|
// misc sizing
|
2019-05-23 16:55:14 +02:00
|
|
|
|
$menu-width: 200px;
|
2022-04-23 01:10:32 +02:00
|
|
|
|
$menu-width-slim: 60px;
|
2022-07-25 16:20:19 +02:00
|
|
|
|
$side-panel-width: 500px;
|
2021-06-23 22:50:33 +02:00
|
|
|
|
|
2017-07-11 15:20:14 +02:00
|
|
|
|
$mobile-nav-indent: 50px;
|
2018-01-11 16:16:42 +01:00
|
|
|
|
|
2022-01-10 23:32:46 +01:00
|
|
|
|
$sidebar-toggle-spacing: 12px;
|
|
|
|
|
$sidebar-toggle-size: 35px;
|
|
|
|
|
|
2022-09-14 17:30:37 +02:00
|
|
|
|
// Comments
|
|
|
|
|
$comment-button-size: theme('spacing.5');
|
|
|
|
|
$comment-button-space: theme('spacing.3');
|
|
|
|
|
|
2021-06-23 22:50:33 +02:00
|
|
|
|
// transitions
|
|
|
|
|
// Please keep in sync with SIDEBAR_TRANSITION_DURATION variable in `client/src/components/Sidebar/Sidebar.tsx`
|
|
|
|
|
$menu-transition-duration: 150ms;
|
|
|
|
|
|
2019-05-23 18:51:29 +02:00
|
|
|
|
$focus-outline-width: 3px;
|
|
|
|
|
|
2020-06-25 12:54:40 +02:00
|
|
|
|
$object-title-height: 40px;
|