2022-12-13 18:04:07 +00:00
|
|
|
.status-indicator {
|
2022-04-07 19:12:38 +00:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2023-09-22 14:48:21 +00:00
|
|
|
|
2022-04-07 19:12:38 +00:00
|
|
|
&:before {
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
content: " ";
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: $pad-small;
|
|
|
|
|
height: 8px;
|
2024-01-18 15:48:44 +00:00
|
|
|
min-width: 8px;
|
2022-04-07 19:12:38 +00:00
|
|
|
}
|
|
|
|
|
|
2024-08-29 22:51:46 +00:00
|
|
|
// New indicator styles
|
|
|
|
|
&--success {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--warning {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-warning;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-error;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--indeterminate {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-offline;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: We will move away from styling the indicator status depending
|
|
|
|
|
// on the value passed to the component. Instead we have added an `indicator`
|
|
|
|
|
// prop that will allow us explicitly define the desired status. This makes
|
|
|
|
|
// the component more flexible and easier to use. The next two blocks of
|
|
|
|
|
// styles (host status and user status) will be removed in the future.
|
|
|
|
|
|
2022-04-07 19:12:38 +00:00
|
|
|
// host status
|
|
|
|
|
&--online:before,
|
|
|
|
|
&--enabled:before,
|
|
|
|
|
&--on:before {
|
|
|
|
|
background-color: $ui-success;
|
|
|
|
|
}
|
|
|
|
|
&--offline:before,
|
|
|
|
|
&--disabled:before,
|
|
|
|
|
&--off:before {
|
|
|
|
|
background-color: $ui-offline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// user status
|
|
|
|
|
&--active {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&--no-access {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-offline;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&--invite-pending {
|
|
|
|
|
&:before {
|
|
|
|
|
background-color: $ui-warning;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|