_variables.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. // paths
  2. // We can't use absolute paths here, because those are dependent on Django's
  3. // STATIC_URL setting. Instead, relative paths from the final location of the
  4. // compiled CSS files are used.
  5. // */
  6. $static-root: '../../';
  7. $images-root: $static-root + 'wagtailadmin/images/';
  8. $font-root: '../../wagtailadmin/fonts/';
  9. // grid settings
  10. $grid-columns: 12;
  11. $grid-gutter-width: 3%;
  12. $grid-max-width: 1200px;
  13. $grid-content-indent: 0.7;
  14. $mobile-nice-padding: 20px;
  15. $desktop-nice-padding: 50px;
  16. // screen breakpoints
  17. $breakpoints: (
  18. xs: 0,
  19. sm: 50em, // 800px
  20. md: 56.25em, // 900px
  21. lg: 75em, // 1200px
  22. xl: 100em, // 1440px
  23. );
  24. // colours
  25. $color-teal-light: var(--color-primary-light);
  26. $color-teal-lighter: var(--color-primary-lighter);
  27. $color-teal: var(--color-primary);
  28. $color-teal-darker: var(--color-primary-darker);
  29. $color-teal-dark: var(--color-primary-dark);
  30. $color-blue: #71b2d4;
  31. $color-red: #cd3238;
  32. $color-red-dark: #b4191f;
  33. $color-orange: #e9b04d;
  34. $color-orange-dark: #bb5b03;
  35. $color-green: #189370;
  36. $color-green-dark: #157b57;
  37. $color-green-darker: #105d42; // White has AAA compatibility when this is used in bgd.
  38. $color-salmon: #f37e77;
  39. $color-salmon-light: #fcf2f2;
  40. $color-white: #fff;
  41. $color-black: #000;
  42. // darker to lighter
  43. $color-grey-1: darken($color-white, 80);
  44. $color-grey-2: darken($color-white, 70);
  45. $color-grey-3: darken($color-white, 15);
  46. $color-grey-4: darken($color-white, 10);
  47. $color-grey-5: darken($color-white, 2);
  48. $color-menu-text: darken($color-white, 20);
  49. $color-thead-bg: $color-grey-5;
  50. $color-header-bg: $color-teal;
  51. $color-fieldset-hover: $color-grey-5;
  52. $color-input-border: $color-grey-4;
  53. $color-input-focus: var(--color-input-focus);
  54. $color-input-focus-border: var(--color-input-focus-border);
  55. $color-input-error-bg: lighten(saturate($color-red, 28), 45);
  56. $color-button: $color-teal;
  57. $color-button-hover: $color-teal-darker;
  58. $color-button-yes: $color-green-dark;
  59. $color-button-yes-hover: darken($color-button-yes, 8%);
  60. $color-button-no: $color-red-dark;
  61. $color-button-no-hover: darken($color-button-no, 20%);
  62. $color-button-warning: $color-orange-dark;
  63. $color-button-warning-hover: darken($color-button-warning, 20%);
  64. $color-link: $color-teal-darker;
  65. $color-link-hover: $color-teal-dark;
  66. // The focus outline color is defined without reusing a named color variable
  67. // because it shouldn’t be reused for anything else in the UI.
  68. $color-focus-outline: #ffbf47;
  69. $color-text-base: darken($color-white, 85);
  70. $color-text-input: darken($color-white, 90);
  71. // Color states
  72. $color-state-live: #59b524;
  73. $color-state-draft: #808080;
  74. $color-state-absent: #ff8f11;
  75. $color-state-live-draft: #43b1b0;
  76. // System Colors
  77. $media-forced-colours: active;
  78. $system-color-link-text: LinkText;
  79. $system-color-button-text: ButtonText;
  80. // Fonts
  81. $font-sans: Open Sans, Arial, sans-serif;
  82. $font-serif: Roboto Slab, Georgia, serif;
  83. // misc sizing
  84. $thumbnail-width: 130px;
  85. $menu-width: 200px;
  86. $menu-width-slim: 60px;
  87. $menu-width-max: 320px;
  88. $mobile-nav-indent: 50px;
  89. // transitions
  90. // Please keep in sync with SIDEBAR_TRANSITION_DURATION variable in `client/src/components/Sidebar/Sidebar.tsx`
  91. $menu-transition-duration: 150ms;
  92. $focus-outline-width: 3px;
  93. $nav-wrapper-inner-z-index: 26;
  94. $draftail-editor-z-index: $nav-wrapper-inner-z-index + 1;
  95. $object-title-height: 40px;
  96. // Nav
  97. $nav-grey-1: darken($color-white, 80);
  98. $nav-grey-2: darken($color-white, 60);
  99. $nav-grey-3: #262626;
  100. $nav-item-hover-bg: rgba(100, 100, 100, 0.15);
  101. $nav-item-active-bg: darken($color-white, 90);
  102. $nav-submenu-bg: darken($color-white, 85);
  103. $nav-footer-account-bg: $nav-item-active-bg;
  104. $nav-footer-submenu-bg: $nav-submenu-bg;
  105. $nav-footer-closed-height: 50px;
  106. $nav-footer-submenu-height: 77px;
  107. $nav-footer-open-height: $nav-footer-closed-height + $nav-footer-submenu-height;
  108. // Nav search
  109. $nav-search-color: darken($color-white, 20);
  110. $nav-search-border: darken($color-white, 40);
  111. $nav-search-bg: $nav-grey-1;
  112. $nav-search-hover-bg: $nav-item-hover-bg;
  113. $nav-search-focus-color: $color-white;
  114. $nav-search-focus-bg: $nav-item-hover-bg;