variables.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*!
  2. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. // SCSS darken/lighten function override
  6. @function nc-darken($color, $value) {
  7. @return darken($color, $value);
  8. }
  9. @function nc-lighten($color, $value) {
  10. @return lighten($color, $value);
  11. }
  12. // SCSS variables
  13. // DEPRECATED, please use CSS4 vars
  14. $color-main-text: #222 !default; // Not #000 for better readability
  15. $color-main-background: #fff !default;
  16. $color-main-background-translucent: rgba($color-main-background, .97) !default;
  17. // used for different active/hover/focus/disabled states
  18. $color-background-hover: nc-darken($color-main-background, 4%) !default;
  19. $color-background-dark: nc-darken($color-main-background, 7%) !default;
  20. $color-background-darker: nc-darken($color-main-background, 14%) !default;
  21. $color-placeholder-light: nc-darken($color-main-background, 10%) !default;
  22. $color-placeholder-dark: nc-darken($color-main-background, 20%) !default;
  23. $color-primary: #0082c9 !default;
  24. $color-primary-hover: mix($color-primary, $color-main-background, 80%) !default;
  25. $color-primary-light: mix($color-primary, $color-main-background, 10%) !default;
  26. $color-primary-light-text: $color-primary !default;
  27. $color-primary-light-hover: mix($color-primary-light, $color-main-text, 95%) !default;
  28. $color-primary-text: #ffffff !default;
  29. // do not use nc-darken/lighten in case of overriding because
  30. // primary-text is independent of color-main-text
  31. $color-primary-element-text-dark: darken($color-primary-text, 7%) !default;
  32. $color-primary-element: $color-primary !default;
  33. $color-primary-element-hover: mix($color-primary-element, $color-main-background, 80%) !default;
  34. $color-primary-element-light: lighten($color-primary-element, 15%) !default;
  35. $color-error: #e9322d;
  36. $color-error-hover: mix($color-error, $color-main-background, 80%) !default;
  37. $color-warning: #eca700;
  38. $color-warning-hover: mix($color-warning, $color-main-background, 80%) !default;
  39. $color-success: #46ba61;
  40. $color-success-hover: mix($color-success, $color-main-background, 80%) !default;
  41. // used for svg
  42. $color-white: #fff;
  43. $color-black: #000;
  44. $color-yellow: #FC0;
  45. // rgb(118, 118, 118) / #767676
  46. // min. color contrast for normal text on white background according to WCAG AA
  47. // (Works as well: color: #000; opacity: 0.57;)
  48. $color-text-maxcontrast: nc-lighten($color-main-text, 33%) !default;
  49. $color-text-light: $color-main-text !default;
  50. $color-text-lighter: $color-text-maxcontrast !default;
  51. $image-logo: url('../img/logo/logo.svg?v=1') !default;
  52. $image-login-background: url('../img/background.png?v=2') !default;
  53. $image-logoheader: url('../img/logo/logo.svg?v=1') !default;
  54. $image-favicon: url('../img/logo/logo.svg?v=1') !default;
  55. $color-loading-light: #ccc !default;
  56. $color-loading-dark: #444 !default;
  57. $color-box-shadow: transparentize(nc-darken($color-main-background, 70%), 0.5) !default;
  58. // light border like file table or app-content list
  59. $color-border: nc-darken($color-main-background, 7%) !default;
  60. // darker border like inputs or very visible elements
  61. $color-border-dark: nc-darken($color-main-background, 14%) !default;
  62. $border-radius: 3px !default;
  63. $border-radius-large: 10px !default;
  64. // Pill-style button, value is large so big buttons also have correct roundness
  65. $border-radius-pill: 100px !default;
  66. $font-face: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Cantarell, Ubuntu, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
  67. $default-font-size: 15px;
  68. $default-line-height: 24px;
  69. $animation-quick: 100ms;
  70. $animation-slow: 300ms;
  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. $header-menu-item-height: 44px;
  79. $header-menu-profile-item-height: 66px;
  80. // mobile. Keep in sync with core/js/js.js
  81. $breakpoint-mobile: 1024px;