2024-05-13 23:40:18 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-08-31 20:57:45 +02:00
|
|
|
@import "../mixins.less";
|
|
|
|
|
2024-05-13 23:40:18 +02:00
|
|
|
.block {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2024-05-13 23:48:59 +02:00
|
|
|
overflow: hidden;
|
2024-05-14 00:10:31 +02:00
|
|
|
min-height: 0;
|
2024-07-30 19:59:53 +02:00
|
|
|
border-radius: var(--block-border-radius);
|
2024-05-13 23:40:18 +02:00
|
|
|
|
2024-06-22 00:15:38 +02:00
|
|
|
.block-frame-icon {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2024-05-14 08:45:41 +02:00
|
|
|
.block-content {
|
2024-08-23 09:18:49 +02:00
|
|
|
position: relative;
|
2024-05-14 08:45:41 +02:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
min-height: 0;
|
2024-06-04 07:18:54 +02:00
|
|
|
padding: 5px;
|
2024-05-14 08:45:41 +02:00
|
|
|
}
|
2024-06-14 19:46:03 +02:00
|
|
|
|
2024-06-19 20:58:22 +02:00
|
|
|
.block-focuselem {
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
input {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-14 19:46:03 +02:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
2024-06-19 08:44:53 +02:00
|
|
|
|
2024-07-31 06:59:20 +02:00
|
|
|
&.block-preview.block-frame-default .block-frame-default-inner .block-frame-default-header {
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
}
|
|
|
|
|
2024-07-06 00:47:35 +02:00
|
|
|
&.block-frame-default {
|
2024-07-09 07:31:38 +02:00
|
|
|
position: relative;
|
2024-09-05 07:07:47 +02:00
|
|
|
padding: 1px;
|
2024-07-09 07:31:38 +02:00
|
|
|
|
|
|
|
.block-frame-default-inner {
|
2024-07-26 22:30:11 +02:00
|
|
|
background-color: var(--block-bg-color);
|
2024-07-09 07:31:38 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2024-07-30 19:59:53 +02:00
|
|
|
border-radius: var(--block-border-radius);
|
2024-07-06 00:47:35 +02:00
|
|
|
display: flex;
|
2024-07-09 07:31:38 +02:00
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.block-frame-default-header {
|
2024-08-06 01:13:26 +02:00
|
|
|
max-height: var(--header-height);
|
|
|
|
min-height: var(--header-height);
|
2024-07-06 00:47:35 +02:00
|
|
|
display: flex;
|
2024-07-10 03:15:37 +02:00
|
|
|
padding: 4px 5px 4px 10px;
|
2024-07-06 00:47:35 +02:00
|
|
|
align-items: center;
|
|
|
|
gap: 8px;
|
2024-07-09 07:31:38 +02:00
|
|
|
font: var(--header-font);
|
2024-07-31 21:42:58 +02:00
|
|
|
border-bottom: 1px solid var(--border-color);
|
2024-07-30 19:59:53 +02:00
|
|
|
border-radius: var(--block-border-radius) var(--block-border-radius) 0 0;
|
2024-07-06 00:47:35 +02:00
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
.block-frame-default-header-iconview {
|
|
|
|
display: flex;
|
2024-09-05 00:25:25 +02:00
|
|
|
flex-shrink: 3;
|
|
|
|
min-width: 17px;
|
2024-07-09 07:31:38 +02:00
|
|
|
align-items: center;
|
|
|
|
gap: 8px;
|
2024-08-06 01:13:26 +02:00
|
|
|
overflow-x: hidden;
|
2024-07-09 07:31:38 +02:00
|
|
|
|
|
|
|
.block-frame-view-icon {
|
|
|
|
font-size: var(--header-icon-size);
|
|
|
|
opacity: 0.5;
|
|
|
|
width: var(--header-icon-width);
|
|
|
|
i {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2024-07-06 00:47:35 +02:00
|
|
|
}
|
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
.block-frame-view-type {
|
2024-08-05 23:54:33 +02:00
|
|
|
overflow-x: hidden;
|
2024-08-06 01:13:26 +02:00
|
|
|
text-wrap: nowrap;
|
2024-08-05 23:54:33 +02:00
|
|
|
text-overflow: ellipsis;
|
2024-09-05 00:25:25 +02:00
|
|
|
flex-shrink: 1;
|
|
|
|
min-width: 0;
|
2024-07-09 07:31:38 +02:00
|
|
|
}
|
2024-07-06 00:47:35 +02:00
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
.block-frame-blockid {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2024-07-06 00:47:35 +02:00
|
|
|
}
|
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
.block-frame-text {
|
2024-08-31 20:57:45 +02:00
|
|
|
.ellipsis();
|
2024-07-09 07:31:38 +02:00
|
|
|
font: var(--fixed-font);
|
|
|
|
font-size: 11px;
|
2024-07-09 01:36:30 +02:00
|
|
|
opacity: 0.7;
|
2024-08-31 20:57:45 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
&.preview-filename {
|
2024-09-05 00:25:25 +02:00
|
|
|
direction: rtl;
|
|
|
|
text-align: left;
|
2024-08-31 20:57:45 +02:00
|
|
|
span {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--highlight-bg-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-09 01:36:30 +02:00
|
|
|
}
|
|
|
|
|
2024-08-24 03:12:40 +02:00
|
|
|
.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;
|
2024-09-04 08:14:22 +02:00
|
|
|
padding: auto;
|
2024-08-24 03:12:40 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--highlight-bg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.connection-icon-box {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.connection-name {
|
2024-09-05 00:25:25 +02:00
|
|
|
flex: 1 2 auto;
|
2024-08-24 03:12:40 +02:00
|
|
|
overflow: hidden;
|
2024-08-27 01:19:03 +02:00
|
|
|
padding-right: 4px;
|
2024-08-24 03:12:40 +02:00
|
|
|
}
|
2024-09-05 23:05:42 +02:00
|
|
|
|
|
|
|
.connecting-svg {
|
|
|
|
position: relative;
|
|
|
|
top: 5px;
|
|
|
|
left: 9px;
|
|
|
|
svg {
|
|
|
|
fill: var(--warning-color);
|
|
|
|
}
|
|
|
|
}
|
2024-08-24 03:12:40 +02:00
|
|
|
}
|
|
|
|
|
2024-08-05 23:54:33 +02:00
|
|
|
.block-frame-textelems-wrapper {
|
|
|
|
display: flex;
|
2024-09-05 00:25:25 +02:00
|
|
|
flex: 1 2 auto;
|
2024-08-05 23:54:33 +02:00
|
|
|
min-width: 0;
|
|
|
|
gap: 8px;
|
|
|
|
align-items: center;
|
2024-07-15 18:40:28 +02:00
|
|
|
|
|
|
|
.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(--app-text-color);
|
|
|
|
width: 100%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
box-sizing: border-box;
|
2024-07-18 08:41:33 +02:00
|
|
|
opacity: 0.7;
|
|
|
|
font-weight: 500;
|
2024-07-15 18:40:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-18 08:41:33 +02:00
|
|
|
.button {
|
|
|
|
margin-left: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// webview specific. for refresh button
|
2024-08-05 23:54:33 +02:00
|
|
|
.iconbutton {
|
2024-07-15 18:40:28 +02:00
|
|
|
height: 100%;
|
|
|
|
width: 27px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
2024-07-18 08:41:33 +02:00
|
|
|
|
2024-08-23 09:18:49 +02:00
|
|
|
.block-frame-div-url,
|
|
|
|
.block-frame-div-search {
|
2024-07-18 08:41:33 +02:00
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
|
|
|
|
|
input {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2024-07-15 18:40:28 +02:00
|
|
|
}
|
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
.block-frame-end-icons {
|
2024-07-06 00:47:35 +02:00
|
|
|
display: flex;
|
2024-08-06 01:13:26 +02:00
|
|
|
flex-shrink: 0;
|
2024-07-09 07:31:38 +02:00
|
|
|
|
2024-08-05 23:54:33 +02:00
|
|
|
.iconbutton {
|
2024-07-09 07:31:38 +02:00
|
|
|
display: flex;
|
|
|
|
width: 24px;
|
|
|
|
padding: 4px 6px;
|
2024-08-05 23:54:33 +02:00
|
|
|
align-items: center;
|
2024-07-06 00:47:35 +02:00
|
|
|
}
|
2024-08-06 01:13:26 +02:00
|
|
|
|
|
|
|
.block-frame-magnify {
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
#arrow1,
|
|
|
|
#arrow2 {
|
|
|
|
fill: var(--main-text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-06 00:47:35 +02:00
|
|
|
}
|
|
|
|
}
|
2024-07-09 07:31:38 +02:00
|
|
|
|
|
|
|
.block-frame-preview {
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
width: 100%;
|
|
|
|
flex-grow: 1;
|
2024-07-30 19:59:53 +02:00
|
|
|
border-bottom-left-radius: var(--block-border-radius);
|
|
|
|
border-bottom-right-radius: var(--block-border-radius);
|
2024-07-31 07:02:52 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
2024-08-06 01:13:26 +02:00
|
|
|
.iconbutton {
|
2024-07-31 07:02:52 +02:00
|
|
|
opacity: 0.7;
|
|
|
|
font-size: 45px;
|
2024-07-31 07:53:50 +02:00
|
|
|
margin: -30px 0 0 0;
|
2024-07-31 07:02:52 +02:00
|
|
|
}
|
2024-07-09 07:31:38 +02:00
|
|
|
}
|
2024-07-06 00:47:35 +02:00
|
|
|
}
|
|
|
|
|
2024-09-05 09:21:08 +02:00
|
|
|
.connstatus-overlay {
|
|
|
|
position: absolute;
|
2024-09-06 19:33:26 +02:00
|
|
|
top: calc(var(--header-height) + 6px);
|
|
|
|
left: 6px;
|
|
|
|
right: 6px;
|
2024-09-05 09:21:08 +02:00
|
|
|
z-index: var(--zindex-block-mask-inner);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
2024-09-06 19:33:26 +02:00
|
|
|
background: rgba(230, 186, 30, 0.2);
|
|
|
|
backdrop-filter: blur(50px);
|
|
|
|
border-radius: 6px;
|
|
|
|
box-shadow: 0px 13px 16px 0px rgba(0, 0, 0, 0.4);
|
2024-09-05 09:21:08 +02:00
|
|
|
|
2024-09-06 19:33:26 +02:00
|
|
|
.connstatus-content {
|
2024-09-05 09:21:08 +02:00
|
|
|
display: flex;
|
2024-09-06 19:33:26 +02:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 10px 8px 10px 12px;
|
2024-09-05 09:21:08 +02:00
|
|
|
width: 100%;
|
|
|
|
font: var(--base-font);
|
|
|
|
color: var(--secondary-text-color);
|
2024-09-06 19:33:26 +02:00
|
|
|
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 {
|
|
|
|
.ellipsis();
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-start;
|
|
|
|
gap: 4px;
|
|
|
|
flex-grow: 1;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.connstatus-status-text {
|
|
|
|
.ellipsis();
|
|
|
|
max-width: 100%;
|
|
|
|
font-size: 11px;
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 600;
|
|
|
|
line-height: 16px;
|
|
|
|
letter-spacing: 0.11px;
|
|
|
|
color: white;
|
|
|
|
}
|
2024-09-05 09:21:08 +02:00
|
|
|
|
2024-09-06 19:33:26 +02:00
|
|
|
.connstatus-error {
|
|
|
|
.ellipsis();
|
|
|
|
width: 94%;
|
|
|
|
font-size: 11px;
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 15px;
|
|
|
|
letter-spacing: 0.11px;
|
|
|
|
}
|
|
|
|
}
|
2024-09-05 09:21:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.connstatus-actions {
|
|
|
|
display: flex;
|
2024-09-06 19:33:26 +02:00
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: center;
|
|
|
|
gap: 6px;
|
|
|
|
|
|
|
|
button {
|
|
|
|
i {
|
|
|
|
font-size: 11px;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button:last-child {
|
|
|
|
margin-top: 1.5px;
|
|
|
|
}
|
2024-09-05 09:21:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
.block-mask {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
pointer-events: none;
|
|
|
|
padding: 2px;
|
2024-07-31 22:37:20 +02:00
|
|
|
border-radius: calc(var(--block-border-radius) + 2px);
|
2024-08-03 00:39:22 +02:00
|
|
|
z-index: var(--zindex-block-mask-inner);
|
|
|
|
|
2024-09-05 09:21:08 +02:00
|
|
|
&.show-block-mask {
|
2024-08-03 01:54:57 +02:00
|
|
|
user-select: none;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
2024-09-05 09:21:08 +02:00
|
|
|
&.show-block-mask .block-mask-inner {
|
2024-08-24 07:12:27 +02:00
|
|
|
margin-top: var(--header-height); // TODO fix this magic
|
2024-08-03 00:39:22 +02:00
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
2024-08-24 07:12:27 +02:00
|
|
|
height: calc(100% - var(--header-height));
|
2024-08-03 00:39:22 +02:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.bignum {
|
2024-08-23 09:18:49 +02:00
|
|
|
margin-top: -15%;
|
2024-08-03 00:39:22 +02:00
|
|
|
font-size: 60px;
|
|
|
|
font-weight: bold;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
2024-07-09 07:31:38 +02:00
|
|
|
}
|
2024-08-03 00:39:22 +02:00
|
|
|
|
2024-07-09 07:31:38 +02:00
|
|
|
&.block-focused {
|
|
|
|
.block-mask {
|
|
|
|
border: 2px solid var(--accent-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.block-no-highlight,
|
|
|
|
&.block-preview {
|
|
|
|
.block-mask {
|
|
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-06-19 08:44:53 +02:00
|
|
|
}
|
2024-05-13 23:40:18 +02:00
|
|
|
}
|