Files

138 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

2024-06-04 13:05:44 -07:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
.tile-layout {
position: relative;
height: 100%;
width: 100%;
overflow: hidden;
2024-08-14 18:40:41 -07:00
--gap-size-px: 5px;
2024-06-04 13:05:44 -07:00
.overlay-container,
.display-container,
.placeholder-container {
position: absolute;
display: flex;
top: 0;
left: 0;
height: 100%;
width: 100%;
min-height: 4rem;
min-width: 4rem;
2024-06-04 13:05:44 -07:00
}
2024-08-14 18:40:41 -07:00
.display-container {
z-index: var(--zindex-layout-display-container);
}
2024-06-04 13:05:44 -07:00
.placeholder-container {
z-index: var(--zindex-layout-placeholder-container);
2024-06-04 13:05:44 -07:00
}
.overlay-container {
z-index: var(--zindex-layout-overlay-container);
2024-06-04 13:05:44 -07:00
}
.overlay-node {
display: flex;
flex: 0 1 auto;
}
2024-06-04 13:05:44 -07:00
2024-08-14 18:40:41 -07:00
.resize-handle {
z-index: var(--zindex-layout-resize-handle);
2024-08-30 12:31:03 -07:00
.line {
visibility: hidden;
}
2024-08-14 18:40:41 -07:00
&.flex-row {
cursor: ew-resize;
.line {
height: 100%;
2024-09-04 22:07:47 -07:00
width: calc(50% + 1px);
border-right: 2px solid var(--accent-color);
}
}
2024-08-14 18:40:41 -07:00
&.flex-column {
cursor: ns-resize;
.line {
2024-09-04 22:07:47 -07:00
height: calc(50% + 1px);
2024-08-14 18:40:41 -07:00
border-bottom: 2px solid var(--accent-color);
}
2024-06-04 13:05:44 -07:00
}
2024-08-30 12:31:03 -07:00
&:hover .line {
visibility: visible;
// Ignore the prefers-reduced-motion override, since we are not applying a true animation here, just a delay.
transition-property: visibility !important;
transition-delay: var(--animation-time-s) !important;
2024-08-30 12:31:03 -07:00
}
2024-06-04 13:05:44 -07:00
}
.tile-node {
2024-09-04 15:37:16 -07:00
border-radius: calc(var(--block-border-radius) + 2px);
2024-07-30 10:59:53 -07:00
overflow: hidden;
2024-08-14 18:40:41 -07:00
width: 100%;
height: 100%;
2024-07-30 10:59:53 -07:00
&.dragging {
filter: blur(8px);
}
2024-09-04 23:44:23 -07:00
&.resizing {
border: 1px solid var(--accent-color);
backdrop-filter: blur(8px);
}
2024-07-30 10:59:53 -07:00
&.magnified {
background-color: var(--block-bg-solid-color);
z-index: var(--zindex-layout-magnified-node);
}
&.last-magnified {
z-index: var(--zindex-layout-last-magnified-node);
2024-07-30 10:59:53 -07:00
}
2024-09-04 23:43:26 -07:00
.tile-leaf {
overflow: hidden;
}
.tile-preview-container {
position: absolute;
top: 10000px;
2024-06-11 14:51:35 -07:00
white-space: nowrap !important;
user-select: none;
-webkit-user-select: none;
.tile-preview {
width: 100%;
height: 100%;
}
}
2024-08-14 18:40:41 -07:00
2024-09-04 23:43:26 -07:00
&:not(:only-child, .magnified) .tile-leaf {
padding: calc(var(--gap-size-px) / 2);
2024-08-27 13:41:36 -07:00
}
2024-06-04 13:05:44 -07:00
}
&.animate {
.tile-node,
.placeholder {
2024-08-27 13:41:36 -07:00
transition-duration: var(--animation-time-s);
transition-timing-function: linear;
2024-07-30 10:59:53 -07:00
transition-property: transform, width, height, background-color;
2024-06-04 13:05:44 -07:00
}
}
.tile-leaf,
.overlay-leaf {
height: 100%;
width: 100%;
2024-06-04 13:05:44 -07:00
}
.placeholder {
background-color: var(--accent-color);
opacity: 0.5;
2024-07-30 10:59:53 -07:00
border-radius: calc(var(--block-border-radius) + 2px);
2024-06-04 13:05:44 -07:00
}
}