blob: 5bb9af2e4b7b03cd3919bdbaea8e8a6987fb1555 [file] [edit]
// 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.
@import "../assets/theme";
.pf-select {
display: inline;
font-family: var(--pf-font-compact);
font-size: inherit;
outline: none; // Disable the default outline
border: solid 1px var(--pf-color-border-secondary);
background: var(--pf-color-void);
color: inherit;
border-radius: $border-radius;
padding: 2px;
cursor: pointer;
// Very opinionated min width for a select input
// ... any smaller and it stops looking like a select input!
min-width: 80px;
&:hover {
border-color: var(--pf-color-border);
}
&:focus {
border-color: var(--pf-color-primary);
}
&[disabled] {
opacity: 0.5;
pointer-events: none;
cursor: not-allowed;
}
}