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