Fix SCSS formatting after migration (#1382)

The migration tool we used didn't take into account our formatting
standards so I'm bulk-formatting the SCSS files to bring them back up to
our standards. Basically this just changes the tab size for all the
files.
This commit is contained in:
Evan Simkowitz 2024-12-04 15:49:44 -05:00 committed by GitHub
parent 60031ef8c0
commit 0145e8fe99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
53 changed files with 3023 additions and 3023 deletions

View File

@ -5,148 +5,148 @@
@use "theme.scss"; @use "theme.scss";
body { body {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
color: var(--main-text-color); color: var(--main-text-color);
font: var(--base-font); font: var(--base-font);
overflow: hidden; overflow: hidden;
background: rgb(from var(--main-bg-color) r g b / var(--window-opacity)); background: rgb(from var(--main-bg-color) r g b / var(--window-opacity));
-webkit-font-smoothing: auto; -webkit-font-smoothing: auto;
backface-visibility: hidden; backface-visibility: hidden;
transform: translateZ(0); transform: translateZ(0);
} }
.is-transparent { .is-transparent {
background-color: transparent; background-color: transparent;
} }
a.plain-link { a.plain-link {
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
*::-webkit-scrollbar { *::-webkit-scrollbar {
width: 4px; width: 4px;
height: 4px; height: 4px;
} }
*::-webkit-scrollbar-track { *::-webkit-scrollbar-track {
background-color: var(--scrollbar-background-color); background-color: var(--scrollbar-background-color);
} }
*::-webkit-scrollbar-thumb { *::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-color); background-color: var(--scrollbar-thumb-color);
border-radius: 4px; border-radius: 4px;
margin: 0 1px 0 1px; margin: 0 1px 0 1px;
} }
*::-webkit-scrollbar-thumb:hover { *::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover-color); background-color: var(--scrollbar-thumb-hover-color);
} }
.flex-spacer { .flex-spacer {
flex-grow: 1; flex-grow: 1;
} }
.text-fixed { .text-fixed {
font: var(--fixed-font); font: var(--fixed-font);
} }
#main, #main,
.mainapp { .mainapp {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%;
height: 100%;
.app-background {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: var(--zindex-app-background);
.app-background { }
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: var(--zindex-app-background);
}
} }
.error-boundary { .error-boundary {
color: var(--error-color); color: var(--error-color);
} }
/* OverlayScrollbars styling */ /* OverlayScrollbars styling */
.os-scrollbar { .os-scrollbar {
--os-handle-bg: var(--scrollbar-thumb-color); --os-handle-bg: var(--scrollbar-thumb-color);
--os-handle-bg-hover: var(--scrollbar-thumb-hover-color); --os-handle-bg-hover: var(--scrollbar-thumb-hover-color);
--os-handle-bg-active: var(--scrollbar-thumb-active-color); --os-handle-bg-active: var(--scrollbar-thumb-active-color);
} }
.scrollbar-hide-until-hover { .scrollbar-hide-until-hover {
*::-webkit-scrollbar-thumb, *::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track { *::-webkit-scrollbar-track {
display: none; display: none;
} }
*::-webkit-scrollbar-corner { *::-webkit-scrollbar-corner {
display: none; display: none;
} }
*:hover::-webkit-scrollbar-thumb { *:hover::-webkit-scrollbar-thumb {
display: block; display: block;
} }
} }
a { a {
color: var(--accent-color); color: var(--accent-color);
} }
.prefers-reduced-motion { .prefers-reduced-motion {
* { * {
transition-duration: none !important; transition-duration: none !important;
transition-timing-function: none !important; transition-timing-function: none !important;
transition-property: none !important; transition-property: none !important;
transition-delay: none !important; transition-delay: none !important;
} }
} }
.flash-error-container { .flash-error-container {
position: absolute; position: absolute;
right: 10px; right: 10px;
bottom: 10px; bottom: 10px;
z-index: var(--zindex-flash-error-container); z-index: var(--zindex-flash-error-container);
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; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; width: 280px;
border: 1px solid transparent;
max-height: 100px;
cursor: pointer;
.flash-error { .flash-error-scroll {
background: var(--error-color); overflow-y: auto;
color: var(--main-text-color); display: flex;
border-radius: 4px; flex-direction: column;
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 {
}
} }
&.hovered {
border: 1px solid var(--main-text-color);
}
.flash-error-title {
font-weight: bold;
margin-bottom: 5px;
}
.flash-error-message {
}
}
} }

View File

@ -4,423 +4,423 @@
@use "../mixins.scss"; @use "../mixins.scss";
.block { .block {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
overflow: hidden;
min-height: 0;
border-radius: var(--block-border-radius);
.block-frame-icon {
margin-right: 0.5em;
}
.block-content {
position: relative;
display: flex; display: flex;
flex-direction: column; flex-grow: 1;
align-items: center;
justify-content: center;
width: 100%; width: 100%;
height: 100%;
overflow: hidden; overflow: hidden;
min-height: 0; min-height: 0;
border-radius: var(--block-border-radius); padding: 5px;
.block-frame-icon { &.block-no-padding {
margin-right: 0.5em; padding: 0;
} }
}
.block-content { .block-focuselem {
position: relative; height: 0;
width: 0;
input {
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
}
.block-header-animation-wrap {
max-height: 0;
transition:
max-height 0.3s ease-out,
opacity 0.3s ease-out;
overflow: hidden;
position: absolute;
top: 0;
width: 100%;
height: 30px;
z-index: var(--zindex-header-hover);
&.is-showing {
max-height: 30px;
}
}
&.block-preview.block-frame-default .block-frame-default-inner .block-frame-default-header {
background-color: rgb(from var(--block-bg-color) r g b / 70%);
}
&.block-frame-default {
position: relative;
padding: 1px;
.block-frame-default-inner {
background-color: var(--block-bg-color);
width: 100%;
height: 100%;
border-radius: var(--block-border-radius);
display: flex;
flex-direction: column;
.block-frame-default-header {
max-height: var(--header-height);
min-height: var(--header-height);
display: flex; display: flex;
flex-grow: 1; padding: 4px 5px 4px 10px;
width: 100%; align-items: center;
overflow: hidden; gap: 8px;
min-height: 0; font: var(--header-font);
padding: 5px; border-bottom: 1px solid var(--border-color);
border-radius: var(--block-border-radius) var(--block-border-radius) 0 0;
&.block-no-padding { .block-frame-default-header-iconview {
padding: 0; display: flex;
flex-shrink: 3;
min-width: 17px;
align-items: center;
gap: 8px;
overflow-x: hidden;
.block-frame-view-icon {
font-size: var(--header-icon-size);
opacity: 0.5;
width: var(--header-icon-width);
i {
margin-right: 0;
}
}
.block-frame-view-type {
overflow-x: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
flex-shrink: 1;
min-width: 0;
}
.block-frame-blockid {
opacity: 0.5;
}
} }
}
.block-focuselem { .block-frame-text {
height: 0; @include mixins.ellipsis();
width: 0; font: var(--fixed-font);
input { font-size: 11px;
width: 0; opacity: 0.7;
height: 0; flex-grow: 1;
opacity: 0;
pointer-events: none; &.preview-filename {
direction: rtl;
text-align: left;
span {
cursor: pointer;
&:hover {
background: var(--highlight-bg-color);
}
}
}
} }
}
.block-header-animation-wrap { .connection-button {
max-height: 0; display: flex;
transition: align-items: center;
max-height 0.3s ease-out, flex-wrap: nowrap;
opacity 0.3s ease-out; overflow: hidden;
overflow: hidden; text-overflow: ellipsis;
position: absolute; min-width: 0;
top: 0; font-weight: 400;
width: 100%; color: var(--main-text-color);
height: 30px; border-radius: 2px;
z-index: var(--zindex-header-hover); padding: auto;
&.is-showing { &:hover {
max-height: 30px; background-color: var(--highlight-bg-color);
}
.connection-icon-box {
flex: 1 1 auto;
overflow: hidden;
}
.connection-name {
flex: 1 2 auto;
overflow: hidden;
padding-right: 4px;
}
.connecting-svg {
position: relative;
top: 5px;
left: 9px;
svg {
fill: var(--warning-color);
}
}
} }
}
&.block-preview.block-frame-default .block-frame-default-inner .block-frame-default-header { .block-frame-textelems-wrapper {
background-color: rgb(from var(--block-bg-color) r g b / 70%); display: flex;
} flex: 1 2 auto;
min-width: 0;
gap: 8px;
align-items: center;
&.block-frame-default { .block-frame-div {
position: relative; display: flex;
padding: 1px;
.block-frame-default-inner {
background-color: var(--block-bg-color);
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: var(--block-border-radius); justify-content: space-between;
display: flex;
flex-direction: column;
.block-frame-default-header {
max-height: var(--header-height);
min-height: var(--header-height);
display: flex;
padding: 4px 5px 4px 10px;
align-items: center;
gap: 8px;
font: var(--header-font);
border-bottom: 1px solid var(--border-color);
border-radius: var(--block-border-radius) var(--block-border-radius) 0 0;
.block-frame-default-header-iconview {
display: flex;
flex-shrink: 3;
min-width: 17px;
align-items: center;
gap: 8px;
overflow-x: hidden;
.block-frame-view-icon {
font-size: var(--header-icon-size);
opacity: 0.5;
width: var(--header-icon-width);
i {
margin-right: 0;
}
}
.block-frame-view-type {
overflow-x: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
flex-shrink: 1;
min-width: 0;
}
.block-frame-blockid {
opacity: 0.5;
}
}
.block-frame-text {
@include mixins.ellipsis();
font: var(--fixed-font);
font-size: 11px;
opacity: 0.7;
flex-grow: 1;
&.preview-filename {
direction: rtl;
text-align: left;
span {
cursor: pointer;
&:hover {
background: var(--highlight-bg-color);
}
}
}
}
.connection-button {
display: flex;
align-items: center;
flex-wrap: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
font-weight: 400;
color: var(--main-text-color);
border-radius: 2px;
padding: auto;
&:hover {
background-color: var(--highlight-bg-color);
}
.connection-icon-box {
flex: 1 1 auto;
overflow: hidden;
}
.connection-name {
flex: 1 2 auto;
overflow: hidden;
padding-right: 4px;
}
.connecting-svg {
position: relative;
top: 5px;
left: 9px;
svg {
fill: var(--warning-color);
}
}
}
.block-frame-textelems-wrapper {
display: flex;
flex: 1 2 auto;
min-width: 0;
gap: 8px;
align-items: center;
.block-frame-div {
display: flex;
width: 100%;
height: 100%;
justify-content: space-between;
align-items: center;
.input-wrapper {
flex-grow: 1;
input {
background-color: transparent;
outline: none;
border: none;
color: var(--main-text-color);
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
opacity: 0.7;
font-weight: 500;
}
}
.button {
margin-left: 3px;
}
// webview specific. for refresh button
.iconbutton {
height: 100%;
width: 27px;
display: flex;
align-items: center;
justify-content: center;
}
}
.menubutton {
.button {
font-size: 11px;
}
}
}
.block-frame-end-icons {
display: flex;
flex-shrink: 0;
.iconbutton {
display: flex;
width: 24px;
padding: 4px 6px;
align-items: center;
}
.block-frame-magnify {
justify-content: center;
align-items: center;
padding: 0;
svg {
#arrow1,
#arrow2 {
fill: var(--main-text-color);
}
}
}
}
}
.block-frame-preview {
background-color: rgb(from var(--block-bg-color) r g b / 70%);
width: 100%;
flex-grow: 1;
border-bottom-left-radius: var(--block-border-radius);
border-bottom-right-radius: var(--block-border-radius);
display: flex;
align-items: center;
justify-content: center;
.iconbutton {
opacity: 0.7;
font-size: 45px;
margin: -30px 0 0 0;
}
}
}
--magnified-block-opacity: 0.6;
--magnified-block-blur: 10px;
&.magnified,
&.ephemeral {
background-color: rgb(from var(--block-bg-color) r g b / var(--magnified-block-opacity));
backdrop-filter: blur(var(--magnified-block-blur));
}
.connstatus-overlay {
position: absolute;
top: calc(var(--header-height) + 6px);
left: 6px;
right: 6px;
z-index: var(--zindex-block-mask-inner);
display: flex;
align-items: center; align-items: center;
justify-content: flex-start;
flex-direction: column;
overflow: hidden;
background: var(--conn-status-overlay-bg-color);
backdrop-filter: blur(50px);
border-radius: 6px;
box-shadow: 0px 13px 16px 0px rgb(from var(--block-bg-color) r g b / 40%);
.connstatus-content { .input-wrapper {
display: flex; flex-grow: 1;
flex-direction: row;
justify-content: space-between; input {
padding: 10px 8px 10px 12px; background-color: transparent;
outline: none;
border: none;
color: var(--main-text-color);
width: 100%; width: 100%;
font: var(--base-font); white-space: nowrap;
color: var(--secondary-text-color); overflow: hidden;
gap: 12px; text-overflow: ellipsis;
box-sizing: border-box;
.connstatus-status-icon-wrapper { opacity: 0.7;
display: flex; font-weight: 500;
flex-direction: row; }
align-items: center;
gap: 12px;
flex-grow: 1;
min-width: 0;
&.has-error {
align-items: flex-start;
}
> i {
color: #e6ba1e;
font-size: 16px;
}
.connstatus-status {
@include mixins.ellipsis();
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
flex-grow: 1;
width: 100%;
.connstatus-status-text {
@include mixins.ellipsis();
max-width: 100%;
font-size: 11px;
font-style: normal;
font-weight: 600;
line-height: 16px;
letter-spacing: 0.11px;
color: white;
}
.connstatus-error {
@include mixins.ellipsis();
width: 94%;
font-size: 11px;
font-style: normal;
font-weight: 400;
line-height: 15px;
letter-spacing: 0.11px;
}
}
}
.connstatus-actions {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 6px;
button {
i {
font-size: 11px;
opacity: 0.7;
}
}
.button:last-child {
margin-top: 1.5px;
}
}
} }
.button {
margin-left: 3px;
}
// webview specific. for refresh button
.iconbutton {
height: 100%;
width: 27px;
display: flex;
align-items: center;
justify-content: center;
}
}
.menubutton {
.button {
font-size: 11px;
}
}
} }
.block-mask { .block-frame-end-icons {
position: absolute; display: flex;
top: 0; flex-shrink: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px solid transparent;
pointer-events: none;
padding: 2px;
border-radius: calc(var(--block-border-radius) + 2px);
z-index: var(--zindex-block-mask-inner);
&.show-block-mask { .iconbutton {
user-select: none; display: flex;
pointer-events: auto; width: 24px;
} padding: 4px 6px;
align-items: center;
&.show-block-mask .block-mask-inner { }
margin-top: var(--header-height); // TODO fix this magic
background-color: rgb(from var(--block-bg-color) r g b / 50%); .block-frame-magnify {
height: calc(100% - var(--header-height)); justify-content: center;
width: 100%; align-items: center;
display: flex; padding: 0;
align-items: center;
justify-content: center; svg {
#arrow1,
.bignum { #arrow2 {
margin-top: -15%; fill: var(--main-text-color);
font-size: 60px; }
font-weight: bold;
opacity: 0.7;
}
} }
}
} }
}
&.block-focused { .block-frame-preview {
.block-mask { background-color: rgb(from var(--block-bg-color) r g b / 70%);
border: 2px solid var(--accent-color); width: 100%;
} flex-grow: 1;
border-bottom-left-radius: var(--block-border-radius);
border-bottom-right-radius: var(--block-border-radius);
display: flex;
align-items: center;
justify-content: center;
&.block-no-highlight, .iconbutton {
&.block-preview { opacity: 0.7;
.block-mask { font-size: 45px;
border: 2px solid rgb(from var(--border-color) r g b / 10%) !important; margin: -30px 0 0 0;
}
}
} }
}
} }
--magnified-block-opacity: 0.6;
--magnified-block-blur: 10px;
&.magnified,
&.ephemeral {
background-color: rgb(from var(--block-bg-color) r g b / var(--magnified-block-opacity));
backdrop-filter: blur(var(--magnified-block-blur));
}
.connstatus-overlay {
position: absolute;
top: calc(var(--header-height) + 6px);
left: 6px;
right: 6px;
z-index: var(--zindex-block-mask-inner);
display: flex;
align-items: center;
justify-content: flex-start;
flex-direction: column;
overflow: hidden;
background: var(--conn-status-overlay-bg-color);
backdrop-filter: blur(50px);
border-radius: 6px;
box-shadow: 0px 13px 16px 0px rgb(from var(--block-bg-color) r g b / 40%);
.connstatus-content {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 10px 8px 10px 12px;
width: 100%;
font: var(--base-font);
color: var(--secondary-text-color);
gap: 12px;
.connstatus-status-icon-wrapper {
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;
flex-grow: 1;
min-width: 0;
&.has-error {
align-items: flex-start;
}
> i {
color: #e6ba1e;
font-size: 16px;
}
.connstatus-status {
@include mixins.ellipsis();
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
flex-grow: 1;
width: 100%;
.connstatus-status-text {
@include mixins.ellipsis();
max-width: 100%;
font-size: 11px;
font-style: normal;
font-weight: 600;
line-height: 16px;
letter-spacing: 0.11px;
color: white;
}
.connstatus-error {
@include mixins.ellipsis();
width: 94%;
font-size: 11px;
font-style: normal;
font-weight: 400;
line-height: 15px;
letter-spacing: 0.11px;
}
}
}
.connstatus-actions {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 6px;
button {
i {
font-size: 11px;
opacity: 0.7;
}
}
.button:last-child {
margin-top: 1.5px;
}
}
}
}
.block-mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px solid transparent;
pointer-events: none;
padding: 2px;
border-radius: calc(var(--block-border-radius) + 2px);
z-index: var(--zindex-block-mask-inner);
&.show-block-mask {
user-select: none;
pointer-events: auto;
}
&.show-block-mask .block-mask-inner {
margin-top: var(--header-height); // TODO fix this magic
background-color: rgb(from var(--block-bg-color) r g b / 50%);
height: calc(100% - var(--header-height));
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.bignum {
margin-top: -15%;
font-size: 60px;
font-weight: bold;
opacity: 0.7;
}
}
}
&.block-focused {
.block-mask {
border: 2px solid var(--accent-color);
}
&.block-no-highlight,
&.block-preview {
.block-mask {
border: 2px solid rgb(from var(--border-color) r g b / 10%) !important;
}
}
}
}
} }

View File

@ -4,54 +4,54 @@
@use "../mixins.scss"; @use "../mixins.scss";
.avatar { .avatar {
position: relative; position: relative;
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 50%;
background-color: var(--border-color);
display: flex;
justify-content: center;
align-items: center;
color: var(--main-text-color);
font-size: 18px;
text-transform: uppercase;
.avatar-image {
width: 100%;
height: 100%;
border-radius: 50%; border-radius: 50%;
background-color: var(--border-color); object-fit: cover;
display: flex; }
justify-content: center;
align-items: center;
color: var(--main-text-color);
font-size: 18px;
text-transform: uppercase;
.avatar-image { .avatar-initials {
width: 100%; font-weight: bold;
height: 100%; }
border-radius: 50%;
object-fit: cover; .status-indicator {
position: absolute;
bottom: 2px;
right: 2px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: transparent;
&.online {
background-color: var(--success-color);
} }
.avatar-initials { &.offline {
font-weight: bold; background-color: var(--grey-text-color);
} }
.status-indicator { &.busy {
position: absolute; background-color: var(--error-color);
bottom: 2px;
right: 2px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: transparent;
&.online {
background-color: var(--success-color);
}
&.offline {
background-color: var(--grey-text-color);
}
&.busy {
background-color: var(--error-color);
}
&.away {
background-color: var(--warning-color);
}
} }
@include mixins.avatar-dims-mixin(); &.away {
background-color: var(--warning-color);
}
}
@include mixins.avatar-dims-mixin();
} }

View File

@ -4,163 +4,163 @@
@use "../mixins.scss"; @use "../mixins.scss";
.button { .button {
// override default button appearance // override default button appearance
border: 1px solid transparent; border: 1px solid transparent;
outline: 1px solid transparent; outline: 1px solid transparent;
border: 1px solid transparent; border: 1px solid transparent;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 20px;
padding-right: 20px;
align-items: center;
gap: 4px;
border-radius: 6px;
height: auto;
line-height: 16px;
white-space: nowrap;
user-select: none;
font-size: 14px;
font-weight: normal;
transition: all 0.3s ease;
&.solid {
&.green {
color: var(--button-text-color);
background-color: var(--accent-color);
border: 1px solid var(--button-green-border-color);
&:hover {
color: var(--button-text-color);
background-color: var(--button-green-border-color);
}
}
&.grey {
background-color: var(--button-grey-bg);
border: 1px solid var(--button-grey-bg);
color: var(--main-text-color);
&:hover {
color: var(--main-text-color);
background-color: var(--button-grey-hover-bg);
}
}
&.red {
background-color: var(--button-red-bg);
border: 1px solid var(--button-red-border-color);
color: var(--main-text-color);
&:hover {
background-color: var(--button-red-hover-bg);
}
}
&.yellow {
color: var(--button-text-color);
background-color: var(--button-yellow-bg);
border: 1px solid var(--button-yellow-hover-bg);
&:hover {
color: var(--button-text-color);
background-color: var(--button-yellow-hover-bg);
}
}
}
&.outlined {
background-color: transparent;
&.green {
color: var(--accent-color);
border: 1px solid var(--accent-color);
&:hover {
color: var(--button-green-border-color);
border: 1px solid var(--button-green-border-color);
}
}
&.grey {
border: 1px solid var(--button-grey-outlined-color);
color: var(--button-grey-outlined-color);
&:hover {
color: var(--main-text-color);
border: 1px solid var(--main-text-color);
}
}
&.red {
border: 1px solid var(--button-red-bg);
color: var(--button-red-bg);
&:hover {
color: var(--button-red-outlined-color);
border: 1px solid var(--button-red-outlined-color);
}
}
&.yellow {
color: var(--button-yellow-bg);
border: 1px solid var(--button-yellow-bg);
&:hover {
color: var(--button-yellow-hover-bg);
border: 1px solid var(--button-yellow-hover-bg);
}
}
}
&.ghost {
background-color: transparent;
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 20px; padding-left: 8px;
padding-right: 20px; padding-right: 8px;
align-items: center;
gap: 4px;
border-radius: 6px;
height: auto;
line-height: 16px;
white-space: nowrap;
user-select: none;
font-size: 14px;
font-weight: normal;
transition: all 0.3s ease;
&.solid { &.green {
&.green { border: none;
color: var(--button-text-color); color: var(--accent-color);
background-color: var(--accent-color); &:hover {
border: 1px solid var(--button-green-border-color); color: var(--button-green-border-color);
&:hover { }
color: var(--button-text-color);
background-color: var(--button-green-border-color);
}
}
&.grey {
background-color: var(--button-grey-bg);
border: 1px solid var(--button-grey-bg);
color: var(--main-text-color);
&:hover {
color: var(--main-text-color);
background-color: var(--button-grey-hover-bg);
}
}
&.red {
background-color: var(--button-red-bg);
border: 1px solid var(--button-red-border-color);
color: var(--main-text-color);
&:hover {
background-color: var(--button-red-hover-bg);
}
}
&.yellow {
color: var(--button-text-color);
background-color: var(--button-yellow-bg);
border: 1px solid var(--button-yellow-hover-bg);
&:hover {
color: var(--button-text-color);
background-color: var(--button-yellow-hover-bg);
}
}
} }
&.outlined { &.grey {
background-color: transparent; border: none;
&.green { color: var(--button-grey-outlined-color);
color: var(--accent-color); &:hover {
border: 1px solid var(--accent-color); color: var(--main-text-color);
&:hover { }
color: var(--button-green-border-color);
border: 1px solid var(--button-green-border-color);
}
}
&.grey {
border: 1px solid var(--button-grey-outlined-color);
color: var(--button-grey-outlined-color);
&:hover {
color: var(--main-text-color);
border: 1px solid var(--main-text-color);
}
}
&.red {
border: 1px solid var(--button-red-bg);
color: var(--button-red-bg);
&:hover {
color: var(--button-red-outlined-color);
border: 1px solid var(--button-red-outlined-color);
}
}
&.yellow {
color: var(--button-yellow-bg);
border: 1px solid var(--button-yellow-bg);
&:hover {
color: var(--button-yellow-hover-bg);
border: 1px solid var(--button-yellow-hover-bg);
}
}
} }
&.ghost { &.red {
background-color: transparent; border: none;
padding-top: 8px; color: var(--button-red-bg);
padding-bottom: 8px; &:hover {
padding-left: 8px; color: var(--button-red-border-color);
padding-right: 8px; }
&.green {
border: none;
color: var(--accent-color);
&:hover {
color: var(--button-green-border-color);
}
}
&.grey {
border: none;
color: var(--button-grey-outlined-color);
&:hover {
color: var(--main-text-color);
}
}
&.red {
border: none;
color: var(--button-red-bg);
&:hover {
color: var(--button-red-border-color);
}
}
&.yellow {
border: none;
color: var(--button-yellow-bg);
&:hover {
color: var(--button-yellow-hover-bg);
}
}
} }
&:disabled { &.yellow {
cursor: default; border: none;
opacity: 0.5; color: var(--button-yellow-bg);
pointer-events: none; &:hover {
color: var(--button-yellow-hover-bg);
}
} }
}
&:focus-visible { &:disabled {
outline: 1px solid var(--success-color); cursor: default;
outline-offset: 2px; opacity: 0.5;
} pointer-events: none;
}
// Include mixins &:focus-visible {
@include mixins.border-radius-mixin(); outline: 1px solid var(--success-color);
@include mixins.vertical-padding-mixin(); outline-offset: 2px;
@include mixins.horizontal-padding-mixin(); }
@include mixins.font-size-mixin();
@include mixins.font-weight-mixin(); // Include mixins
@include mixins.border-radius-mixin();
@include mixins.vertical-padding-mixin();
@include mixins.horizontal-padding-mixin();
@include mixins.font-size-mixin();
@include mixins.font-weight-mixin();
} }

View File

@ -4,61 +4,61 @@
@use "../mixins.scss"; @use "../mixins.scss";
.collapsible-menu { .collapsible-menu {
list-style: none; list-style: none;
padding: 0; padding: 0;
} }
.collapsible-menu-item { .collapsible-menu-item {
padding: 10px; padding: 10px;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
padding: 0; padding: 0;
} }
.collapsible-menu-item-button { .collapsible-menu-item-button {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
} }
.collapsible-menu-item-content { .collapsible-menu-item-content {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.collapsible-menu-item-icon { .collapsible-menu-item-icon {
margin-right: 10px; /* Space between icon and text */ margin-right: 10px; /* Space between icon and text */
} }
.collapsible-menu-item-text { .collapsible-menu-item-text {
@include mixins.ellipsis(); @include mixins.ellipsis();
text-decoration: none; text-decoration: none;
} }
.nested-list { .nested-list {
list-style: none; list-style: none;
padding-left: 20px; padding-left: 20px;
} }
.nested-list.open { .nested-list.open {
display: block; display: block;
} }
.nested-list.closed { .nested-list.closed {
display: none; display: none;
} }
.collapsible-menu-item-button { .collapsible-menu-item-button {
padding: 10px; padding: 10px;
color: var(--main-text-color); color: var(--main-text-color);
&:hover { &:hover {
background-color: var(--button-grey-hover-bg); background-color: var(--button-grey-hover-bg);
border-radius: 4px; border-radius: 4px;
} }
} }
.collapsible-menu-item-button.clickable:hover { .collapsible-menu-item-button.clickable:hover {
background-color: #f0f0f0; background-color: #f0f0f0;
} }

View File

@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.copy-button { .copy-button {
&.copied { &.copied {
opacity: 1; opacity: 1;
i { i {
color: var(--success-color); color: var(--success-color);
}
} }
}
} }

View File

@ -2,39 +2,39 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.emoji-palette-content { .emoji-palette-content {
padding: 10px; padding: 10px;
max-height: 350px; max-height: 350px;
width: 300px; width: 300px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.emoji-grid { .emoji-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(35px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
gap: 10px; gap: 10px;
padding: 10px 0; padding: 10px 0;
width: 100%; width: 100%;
height: 300px; height: 300px;
overflow-y: auto; overflow-y: auto;
} }
.emoji-button { .emoji-button {
font-size: 24px; font-size: 24px;
padding: 5px; padding: 5px;
cursor: pointer; cursor: pointer;
background: none; background: none;
border: none; border: none;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
&:hover { &:hover {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
border-radius: 5px; border-radius: 5px;
} }
} }
.no-emojis { .no-emojis {
font-size: 14px; font-size: 14px;
color: #888; color: #888;
text-align: center; text-align: center;
} }

View File

@ -4,70 +4,70 @@
@use "../mixins.scss"; @use "../mixins.scss";
.expandable-menu { .expandable-menu {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
overflow: visible; overflow: visible;
} }
.expandable-menu-item, .expandable-menu-item,
.expandable-menu-item-group-title { .expandable-menu-item-group-title {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 8px 12px; /* Left and right padding, we'll adjust this for the right side */ padding: 8px 12px; /* Left and right padding, we'll adjust this for the right side */
cursor: pointer; cursor: pointer;
box-sizing: border-box; box-sizing: border-box;
border-radius: 4px; border-radius: 4px;
.label { .label {
@include mixins.ellipsis(); @include mixins.ellipsis();
} }
} }
.expandable-menu-item-group-title { .expandable-menu-item-group-title {
&:hover { &:hover {
background-color: var(--button-grey-hover-bg); background-color: var(--button-grey-hover-bg);
} }
} }
.expandable-menu-item { .expandable-menu-item {
&.with-hover-effect { &.with-hover-effect {
&:hover { &:hover {
background-color: var(--button-grey-hover-bg); background-color: var(--button-grey-hover-bg);
}
} }
}
} }
.expandable-menu-item-left, .expandable-menu-item-left,
.expandable-menu-item-right { .expandable-menu-item-right {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.expandable-menu-item-left { .expandable-menu-item-left {
margin-right: 8px; /* Space for the left element */ margin-right: 8px; /* Space for the left element */
} }
.expandable-menu-item-right { .expandable-menu-item-right {
margin-left: auto; /* This keeps the right element (if any) on the far right */ margin-left: auto; /* This keeps the right element (if any) on the far right */
white-space: nowrap; white-space: nowrap;
} }
.expandable-menu-item-content { .expandable-menu-item-content {
flex-grow: 1; /* Ensures the content grows to fill available space between left and right elements */ flex-grow: 1; /* Ensures the content grows to fill available space between left and right elements */
} }
.expandable-menu-item-group-content { .expandable-menu-item-group-content {
max-height: 0; max-height: 0;
overflow: hidden; overflow: hidden;
margin-left: 16px; /* Retaining left indentation */ margin-left: 16px; /* Retaining left indentation */
margin-right: 0; /* Removing right padding */ margin-right: 0; /* Removing right padding */
&.open { &.open {
max-height: 1000px; /* Ensure large enough max-height for expansion */ max-height: 1000px; /* Ensure large enough max-height for expansion */
} }
} }
.no-indent .expandable-menu-item-group-content { .no-indent .expandable-menu-item-group-content {
margin-left: 0; // Remove left indentation when noIndent is true margin-left: 0; // Remove left indentation when noIndent is true
} }

View File

@ -4,51 +4,51 @@
@use "../mixins.scss"; @use "../mixins.scss";
.menu { .menu {
position: absolute; position: absolute;
z-index: 1000; z-index: 1000;
display: flex; display: flex;
max-width: 400px; max-width: 400px;
min-width: 125px; min-width: 125px;
padding: 2px; padding: 2px;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-end;
align-items: flex-start; align-items: flex-start;
gap: 1px; gap: 1px;
border-radius: 4px; border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.15);
background: #212121; background: #212121;
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.3); box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.3);
} }
.menu-item { .menu-item {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 4px 6px; padding: 4px 6px;
cursor: pointer; cursor: pointer;
color: var(--main-text-color); color: var(--main-text-color);
font-size: 12px; font-size: 12px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: normal; line-height: normal;
letter-spacing: -0.12px; letter-spacing: -0.12px;
width: 100%; width: 100%;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: space-between;
.label {
@include mixins.ellipsis();
text-decoration: none;
}
}
.menu-item {
color: var(--main-text-color);
&:hover {
background-color: var(--accent-color);
color: var(--button-text-color);
border-radius: 2px; border-radius: 2px;
display: flex; }
align-items: center;
justify-content: space-between;
.label {
@include mixins.ellipsis();
text-decoration: none;
}
}
.menu-item {
color: var(--main-text-color);
&:hover {
background-color: var(--accent-color);
color: var(--button-text-color);
border-radius: 2px;
}
} }

View File

@ -1,25 +1,25 @@
.iconbutton { .iconbutton {
cursor: pointer; cursor: pointer;
opacity: 0.7; opacity: 0.7;
align-items: center; align-items: center;
&.bulb { &.bulb {
color: var(--bulb-color); color: var(--bulb-color);
opacity: 1; opacity: 1;
&:hover i::before { &:hover i::before {
content: "\f672"; content: "\f672";
position: relative; position: relative;
left: -1px; left: -1px;
}
} }
}
&:hover { &:hover {
opacity: 1; opacity: 1;
} }
&.disabled { &.disabled {
cursor: default; cursor: default;
opacity: 0.45 !important; opacity: 0.45 !important;
} }
} }

View File

@ -4,90 +4,90 @@
@use "../mixins.scss"; @use "../mixins.scss";
.input { .input {
width: 100%; width: 100%;
border: none; border: none;
font-size: 12px; font-size: 12px;
outline: none; outline: none;
background-color: transparent; background-color: transparent;
color: var(--form-element-text-color); color: var(--form-element-text-color);
background: var(--form-element-bg-color); background: var(--form-element-bg-color);
border: 2px solid var(--form-element-border-color); border: 2px solid var(--form-element-border-color);
border-radius: 6px; border-radius: 6px;
padding: 4px 7px; padding: 4px 7px;
&:focus { &:focus {
border-color: var(--form-element-primary-color); border-color: var(--form-element-primary-color);
} }
&.disabled { &.disabled {
opacity: 0.75; opacity: 0.75;
} }
&.error { &.error {
border-color: var(--form-element-error-color); border-color: var(--form-element-error-color);
} }
// Include mixins // Include mixins
@include mixins.border-radius-mixin(); @include mixins.border-radius-mixin();
@include mixins.vertical-padding-mixin(); @include mixins.vertical-padding-mixin();
@include mixins.horizontal-padding-mixin(); @include mixins.horizontal-padding-mixin();
@include mixins.font-size-mixin(); @include mixins.font-size-mixin();
@include mixins.font-weight-mixin(); @include mixins.font-weight-mixin();
} }
/* Styles when an InputGroup is present */ /* Styles when an InputGroup is present */
.input-group { .input-group {
display: flex;
align-items: center;
border-radius: 6px;
position: relative;
width: 100%;
border: 2px solid var(--form-element-border-color);
background: var(--form-element-bg-color);
/* Focus style for InputGroup */
&.focused {
border-color: var(--form-element-primary-color);
}
/* Error state for InputGroup */
&.error {
border-color: var(--form-element-error-color);
}
/* Disabled state for InputGroup */
&.disabled {
opacity: 0.75;
}
&:hover {
cursor: text;
}
.input-left-element,
.input-right-element {
padding: 0 5px;
display: flex; display: flex;
align-items: center; align-items: center;
border-radius: 6px; justify-content: center;
position: relative; }
width: 100%;
border: 2px solid var(--form-element-border-color);
background: var(--form-element-bg-color);
/* Focus style for InputGroup */ .input {
&.focused { border: none;
border-color: var(--form-element-primary-color); flex-grow: 1;
border-radius: none;
&:focus {
border-color: transparent;
} }
/* Error state for InputGroup */
&.error { &.error {
border-color: var(--form-element-error-color); border-color: transparent;
} }
}
/* Disabled state for InputGroup */ // Include mixins
&.disabled { @include mixins.border-radius-mixin();
opacity: 0.75; @include mixins.font-size-mixin();
} @include mixins.font-weight-mixin();
&:hover {
cursor: text;
}
.input-left-element,
.input-right-element {
padding: 0 5px;
display: flex;
align-items: center;
justify-content: center;
}
.input {
border: none;
flex-grow: 1;
border-radius: none;
&:focus {
border-color: transparent;
}
&.error {
border-color: transparent;
}
}
// Include mixins
@include mixins.border-radius-mixin();
@include mixins.font-size-mixin();
@include mixins.font-weight-mixin();
} }

View File

@ -2,30 +2,30 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.magnify-icon { .magnify-icon {
display: inline-block; display: inline-block;
width: 15px; width: 15px;
height: 15px; height: 15px;
svg {
#arrow1 {
transform: rotate(180deg);
transform-origin: calc(29.167% + 4px) calc(70.833% + 4px); // account for path offset in the svg itself
}
#arrow2 {
transform: rotate(-180deg);
transform-origin: calc(70.833% + 4px) calc(29.167% + 4px);
}
#arrow1,
#arrow2 {
transition: transform 300ms ease-in;
transition-delay: 100ms;
}
}
&.enabled {
svg { svg {
#arrow1 { #arrow1,
transform: rotate(180deg); #arrow2 {
transform-origin: calc(29.167% + 4px) calc(70.833% + 4px); // account for path offset in the svg itself transform: rotate(0deg);
} }
#arrow2 {
transform: rotate(-180deg);
transform-origin: calc(70.833% + 4px) calc(29.167% + 4px);
}
#arrow1,
#arrow2 {
transition: transform 300ms ease-in;
transition-delay: 100ms;
}
}
&.enabled {
svg {
#arrow1,
#arrow2 {
transform: rotate(0deg);
}
}
} }
}
} }

View File

@ -2,210 +2,210 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.markdown { .markdown {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
overflow: hidden; overflow: hidden;
height: 100%;
width: 100%;
.content {
height: 100%; height: 100%;
width: 100%; width: 100%;
overflow: scroll;
line-height: 1.5;
color: var(--main-text-color);
font-family: var(--markdown-font);
font-size: 14px;
overflow-wrap: break-word;
.content { &.non-scrollable {
height: 100%; overflow: hidden;
width: 100%; }
overflow: scroll;
.heading {
&:first-of-type {
margin-top: 0 !important;
}
color: var(--main-text-color);
margin-top: 16px;
margin-bottom: 8px;
}
strong {
color: var(--main-text-color);
}
a {
color: #32afff;
}
ul {
list-style-type: disc;
list-style-position: outside;
margin-left: 16px;
}
ol {
list-style-position: outside;
margin-left: 19px;
}
blockquote {
margin: 4px 10px 4px 10px;
border-radius: 3px;
background-color: var(--panel-bg-color);
padding: 2px 4px 2px 6px;
}
pre.codeblock {
background-color: var(--panel-bg-color);
margin: 4px 10px;
padding: 0.4em 0.7em;
border-radius: 4px;
position: relative;
code {
line-height: 1.5; line-height: 1.5;
color: var(--main-text-color); white-space: pre-wrap;
font-family: var(--markdown-font); word-wrap: break-word;
overflow: auto;
overflow: hidden;
background-color: transparent;
}
.codeblock-actions {
visibility: hidden;
display: flex;
position: absolute;
top: 0;
right: 0;
border-radius: 4px;
backdrop-filter: blur(8px);
margin: 2px 2px;
padding: 4px 4px;
align-items: center;
justify-content: flex-end;
gap: 4px;
}
&:hover .codeblock-actions {
visibility: visible;
}
}
code {
color: var(--main-text-color);
font: var(--fixed-font);
border-radius: 4px;
}
pre.selected {
outline: 2px solid var(--accent-color);
}
.heading {
font-weight: semibold;
padding-top: 6px;
}
.heading.is-1 {
border-bottom: 1px solid var(--border-color);
padding-bottom: 6px;
font-size: 2em;
}
.heading.is-2 {
border-bottom: 1px solid var(--border-color);
padding-bottom: 6px;
font-size: 1.5em;
}
.heading.is-3 {
font-size: 1.25em;
}
.heading.is-4 {
font-size: 1em;
}
.heading.is-5 {
font-size: 0.875em;
}
.heading.is-6 {
font-size: 0.85em;
}
.waveblock {
margin: 16px 0;
.wave-block-content {
display: flex;
align-items: center;
padding: 12px;
background-color: var(--highlight-bg-color);
border: 1px solid var(--border-color);
border-radius: 8px;
transition: background-color 0.2s ease;
}
.wave-block-icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: black;
border-radius: 8px;
margin-right: 12px;
}
.wave-block-icon i {
font-size: 18px;
color: var(--secondary-text-color);
}
.wave-block-info {
display: flex;
flex-direction: column;
}
.wave-block-filename {
font-size: 14px; font-size: 14px;
overflow-wrap: break-word; font-weight: 500;
color: var(--main-text-color);
}
&.non-scrollable { .wave-block-size {
overflow: hidden; font-size: 12px;
} color: var(--secondary-text-color);
}
.heading {
&:first-of-type {
margin-top: 0 !important;
}
color: var(--main-text-color);
margin-top: 16px;
margin-bottom: 8px;
}
strong {
color: var(--main-text-color);
}
a {
color: #32afff;
}
ul {
list-style-type: disc;
list-style-position: outside;
margin-left: 16px;
}
ol {
list-style-position: outside;
margin-left: 19px;
}
blockquote {
margin: 4px 10px 4px 10px;
border-radius: 3px;
background-color: var(--panel-bg-color);
padding: 2px 4px 2px 6px;
}
pre.codeblock {
background-color: var(--panel-bg-color);
margin: 4px 10px;
padding: 0.4em 0.7em;
border-radius: 4px;
position: relative;
code {
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
overflow: auto;
overflow: hidden;
background-color: transparent;
}
.codeblock-actions {
visibility: hidden;
display: flex;
position: absolute;
top: 0;
right: 0;
border-radius: 4px;
backdrop-filter: blur(8px);
margin: 2px 2px;
padding: 4px 4px;
align-items: center;
justify-content: flex-end;
gap: 4px;
}
&:hover .codeblock-actions {
visibility: visible;
}
}
code {
color: var(--main-text-color);
font: var(--fixed-font);
border-radius: 4px;
}
pre.selected {
outline: 2px solid var(--accent-color);
}
.heading {
font-weight: semibold;
padding-top: 6px;
}
.heading.is-1 {
border-bottom: 1px solid var(--border-color);
padding-bottom: 6px;
font-size: 2em;
}
.heading.is-2 {
border-bottom: 1px solid var(--border-color);
padding-bottom: 6px;
font-size: 1.5em;
}
.heading.is-3 {
font-size: 1.25em;
}
.heading.is-4 {
font-size: 1em;
}
.heading.is-5 {
font-size: 0.875em;
}
.heading.is-6 {
font-size: 0.85em;
}
.waveblock {
margin: 16px 0;
.wave-block-content {
display: flex;
align-items: center;
padding: 12px;
background-color: var(--highlight-bg-color);
border: 1px solid var(--border-color);
border-radius: 8px;
transition: background-color 0.2s ease;
}
.wave-block-icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: black;
border-radius: 8px;
margin-right: 12px;
}
.wave-block-icon i {
font-size: 18px;
color: var(--secondary-text-color);
}
.wave-block-info {
display: flex;
flex-direction: column;
}
.wave-block-filename {
font-size: 14px;
font-weight: 500;
color: var(--main-text-color);
}
.wave-block-size {
font-size: 12px;
color: var(--secondary-text-color);
}
}
} }
}
// The TOC view should scroll independently of the contents view. // The TOC view should scroll independently of the contents view.
.toc { .toc {
max-width: 40%; max-width: 40%;
height: 100%; height: 100%;
overflow: scroll; overflow: scroll;
border-left: 1px solid var(--border-color); border-left: 1px solid var(--border-color);
.toc-inner { .toc-inner {
height: fit-content; height: fit-content;
position: sticky; position: sticky;
top: 0; top: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 5px; gap: 5px;
text-wrap: wrap; text-wrap: wrap;
h4 { h4 {
padding-left: 5px; padding-left: 5px;
} }
.toc-item { .toc-item {
cursor: pointer; cursor: pointer;
--indent-factor: 1; --indent-factor: 1;
// The 5px offset in the padding will ensure that when the text in the item wraps, it indents slightly. // The 5px offset in the padding will ensure that when the text in the item wraps, it indents slightly.
// The indent factor is set in the React code and denotes the depth of the item in the TOC tree. // The indent factor is set in the React code and denotes the depth of the item in the TOC tree.
padding-left: calc((var(--indent-factor) - 1) * 10px + 5px); padding-left: calc((var(--indent-factor) - 1) * 10px + 5px);
text-indent: -5px; text-indent: -5px;
} }
}
} }
}
} }

View File

@ -1,15 +1,15 @@
.menubutton { .menubutton {
overflow: hidden; overflow: hidden;
.menu-anchor { .menu-anchor {
width: 100%; width: 100%;
.button { .button {
width: 100%; width: 100%;
div { div {
max-width: 100%; max-width: 100%;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
flex-shrink: 1; flex-shrink: 1;
} }
}
} }
}
} }

View File

@ -2,56 +2,56 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.modal-container { .modal-container {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; width: 100vw;
height: 100%; height: 100%;
z-index: var(--zindex-elem-modal); z-index: var(--zindex-elem-modal);
background-color: rgba(21, 23, 21, 0.7); background-color: rgba(21, 23, 21, 0.7);
.modal { .modal {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: 10px; border-radius: 10px;
padding: 0; padding: 0;
width: 80%; width: 80%;
margin-top: 25vh; margin-top: 25vh;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
background: var(--main-bg-color); background: var(--main-bg-color);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
.modal-header { .modal-header {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 20px 20px 10px; padding: 20px 20px 10px;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
.modal-title { .modal-title {
margin: 0 0 5px; margin: 0 0 5px;
color: var(--main-text-color); color: var(--main-text-color);
font-size: var(--title-font-size); font-size: var(--title-font-size);
} }
p { p {
margin: 0; margin: 0;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
}
.modal-content {
padding: 20px;
overflow: auto;
}
.modal-footer {
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: 15px 20px;
gap: 20px;
}
} }
.modal-content {
padding: 20px;
overflow: auto;
}
.modal-footer {
display: flex;
flex-direction: row;
justify-content: flex-end;
padding: 15px 20px;
gap: 20px;
}
}
} }

View File

@ -2,23 +2,23 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.multiline-input { .multiline-input {
flex-grow: 1; flex-grow: 1;
box-shadow: none; box-shadow: none;
box-sizing: border-box; box-sizing: border-box;
background-color: transparent; background-color: transparent;
resize: none; resize: none;
overflow-y: auto; overflow-y: auto;
line-height: 1.5; line-height: 1.5;
color: var(--form-element-text-color); color: var(--form-element-text-color);
vertical-align: top; vertical-align: top;
height: auto; height: auto;
padding: 0; padding: 0;
border: 1px solid var(--form-element-border-color); border: 1px solid var(--form-element-border-color);
padding: 5px; padding: 5px;
border-radius: 4px; border-radius: 4px;
min-height: 26px; min-height: 26px;
&:focus-visible { &:focus-visible {
outline: none; outline: none;
} }
} }

View File

@ -2,11 +2,11 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.centered-div { .centered-div {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
} }

View File

@ -2,85 +2,85 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.tips-wrapper { .tips-wrapper {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
.tips-section {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
justify-content: center; flex-grow: 1;
width: 100%; gap: 5px;
.tips-section { .tip-section-header {
display: flex; font-weight: bold;
flex-direction: column; margin-bottom: 5px;
flex-grow: 1; margin-top: 10px;
gap: 5px; font-size: 16px;
.tip-section-header { &:first-child {
font-weight: bold; margin-top: 0;
margin-bottom: 5px; }
margin-top: 10px;
font-size: 16px;
&:first-child {
margin-top: 0;
}
}
.tip {
display: flex;
flex-direction: row;
align-items: center;
code {
padding: 0.1em 0.4em;
background-color: var(--highlight-bg-color);
}
.keybinding-group {
display: flex;
flex-direction: row;
align-items: center;
margin-left: 5px;
margin-right: 5px;
align-self: flex-start;
&:first-child {
margin-left: 0;
}
}
.keybinding {
display: inline-block;
padding: 0.1em 0.4em;
margin: 0 0.1em;
font: var(--fixed-font);
font-size: 0.85em;
color: var(--keybinding-color);
background-color: var(--highlight-bg-color);
border-radius: 4px;
border: 1px solid var(--keybinding-border-color);
box-shadow: none;
white-space: nowrap;
}
.icon-wrap {
background-color: var(--highlight-bg-color);
padding: 2px;
color: var(--secondary-text-color);
font-size: 12px;
border-radius: 2px;
margin-right: 5px;
align-self: flex-start;
svg {
position: relative;
top: 3px;
left: 1px;
height: 13px;
#arrow1,
#arrow2 {
fill: var(--main-text-color);
}
}
}
}
} }
.tip {
display: flex;
flex-direction: row;
align-items: center;
code {
padding: 0.1em 0.4em;
background-color: var(--highlight-bg-color);
}
.keybinding-group {
display: flex;
flex-direction: row;
align-items: center;
margin-left: 5px;
margin-right: 5px;
align-self: flex-start;
&:first-child {
margin-left: 0;
}
}
.keybinding {
display: inline-block;
padding: 0.1em 0.4em;
margin: 0 0.1em;
font: var(--fixed-font);
font-size: 0.85em;
color: var(--keybinding-color);
background-color: var(--highlight-bg-color);
border-radius: 4px;
border: 1px solid var(--keybinding-border-color);
box-shadow: none;
white-space: nowrap;
}
.icon-wrap {
background-color: var(--highlight-bg-color);
padding: 2px;
color: var(--secondary-text-color);
font-size: 12px;
border-radius: 2px;
margin-right: 5px;
align-self: flex-start;
svg {
position: relative;
top: 3px;
left: 1px;
height: 13px;
#arrow1,
#arrow2 {
fill: var(--main-text-color);
}
}
}
}
}
} }

View File

@ -2,61 +2,61 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.check-toggle-wrapper { .check-toggle-wrapper {
user-select: none; user-select: none;
display: flex; display: flex;
height: 100%; height: 100%;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.checkbox-toggle { .checkbox-toggle {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 32px; width: 32px;
height: 20px; height: 20px;
input { input {
opacity: 0; opacity: 0;
width: 0; width: 0;
height: 0; height: 0;
}
.slider {
position: absolute;
cursor: pointer;
content: "";
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: var(--toggle-bg-color);
transition: 0.5s;
border-radius: 33px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 3px;
bottom: 2px;
background-color: var(--toggle-thumb-color);
transition: 0.5s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--toggle-checked-bg-color);
}
input:checked + .slider:before {
transform: translateX(11px);
}
} }
label, .slider {
.toggle-label { position: absolute;
cursor: pointer; cursor: pointer;
padding: 0 5px; content: "";
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: var(--toggle-bg-color);
transition: 0.5s;
border-radius: 33px;
} }
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 3px;
bottom: 2px;
background-color: var(--toggle-thumb-color);
transition: 0.5s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--toggle-checked-bg-color);
}
input:checked + .slider:before {
transform: translateX(11px);
}
}
label,
.toggle-label {
cursor: pointer;
padding: 0 5px;
}
} }

View File

@ -6,41 +6,41 @@ $dot-color: var(--success-color);
$speed: 1.5s; $speed: 1.5s;
.typing { .typing {
position: relative; position: relative;
height: $dot-width;
span {
content: "";
animation: blink $speed infinite;
animation-fill-mode: both;
height: $dot-width; height: $dot-width;
width: $dot-width;
background: $dot-color;
position: absolute;
left: 0;
top: 0;
border-radius: 50%;
span { &:nth-child(2) {
content: ""; animation-delay: 0.2s;
animation: blink $speed infinite; margin-left: $dot-width * 1.5;
animation-fill-mode: both;
height: $dot-width;
width: $dot-width;
background: $dot-color;
position: absolute;
left: 0;
top: 0;
border-radius: 50%;
&:nth-child(2) {
animation-delay: 0.2s;
margin-left: $dot-width * 1.5;
}
&:nth-child(3) {
animation-delay: 0.4s;
margin-left: $dot-width * 3;
}
} }
&:nth-child(3) {
animation-delay: 0.4s;
margin-left: $dot-width * 3;
}
}
} }
@keyframes blink { @keyframes blink {
0% { 0% {
opacity: 0.1; opacity: 0.1;
} }
20% { 20% {
opacity: 1; opacity: 1;
} }
100% { 100% {
opacity: 0.1; opacity: 0.1;
} }
} }

View File

@ -2,6 +2,6 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.window-drag { .window-drag {
-webkit-app-region: drag; -webkit-app-region: drag;
z-index: var(--zindex-window-drag); z-index: var(--zindex-window-drag);
} }

View File

@ -1,268 +1,268 @@
// Copyright 2024, Command Line Inc. // Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
@mixin ellipsis(){ @mixin ellipsis() {
display: block; display: block;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@mixin border-radius-mixin(){ @mixin border-radius-mixin() {
&.border-radius-2 { &.border-radius-2 {
border-radius: 4px; border-radius: 4px;
} }
&.border-radius-3 { &.border-radius-3 {
border-radius: 3px; border-radius: 3px;
} }
&.border-radius-4 { &.border-radius-4 {
border-radius: 4px; border-radius: 4px;
} }
&.border-radius-5 { &.border-radius-5 {
border-radius: 5px; border-radius: 5px;
} }
&.border-radius-6 { &.border-radius-6 {
border-radius: 6px; border-radius: 6px;
} }
&.border-radius-7 { &.border-radius-7 {
border-radius: 7px; border-radius: 7px;
} }
&.border-radius-8 { &.border-radius-8 {
border-radius: 8px; border-radius: 8px;
} }
&.border-radius-9 { &.border-radius-9 {
border-radius: 9px; border-radius: 9px;
} }
&.border-radius-10 { &.border-radius-10 {
border-radius: 10px; border-radius: 10px;
} }
} }
@mixin vertical-padding-mixin(){ @mixin vertical-padding-mixin() {
&.vertical-padding-0 { &.vertical-padding-0 {
padding-top: 0px; padding-top: 0px;
padding-bottom: 0px; padding-bottom: 0px;
} }
&.vertical-padding-1 { &.vertical-padding-1 {
padding-top: 1px; padding-top: 1px;
padding-bottom: 1px; padding-bottom: 1px;
} }
&.vertical-padding-2 { &.vertical-padding-2 {
padding-top: 2px; padding-top: 2px;
padding-bottom: 2px; padding-bottom: 2px;
} }
&.vertical-padding-3 { &.vertical-padding-3 {
padding-top: 3px; padding-top: 3px;
padding-bottom: 3px; padding-bottom: 3px;
} }
&.vertical-padding-4 { &.vertical-padding-4 {
padding-top: 4px; padding-top: 4px;
padding-bottom: 4px; padding-bottom: 4px;
} }
&.vertical-padding-5 { &.vertical-padding-5 {
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
} }
&.vertical-padding-6 { &.vertical-padding-6 {
padding-top: 6px; padding-top: 6px;
padding-bottom: 6px; padding-bottom: 6px;
} }
&.vertical-padding-7 { &.vertical-padding-7 {
padding-top: 7px; padding-top: 7px;
padding-bottom: 7px; padding-bottom: 7px;
} }
&.vertical-padding-8 { &.vertical-padding-8 {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
} }
&.vertical-padding-9 { &.vertical-padding-9 {
padding-top: 9px; padding-top: 9px;
padding-bottom: 9px; padding-bottom: 9px;
} }
&.vertical-padding-10 { &.vertical-padding-10 {
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
} }
} }
@mixin horizontal-padding-mixin(){ @mixin horizontal-padding-mixin() {
&.horizontal-padding-0 { &.horizontal-padding-0 {
padding-left: 0px; padding-left: 0px;
padding-right: 0px; padding-right: 0px;
} }
&.horizontal-padding-1 { &.horizontal-padding-1 {
padding-left: 1px; padding-left: 1px;
padding-right: 1px; padding-right: 1px;
} }
&.horizontal-padding-2 { &.horizontal-padding-2 {
padding-left: 2px; padding-left: 2px;
padding-right: 2px; padding-right: 2px;
} }
&.horizontal-padding-3 { &.horizontal-padding-3 {
padding-left: 3px; padding-left: 3px;
padding-right: 3px; padding-right: 3px;
} }
&.horizontal-padding-4 { &.horizontal-padding-4 {
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
} }
&.horizontal-padding-5 { &.horizontal-padding-5 {
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
} }
&.horizontal-padding-6 { &.horizontal-padding-6 {
padding-left: 6px; padding-left: 6px;
padding-right: 6px; padding-right: 6px;
} }
&.horizontal-padding-7 { &.horizontal-padding-7 {
padding-left: 7px; padding-left: 7px;
padding-right: 7px; padding-right: 7px;
} }
&.horizontal-padding-8 { &.horizontal-padding-8 {
padding-left: 8px; padding-left: 8px;
padding-right: 8px; padding-right: 8px;
} }
&.horizontal-padding-9 { &.horizontal-padding-9 {
padding-left: 9px; padding-left: 9px;
padding-right: 9px; padding-right: 9px;
} }
&.horizontal-padding-10 { &.horizontal-padding-10 {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
} }
} }
@mixin font-size-mixin(){ @mixin font-size-mixin() {
&.font-size-10 { &.font-size-10 {
font-size: 10px; font-size: 10px;
} }
&.font-size-11 { &.font-size-11 {
font-size: 11px; font-size: 11px;
} }
&.font-size-12 { &.font-size-12 {
font-size: 12px; font-size: 12px;
} }
&.font-size-13 { &.font-size-13 {
font-size: 13px; font-size: 13px;
} }
&.font-size-14 { &.font-size-14 {
font-size: 14px; font-size: 14px;
} }
&.font-size-15 { &.font-size-15 {
font-size: 15px; font-size: 15px;
} }
&.font-size-16 { &.font-size-16 {
font-size: 16px; font-size: 16px;
} }
&.font-size-17 { &.font-size-17 {
font-size: 17px; font-size: 17px;
} }
&.font-size-18 { &.font-size-18 {
font-size: 18px; font-size: 18px;
} }
&.font-size-19 { &.font-size-19 {
font-size: 19px; font-size: 19px;
} }
&.font-size-20 { &.font-size-20 {
font-size: 20px; font-size: 20px;
} }
&.font-size-21 { &.font-size-21 {
font-size: 21px; font-size: 21px;
} }
&.font-size-22 { &.font-size-22 {
font-size: 22px; font-size: 22px;
} }
&.font-size-23 { &.font-size-23 {
font-size: 23px; font-size: 23px;
} }
&.font-size-24 { &.font-size-24 {
font-size: 24px; font-size: 24px;
} }
&.font-size-25 { &.font-size-25 {
font-size: 25px; font-size: 25px;
} }
&.font-size-26 { &.font-size-26 {
font-size: 26px; font-size: 26px;
} }
} }
@mixin font-weight-mixin(){ @mixin font-weight-mixin() {
&.font-weight-100 { &.font-weight-100 {
font-weight: 100; font-weight: 100;
} }
&.font-weight-200 { &.font-weight-200 {
font-weight: 200; font-weight: 200;
} }
&.font-weight-300 { &.font-weight-300 {
font-weight: 300; font-weight: 300;
} }
&.font-weight-400 { &.font-weight-400 {
font-weight: 400; font-weight: 400;
} }
&.font-weight-500 { &.font-weight-500 {
font-weight: 500; font-weight: 500;
} }
&.font-weight-600 { &.font-weight-600 {
font-weight: 600; font-weight: 600;
} }
&.font-weight-700 { &.font-weight-700 {
font-weight: 700; font-weight: 700;
} }
} }
@mixin avatar-dims-mixin(){ @mixin avatar-dims-mixin() {
&.size-xs { &.size-xs {
width: 20px; width: 20px;
height: 20px; height: 20px;
font-size: 7px; // 18px * (20 / 50) font-size: 7px; // 18px * (20 / 50)
.status-indicator { .status-indicator {
width: 5px; // scaled indicator size width: 5px; // scaled indicator size
height: 5px; height: 5px;
}
} }
}
&.size-sm { &.size-sm {
width: 30px; width: 30px;
height: 30px; height: 30px;
font-size: 11px; // 18px * (30 / 50) font-size: 11px; // 18px * (30 / 50)
.status-indicator { .status-indicator {
width: 7px; width: 7px;
height: 7px; height: 7px;
}
} }
}
&.size-md { &.size-md {
width: 40px; width: 40px;
height: 40px; height: 40px;
font-size: 14px; // 18px * (40 / 50) font-size: 14px; // 18px * (40 / 50)
.status-indicator { .status-indicator {
width: 9px; width: 9px;
height: 9px; height: 9px;
}
} }
}
&.size-lg { &.size-lg {
width: 45px; width: 45px;
height: 45px; height: 45px;
font-size: 16px; // 18px * (45 / 50) font-size: 16px; // 18px * (45 / 50)
.status-indicator { .status-indicator {
width: 10px; width: 10px;
height: 10px; height: 10px;
}
} }
}
&.size-xl { &.size-xl {
width: 50px; width: 50px;
height: 50px; height: 50px;
font-size: 18px; // base size font-size: 18px; // base size
.status-indicator { .status-indicator {
width: 12px; width: 12px;
height: 12px; height: 12px;
}
} }
}
} }

View File

@ -2,65 +2,65 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.about-modal { .about-modal {
padding-bottom: 34px; padding-bottom: 34px;
.content-wrapper .modal-content { .content-wrapper .modal-content {
margin-bottom: 0; margin-bottom: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
padding: 0px 0px; padding: 0px 0px;
gap: 24px; gap: 24px;
.section-wrapper { .section-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 26px; gap: 26px;
width: 100%; width: 100%;
}
.section {
align-items: center;
gap: 16px;
align-self: stretch;
width: 100%;
text-align: center;
&.logo-section {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
.app-name {
font-size: 25px;
}
.text-standard {
line-height: 20px;
}
}
}
.section.links {
display: flex;
align-items: flex-start;
gap: 10px;
.button {
display: flex;
align-items: center;
.icon-left {
margin-right: 5px;
}
i {
font-size: 16px;
margin-right: 5px;
}
}
}
} }
.section {
align-items: center;
gap: 16px;
align-self: stretch;
width: 100%;
text-align: center;
&.logo-section {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
.app-name {
font-size: 25px;
}
.text-standard {
line-height: 20px;
}
}
}
.section.links {
display: flex;
align-items: flex-start;
gap: 10px;
.button {
display: flex;
align-items: center;
.icon-left {
margin-right: 5px;
}
i {
font-size: 16px;
margin-right: 5px;
}
}
}
}
} }

View File

@ -2,5 +2,5 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.message-modal { .message-modal {
min-width: 400px; min-width: 400px;
} }

View File

@ -2,71 +2,71 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.modal-wrapper { .modal-wrapper {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: var(--zindex-modal-wrapper);
.modal-backdrop {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
display: flex; background-color: rgba(21, 23, 21, 0.7);
justify-content: center; z-index: var(--zindex-modal-backdrop);
align-items: center; }
z-index: var(--zindex-modal-wrapper);
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(21, 23, 21, 0.7);
z-index: var(--zindex-modal-backdrop);
}
} }
.modal { .modal {
position: relative; position: relative;
z-index: var(--zindex-modal); z-index: var(--zindex-modal);
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 24px 16px 16px;
border-radius: 8px;
border: 0.5px solid var(--modal-border-color);
background: var(--modal-bg-color);
box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.25);
.modal-close-btn {
position: absolute;
right: 8px;
top: 8px;
padding: 8px 12px;
i {
font-size: 18px;
}
}
.content-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; gap: 8px;
padding: 24px 16px 16px; width: 100%;
border-radius: 8px;
border: 0.5px solid var(--modal-border-color);
background: var(--modal-bg-color);
box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.25);
.modal-close-btn { .modal-content {
position: absolute; width: 100%;
right: 8px; padding: 0px 20px;
top: 8px;
padding: 8px 12px;
i {
font-size: 18px;
}
} }
}
.content-wrapper { .modal-footer {
display: flex; display: flex;
flex-direction: column; justify-content: flex-end;
gap: 8px; width: 100%;
width: 100%; padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
.modal-content { .button:last-child {
width: 100%; margin-left: 8px;
padding: 0px 20px;
}
}
.modal-footer {
display: flex;
justify-content: flex-end;
width: 100%;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
.button:last-child {
margin-left: 8px;
}
} }
}
} }

View File

@ -2,245 +2,245 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.tos-modal { .tos-modal {
width: 560px; width: 560px;
border-radius: 10px; border-radius: 10px;
padding: 0; padding: 0;
.modal-inner { .modal-inner {
display: flex;
flex-direction: column;
overflow-y: auto;
padding: 30px;
width: 100%;
header.tos-header {
flex-direction: column;
gap: 8px;
border-bottom: none;
padding: 0;
margin-bottom: 36px;
width: 100%;
.logo {
margin-bottom: 10px;
display: flex; display: flex;
flex-direction: column; justify-content: center;
overflow-y: auto; }
padding: 30px;
.modal-title {
text-align: center;
font-size: 25px;
font-weight: 400;
color: var(--main-text-color);
}
.modal-subtitle {
color: var(--main-text-color);
text-align: center;
font-style: normal;
font-weight: 300;
line-height: 20px;
}
}
.tos-content {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 32px;
width: 100%;
margin-bottom: 0;
margin-bottom: 20px;
.check-toggle-wrapper .toggle-label {
color: var(--secondary-text-color);
}
.tips-wrapper {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%; width: 100%;
header.tos-header { .tips-section {
flex-direction: column; display: flex;
gap: 8px; flex-direction: column;
border-bottom: none; flex-grow: 1;
padding: 0; gap: 5px;
margin-bottom: 36px;
width: 100%;
.logo { .tip-section-header {
margin-bottom: 10px; font-weight: bold;
display: flex; margin-bottom: 5px;
justify-content: center; margin-top: 10px;
&:first-child {
margin-top: 0;
} }
}
.modal-title { .tip {
text-align: center;
font-size: 25px;
font-weight: 400;
color: var(--main-text-color);
}
.modal-subtitle {
color: var(--main-text-color);
text-align: center;
font-style: normal;
font-weight: 300;
line-height: 20px;
}
}
.tos-content {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
align-items: flex-start; align-items: center;
gap: 32px;
width: 100%;
margin-bottom: 0;
margin-bottom: 20px;
.check-toggle-wrapper .toggle-label { .keybinding2 {
color: var(--secondary-text-color); font: var(--fixed-font);
background-color: var(--highlight-bg-color);
color: var(--main-text-color);
padding: 2px 8px;
border-radius: 4px;
} }
.tips-wrapper { .keybinding-group {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; align-items: center;
width: 100%; margin-left: 5px;
margin-right: 5px;
.tips-section { &:first-child {
display: flex; margin-left: 0;
flex-direction: column; }
flex-grow: 1;
gap: 5px;
.tip-section-header {
font-weight: bold;
margin-bottom: 5px;
margin-top: 10px;
&:first-child {
margin-top: 0;
}
}
.tip {
display: flex;
flex-direction: row;
align-items: center;
.keybinding2 {
font: var(--fixed-font);
background-color: var(--highlight-bg-color);
color: var(--main-text-color);
padding: 2px 8px;
border-radius: 4px;
}
.keybinding-group {
display: flex;
flex-direction: row;
align-items: center;
margin-left: 5px;
margin-right: 5px;
&:first-child {
margin-left: 0;
}
}
.keybinding {
display: inline-block;
padding: 0.1em 0.4em;
margin: 0 0.1em;
font-family: "SF Pro Text", "Segoe UI", sans-serif;
font-size: 0.85em;
color: #e0e0e0;
background-color: #333;
border-radius: 4px;
border: 1px solid #444;
box-shadow: none;
}
.keybinding3 {
color: black;
display: inline-block;
padding: 0.2em 0.4em;
min-width: 24px;
height: 22px;
margin: 0 0.1em;
font-family: "SF Pro Text", "Segoe UI", sans-serif;
font-size: 0.9em;
border: 1px solid #aaa;
border-radius: 4px;
background-color: #ddd;
color: var(--invert-text-color);
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
text-align: center;
}
.icon-wrap {
background-color: var(--highlight-bg-color);
padding: 2px;
color: var(--secondary-text-color);
font-size: 12px;
border-radius: 2px;
margin-right: 5px;
svg {
position: relative;
top: 3px;
left: 1px;
height: 13px;
#arrow1,
#arrow2 {
fill: var(--main-text-color);
}
}
}
}
}
} }
.content-section { .keybinding {
display: flex; display: inline-block;
width: 100%; padding: 0.1em 0.4em;
align-items: center; margin: 0 0.1em;
gap: 18px; font-family: "SF Pro Text", "Segoe UI", sans-serif;
font-size: 0.85em;
.icon-wrapper { color: #e0e0e0;
.icon { background-color: #333;
font-size: 32px; border-radius: 4px;
color: rgba(255, 255, 255, 0.5); border: 1px solid #444;
} box-shadow: none;
.fa-people-group {
font-size: 25px;
}
}
.content-section-inner {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
flex: 1 0 0;
.content-section-title {
color: var(--main-text-color);
font-style: normal;
line-height: 18px;
font-size: 16px;
margin-bottom: 5px;
}
.content-section-text {
color: var(--secondary-text-color);
font-style: normal;
line-height: 20px;
b {
color: var(--main-text-color);
}
}
.content-section-field {
display: flex;
align-items: center;
gap: 8px;
}
.check-toggle-wrapper {
margin-top: 5px;
label {
font-size: 13px;
}
}
}
} }
.keybinding3 {
color: black;
display: inline-block;
padding: 0.2em 0.4em;
min-width: 24px;
height: 22px;
margin: 0 0.1em;
font-family: "SF Pro Text", "Segoe UI", sans-serif;
font-size: 0.9em;
border: 1px solid #aaa;
border-radius: 4px;
background-color: #ddd;
color: var(--invert-text-color);
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
text-align: center;
}
.icon-wrap {
background-color: var(--highlight-bg-color);
padding: 2px;
color: var(--secondary-text-color);
font-size: 12px;
border-radius: 2px;
margin-right: 5px;
svg {
position: relative;
top: 3px;
left: 1px;
height: 13px;
#arrow1,
#arrow2 {
fill: var(--main-text-color);
}
}
}
}
}
}
.content-section {
display: flex;
width: 100%;
align-items: center;
gap: 18px;
.icon-wrapper {
.icon {
font-size: 32px;
color: rgba(255, 255, 255, 0.5);
}
.fa-people-group {
font-size: 25px;
}
} }
footer { .content-section-inner {
.content-section-text { display: flex;
text-align: center; flex-direction: column;
color: rgba(255, 255, 255, 0.7); align-items: flex-start;
font-size: 11px; gap: 4px;
flex: 1 0 0;
.content-section-title {
color: var(--main-text-color);
font-style: normal;
line-height: 18px;
font-size: 16px;
margin-bottom: 5px;
}
.content-section-text {
color: var(--secondary-text-color);
font-style: normal;
line-height: 20px;
b {
color: var(--main-text-color);
} }
}
.button-wrapper { .content-section-field {
display: flex; display: flex;
flex-direction: row; align-items: center;
align-items: center; gap: 8px;
justify-content: center; }
button { .check-toggle-wrapper {
font-size: 14px; margin-top: 5px;
}
button:not(:first-child) { label {
margin-left: 10px; font-size: 13px;
}
button.disabled-button {
cursor: default;
}
} }
}
} }
}
} }
footer {
.content-section-text {
text-align: center;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
}
.button-wrapper {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
button {
font-size: 14px;
}
button:not(:first-child) {
margin-left: 10px;
}
button.disabled-button {
cursor: default;
}
}
}
}
} }

View File

@ -4,116 +4,116 @@
@use "../mixins.scss"; @use "../mixins.scss";
.type-ahead-modal-backdrop { .type-ahead-modal-backdrop {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background-color: transparent; background-color: transparent;
z-index: var(--zindex-typeahead-modal-backdrop); z-index: var(--zindex-typeahead-modal-backdrop);
} }
.type-ahead-modal { .type-ahead-modal {
position: absolute; position: absolute;
z-index: var(--zindex-typeahead-modal); z-index: var(--zindex-typeahead-modal);
display: flex;
flex-direction: column;
align-items: flex-start;
border-radius: 6px;
border: 1px solid var(--modal-border-color);
background: var(--modal-bg-color);
box-shadow: 0px 13px 16px 0px rgba(0, 0, 0, 0.4);
padding: 6px;
flex-direction: column;
.label {
opacity: 0.5;
font-size: 13px;
white-space: nowrap;
}
.input {
border: none;
border-bottom: none;
height: 24px;
border-radius: 0;
input {
width: 100%;
flex-shrink: 0;
padding: 4px 6px;
height: 24px;
}
.input-decoration.end-position {
margin: 6px;
i {
opacity: 0.3;
}
}
}
&.has-suggestions {
.input {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
}
.suggestions-wrapper {
width: 100%;
overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; gap: 10px;
border-radius: 6px;
border: 1px solid var(--modal-border-color);
background: var(--modal-bg-color);
box-shadow: 0px 13px 16px 0px rgba(0, 0, 0, 0.4);
padding: 6px;
flex-direction: column;
.label { .suggestion-header {
opacity: 0.5; font-size: 11px;
font-size: 13px; font-style: normal;
white-space: nowrap; font-weight: 500;
line-height: 12px;
opacity: 0.7;
letter-spacing: 0.11px;
padding: 4px 0px 0px 4px;
} }
.input { .suggestion-item {
border: none; width: 100%;
border-bottom: none; cursor: pointer;
height: 24px; display: flex;
border-radius: 0; padding: 6px 8px;
align-items: center;
gap: 8px;
align-self: stretch;
border-radius: 4px;
input { &.selected {
width: 100%; background-color: rgb(from var(--accent-color) r g b / 0.5);
flex-shrink: 0; color: var(--main-text-color);
padding: 4px 6px; }
height: 24px;
}
.input-decoration.end-position { &:hover:not(.selected) {
margin: 6px; background-color: var(--highlight-bg-color);
}
i { .typeahead-item-name {
opacity: 0.3; @include mixins.ellipsis();
}
}
}
&.has-suggestions {
.input {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
}
.suggestions-wrapper {
width: 100%;
overflow: hidden;
display: flex; display: flex;
flex-direction: column; gap: 8px;
gap: 10px; font-size: 11px;
font-weight: 400;
line-height: 14px;
.suggestion-header { i {
font-size: 11px; display: inline-block;
font-style: normal; position: relative;
font-weight: 500; top: 2px;
line-height: 12px;
opacity: 0.7;
letter-spacing: 0.11px;
padding: 4px 0px 0px 4px;
} }
}
.suggestion-item { .typeahead-current-checkbox {
width: 100%; margin-left: auto;
cursor: pointer; }
display: flex;
padding: 6px 8px;
align-items: center;
gap: 8px;
align-self: stretch;
border-radius: 4px;
&.selected {
background-color: rgb(from var(--accent-color) r g b / 0.5);
color: var(--main-text-color);
}
&:hover:not(.selected) {
background-color: var(--highlight-bg-color);
}
.typeahead-item-name {
@include mixins.ellipsis();
display: flex;
gap: 8px;
font-size: 11px;
font-weight: 400;
line-height: 14px;
i {
display: inline-block;
position: relative;
top: 2px;
}
}
.typeahead-current-checkbox {
margin-left: auto;
}
}
} }
}
} }

View File

@ -2,60 +2,60 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.userinput-header { .userinput-header {
font-weight: bold; font-weight: bold;
color: var(--main-text-color); color: var(--main-text-color);
padding-bottom: 10px; padding-bottom: 10px;
} }
.userinput-body { .userinput-body {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 1rem;
margin: 0 1rem 1rem 1rem;
font: var(--fixed-font);
color: var(--main-text-color);
.userinput-markdown {
color: inherit;
}
.userinput-text {
}
.userinput-inputbox {
resize: none;
background-color: var(--panel-bg-color);
border-radius: 6px;
margin: 0;
border: var(--border-color);
padding: 5px 0 5px 16px;
min-height: 30px;
color: inherit;
&:hover {
cursor: text;
}
&:focus {
outline-color: var(--accent-color);
}
}
.userinput-checkbox-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; gap: 6px;
gap: 1rem;
margin: 0 1rem 1rem 1rem;
font: var(--fixed-font); .userinput-checkbox-row {
color: var(--main-text-color); display: flex;
align-items: center;
gap: 6px;
.userinput-markdown { .userinput-checkbox {
color: inherit; accent-color: var(--accent-color);
} }
.userinput-text {
}
.userinput-inputbox {
resize: none;
background-color: var(--panel-bg-color);
border-radius: 6px;
margin: 0;
border: var(--border-color);
padding: 5px 0 5px 16px;
min-height: 30px;
color: inherit;
&:hover {
cursor: text;
}
&:focus {
outline-color: var(--accent-color);
}
}
.userinput-checkbox-container {
display: flex;
flex-direction: column;
gap: 6px;
.userinput-checkbox-row {
display: flex;
align-items: center;
gap: 6px;
.userinput-checkbox {
accent-color: var(--accent-color);
}
}
} }
}
} }

View File

@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.notification-bubbles { .notification-bubbles {
display: flex; display: flex;
width: 380px; width: 380px;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
row-gap: 8px; row-gap: 8px;
} }

View File

@ -2,63 +2,63 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.notification-popover { .notification-popover {
padding: 8px 2px 8px 0px; padding: 8px 2px 8px 0px;
display: flex;
align-items: center;
justify-content: center;
button {
width: 27px;
height: 26px;
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
button { i {
width: 27px; font-size: 17px;
height: 26px;
display: flex;
justify-content: center;
i {
font-size: 17px;
}
} }
}
} }
.notification-content { .notification-content {
display: flex;
width: 380px;
padding: 10px 0 0;
flex-direction: column;
align-items: flex-start;
column-gap: 8px;
border-radius: 8px;
border: 0.5px solid rgba(255, 255, 255, 0.12);
background: #232323;
box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.25);
.divider {
background: rgba(255, 255, 255, 0.08);
height: 1px;
width: 100%;
}
.header {
display: flex; display: flex;
width: 380px; align-items: center;
padding: 10px 0 0; justify-content: space-between;
flex-direction: column; width: 100%;
align-items: flex-start; padding: 0 10px 8px 10px;
column-gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
border: 0.5px solid rgba(255, 255, 255, 0.12);
background: #232323;
box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.25);
.divider { span {
background: rgba(255, 255, 255, 0.08); color: var(--main-text-color);
height: 1px; font-size: 14px;
width: 100%; font-style: normal;
font-weight: 600;
line-height: 16px;
} }
}
.header { .close-all-btn {
display: flex; font-size: 13px;
align-items: center; font-style: normal;
justify-content: space-between; font-weight: 400;
width: 100%; line-height: 16px;
padding: 0 10px 8px 10px; color: rgba(255, 255, 255, 0.4);
border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
span {
color: var(--main-text-color);
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 16px;
}
}
.close-all-btn {
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: 16px;
color: rgba(255, 255, 255, 0.4);
}
} }

View File

@ -4,16 +4,16 @@
*, *,
*::before, *::before,
*::after { *::after {
box-sizing: border-box; box-sizing: border-box;
} }
* { * {
margin: 0; margin: 0;
} }
body { body {
line-height: 1.2; line-height: 1.2;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
img, img,
@ -21,12 +21,12 @@ picture,
video, video,
canvas, canvas,
svg { svg {
display: block; display: block;
} }
input, input,
button, button,
textarea, textarea,
select { select {
font: inherit; font: inherit;
} }

View File

@ -2,115 +2,115 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.tab-bar-wrapper { .tab-bar-wrapper {
--default-indent: 10px; --default-indent: 10px;
--darwin-not-fullscreen-indent: 74px; --darwin-not-fullscreen-indent: 74px;
} }
.darwin:not(.fullscreen) .tab-bar-wrapper { .darwin:not(.fullscreen) .tab-bar-wrapper {
.window-drag.left { .window-drag.left {
width: var(--darwin-not-fullscreen-indent); width: var(--darwin-not-fullscreen-indent);
} }
} }
.config-error-message { .config-error-message {
max-width: 500px; max-width: 500px;
h3 { h3 {
margin-bottom: 10px; margin-bottom: 10px;
} }
margin-bottom: 20px; margin-bottom: 20px;
} }
.tab-bar-wrapper { .tab-bar-wrapper {
position: relative; position: relative;
user-select: none;
display: flex;
flex-direction: row;
width: env(titlebar-area-width);
.tabs-wrapper {
transition: var(--tabs-wrapper-transition);
height: 32px;
}
.tab-bar {
position: relative; // Needed for absolute positioning of child tabs
height: 33px;
}
.dev-label,
.app-menu-button {
font-size: 26px;
user-select: none; user-select: none;
display: flex; display: flex;
flex-direction: row; align-items: center;
width: env(titlebar-area-width); justify-content: center;
margin: 6px 6px 0 0;
}
.tabs-wrapper { .app-menu-button {
transition: var(--tabs-wrapper-transition); cursor: pointer;
height: 32px; color: var(--secondary-text-color);
&:hover {
color: var(--main-text-color);
}
}
.dev-label {
color: var(--accent-color);
}
.config-error-button {
height: 80%;
margin: auto 4px;
color: black;
flex: 0 0 fit-content;
}
.add-tab-btn {
width: 22px;
height: 100%;
cursor: pointer;
font-size: 14px;
text-align: center;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.5;
&:hover {
opacity: 1;
} }
.tab-bar { i {
position: relative; // Needed for absolute positioning of child tabs overflow: hidden;
height: 33px; margin-top: 5px;
font-size: 11px;
} }
}
.dev-label, .window-drag {
.app-menu-button { height: 100%;
font-size: 26px; width: var(--default-indent);
user-select: none; flex-shrink: 0;
display: flex;
align-items: center; &.right {
justify-content: center; flex-grow: 1;
margin: 6px 6px 0 0;
} }
}
.app-menu-button { // Customize scrollbar styles
cursor: pointer; .os-theme-dark,
color: var(--secondary-text-color); .os-theme-light {
box-sizing: border-box;
&:hover { --os-size: 2px;
color: var(--main-text-color); --os-padding-perpendicular: 0px;
} --os-padding-axis: 0px;
} --os-track-border-radius: 2px;
--os-handle-interactive-area-offset: 0px;
.dev-label { --os-handle-border-radius: 2px;
color: var(--accent-color); }
}
.config-error-button {
height: 80%;
margin: auto 4px;
color: black;
flex: 0 0 fit-content;
}
.add-tab-btn {
width: 22px;
height: 100%;
cursor: pointer;
font-size: 14px;
text-align: center;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.5;
&:hover {
opacity: 1;
}
i {
overflow: hidden;
margin-top: 5px;
font-size: 11px;
}
}
.window-drag {
height: 100%;
width: var(--default-indent);
flex-shrink: 0;
&.right {
flex-grow: 1;
}
}
// Customize scrollbar styles
.os-theme-dark,
.os-theme-light {
box-sizing: border-box;
--os-size: 2px;
--os-padding-perpendicular: 0px;
--os-padding-axis: 0px;
--os-track-border-radius: 2px;
--os-handle-interactive-area-offset: 0px;
--os-handle-border-radius: 2px;
}
} }

View File

@ -2,35 +2,35 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.tabcontent { .tabcontent {
display: flex;
flex-direction: row;
flex-grow: 1;
min-height: 0;
width: 100%;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
padding-top: 3px;
padding-right: 3px;
.block-container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-grow: 1; flex: 1 0 0;
min-height: 0; height: 100%;
width: 100%;
align-items: center;
justify-content: center;
overflow: hidden; overflow: hidden;
position: relative; border: 1px solid var(--border-color);
padding-top: 3px; border-radius: 4px;
padding-right: 3px; }
.block-container {
display: flex;
flex-direction: row;
flex: 1 0 0;
height: 100%;
overflow: hidden;
border: 1px solid var(--border-color);
border-radius: 4px;
}
} }
.drag-preview { .drag-preview {
display: block; display: block;
width: 100px; width: 100px;
height: 20px; height: 20px;
border-radius: 2px; border-radius: 2px;
background-color: aquamarine; background-color: aquamarine;
color: black; color: black;
text-align: center; text-align: center;
} }

View File

@ -1,11 +1,11 @@
.update-available-button { .update-available-button {
height: 80%; height: 80%;
margin: auto 4px; margin: auto 4px;
color: black; color: black;
background-color: var(--accent-color); background-color: var(--accent-color);
flex: 0 0 fit-content; flex: 0 0 fit-content;
&:disabled { &:disabled {
opacity: unset !important; opacity: unset !important;
} }
} }

View File

@ -2,29 +2,29 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.channel-list { .channel-list {
width: 180px; width: 180px;
background-color: rgba(255, 255, 255, 0.025); background-color: rgba(255, 255, 255, 0.025);
overflow-x: hidden; overflow-x: hidden;
padding: 5px; padding: 5px;
.menu-item-button { .menu-item-button {
padding: 5px 7px; padding: 5px 7px;
} }
.nested-list { .nested-list {
padding-left: 10px; padding-left: 10px;
} }
.menu-item-text { .menu-item-text {
color: rgb(from var(--main-text-color) r g b / 0.7); color: rgb(from var(--main-text-color) r g b / 0.7);
} }
.has-children .menu-item-text { .has-children .menu-item-text {
font-size: 14px; font-size: 14px;
} }
.is-open .menu-item-text { .is-open .menu-item-text {
color: var(--main-text-color); color: var(--main-text-color);
font-weight: bold; font-weight: bold;
} }
} }

View File

@ -2,30 +2,30 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.chat-view { .chat-view {
display: flex;
flex-direction: row;
width: 100%;
height: 100%;
.chat-section {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
width: 100%; flex-grow: 1;
height: 100%;
.chat-section { .message-wrapper {
display: flex; flex-grow: 1; // Make the ChatMessages take up available height
flex-direction: column; display: flex;
flex-grow: 1; flex-direction: column;
overflow: hidden; // Ensure content doesn't overflow
.message-wrapper {
flex-grow: 1; // Make the ChatMessages take up available height
display: flex;
flex-direction: column;
overflow: hidden; // Ensure content doesn't overflow
}
.chatbox {
display: flex;
align-items: center;
textarea {
border: none;
}
}
} }
.chatbox {
display: flex;
align-items: center;
textarea {
border: none;
}
}
}
} }

View File

@ -2,50 +2,50 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.chat-messages { .chat-messages {
height: 100%; height: 100%;
width: 100%; width: 100%;
padding: 10px; padding: 10px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
} }
.chat-message { .chat-message {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
align-items: center; align-items: center;
margin-bottom: 8px; margin-bottom: 8px;
font-size: 1em; font-size: 1em;
line-height: 1.4; line-height: 1.4;
} }
.chat-user-icon { .chat-user-icon {
height: 1em; /* Make user icon height match the text height */ height: 1em; /* Make user icon height match the text height */
width: 1em; /* Keep the icon proportional */ width: 1em; /* Keep the icon proportional */
border-radius: 50%; border-radius: 50%;
margin-right: 8px; margin-right: 8px;
} }
.chat-username { .chat-username {
font-weight: bold; font-weight: bold;
margin-right: 4px; margin-right: 4px;
line-height: 1.4; /* Ensure alignment with the first line of the message */ line-height: 1.4; /* Ensure alignment with the first line of the message */
} }
.chat-text { .chat-text {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
} }
.chat-text img { .chat-text img {
height: 1em; /* Make inline images (rendered via markdown) match the text height */ height: 1em; /* Make inline images (rendered via markdown) match the text height */
width: auto; /* Keep the aspect ratio of images */ width: auto; /* Keep the aspect ratio of images */
margin: 0 4px; margin: 0 4px;
display: inline; display: inline;
} }
.chat-emoji { .chat-emoji {
margin: 0 2px; margin: 0 2px;
font-size: 1em; /* Match emoji size with the text height */ font-size: 1em; /* Match emoji size with the text height */
} }

View File

@ -2,35 +2,35 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.user-list { .user-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 10px; padding: 10px;
max-width: 250px; max-width: 250px;
background-color: rgba(255, 255, 255, 0.025); background-color: rgba(255, 255, 255, 0.025);
padding: 5px; padding: 5px;
} }
.user-status-item { .user-status-item {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 8px; padding: 8px;
margin-bottom: 6px; margin-bottom: 6px;
cursor: pointer; cursor: pointer;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
} }
.user-status-item:hover { .user-status-item:hover {
background-color: var(--button-grey-hover-bg); background-color: var(--button-grey-hover-bg);
border-radius: 4px; border-radius: 4px;
} }
.user-status-icon { .user-status-icon {
margin-right: 10px; margin-right: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.user-status-text { .user-status-text {
font-size: 1em; font-size: 1em;
font-weight: bold; font-weight: bold;
} }

View File

@ -2,28 +2,28 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.code-editor-wrapper { .code-editor-wrapper {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow: hidden;
align-items: center;
justify-content: center;
.code-editor {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%;
height: 100%; height: 100%;
overflow: hidden; width: 100%;
align-items: center;
justify-content: center;
.code-editor { .monaco-editor .slider {
display: flex; background: rgba(255, 255, 255, 0.4);
flex-direction: column; border-radius: 4px;
height: 100%; transition: background 0.2s ease;
width: 100%;
.monaco-editor .slider { &:hover {
background: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.6);
border-radius: 4px; }
transition: background 0.2s ease;
&:hover {
background: rgba(255, 255, 255, 0.6);
}
}
} }
}
} }

View File

@ -2,11 +2,11 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.help-view { .help-view {
width: 100%;
height: 100%;
.docsite-webview {
width: 100%; width: 100%;
height: 100%; height: 100%;
.docsite-webview { border: 0;
width: 100%; }
height: 100%;
border: 0;
}
} }

View File

@ -2,21 +2,21 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.plot-view { .plot-view {
width: 100%;
.plot-window {
display: flex;
justify-content: center;
}
.plot-config {
width: 100%; width: 100%;
margin: 0;
.plot-window { padding: 0;
display: flex; resize: none;
justify-content: center; height: 50vh;
} background-color: var(--panel-bg-color);
color: var(--main-text-color);
.plot-config { font: var(--fixed-font);
width: 100%; }
margin: 0;
padding: 0;
resize: none;
height: 50vh;
background-color: var(--panel-bg-color);
color: var(--main-text-color);
font: var(--fixed-font);
}
} }

View File

@ -4,93 +4,93 @@
@use "../../mixins.scss"; @use "../../mixins.scss";
.csv-view { .csv-view {
opacity: 0; /* Start with an opacity of 0, meaning it's invisible */ opacity: 0; /* Start with an opacity of 0, meaning it's invisible */
@include mixins.ellipsis(); @include mixins.ellipsis();
overflow-x: auto;
overflow-y: hidden;
.cursor-pointer {
cursor: pointer;
}
.select-none {
user-select: none;
}
table.probe {
position: absolute;
visibility: hidden;
}
table {
border-collapse: collapse;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; border: 1px solid var(--scrollbar-thumb-hover-color);
.cursor-pointer { thead {
cursor: pointer; position: relative;
} display: block;
width: 100%;
overflow-y: scroll;
.select-none { tr {
user-select: none; border-bottom: 1px solid var(--scrollbar-thumb-hover-color);
}
table.probe { th {
position: absolute; color: var(--main-text-color);
visibility: hidden; border-right: 1px solid var(--scrollbar-thumb-hover-color);
} border-bottom: none;
padding: 2px 10px;
flex-basis: 100%;
flex-grow: 2;
display: block;
text-align: left;
position: relative;
table { .inner {
border-collapse: collapse; text-align: left;
overflow-x: auto; padding-right: 15px;
border: 1px solid var(--scrollbar-thumb-hover-color);
thead {
position: relative; position: relative;
display: block; @include mixins.ellipsis();
width: 100%;
overflow-y: scroll;
tr { .sort-icon {
border-bottom: 1px solid var(--scrollbar-thumb-hover-color); position: absolute;
right: 0px;
th { top: 2px;
color: var(--main-text-color); width: 9px;
border-right: 1px solid var(--scrollbar-thumb-hover-color);
border-bottom: none;
padding: 2px 10px;
flex-basis: 100%;
flex-grow: 2;
display: block;
text-align: left;
position: relative;
.inner {
text-align: left;
padding-right: 15px;
position: relative;
@include mixins.ellipsis();
.sort-icon {
position: absolute;
right: 0px;
top: 2px;
width: 9px;
}
}
}
}
}
tbody {
display: block;
position: relative;
overflow-y: scroll;
overscroll-behavior: contain;
}
tr {
width: 100%;
display: flex;
td {
border-right: 1px solid var(--scrollbar-thumb-hover-color);
border-left: 1px solid var(--scrollbar-thumb-hover-color);
padding: 3px 10px;
flex-basis: 100%;
flex-grow: 2;
display: block;
text-align: left;
@include mixins.ellipsis();
} }
}
} }
}
} }
tbody {
display: block;
position: relative;
overflow-y: scroll;
overscroll-behavior: contain;
}
tr {
width: 100%;
display: flex;
td {
border-right: 1px solid var(--scrollbar-thumb-hover-color);
border-left: 1px solid var(--scrollbar-thumb-hover-color);
padding: 3px 10px;
flex-basis: 100%;
flex-grow: 2;
display: block;
text-align: left;
@include mixins.ellipsis();
}
}
}
} }
.csv-view.show { .csv-view.show {
opacity: 1; opacity: 1;
} }

View File

@ -2,82 +2,82 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.view-preview { .view-preview {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 100%; height: 100%;
flex-grow: 1; flex-grow: 1;
overflow: hidden; overflow: hidden;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 0 5px; padding: 0 5px;
&.view-preview-markdown { &.view-preview-markdown {
align-items: start; align-items: start;
justify-content: start; justify-content: start;
overflow: auto; overflow: auto;
} }
&.view-preview-text { &.view-preview-text {
align-items: start; align-items: start;
justify-content: start; justify-content: start;
overflow: auto; overflow: auto;
pre { pre {
font: var(--fixed-font); font: var(--fixed-font);
}
} }
}
&.view-preview-image, &.view-preview-image,
&.view-preview-video, &.view-preview-video,
&.view-preview-audio { &.view-preview-audio {
video, video,
audio, audio,
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 10px; padding: 10px;
object-fit: contain; object-fit: contain;
}
}
&.view-preview-directory {
flex-direction: column;
align-items: start;
} }
}
&.view-preview-directory {
flex-direction: column;
align-items: start;
}
} }
.full-preview { .full-preview {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
.view-nav { .view-nav {
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
padding: 0.2rem 0 0.2rem 0; padding: 0.2rem 0 0.2rem 0;
.view-nav-item { .view-nav-item {
border-radius: 3px; border-radius: 3px;
padding: 0.2rem 0; padding: 0.2rem 0;
&.clickable { &.clickable {
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: var(--highlight-bg-color); background-color: var(--highlight-bg-color);
} }
}
&.current-file {
background-color: transparent;
cursor: default;
font-weight: bold;
}
} }
&.current-file {
background-color: transparent;
cursor: default;
font-weight: bold;
}
}
} }
.full-preview-content { .full-preview-content {
flex-grow: 1; flex-grow: 1;
overflow: hidden; overflow: hidden;
} }

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.quicktips-view { .quicktips-view {
padding: 10px 5px; padding: 10px 5px;
overflow: auto; overflow: auto;
width: 100%; width: 100%;
} }

View File

@ -2,32 +2,32 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.sysinfo-view { .sysinfo-view {
flex-flow: column nowrap; flex-flow: column nowrap;
flex-grow: 1; flex-grow: 1;
margin-bottom: 0; margin-bottom: 0;
overflow-y: auto; overflow-y: auto;
.sysinfo-inner { .sysinfo-inner {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: grid; display: grid;
grid-template-rows: repeat(auto-fit, minmax(100px, 1fr)); grid-template-rows: repeat(auto-fit, minmax(100px, 1fr));
gap: 10px; gap: 10px;
&.two-columns { &.two-columns {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
}
.sysinfo-plot-content {
min-height: 100px;
svg {
[aria-label="tip"] {
g {
path {
color: var(--border-color);
}
}
}
}
}
} }
.sysinfo-plot-content {
min-height: 100px;
svg {
[aria-label="tip"] {
g {
path {
color: var(--border-color);
}
}
}
}
}
}
} }

View File

@ -2,145 +2,145 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.connection-btn { .connection-btn {
min-height: 0; min-height: 0;
overflow: hidden; overflow: hidden;
line-height: 1; line-height: 1;
display: flex; display: flex;
background-color: orangered; background-color: orangered;
justify-content: flex-start; justify-content: flex-start;
width: 200px; width: 200px;
} }
.view-term { .view-term {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
.term-header {
display: flex;
flex-direction: row;
padding: 4px 10px;
height: 35px;
gap: 10px;
align-items: center;
flex-shrink: 0;
border-bottom: 1px solid var(--border-color);
}
.term-toolbar {
height: 20px;
border-bottom: 1px solid var(--border-color);
overflow: hidden;
}
.term-connectelem {
flex-grow: 1;
min-height: 0;
overflow: hidden;
line-height: 1;
margin: 5px;
margin-left: 4px;
}
.term-htmlelem {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
height: 100%; flex-grow: 1;
min-height: 0;
overflow: hidden; overflow: hidden;
position: relative;
.term-header { .block-content {
display: flex; padding: 0;
flex-direction: row;
padding: 4px 10px;
height: 35px;
gap: 10px;
align-items: center;
flex-shrink: 0;
border-bottom: 1px solid var(--border-color);
}
.term-toolbar {
height: 20px;
border-bottom: 1px solid var(--border-color);
overflow: hidden;
} }
}
&.term-mode-term {
.term-connectelem { .term-connectelem {
flex-grow: 1; display: flex;
min-height: 0;
overflow: hidden;
line-height: 1;
margin: 5px;
margin-left: 4px;
} }
.term-htmlelem { .term-htmlelem {
display: flex; display: none;
flex-direction: column; }
width: 100%; }
flex-grow: 1;
min-height: 0;
overflow: hidden;
.block-content { &.term-mode-vdom {
padding: 0; .term-connectelem {
} display: none;
}
.term-htmlelem {
display: flex;
} }
&.term-mode-term { .ijson iframe {
.term-connectelem { width: 100%;
display: flex; height: 100%;
} border: none;
.term-htmlelem {
display: none;
}
} }
}
&.term-mode-vdom { .term-stickers {
.term-connectelem { position: absolute;
display: none; top: 0;
} left: 0;
.term-htmlelem { width: 100%;
display: flex; height: 100%;
} z-index: var(--zindex-termstickers);
pointer-events: none;
.ijson iframe { .term-sticker-image {
width: 100%; img {
height: 100%; object-fit: contain;
border: none;
}
}
.term-stickers {
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: var(--zindex-termstickers); }
pointer-events: none;
.term-sticker-image {
img {
object-fit: contain;
width: 100%;
height: 100%;
}
}
.term-sticker-svg {
svg {
object-fit: contain;
width: 100%;
height: 100%;
}
}
} }
.terminal { .term-sticker-svg {
.xterm-viewport { svg {
z-index: var(--zindex-xterm-viewport-overlay); object-fit: contain;
width: 100%;
height: 100%;
}
}
}
&::-webkit-scrollbar { .terminal {
width: 6px; .xterm-viewport {
height: 6px; z-index: var(--zindex-xterm-viewport-overlay);
}
&::-webkit-scrollbar-track { &::-webkit-scrollbar {
background-color: var(--scrollbar-background-color); width: 6px;
} height: 6px;
}
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-track {
display: none; background-color: var(--scrollbar-background-color);
background-color: var(--scrollbar-thumb-color); }
border-radius: 4px;
margin: 0 1px 0 1px;
&:hover { &::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-hover-color); display: none;
} background-color: var(--scrollbar-thumb-color);
border-radius: 4px;
&:active { margin: 0 1px 0 1px;
background-color: var(--scrollbar-thumb-active-color);
}
}
}
&:hover { &:hover {
.xterm-viewport::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb-hover-color);
display: block;
}
} }
&:active {
background-color: var(--scrollbar-thumb-active-color);
}
}
} }
&:hover {
.xterm-viewport::-webkit-scrollbar-thumb {
display: block;
}
}
}
} }

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.view-vdom { .view-vdom {
overflow: auto; overflow: auto;
width: 100%; width: 100%;
min-height: 100%; min-height: 100%;
} }

View File

@ -2,151 +2,151 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.waveai { .waveai {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
height: 100%; height: 100%;
width: 100%; width: 100%;
.waveai-chat { .waveai-chat {
flex-grow: 1; flex-grow: 1;
> .scrollable { > .scrollable {
flex-flow: column nowrap; flex-flow: column nowrap;
margin-bottom: 0; margin-bottom: 0;
overflow-y: auto; overflow-y: auto;
min-height: 100%; min-height: 100%;
.chat-window { .chat-window {
display: flex;
flex-direction: column;
gap: 8px;
// This is the filler that will push the chat messages to the bottom until the chat window is full
.filler {
flex: 1 1 auto;
}
}
.chat-msg-container {
display: flex;
gap: 8px;
.chat-msg {
margin: 10px 0;
display: flex;
align-items: flex-start;
border-radius: 8px;
&.chat-msg-header {
display: flex;
flex-direction: column;
justify-content: flex-start;
.icon-box {
padding-top: 0;
border-radius: 4px;
background-color: rgb(from var(--highlight-bg-color) r g b / 0.05);
display: flex;
padding: 6px;
}
}
&.chat-msg-assistant {
color: var(--main-text-color);
background-color: rgb(from var(--highlight-bg-color) r g b / 0.1);
margin-right: auto;
padding: 10px;
max-width: 85%;
.markdown {
width: 100%;
pre {
white-space: pre-wrap;
word-break: break-word;
max-width: 100%;
overflow-x: auto;
margin-left: 0;
}
}
}
&.chat-msg-user {
margin-left: auto;
padding: 10px;
max-width: 85%;
background-color: rgb(from var(--accent-color) r g b / 0.15);
}
&.chat-msg-error {
color: var(--main-text-color);
background-color: rgb(from var(--error-color) r g b / 0.25);
margin-right: auto;
padding: 10px;
max-width: 85%;
.markdown {
width: 100%;
pre {
white-space: pre-wrap;
word-break: break-word;
max-width: 100%;
overflow-x: auto;
margin-left: 0;
}
}
}
&.typing-indicator {
margin-top: 4px;
}
}
}
}
}
.waveai-controls {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
align-items: center; gap: 8px;
justify-content: flex-start;
gap: 10px;
padding: 8px 6px;
.waveai-input-wrapper { // This is the filler that will push the chat messages to the bottom until the chat window is full
padding: 8px 12px; .filler {
flex: 1 1 auto; flex: 1 1 auto;
}
}
.chat-msg-container {
display: flex;
gap: 8px;
.chat-msg {
margin: 10px 0;
display: flex;
align-items: flex-start;
border-radius: 8px;
&.chat-msg-header {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: flex-start;
align-items: flex-start;
border-radius: 6px;
border: 1px solid rgb(from var(--highlight-bg-color) r g b / 0.42);
.waveai-input { .icon-box {
color: var(--main-text-color); padding-top: 0;
background-color: inherit; border-radius: 4px;
resize: none; background-color: rgb(from var(--highlight-bg-color) r g b / 0.05);
width: 100%; display: flex;
border: transparent; padding: 6px;
outline: none;
overflow: auto;
overflow-wrap: anywhere;
font-family: var(--termfontfamily);
font-weight: normal;
line-height: var(--termlineheight);
height: 21px;
} }
} }
.waveai-submit-button { &.chat-msg-assistant {
border-radius: 100%; color: var(--main-text-color);
width: 27px; background-color: rgb(from var(--highlight-bg-color) r g b / 0.1);
aspect-ratio: 1 /1; margin-right: auto;
display: flex; padding: 10px;
align-items: center; max-width: 85%;
justify-content: center;
flex: 0 0 auto; .markdown {
padding: 0; width: 100%;
pre {
white-space: pre-wrap;
word-break: break-word;
max-width: 100%;
overflow-x: auto;
margin-left: 0;
}
}
}
&.chat-msg-user {
margin-left: auto;
padding: 10px;
max-width: 85%;
background-color: rgb(from var(--accent-color) r g b / 0.15);
}
&.chat-msg-error {
color: var(--main-text-color);
background-color: rgb(from var(--error-color) r g b / 0.25);
margin-right: auto;
padding: 10px;
max-width: 85%;
.markdown {
width: 100%;
pre {
white-space: pre-wrap;
word-break: break-word;
max-width: 100%;
overflow-x: auto;
margin-left: 0;
}
}
}
&.typing-indicator {
margin-top: 4px;
}
} }
}
} }
}
.waveai-controls {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 10px;
padding: 8px 6px;
.waveai-input-wrapper {
padding: 8px 12px;
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
border-radius: 6px;
border: 1px solid rgb(from var(--highlight-bg-color) r g b / 0.42);
.waveai-input {
color: var(--main-text-color);
background-color: inherit;
resize: none;
width: 100%;
border: transparent;
outline: none;
overflow: auto;
overflow-wrap: anywhere;
font-family: var(--termfontfamily);
font-weight: normal;
line-height: var(--termlineheight);
height: 21px;
}
}
.waveai-submit-button {
border-radius: 100%;
width: 27px;
aspect-ratio: 1 /1;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
padding: 0;
}
}
} }

View File

@ -2,48 +2,48 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.webview { .webview {
height: 100%; height: 100%;
width: 100%; width: 100%;
border: none !important; border: none !important;
outline: none !important; outline: none !important;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
margin: 0; margin: 0;
user-select: none; user-select: none;
// try to force pixel alignment to prevent // try to force pixel alignment to prevent
// subpixel rendering artifacts // subpixel rendering artifacts
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
will-change: transform; will-change: transform;
} }
.webview-error { .webview-error {
display: flex;
position: absolute;
background-color: black;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 100;
div {
font-size: x-large;
color: var(--error-color);
display: flex; display: flex;
position: absolute; margin: auto;
background-color: black; padding: 30px;
top: 0; }
left: 0;
height: 100%;
width: 100%;
z-index: 100;
div {
font-size: x-large;
color: var(--error-color);
display: flex;
margin: auto;
padding: 30px;
}
} }
.block-frame-div-url { .block-frame-div-url {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
input { input {
opacity: 1; opacity: 1;
} }
.iconbutton { .iconbutton {
width: fit-content !important; width: fit-content !important;
margin-right: 5px; margin-right: 5px;
} }
} }

View File

@ -2,69 +2,69 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.workspace { .workspace {
display: flex;
flex-direction: column;
width: 100%;
flex-grow: 1;
overflow: hidden;
.workspace-tabcontent {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
width: 100%;
flex-grow: 1; flex-grow: 1;
overflow: hidden; overflow: hidden;
}
.workspace-tabcontent { .workspace-widgets {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
flex-grow: 1; width: 50px;
overflow: hidden;
padding-top: 4px;
padding-bottom: 4px;
margin-left: -4px;
user-select: none;
.widget {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
padding: 8px 2px 8px 0px;
color: var(--secondary-text-color);
font-size: 20px;
overflow: hidden;
border-radius: 4px;
&:hover:not(.no-hover) {
background-color: var(--highlight-bg-color);
cursor: pointer;
color: white !important;
}
.widget-icon {
}
.widget-label {
font-size: 10px;
margin-top: 3px;
width: 100%;
padding: 0 2px;
text-align: center;
white-space: nowrap;
overflow: hidden; overflow: hidden;
}
} }
.workspace-widgets { .widget-divider {
display: flex; margin-right: 2px;
flex-direction: column; height: 2px;
width: 50px; background-color: var(--border-color);
overflow: hidden;
padding-top: 4px;
padding-bottom: 4px;
margin-left: -4px;
user-select: none;
.widget {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
padding: 8px 2px 8px 0px;
color: var(--secondary-text-color);
font-size: 20px;
overflow: hidden;
border-radius: 4px;
&:hover:not(.no-hover) {
background-color: var(--highlight-bg-color);
cursor: pointer;
color: white !important;
}
.widget-icon {
}
.widget-label {
font-size: 10px;
margin-top: 3px;
width: 100%;
padding: 0 2px;
text-align: center;
white-space: nowrap;
overflow: hidden;
}
}
.widget-divider {
margin-right: 2px;
height: 2px;
background-color: var(--border-color);
}
.widget-spacer {
flex-grow: 1;
}
} }
.widget-spacer {
flex-grow: 1;
}
}
} }

View File

@ -2,148 +2,148 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.tile-layout { .tile-layout {
position: relative; position: relative;
height: 100%;
width: 100%;
overflow: hidden;
--gap-size-px: 5px;
.overlay-container,
.display-container,
.placeholder-container {
position: absolute;
display: flex;
top: 0;
left: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
min-height: 4rem;
min-width: 4rem;
}
.display-container {
z-index: var(--zindex-layout-display-container);
}
.placeholder-container {
z-index: var(--zindex-layout-placeholder-container);
}
.overlay-container {
z-index: var(--zindex-layout-overlay-container);
}
.overlay-node {
display: flex;
flex: 0 1 auto;
}
.resize-handle {
z-index: var(--zindex-layout-resize-handle);
.line {
visibility: hidden;
}
&.flex-row {
cursor: ew-resize;
.line {
height: 100%;
width: calc(50% + 1px);
border-right: 2px solid var(--accent-color);
}
}
&.flex-column {
cursor: ns-resize;
.line {
height: calc(50% + 1px);
border-bottom: 2px solid var(--accent-color);
}
}
&: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;
}
}
.tile-node {
border-radius: calc(var(--block-border-radius) + 2px);
overflow: hidden; overflow: hidden;
width: 100%;
height: 100%;
--gap-size-px: 5px; &.dragging {
filter: blur(8px);
.overlay-container,
.display-container,
.placeholder-container {
position: absolute;
display: flex;
top: 0;
left: 0;
height: 100%;
width: 100%;
min-height: 4rem;
min-width: 4rem;
} }
.display-container { &.resizing {
z-index: var(--zindex-layout-display-container); border: 1px solid var(--accent-color);
backdrop-filter: blur(8px);
} }
.placeholder-container { .tile-leaf {
z-index: var(--zindex-layout-placeholder-container); overflow: hidden;
} }
.overlay-container { .tile-preview-container {
z-index: var(--zindex-layout-overlay-container); position: absolute;
} top: 10000px;
white-space: nowrap !important;
user-select: none;
-webkit-user-select: none;
.overlay-node { .tile-preview {
display: flex;
flex: 0 1 auto;
}
.resize-handle {
z-index: var(--zindex-layout-resize-handle);
.line {
visibility: hidden;
}
&.flex-row {
cursor: ew-resize;
.line {
height: 100%;
width: calc(50% + 1px);
border-right: 2px solid var(--accent-color);
}
}
&.flex-column {
cursor: ns-resize;
.line {
height: calc(50% + 1px);
border-bottom: 2px solid var(--accent-color);
}
}
&: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;
}
}
.tile-node {
border-radius: calc(var(--block-border-radius) + 2px);
overflow: hidden;
width: 100%; width: 100%;
height: 100%; height: 100%;
}
&.dragging {
filter: blur(8px);
}
&.resizing {
border: 1px solid var(--accent-color);
backdrop-filter: blur(8px);
}
.tile-leaf {
overflow: hidden;
}
.tile-preview-container {
position: absolute;
top: 10000px;
white-space: nowrap !important;
user-select: none;
-webkit-user-select: none;
.tile-preview {
width: 100%;
height: 100%;
}
}
&:not(:only-child) .tile-leaf {
padding: calc(var(--gap-size-px) / 2);
}
} }
--block-blur: 2px; &:not(:only-child) .tile-leaf {
padding: calc(var(--gap-size-px) / 2);
.magnified-node-backdrop,
.ephemeral-node-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(var(--block-blur));
} }
}
.magnified-node-backdrop { --block-blur: 2px;
z-index: var(--zindex-layout-magnified-node-backdrop);
}
.ephemeral-node-backdrop { .magnified-node-backdrop,
z-index: var(--zindex-layout-ephemeral-node-backdrop); .ephemeral-node-backdrop {
} position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(var(--block-blur));
}
&.animate { .magnified-node-backdrop {
.tile-node, z-index: var(--zindex-layout-magnified-node-backdrop);
.placeholder { }
transition-duration: var(--animation-time-s);
transition-timing-function: linear;
transition-property: transform, width, height, background-color;
}
}
.tile-leaf, .ephemeral-node-backdrop {
.overlay-leaf { z-index: var(--zindex-layout-ephemeral-node-backdrop);
height: 100%; }
width: 100%;
}
&.animate {
.tile-node,
.placeholder { .placeholder {
background-color: var(--accent-color); transition-duration: var(--animation-time-s);
opacity: 0.5; transition-timing-function: linear;
border-radius: calc(var(--block-border-radius) + 2px); transition-property: transform, width, height, background-color;
} }
}
.tile-leaf,
.overlay-leaf {
height: 100%;
width: 100%;
}
.placeholder {
background-color: var(--accent-color);
opacity: 0.5;
border-radius: calc(var(--block-border-radius) + 2px);
}
} }

View File

@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
.placeholder-visible { .placeholder-visible {
.overlay-container, .overlay-container,
.placeholder-container { .placeholder-container {
transform: unset !important; transform: unset !important;
} }
} }

View File

@ -5,57 +5,57 @@
@import "./theme.scss"; @import "./theme.scss";
body { body {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-color: var(--main-bg-color); background-color: var(--main-bg-color);
color: var(--main-text-color); color: var(--main-text-color);
font: var(--base-font); font: var(--base-font);
overflow: hidden; overflow: hidden;
} }
*::-webkit-scrollbar { *::-webkit-scrollbar {
width: 4px; width: 4px;
height: 4px; height: 4px;
} }
*::-webkit-scrollbar-track { *::-webkit-scrollbar-track {
background-color: var(--scrollbar-background-color) !important; background-color: var(--scrollbar-background-color) !important;
} }
*::-webkit-scrollbar-thumb { *::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-color) !important; background-color: var(--scrollbar-thumb-color) !important;
border-radius: 4px; border-radius: 4px;
margin: 0 1px 0 1px; margin: 0 1px 0 1px;
} }
*::-webkit-scrollbar-thumb:hover { *::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover-color) !important; background-color: var(--scrollbar-thumb-hover-color) !important;
} }
.flex-spacer { .flex-spacer {
flex-grow: 1; flex-grow: 1;
} }
.text-fixed { .text-fixed {
font: var(--fixed-font); font: var(--fixed-font);
} }
#main, #main,
.mainapp { .mainapp {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.titlebar { .titlebar {
height: 35px; height: 35px;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
flex-shrink: 0; flex-shrink: 0;
} }
.error-boundary { .error-boundary {
color: var(--error-color); color: var(--error-color);
} }