1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15.pf-panel-container { 16 // We need to drag over this element for various reasons, so just disable 17 // selection over the entire thing. 18 // TODO(stevegolton): If we enable this, we can get scrolling while dragging, 19 // so we might want to enable this here and disable selection in titles 20 // instead. 21 user-select: none; 22 23 .pf-panel-stack { 24 position: relative; // Position overlay relative to this element 25 26 .pf-overlay { 27 position: absolute; 28 inset: 0; // Shorthand for [top, left, right, bottom]: 0 29 pointer-events: none; // Make this overlay invisible to pointer events 30 } 31 } 32} 33