blob: 9790dd01555909cfc41ed00d2cd1d528623603f5 [file] [log] [blame]
// 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.
.panel-container {
position: relative;
// display: grid;
// grid-template-columns: 1fr;
// grid-template-rows: 1fr;
// grid-template-areas: "space";
}
// In the scrolling case, since the canvas is overdrawn and continuously
// repositioned, we need the canvas to be in a div with overflow hidden and
// height equaling the total height of the content to prevent scrolling
// height from growing.
.scroll-limiter {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
height: 100%;
}
canvas.main-canvas {
z-index: -1;
}
.panels {
position: relative;
user-select: none;
}
.panel {
position: relative; // Otherwise canvas covers panel dom.
&.sticky {
position: sticky;
z-index: 3;
top: 0;
background-color: hsl(215, 22%, 19%);
}
}