1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/+storage/storage-mixins.scss
Janne Savolainen 589472c2b5
Shorten license header to reduce amount of clutter in top of the files (#4709)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-18 10:18:10 +02:00

46 lines
939 B
SCSS

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
// PersistentVolumes
$pv-bound: var(--colorOk);
$pv-available: var(--colorSuccess);
$pv-released: var(--colorWarning);
$pv-failed: var(--colorError);
// PersistentVolumeClaims
$pvc-bound: var(--colorOk);
$pvc-pending: var(--colorWarning);
$pvc-lost: var(--colorError);
// PersistentVolume Statuses
$pv-status-color-list: (
bound: $pv-bound,
available: $pv-available,
released: $pv-released,
failed: $pv-failed
);
$pvc-status-color-list: (
bound: $pvc-bound,
pending: $pvc-pending,
lost: $pvc-lost
);
@mixin pv-status-colors {
@each $condition, $color in $pv-status-color-list {
&.#{$condition} {
color: $color;
}
}
}
@mixin pvc-status-colors {
@each $condition, $color in $pvc-status-color-list {
&.#{$condition} {
color: $color;
}
}
}