waveterm/frontend/app/app.scss

157 lines
3.0 KiB
SCSS
Raw Normal View History

2024-06-12 02:42:10 +02:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
@use "reset.scss";
@use "theme.scss";
2024-06-12 02:42:10 +02:00
body {
display: flex;
flex-direction: row;
width: 100vw;
height: 100vh;
color: var(--main-text-color);
font: var(--base-font);
overflow: hidden;
background: rgb(from var(--main-bg-color) r g b / var(--window-opacity));
-webkit-font-smoothing: auto;
backface-visibility: hidden;
transform: translateZ(0);
2024-06-12 02:42:10 +02:00
}
2024-10-17 23:34:02 +02:00
.is-transparent {
background-color: transparent;
2024-10-17 23:34:02 +02:00
}
a.plain-link {
color: var(--secondary-text-color);
}
2024-06-12 02:42:10 +02:00
*::-webkit-scrollbar {
width: 4px;
height: 4px;
2024-06-12 02:42:10 +02:00
}
*::-webkit-scrollbar-track {
background-color: var(--scrollbar-background-color);
2024-06-12 02:42:10 +02:00
}
*::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-color);
border-radius: 4px;
margin: 0 1px 0 1px;
2024-06-12 02:42:10 +02:00
}
*::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover-color);
2024-06-12 02:42:10 +02:00
}
.flex-spacer {
flex-grow: 1;
2024-06-12 02:42:10 +02:00
}
.text-fixed {
font: var(--fixed-font);
2024-06-12 02:42:10 +02:00
}
#main,
.mainapp {
display: flex;
flex-direction: column;
2024-06-12 02:42:10 +02:00
width: 100%;
height: 100%;
.app-background {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: var(--zindex-app-background);
}
2024-06-12 02:42:10 +02:00
}
.error-boundary {
color: var(--error-color);
2024-06-12 02:42:10 +02:00
}
.error-color {
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;
}
2024-07-09 07:31:38 +02:00
*::-webkit-scrollbar-corner {
display: none;
}
2024-07-09 07:31:38 +02:00
*:hover::-webkit-scrollbar-thumb {
display: block;
}
2024-07-09 07:31:38 +02:00
}
a {
color: var(--accent-color);
}
.prefers-reduced-motion {
* {
transition-duration: none !important;
transition-timing-function: none !important;
transition-property: none !important;
transition-delay: none !important;
}
}
2024-09-13 01:02:18 +02:00
.flash-error-container {
position: absolute;
right: 10px;
bottom: 10px;
z-index: var(--zindex-flash-error-container);
2024-09-13 01:02:18 +02:00
display: flex;
flex-direction: column;
gap: 10px;
.flash-error {
background: var(--error-color);
color: var(--main-text-color);
border-radius: 4px;
padding: 10px;
display: flex;
flex-direction: column;
width: 280px;
border: 1px solid transparent;
max-height: 100px;
cursor: pointer;
.flash-error-scroll {
overflow-y: auto;
display: flex;
flex-direction: column;
}
&.hovered {
border: 1px solid var(--main-text-color);
}
.flash-error-title {
font-weight: bold;
margin-bottom: 5px;
}
.flash-error-message {
}
2024-09-13 01:02:18 +02:00
}
}