Spaces:
Running
Running
| /** | |
| * | |
| * Copyright 2023-present InspectorRAGet Team | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, | |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| * See the License for the specific language governing permissions and | |
| * limitations under the License. | |
| * | |
| **/ | |
| @use '@carbon/react/scss/spacing' as *; | |
| @use '@carbon/colors' as *; | |
| .wrapper { | |
| height: 52px; | |
| width: 52px; | |
| border-radius: 50%; | |
| background-color: var(--cds-layer-active-01); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| overflow: hidden; | |
| object-fit: none; | |
| // Reserve space for the selection border so layout doesn't shift on select | |
| border: 2px solid transparent; | |
| transition: border-color 0.1s ease; | |
| } | |
| .selected { | |
| border-color: var(--cds-border-interactive); | |
| } | |
| // Status ring via outline so it sits outside the selection border without layout shift | |
| .statusPass { | |
| outline: 3px solid var(--cds-support-success); | |
| outline-offset: 2px; | |
| } | |
| .statusWarn { | |
| outline: 3px solid var(--cds-support-warning); | |
| outline-offset: 2px; | |
| } | |
| .statusFail { | |
| outline: 3px solid var(--cds-support-error); | |
| outline-offset: 2px; | |
| } | |
| .wrapper img { | |
| height: 52px; | |
| width: 52px; | |
| } | |