mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°7793 Add common SCSS variables between backoffice and end-user portal (#674)
* N°7793 Add common SCSS variables between backoffice and end-user portal * Add shame & readme * Move font face to common * Inherit color functions * Move font icon to common * FIx breaking change introduced in lifecycle palette * FIx breaking change introduced in base * Move approot url to common * Make highlightjs common variables more coherent with 3.2.1 commonization approach * Deprecated and migrate the usage of ibo-adjust-alpha and ibo-adjust-lightness
This commit is contained in:
15
css/common/utils/variables/_all.scss
Normal file
15
css/common/utils/variables/_all.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
@import "colors/all";
|
||||
@import "border-radius";
|
||||
@import "depression";
|
||||
@import "elevation";
|
||||
@import "path";
|
||||
@import "size";
|
||||
@import "spacing";
|
||||
@import "typography";
|
||||
// Important: Keep this partial last as it includes variables from the previous partials
|
||||
@import "base";
|
||||
9
css/common/utils/variables/_base.scss
Normal file
9
css/common/utils/variables/_base.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
// These are the base variables used throughout the backoffice, if you don't know what to use, these are probably good :)
|
||||
|
||||
$common-base-variable--text-color: $common-color-grey-900 !default;
|
||||
$common-base-variable--border-radius: $common-border-radius-300 !default;;
|
||||
12
css/common/utils/variables/_border-radius.scss
Normal file
12
css/common/utils/variables/_border-radius.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$common-border-radius-100: 1px !default;
|
||||
$common-border-radius-300: 3px !default;
|
||||
$common-border-radius-400: 4px !default;
|
||||
$common-border-radius-500: 5px !default;
|
||||
$common-border-radius-700: 10px !default;
|
||||
$common-border-radius-900: 16px !default;
|
||||
$common-border-radius-full: 100% !default;
|
||||
6
css/common/utils/variables/_depression.scss
Normal file
6
css/common/utils/variables/_depression.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$common-depression-100: inset 0 1px 1px 0 rgba(0, 0, 0, 0.15) !default;
|
||||
10
css/common/utils/variables/_elevation.scss
Normal file
10
css/common/utils/variables/_elevation.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$common-elevation-100: 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.12) !default;
|
||||
$common-elevation-200: 0 2px 4px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.15) !default;
|
||||
$common-elevation-300: 0 3px 6px rgba(0, 0, 0, 0.10), 0 10px 20px rgba(0, 0, 0, 0.15) !default;
|
||||
$common-elevation-400: 0 5px 10px rgba(0, 0, 0, 0.05), 0 15px 25px rgba(0, 0, 0, 0.15) !default;
|
||||
$common-elevation-500: 0 20px 40px rgba(0, 0, 0, 0.20) !default;
|
||||
6
css/common/utils/variables/_path.scss
Normal file
6
css/common/utils/variables/_path.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$approot-relative: '../../../../' !default;
|
||||
24
css/common/utils/variables/_size.scss
Normal file
24
css/common/utils/variables/_size.scss
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$common-size-0: 0 !default;
|
||||
$common-size-50: 2px !default;
|
||||
$common-size-100: 4px !default;
|
||||
$common-size-150: 8px !default;
|
||||
$common-size-200: 12px !default;
|
||||
$common-size-250: 16px !default;
|
||||
$common-size-300: 24px !default;
|
||||
$common-size-350: 32px !default;
|
||||
$common-size-400: 48px !default;
|
||||
$common-size-450: 64px !default;
|
||||
$common-size-500: 96px !default;
|
||||
$common-size-550: 128px !default;
|
||||
$common-size-600: 192px !default;
|
||||
$common-size-650: 256px !default;
|
||||
$common-size-700: 384px !default;
|
||||
$common-size-750: 512px !default;
|
||||
$common-size-800: 640px !default;
|
||||
$common-size-850: 768px !default;
|
||||
$common-size-900: 896px !default;
|
||||
16
css/common/utils/variables/_spacing.scss
Normal file
16
css/common/utils/variables/_spacing.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
$common-spacing-0: $common-size-0 !default;
|
||||
$common-spacing-100: $common-size-50 !default;
|
||||
$common-spacing-200: $common-size-100 !default;
|
||||
$common-spacing-300: $common-size-150 !default;
|
||||
$common-spacing-400: $common-size-200 !default;
|
||||
$common-spacing-500: $common-size-250 !default;
|
||||
$common-spacing-600: $common-size-300 !default;
|
||||
$common-spacing-700: $common-size-350 !default;
|
||||
$common-spacing-800: $common-size-400 !default;
|
||||
$common-spacing-900: $common-size-450 !default;
|
||||
$common-spacing-950: $common-size-500 !default;
|
||||
38
css/common/utils/variables/_typography.scss
Normal file
38
css/common/utils/variables/_typography.scss
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* Base size: html font-size 12px */
|
||||
$common-font-size-20: 0.67rem !default; /* 8px */
|
||||
$common-font-size-50: 0.83rem !default; /* 10px */
|
||||
$common-font-size-100: 1rem !default; /* 12px */
|
||||
$common-font-size-150: 1.17rem !default; /* 14px */
|
||||
$common-font-size-200: 1.33rem !default; /* 16px */
|
||||
$common-font-size-250: 1.5rem !default; /* 18px */
|
||||
$common-font-size-300: 1.67rem !default; /* 20px */
|
||||
$common-font-size-350: 1.83rem !default; /* 22px */
|
||||
$common-font-size-400: 2rem !default; /* 24px */
|
||||
$common-font-size-450: 2.5rem !default; /* 30px */
|
||||
$common-font-size-500: 3rem !default; /* 36px */
|
||||
$common-font-size-550: 4rem !default; /* 48px */
|
||||
$common-font-size-600: 5rem !default; /* 60px */
|
||||
$common-font-size-650: 6rem !default; /* 72px */
|
||||
$common-font-size-700: 7rem !default; /* 84px */
|
||||
|
||||
/* Value Common weight name (https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) */
|
||||
$common-font-weight-100: 100 !default; /* 100 Thin (Harline) */
|
||||
$common-font-weight-200: 200 !default; /* 200 Extra Light (Ultra Light) */
|
||||
$common-font-weight-300: 300 !default; /* 300 Light */
|
||||
$common-font-weight-400: 400 !default; /* 400 Normal (Regular) */
|
||||
$common-font-weight-500: 500 !default; /* 500 Medium */
|
||||
$common-font-weight-600: 600 !default; /* 600 Semi Bold (Demi Bold) */
|
||||
$common-font-weight-700: 700 !default; /* 700 Bold */
|
||||
$common-font-weight-800: 800 !default; /* 800 Extra Bold (Ultra Bold) */
|
||||
$common-font-weight-900: 900 !default; /* 900 Black (Heavy) */
|
||||
$common-font-weight-950: 950 !default; /* 950 Extra Black (Ultra Black) */
|
||||
|
||||
$common-font-family-base: "Raleway" !default;
|
||||
$common-font-family-fallbacks: "sans-serif", "system-ui" !default;
|
||||
$common-font-family-monospace: monospace !default;
|
||||
$common-font-family-code: $common-font-family-monospace !default;
|
||||
10
css/common/utils/variables/colors/_all.scss
Normal file
10
css/common/utils/variables/colors/_all.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
@import "base";
|
||||
@import "base-palette";
|
||||
@import "semantic-palette";
|
||||
@import "lifecycle-palette";
|
||||
@import "skeleton-palette";
|
||||
102
css/common/utils/variables/colors/_base-palette.scss
Normal file
102
css/common/utils/variables/colors/_base-palette.scss
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* Base color palettes */
|
||||
$common-color-white-100: hsla(0, 0%, 100%, 1) !default;
|
||||
$common-color-white-200: hsla(0, 0%, 94.9%, 1) !default;
|
||||
$common-color-transparent: hsla(0, 0%, 100%, 0) !default;
|
||||
|
||||
$common-color-grey-50: hsla(240, 20%, 99%, 1) !default;
|
||||
$common-color-grey-100: hsla(210, 16.7%, 97.6%, 1) !default;
|
||||
$common-color-grey-200: hsla(207, 22.4%, 90.4%, 1) !default;
|
||||
$common-color-grey-300: hsla(210, 23.5%, 86.7%, 1) !default;
|
||||
$common-color-grey-400: hsla(208, 17.2%, 82.9%, 1) !default;
|
||||
$common-color-grey-500: hsla(209, 23.7%, 74.3%, 1) !default;
|
||||
$common-color-grey-600: hsla(215, 16.6%, 63.3%, 1) !default;
|
||||
$common-color-grey-700: hsla(214, 11.3%, 48.6%, 1) !default;
|
||||
$common-color-grey-800: hsla(215, 16.9%, 30.2%, 1) !default;
|
||||
$common-color-grey-900: hsla(215, 22.4%, 16.7%, 1) !default;
|
||||
$common-color-grey-950: hsla(215, 26.4%, 10.7%, 1) !default;
|
||||
|
||||
$common-color-blue-grey-50: hsla(210, 36%, 96%, 1) !default;
|
||||
$common-color-blue-grey-100: hsla(198, 15.7%, 83.7%, 1) !default;
|
||||
$common-color-blue-grey-200: hsla(200, 15.3%, 73.1%, 1) !default;
|
||||
$common-color-blue-grey-300: hsla(200, 15.6%, 62.4%, 1) !default;
|
||||
$common-color-blue-grey-400: hsla(200, 15.4%, 54.1%, 1) !default;
|
||||
$common-color-blue-grey-500: hsla(200, 18.3%, 46.1%, 1) !default;
|
||||
$common-color-blue-grey-600: hsla(199, 18.4%, 40.4%, 1) !default;
|
||||
$common-color-blue-grey-700: hsla(199, 18.3%, 33.1%, 1) !default;
|
||||
$common-color-blue-grey-800: hsla(200, 17.9%, 26.3%, 1) !default;
|
||||
$common-color-blue-grey-900: hsla(200, 19.1%, 18.4%, 1) !default;
|
||||
$common-color-blue-grey-950: hsla(200, 20.2%, 13.1%, 1) !default;
|
||||
|
||||
$common-color-blue-100: hsla(201, 100%, 96.1%, 1) !default;
|
||||
$common-color-blue-200: hsla(202, 80.6%, 85.9%, 1) !default;
|
||||
$common-color-blue-300: hsla(203, 82%, 76.1%, 1) !default;
|
||||
$common-color-blue-400: hsla(205, 79.3%, 65.9%, 1) !default;
|
||||
$common-color-blue-500: hsla(207, 72.6%, 57.1%, 1) !default;
|
||||
$common-color-blue-600: hsla(209, 61.6%, 50%, 1) !default;
|
||||
$common-color-blue-700: hsla(211, 60.7%, 42.9%, 1) !default;
|
||||
$common-color-blue-800: hsla(213, 49.4%, 34.1%, 1) !default;
|
||||
$common-color-blue-900: hsla(215, 41.3%, 28%, 1) !default;
|
||||
$common-color-blue-950: hsla(215, 36.8%, 23%, 1) !default;
|
||||
|
||||
$common-color-cyan-100: hsla(186, 61.2%, 86.9%, 1) !default;
|
||||
$common-color-cyan-200: hsla(187, 71.6%, 71%, 1) !default;
|
||||
$common-color-cyan-300: hsla(187, 71.2%, 59.2%, 1) !default;
|
||||
$common-color-cyan-400: hsla(187, 70.9%, 50.2%, 1) !default;
|
||||
$common-color-cyan-500: hsla(187, 100%, 41.6%, 1) !default;
|
||||
$common-color-cyan-600: hsla(187, 100%, 37.8%, 1) !default;
|
||||
$common-color-cyan-700: hsla(186, 100%, 32.7%, 1) !default;
|
||||
$common-color-cyan-800: hsla(185, 100%, 28%, 1) !default;
|
||||
$common-color-cyan-900: hsla(182, 100%, 19.6%, 1) !default;
|
||||
$common-color-cyan-950: hsla(180, 100%, 10.6%, 1) !default;
|
||||
|
||||
$common-color-green-100: hsla(88, 50.7%, 85.7%, 1) !default;
|
||||
$common-color-green-200: hsla(88, 50%, 76.5%, 1) !default;
|
||||
$common-color-green-300: hsla(88, 50%, 67.1%, 1) !default;
|
||||
$common-color-green-400: hsla(88, 50.2%, 59.8%, 1) !default;
|
||||
$common-color-green-500: hsla(88, 50.2%, 52.7%, 1) !default;
|
||||
$common-color-green-600: hsla(89, 46.1%, 48%, 1) !default;
|
||||
$common-color-green-700: hsla(92, 47.9%, 42.2%, 1) !default;
|
||||
$common-color-green-800: hsla(95, 49.5%, 36.5%, 1) !default;
|
||||
$common-color-green-900: hsla(103, 55.6%, 26.5%, 1) !default;
|
||||
$common-color-green-950: hsla(108, 59.6%, 21.5%, 1) !default;
|
||||
|
||||
|
||||
$common-color-orange-100: hsla(40, 100%, 97.1%, 1) !default;
|
||||
$common-color-orange-200: hsla(39, 96.4%, 89%, 1) !default;
|
||||
$common-color-orange-300: hsla(38, 93.2%, 76.9%, 1) !default;
|
||||
$common-color-orange-400: hsla(33, 89.9%, 64.9%, 1) !default;
|
||||
$common-color-orange-500: hsla(28, 82.9%, 51.8%, 1) !default;
|
||||
$common-color-orange-600: hsla(24, 74.7%, 49.6%, 1) !default;
|
||||
$common-color-orange-700: hsla(20, 70.7%, 44.1%, 1) !default;
|
||||
$common-color-orange-800: hsla(16, 65.1%, 37.1%, 1) !default;
|
||||
$common-color-orange-900: hsla(14, 60.8%, 30%, 1) !default;
|
||||
$common-color-orange-950: hsla(14, 55.1%, 22%, 1) !default;
|
||||
|
||||
$common-color-red-100: hsla(0, 76.9%, 94.9%, 1) !default;
|
||||
$common-color-red-200: hsla(0, 95.1%, 92%, 1) !default;
|
||||
$common-color-red-300: hsla(0, 97.4%, 84.7%, 1) !default;
|
||||
$common-color-red-400: hsla(0, 95.3%, 74.7%, 1) !default;
|
||||
$common-color-red-500: hsla(0, 87.8%, 67.8%, 1) !default;
|
||||
$common-color-red-600: hsla(0, 76.3%, 57.1%, 1) !default;
|
||||
$common-color-red-700: hsla(0, 60.8%, 48%, 1) !default;
|
||||
$common-color-red-800: hsla(0, 55.8%, 39%, 1) !default;
|
||||
$common-color-red-900: hsla(0, 46.8%, 31%, 1) !default;
|
||||
$common-color-red-950: hsla(0, 42.9%, 20%, 1) !default;
|
||||
|
||||
$common-color-pink-100: hsla(348, 100%, 98%, 1) !default;
|
||||
$common-color-pink-200: hsla(343, 95%, 92%, 1) !default;
|
||||
$common-color-pink-300: hsla(339, 90%, 85%, 1) !default;
|
||||
$common-color-pink-400: hsla(336, 86%, 75%, 1) !default;
|
||||
$common-color-pink-500: hsla(331, 79%, 66%, 1) !default;
|
||||
$common-color-pink-600: hsla(329, 64%, 54%, 1) !default;
|
||||
$common-color-pink-700: hsla(325, 57%, 46%, 1) !default;
|
||||
$common-color-pink-800: hsla(322, 60%, 37%, 1) !default;
|
||||
$common-color-pink-900: hsla(318, 51%, 29%, 1) !default;
|
||||
$common-color-pink-950: hsla(318, 51%, 21%, 1) !default;
|
||||
|
||||
$common-colors: ('grey', 'blue-grey', 'blue', 'cyan', 'green', 'orange', 'red', 'pink', 'primary', 'secondary', 'information', 'success', 'warning', 'danger');
|
||||
12
css/common/utils/variables/colors/_base.scss
Normal file
12
css/common/utils/variables/colors/_base.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* Base helpers for colors */
|
||||
/* - These lightness vars are used to force a certain lightness on HSLA colors */
|
||||
$common-color-base-lightness-100: 93% !default;
|
||||
$common-color-base-lightness-900: 15% !default;
|
||||
|
||||
$common-color-base-opacity-for-lightness-100: 1 !default;
|
||||
$common-color-base-opacity-for-lightness-900: 1 !default;
|
||||
61
css/common/utils/variables/colors/_lifecycle-palette.scss
Normal file
61
css/common/utils/variables/colors/_lifecycle-palette.scss
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* Lifecycle palette */
|
||||
/* - For workflow */
|
||||
$common-lifecycle-new-state-primary-color: $common-color-blue-800 !default;
|
||||
$common-lifecycle-new-state-secondary-color: $common-color-white-100 !default;
|
||||
$common-lifecycle-neutral-state-primary-color: $common-color-blue-800 !default;
|
||||
$common-lifecycle-neutral-state-secondary-color: $common-color-white-100 !default;
|
||||
$common-lifecycle-waiting-state-primary-color: $common-color-orange-400 !default;
|
||||
$common-lifecycle-waiting-state-secondary-color: $common-color-white-100 !default;
|
||||
$common-lifecycle-success-state-primary-color: $common-color-green-700 !default;
|
||||
$common-lifecycle-success-state-secondary-color: $common-color-white-100 !default;
|
||||
$common-lifecycle-failure-state-primary-color: $common-color-pink-700 !default;
|
||||
$common-lifecycle-failure-state-secondary-color: $common-color-white-100 !default;
|
||||
$common-lifecycle-frozen-state-primary-color: $common-color-grey-200 !default;
|
||||
$common-lifecycle-frozen-state-secondary-color: $common-color-grey-700 !default;
|
||||
|
||||
/* - For basic lifecycle */
|
||||
$common-lifecycle-active-state-primary-color: $common-color-green-700 !default;
|
||||
$common-lifecycle-active-state-secondary-color: $common-color-white-100 !default;
|
||||
$common-lifecycle-inactive-state-primary-color: $common-color-orange-400 !default;
|
||||
$common-lifecycle-inactive-state-secondary-color: $common-color-white-100 !default;
|
||||
|
||||
$common-lifecycle-states-colors: (
|
||||
'new': (
|
||||
'primary-color': $common-lifecycle-new-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-new-state-secondary-color,
|
||||
),
|
||||
'neutral': (
|
||||
'primary-color': $common-lifecycle-neutral-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-neutral-state-secondary-color,
|
||||
),
|
||||
'waiting': (
|
||||
'primary-color': $common-lifecycle-waiting-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-waiting-state-secondary-color,
|
||||
),
|
||||
'success': (
|
||||
'primary-color': $common-lifecycle-success-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-success-state-secondary-color,
|
||||
),
|
||||
'failure': (
|
||||
'primary-color': $common-lifecycle-failure-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-failure-state-secondary-color,
|
||||
),
|
||||
'frozen': (
|
||||
'primary-color': $common-lifecycle-frozen-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-frozen-state-secondary-color,
|
||||
),
|
||||
|
||||
'active': (
|
||||
'primary-color': $common-lifecycle-active-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-active-state-secondary-color,
|
||||
),
|
||||
'inactive': (
|
||||
'primary-color': $common-lifecycle-inactive-state-primary-color,
|
||||
'secondary-color': $common-lifecycle-inactive-state-secondary-color,
|
||||
),
|
||||
);
|
||||
100
css/common/utils/variables/colors/_semantic-palette.scss
Normal file
100
css/common/utils/variables/colors/_semantic-palette.scss
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* Semantic palettes */
|
||||
/* - Primary color of the brand */
|
||||
$common-color-primary-100: $common-color-blue-100 !default;
|
||||
$common-color-primary-200: $common-color-blue-200 !default;
|
||||
$common-color-primary-300: $common-color-blue-300 !default;
|
||||
$common-color-primary-400: $common-color-blue-400 !default;
|
||||
$common-color-primary-500: $common-color-blue-500 !default;
|
||||
$common-color-primary-600: $common-color-blue-600 !default;
|
||||
$common-color-primary-700: $common-color-blue-700 !default;
|
||||
$common-color-primary-800: $common-color-blue-800 !default;
|
||||
$common-color-primary-900: $common-color-blue-900 !default;
|
||||
$common-color-primary-950: $common-color-blue-950 !default;
|
||||
|
||||
/* - Secondary color of the brand */
|
||||
$common-color-secondary-100: $common-color-grey-100 !default;
|
||||
$common-color-secondary-200: $common-color-grey-200 !default;
|
||||
$common-color-secondary-300: $common-color-grey-300 !default;
|
||||
$common-color-secondary-400: $common-color-grey-400 !default;
|
||||
$common-color-secondary-500: $common-color-grey-500 !default;
|
||||
$common-color-secondary-600: $common-color-grey-600 !default;
|
||||
$common-color-secondary-700: $common-color-grey-700 !default;
|
||||
$common-color-secondary-800: $common-color-grey-800 !default;
|
||||
$common-color-secondary-900: $common-color-grey-900 !default;
|
||||
$common-color-secondary-950: $common-color-grey-950 !default;
|
||||
|
||||
/* - Information: messages / actions that should neither seem as success, warning or failure */
|
||||
$common-color-information-100: $common-color-blue-100 !default;
|
||||
$common-color-information-200: $common-color-blue-200 !default;
|
||||
$common-color-information-300: $common-color-blue-300 !default;
|
||||
$common-color-information-400: $common-color-blue-400 !default;
|
||||
$common-color-information-500: $common-color-blue-500 !default;
|
||||
$common-color-information-600: $common-color-blue-600 !default;
|
||||
$common-color-information-700: $common-color-blue-700 !default;
|
||||
$common-color-information-800: $common-color-blue-800 !default;
|
||||
$common-color-information-900: $common-color-blue-900 !default;
|
||||
$common-color-information-950: $common-color-blue-950 !default;
|
||||
|
||||
/* Success: messages of success, safe actions, ... */
|
||||
$common-color-success-100: $common-color-green-100 !default;
|
||||
$common-color-success-200: $common-color-green-200 !default;
|
||||
$common-color-success-300: $common-color-green-300 !default;
|
||||
$common-color-success-400: $common-color-green-400 !default;
|
||||
$common-color-success-500: $common-color-green-500 !default;
|
||||
$common-color-success-600: $common-color-green-600 !default;
|
||||
$common-color-success-700: $common-color-green-700 !default;
|
||||
$common-color-success-800: $common-color-green-800 !default;
|
||||
$common-color-success-900: $common-color-green-900 !default;
|
||||
$common-color-success-950: $common-color-green-950 !default;
|
||||
|
||||
/* Warning: messages of warning, actions that would be done carefully, ... */
|
||||
$common-color-warning-100: $common-color-orange-100 !default;
|
||||
$common-color-warning-200: $common-color-orange-200 !default;
|
||||
$common-color-warning-300: $common-color-orange-300 !default;
|
||||
$common-color-warning-400: $common-color-orange-400 !default;
|
||||
$common-color-warning-500: $common-color-orange-500 !default;
|
||||
$common-color-warning-600: $common-color-orange-600 !default;
|
||||
$common-color-warning-700: $common-color-orange-700 !default;
|
||||
$common-color-warning-800: $common-color-orange-800 !default;
|
||||
$common-color-warning-900: $common-color-orange-900 !default;
|
||||
$common-color-warning-950: $common-color-orange-950 !default;
|
||||
|
||||
/* Danger: messages of failure, error, ... */
|
||||
$common-color-error-100: $common-color-red-100 !default;
|
||||
$common-color-error-200: $common-color-red-200 !default;
|
||||
$common-color-error-300: $common-color-red-300 !default;
|
||||
$common-color-error-400: $common-color-red-400 !default;
|
||||
$common-color-error-500: $common-color-red-500 !default;
|
||||
$common-color-error-600: $common-color-red-600 !default;
|
||||
$common-color-error-700: $common-color-red-700 !default;
|
||||
$common-color-error-800: $common-color-red-800 !default;
|
||||
$common-color-error-900: $common-color-red-900 !default;
|
||||
$common-color-error-950: $common-color-red-950 !default;
|
||||
|
||||
/* Danger: messages of danger, actions that cannot be undone, ... */
|
||||
$common-color-danger-100: $common-color-red-100 !default;
|
||||
$common-color-danger-200: $common-color-red-200 !default;
|
||||
$common-color-danger-300: $common-color-red-300 !default;
|
||||
$common-color-danger-400: $common-color-red-400 !default;
|
||||
$common-color-danger-500: $common-color-red-500 !default;
|
||||
$common-color-danger-600: $common-color-red-600 !default;
|
||||
$common-color-danger-700: $common-color-red-700 !default;
|
||||
$common-color-danger-800: $common-color-red-800 !default;
|
||||
$common-color-danger-900: $common-color-red-900 !default;
|
||||
$common-color-danger-950: $common-color-red-950 !default;
|
||||
|
||||
$common-semantic-colors: ('primary', 'secondary', 'information', 'success', 'warning', 'danger');
|
||||
|
||||
$common-caselog-highlight-color-1: $common-color-green-700 !default;
|
||||
$common-caselog-highlight-color-2: $common-color-pink-700 !default;
|
||||
$common-caselog-highlight-color-3: $common-color-orange-400 !default;
|
||||
$common-caselog-highlight-color-4: $common-color-blue-600 !default;
|
||||
$common-caselog-highlight-color-5: $common-color-cyan-200 !default;
|
||||
$common-caselog-highlight-color-6: $common-color-green-200 !default;
|
||||
$common-caselog-highlight-color-7: $common-color-pink-300 !default;
|
||||
$common-caselog-highlight-colors: ($common-caselog-highlight-color-1, $common-caselog-highlight-color-2, $common-caselog-highlight-color-3, $common-caselog-highlight-color-4, $common-caselog-highlight-color-5, $common-caselog-highlight-color-6, $common-caselog-highlight-color-7) !default;
|
||||
17
css/common/utils/variables/colors/_skeleton-palette.scss
Normal file
17
css/common/utils/variables/colors/_skeleton-palette.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2024 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
/* Skeleton palette */
|
||||
/* - Colors used by skeletons svg to display placeholders */
|
||||
|
||||
$common-skeleton-start-color: $common-color-grey-200 !default;
|
||||
$common-skeleton-stop-color: $common-color-blue-grey-100 !default;
|
||||
|
||||
/* CSS variables */
|
||||
/* Skeleton CSS3 variables are not common prefixed as they are not iTop backoffice exclusives*/
|
||||
:root {
|
||||
--skeleton-start-color: #{$common-skeleton-start-color};
|
||||
--skeleton-stop-color: #{$common-skeleton-stop-color};
|
||||
}
|
||||
Reference in New Issue
Block a user