added --loading variables

This commit is contained in:
2023-05-11 08:12:32 +10:00
parent f32655c156
commit cdccde528e
2 changed files with 10 additions and 2 deletions

View File

@@ -167,6 +167,10 @@ $spacing: (
// Editor
--editor-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
--editor-backdrop: rgba(255, 255, 255, 0.75);
// Loading
--loading-color: var(--base-color-lighter);
--loading-overlay-color: rgba(0, 0, 0, 0.4);
}
// --primary-color-hover: #f1fdff;
@@ -205,5 +209,9 @@ $spacing: (
// Editor
--editor-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
--editor-backdrop: rgba(0, 0, 0, 0.75);
// Loading
--loading-color: var(--base-color-lighter);
--loading-overlay-color: rgba(0, 0, 0, 0.4);
}
}

View File

@@ -43,7 +43,7 @@ const props = defineProps({
bottom: 0;
right: 0;
z-index: 10000;
background-color: rgba(0, 0, 0, 0.4);
background-color: var(--loading-overlay-color);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
}
@@ -56,7 +56,7 @@ const props = defineProps({
}
.loading-box {
background-color: #fff;
background-color: var(--loading-color);
padding: 24px 48px;
border-radius: 10px;
box-shadow: var(--base-shadow);