blob: 67d5b1e5b9a96890bfd32c73bfb97738171a4293 [file] [edit]
// 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.
.pf-hotkey-context {
position: relative;
// Disable the default focus outline.
outline: none;
&--show-focus-ring {
// Show a little ring around the context element when it has focus.
&:focus-within {
&::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
box-shadow: inset 0 0 0 2px var(--pf-color-accent);
// This shouldn't be necessary - we should avoid using z-index in other
// places such as the sidebar then we can remove this.
z-index: 10;
}
}
}
&--fill-height {
height: 100%;
}
}