1
0

variables.scss 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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/disabled states
  35. $color-background-dark: nc-darken($color-main-background, 7%) !default;
  36. $color-background-darker: nc-darken($color-main-background, 14%) !default;
  37. $color-primary: #0082c9 !default;
  38. $color-primary-text: #ffffff !default;
  39. // do not use nc-darken/lighten in case of overriding because
  40. // primary-text is independent of color-main-text
  41. $color-primary-text-dark: darken($color-primary-text, 7%) !default;
  42. $color-primary-element: $color-primary !default;
  43. $color-primary-element-light: lighten($color-primary-element, 15%) !default;
  44. $color-error: #e9322d;
  45. $color-warning: #eca700;
  46. $color-success: #46ba61;
  47. // used for svg
  48. $color-white: #fff;
  49. $color-black: #000;
  50. // rgb(118, 118, 118) / #767676
  51. // min. color contrast for normal text on white background according to WCAG AA
  52. // (Works as well: color: #000; opacity: 0.57;)
  53. $color-text-maxcontrast: nc-lighten($color-main-text, 46.2%) !default;
  54. $color-text-light: nc-lighten($color-main-text, 15%) !default;
  55. $color-text-lighter: nc-lighten($color-main-text, 30%) !default;
  56. $image-logo: url('../img/logo/logo.svg?v=1') !default;
  57. $image-login-background: url('../img/background.png?v=2') !default;
  58. $color-loading-light: #ccc !default;
  59. $color-loading-dark: #444 !default;
  60. $color-box-shadow: rgba(nc-darken($color-main-background, 70%), 0.5) !default;
  61. // light border like file table or app-content list
  62. $color-border: nc-darken($color-main-background, 7%) !default;
  63. // darker border like inputs or very visible elements
  64. $color-border-dark: nc-darken($color-main-background, 14%) !default;
  65. $border-radius: 3px !default;
  66. $border-radius-large: 10px !default;
  67. // Pill-style button, value is large so big buttons also have correct roundness
  68. $border-radius-pill: 100px !default;
  69. $font-face: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif !default;
  70. $animation-quick: 100ms;
  71. // various structure data
  72. $header-height: 50px;
  73. $navigation-width: 300px;
  74. $sidebar-min-width: 300px;
  75. $sidebar-max-width: 500px;
  76. $list-min-width: 200px;
  77. $list-max-width: 300px;
  78. // mobile
  79. $breakpoint-mobile: 768px;