waveterm/frontend/app/app.less

94 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-06-12 02:42:10 +02:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
@import "./reset.less";
@import "./theme.less";
body {
display: flex;
flex-direction: row;
width: 100vw;
height: 100vh;
color: var(--main-text-color);
font: var(--base-font);
overflow: hidden;
background: var(--main-bg-color);
2024-06-21 21:56:07 +02:00
-webkit-font-smoothing: auto;
backface-visibility: hidden;
transform: translateZ(0);
2024-06-12 02:42:10 +02:00
}
*::-webkit-scrollbar {
width: 4px;
height: 4px;
}
*::-webkit-scrollbar-track {
2024-07-09 07:31:38 +02:00
background-color: var(--scrollbar-background-color);
2024-06-12 02:42:10 +02:00
}
*::-webkit-scrollbar-thumb {
2024-07-09 07:31:38 +02:00
background-color: var(--scrollbar-thumb-color);
2024-06-12 02:42:10 +02:00
border-radius: 4px;
margin: 0 1px 0 1px;
}
*::-webkit-scrollbar-thumb:hover {
2024-07-09 07:31:38 +02:00
background-color: var(--scrollbar-thumb-hover-color);
2024-06-12 02:42:10 +02:00
}
.flex-spacer {
flex-grow: 1;
}
.text-fixed {
font: var(--fixed-font);
}
#main,
.mainapp {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
.app-background {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
2024-06-12 02:42:10 +02:00
}
.error-boundary {
color: var(--error-color);
}
/* OverlayScrollbars styling */
.os-scrollbar {
--os-handle-bg: var(--scrollbar-thumb-color);
--os-handle-bg-hover: var(--scrollbar-thumb-hover-color);
--os-handle-bg-active: var(--scrollbar-thumb-active-color);
}
2024-07-09 07:31:38 +02:00
.scrollbar-hide-until-hover {
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track {
display: none;
}
*::-webkit-scrollbar-corner {
display: none;
}
*:hover::-webkit-scrollbar-thumb {
display: block;
}
}
a {
color: var(--accent-color);
}