| // Copyright (C) 2025 The Android Open Source Project | |
| // | |
| // 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 "../assets/theme" as *; | |
| .pf-callout { | |
| @mixin color-theme($base-color) { | |
| color: $base-color; | |
| background: color-mix(in srgb, $base-color 15%, transparent); | |
| } | |
| display: flex; | |
| align-items: start; | |
| background: var(--pf-color-background-secondary); | |
| border-radius: $border-radius; | |
| padding: 4px 6px; | |
| border: solid 1px color-mix(in srgb, currentColor, transparent 50%); | |
| gap: 0.2em; | |
| & > .pf-left-icon { | |
| margin-left: -0.2em; | |
| align-items: baseline; | |
| } | |
| &__content { | |
| flex: 1; | |
| } | |
| &.pf-intent-primary { | |
| @include color-theme(var(--pf-color-primary)); | |
| } | |
| &.pf-intent-danger { | |
| @include color-theme(var(--pf-color-danger)); | |
| } | |
| &.pf-intent-success { | |
| @include color-theme(var(--pf-color-success)); | |
| } | |
| &.pf-intent-warning { | |
| @include color-theme(var(--pf-color-warning)); | |
| } | |
| } |