blob: 35d9410ad5dddca3c86b466eae6dcfaa07a5f44a [file]
// Copyright (C) 2023 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-form {
display: flex;
flex-direction: column;
gap: 8px;
&__button-bar {
display: flex;
justify-content: right;
flex-direction: row-reverse;
align-items: baseline;
gap: 4px;
}
&__label {
font-size: smaller;
font-weight: 500;
margin-bottom: -4px;
}
&__grid {
display: grid;
grid-template-columns: auto 1fr;
gap: 8px;
align-items: baseline;
}
&__section {
border: 1px solid var(--pf-color-border);
display: flex;
flex-direction: column;
border-radius: 4px;
padding: 8px;
margin: 0; // Reset default fieldset margin
gap: 8px;
&-label {
font-weight: 500;
text-transform: uppercase;
font-size: 0.7em;
color: var(--pf-color-text-muted);
padding: 0 2px;
}
}
.pf-select:invalid {
border-color: var(--pf-color-danger);
&:active,
&:focus {
border-color: var(--pf-color-danger);
}
}
.pf-text-input:has(input:invalid) {
border-color: var(--pf-color-danger);
&:has(input:focus) {
border-color: var(--pf-color-danger);
}
}
}