variables.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /**
  2. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  3. *
  4. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  5. *
  6. * @license GNU AGPL version 3 or any later version
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. // SCSS darken/lighten function override
  23. @function nc-darken($color, $value) {
  24. @return darken($color, $value);
  25. }
  26. @function nc-lighten($color, $value) {
  27. @return lighten($color, $value);
  28. }
  29. // SCSS variables
  30. // DEPRECATED, please use CSS4 vars
  31. $color-main-text: #222 !default; // Not #000 for better readability
  32. $color-main-background: #fff !default;
  33. $color-main-background-translucent: rgba($color-main-background, .97) !default;
  34. // used for different active/hover/focus/disabled states
  35. $color-background-hover: nc-darken($color-main-background, 4%) !default;
  36. $color-background-dark: nc-darken($color-main-background, 7%) !default;
  37. $color-background-darker: nc-darken($color-main-background, 14%) !default;
  38. $color-placeholder-light: nc-darken($color-main-background, 10%) !default;
  39. $color-placeholder-dark: nc-darken($color-main-background, 20%) !default;
  40. $color-primary: #0082c9 !default;
  41. $color-primary-hover: mix($color-primary, $color-main-background, 80%) !default;
  42. $color-primary-light: mix($color-primary, $color-main-background, 10%) !default;
  43. $color-primary-light-text: $color-primary !default;
  44. $color-primary-light-hover: mix($color-primary-light, $color-main-text, 95%) !default;
  45. $color-primary-text: #ffffff !default;
  46. // do not use nc-darken/lighten in case of overriding because
  47. // primary-text is independent of color-main-text
  48. $color-primary-text-dark: darken($color-primary-text, 7%) !default;
  49. $color-primary-element: $color-primary !default;
  50. $color-primary-element-hover: mix($color-primary-element, $color-main-background, 80%) !default;
  51. $color-primary-element-light: lighten($color-primary-element, 15%) !default;
  52. $color-primary-element-lighter: mix($color-primary-element, $color-main-background, 15%) !default;
  53. $color-error: #e9322d;
  54. $color-error-hover: mix($color-error, $color-main-background, 80%) !default;
  55. $color-warning: #eca700;
  56. $color-warning-hover: mix($color-warning, $color-main-background, 80%) !default;
  57. $color-success: #46ba61;
  58. $color-success-hover: mix($color-success, $color-main-background, 80%) !default;
  59. // used for svg
  60. $color-white: #fff;
  61. $color-black: #000;
  62. $color-yellow: #FC0;
  63. // rgb(118, 118, 118) / #767676
  64. // min. color contrast for normal text on white background according to WCAG AA
  65. // (Works as well: color: #000; opacity: 0.57;)
  66. $color-text-maxcontrast: nc-lighten($color-main-text, 33%) !default;
  67. $color-text-light: $color-main-text !default;
  68. $color-text-lighter: $color-text-maxcontrast !default;
  69. $image-logo: url('../img/logo/logo.svg?v=1') !default;
  70. $image-login-background: url('../img/background.png?v=2') !default;
  71. $image-logoheader: url('../img/logo/logo.svg?v=1') !default;
  72. $image-favicon: url('../img/logo/logo.svg?v=1') !default;
  73. $color-loading-light: #ccc !default;
  74. $color-loading-dark: #444 !default;
  75. $color-box-shadow: transparentize(nc-darken($color-main-background, 70%), 0.5) !default;
  76. // light border like file table or app-content list
  77. $color-border: nc-darken($color-main-background, 7%) !default;
  78. // darker border like inputs or very visible elements
  79. $color-border-dark: nc-darken($color-main-background, 14%) !default;
  80. $border-radius: 3px !default;
  81. $border-radius-large: 10px !default;
  82. // Pill-style button, value is large so big buttons also have correct roundness
  83. $border-radius-pill: 100px !default;
  84. $font-face: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, sans-serif, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !default;
  85. $default-font-size: 15px;
  86. $default-line-height: 24px;
  87. $animation-quick: 100ms;
  88. $animation-slow: 300ms;
  89. // various structure data
  90. $header-height: 50px;
  91. $navigation-width: 300px;
  92. $sidebar-min-width: 300px;
  93. $sidebar-max-width: 500px;
  94. $list-min-width: 200px;
  95. $list-max-width: 300px;
  96. $header-menu-item-height: 44px;
  97. $header-menu-profile-item-height: 66px;
  98. // mobile. Keep in sync with core/js/js.js
  99. $breakpoint-mobile: 1024px;