N°4460 - Allow to customize skeleton placeholders colors using CSS3 variables
@@ -7,3 +7,4 @@
|
|||||||
@import "base-palette";
|
@import "base-palette";
|
||||||
@import "semantic-palette";
|
@import "semantic-palette";
|
||||||
@import "lifecycle-palette";
|
@import "lifecycle-palette";
|
||||||
|
@import "skeleton-palette";
|
||||||
17
css/backoffice/utils/variables/colors/_skeleton-palette.scss
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* @copyright Copyright (C) 2010-2023 Combodo SARL
|
||||||
|
* @license http://opensource.org/licenses/AGPL-3.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Skeleton palette */
|
||||||
|
/* - Colors used by skeletons svg to display placeholders */
|
||||||
|
|
||||||
|
$ibo-skeleton-start-color: $ibo-color-grey-200 !default;
|
||||||
|
$ibo-skeleton-stop-color: $ibo-color-blue-grey-100 !default;
|
||||||
|
|
||||||
|
/* CSS variables */
|
||||||
|
/* Skeleton CSS3 variables are not ibo prefixed as they are not iTop backoffice exclusives*/
|
||||||
|
:root {
|
||||||
|
--skeleton-start-color: #{$ibo-skeleton-start-color};
|
||||||
|
--skeleton-stop-color: #{$ibo-skeleton-stop-color};
|
||||||
|
}
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<linearGradient id="dashboard-fill">
|
<linearGradient id="dashboard-fill">
|
||||||
<stop
|
<stop
|
||||||
offset="0.599964"
|
offset="0.599964"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="1.59996"
|
offset="1.59996"
|
||||||
stop-color="#ecebeb"
|
stop-color="var(--skeleton-stop-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="2.59996"
|
offset="2.59996"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -39,7 +39,7 @@
|
|||||||
<linearGradient id="list-fill">
|
<linearGradient id="list-fill">
|
||||||
<stop
|
<stop
|
||||||
offset="0.599964"
|
offset="0.599964"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="1.59996"
|
offset="1.59996"
|
||||||
stop-color="#ecebeb"
|
stop-color="var(--skeleton-stop-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="2.59996"
|
offset="2.59996"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -44,7 +44,7 @@
|
|||||||
<linearGradient id="object-fill">
|
<linearGradient id="object-fill">
|
||||||
<stop
|
<stop
|
||||||
offset="0.599964"
|
offset="0.599964"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="1.59996"
|
offset="1.59996"
|
||||||
stop-color="#ecebeb"
|
stop-color="var(--skeleton-stop-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="2.59996"
|
offset="2.59996"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -39,7 +39,7 @@
|
|||||||
<linearGradient id="misc-fill">
|
<linearGradient id="misc-fill">
|
||||||
<stop
|
<stop
|
||||||
offset="0.599964"
|
offset="0.599964"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="1.59996"
|
offset="1.59996"
|
||||||
stop-color="#ecebeb"
|
stop-color="var(--skeleton-stop-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
</stop>
|
</stop>
|
||||||
<stop
|
<stop
|
||||||
offset="2.59996"
|
offset="2.59996"
|
||||||
stop-color="#f3f3f3"
|
stop-color="var(--skeleton-start-color)"
|
||||||
stop-opacity="1"
|
stop-opacity="1"
|
||||||
>
|
>
|
||||||
<animate
|
<animate
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.8 KiB |