blob: b834d6c5ea8b4b65459b002ac4574ad248afdb0f [file] [edit]
// Copyright (C) 2024 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.
@import "../assets/typefaces";
@import "../assets/theme";
@layer pf-widgets {
.pf-icon {
@include icon;
@include hidden-while-fonts-loading;
&.pf-filled {
@include icon-filled;
}
line-height: inherit;
font-size: inherit;
vertical-align: bottom;
user-select: none; // We usually don't expect icons to be selectable.
&.pf-intent-primary {
color: var(--pf-color-primary);
}
&.pf-intent-danger {
color: var(--pf-color-danger);
}
&.pf-intent-success {
color: var(--pf-color-success);
}
&.pf-intent-warning {
color: var(--pf-color-warning);
}
}
}