_variables.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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: #007d7e;
  26. $color-teal-darker: darken(adjust-hue($color-teal, 1), 4);
  27. $color-teal-dark: darken(adjust-hue($color-teal, 1), 7);
  28. $color-blue: #71b2d4;
  29. $color-red: #cd3238;
  30. $color-orange: #e9b04d;
  31. $color-green: #189370;
  32. $color-salmon: #f37e77;
  33. $color-salmon-light: #fcf2f2;
  34. $color-white: #fff;
  35. $color-black: #000;
  36. // darker to lighter
  37. $color-grey-1: darken($color-white, 80);
  38. $color-grey-2: darken($color-white, 70);
  39. $color-grey-3: darken($color-white, 15);
  40. $color-grey-4: darken($color-white, 10);
  41. $color-grey-5: darken($color-white, 2);
  42. $color-menu-text: darken($color-white, 20);
  43. $color-thead-bg: $color-grey-5;
  44. $color-header-bg: $color-teal;
  45. $color-fieldset-hover: $color-grey-5;
  46. $color-input-border: $color-grey-4;
  47. $color-input-focus: lighten(desaturate($color-teal, 40), 72);
  48. $color-input-focus-border: lighten(saturate($color-teal, 12), 10);
  49. $color-input-error-bg: lighten(saturate($color-red, 28), 45);
  50. $color-button: $color-teal;
  51. $color-button-hover: $color-teal-darker;
  52. $color-button-yes: $color-green;
  53. $color-button-yes-hover: darken($color-button-yes, 8%);
  54. $color-button-no: $color-red;
  55. $color-button-no-hover: darken($color-button-no, 20%);
  56. $color-button-warning: $color-orange;
  57. $color-button-warning-hover: darken($color-orange, 20%);
  58. $color-link: $color-teal;
  59. $color-link-hover: $color-teal-dark;
  60. $color-text-base: darken($color-white, 85);
  61. $color-text-input: darken($color-white, 90);
  62. // Color states
  63. $color-state-live: #59b524;
  64. $color-state-draft: #808080;
  65. $color-state-absent: #ff8f11;
  66. $color-state-live-draft: #43b1b0;
  67. // Fonts
  68. $font-sans: Open Sans, Arial, sans-serif;
  69. $font-serif: Roboto Slab, Georgia, serif;
  70. // misc sizing
  71. $thumbnail-width: 130px;
  72. $menu-width: 180px;
  73. $menu-width-max: 320px;
  74. $mobile-nav-indent: 50px;
  75. $nav-wrapper-inner-z-index: 26;
  76. $draftail-editor-z-index: $nav-wrapper-inner-z-index + 1;
  77. // Nav
  78. $nav-grey-1: darken($color-white, 80);
  79. $nav-grey-2: darken($color-white, 60);
  80. $nav-item-hover-bg: rgba(100, 100, 100, 0.15);
  81. $nav-item-active-bg: darken($color-white, 90);
  82. $submenu-bg: darken($color-white, 85);
  83. $footer-account: $nav-item-active-bg;
  84. $footer-submenu: $submenu-bg;
  85. // Nav search
  86. $nav-search-color: darken($color-white, 20);
  87. $nav-search-border: darken($color-white, 40);
  88. $nav-search-bg: $nav-grey-1;
  89. $nav-search-hover-bg: $nav-item-hover-bg;
  90. $nav-search-focus-color: $color-white;
  91. $nav-search-focus-bg: $nav-item-hover-bg;