mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
46 lines
939 B
SCSS
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;
|
|
}
|
|
}
|
|
}
|