2023-05-05 14:14:42 +00:00
|
|
|
.tl-container {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
font-size: 12px;
|
|
|
|
/* Spacing */
|
|
|
|
--space-1: 2px;
|
|
|
|
--space-2: 4px;
|
|
|
|
--space-3: 8px;
|
|
|
|
--space-4: 12px;
|
|
|
|
--space-5: 16px;
|
|
|
|
--space-6: 20px;
|
|
|
|
--space-7: 28px;
|
|
|
|
--space-8: 32px;
|
|
|
|
--space-9: 64px;
|
|
|
|
--space-10: 72px;
|
|
|
|
/* Radius */
|
|
|
|
--radius-0: 2px;
|
|
|
|
--radius-1: 4px;
|
|
|
|
--radius-2: 7px;
|
|
|
|
--radius-3: 9px;
|
|
|
|
--radius-4: 12px;
|
|
|
|
--radius-5: 16px;
|
|
|
|
--layer-grid: 150;
|
|
|
|
--layer-canvas: 200;
|
|
|
|
/* Misc */
|
2023-05-05 14:14:42 +00:00
|
|
|
--tl-zoom: 1;
|
2023-05-23 14:12:11 +00:00
|
|
|
|
|
|
|
/* These cursor values get programmatically overridden */
|
|
|
|
/* They're just here to help your editor autocomplete */
|
|
|
|
--tl-cursor: var(--tl-cursor-default);
|
|
|
|
--tl-cursor-none: none;
|
|
|
|
--tl-cursor-default: default;
|
|
|
|
--tl-cursor-pointer: pointer;
|
|
|
|
--tl-cursor-cross: crosshair;
|
|
|
|
--tl-cursor-move: move;
|
|
|
|
--tl-cursor-grab: grab;
|
|
|
|
--tl-cursor-grabbing: grabbing;
|
|
|
|
--tl-cursor-text: text;
|
|
|
|
--tl-cursor-resize-edge: ew-resize;
|
|
|
|
--tl-cursor-resize-corner: nesw-resize;
|
|
|
|
--tl-cursor-ew-resize: ew-resize;
|
|
|
|
--tl-cursor-ns-resize: ns-resize;
|
|
|
|
--tl-cursor-nesw-resize: nesw-resize;
|
|
|
|
--tl-cursor-nwse-resize: nwse-resize;
|
|
|
|
--tl-cursor-rotate: pointer;
|
|
|
|
--tl-cursor-nwse-rotate: pointer;
|
|
|
|
--tl-cursor-nesw-rotate: pointer;
|
|
|
|
--tl-cursor-senw-rotate: pointer;
|
|
|
|
--tl-cursor-swne-rotate: pointer;
|
|
|
|
--tl-cursor-zoom-in: zoom-in;
|
|
|
|
--tl-cursor-zoom-out: zoom-out;
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
--tl-scale: calc(1 / var(--tl-zoom));
|
|
|
|
--tl-font-draw: 'tldraw_draw', sans-serif;
|
|
|
|
--tl-font-sans: 'tldraw_sans', sans-serif;
|
|
|
|
--tl-font-serif: 'tldraw_serif', serif;
|
|
|
|
--tl-font-mono: 'tldraw_mono', monospace;
|
|
|
|
--a: calc(min(0.5, 1 / var(--tl-zoom)) * 2px);
|
|
|
|
--b: calc(min(0.5, 1 / var(--tl-zoom)) * -2px);
|
|
|
|
--tl-text-outline: 0 var(--b) 0 var(--color-background), 0 var(--a) 0 var(--color-background),
|
2023-04-25 11:01:25 +00:00
|
|
|
var(--b) var(--b) 0 var(--color-background), var(--a) var(--b) 0 var(--color-background),
|
|
|
|
var(--a) var(--a) 0 var(--color-background), var(--b) var(--a) 0 var(--color-background);
|
|
|
|
/* Own properties */
|
|
|
|
position: relative;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-theme__light {
|
2023-04-25 11:01:25 +00:00
|
|
|
--color-accent: #e64a4a;
|
|
|
|
--color-background: rgb(249, 250, 251);
|
|
|
|
--color-brush-fill: rgba(144, 144, 144, 0.102);
|
|
|
|
--color-brush-stroke: rgba(144, 144, 144, 0.251);
|
|
|
|
--color-grid: rgba(144, 144, 144, 0.902);
|
|
|
|
--color-low: rgb(237, 240, 242);
|
|
|
|
--color-culled: rgb(235, 238, 240);
|
|
|
|
--color-muted-0: rgba(0, 0, 0, 0.02);
|
|
|
|
--color-muted-1: rgba(0, 0, 0, 0.1);
|
|
|
|
--color-muted-2: rgba(0, 0, 0, 0.035);
|
|
|
|
--color-hint: rgba(0, 0, 0, 0.055);
|
|
|
|
--color-overlay: rgba(0, 0, 0, 0.2);
|
|
|
|
--color-divider: #e8e8e8;
|
|
|
|
--color-panel-contrast: #ffffff;
|
|
|
|
--color-panel-overlay: rgba(255, 255, 255, 0.82);
|
|
|
|
--color-panel: #fdfdfd;
|
|
|
|
--color-focus: #004094;
|
|
|
|
--color-selected: #2f80ed;
|
|
|
|
--color-selected-contrast: #ffffff;
|
|
|
|
--color-selection-fill: #1e90ff06;
|
|
|
|
--color-selection-stroke: #2f80ed;
|
|
|
|
--color-text-0: #1d1d1d;
|
|
|
|
--color-text-1: #2d2d2d;
|
|
|
|
--color-text-2: #5f6369;
|
|
|
|
--color-text-3: #b6b7ba;
|
|
|
|
--color-primary: #2f80ed;
|
|
|
|
--color-warn: #d10b0b;
|
|
|
|
--color-text: #000000;
|
2023-05-19 11:09:13 +00:00
|
|
|
--color-laser: #ff0000;
|
2023-04-25 11:01:25 +00:00
|
|
|
--palette-black: #1d1d1d;
|
|
|
|
--palette-blue: #4263eb;
|
|
|
|
--palette-green: #099268;
|
|
|
|
--palette-grey: #adb5bd;
|
|
|
|
--palette-light-blue: #4dabf7;
|
|
|
|
--palette-light-green: #40c057;
|
|
|
|
--palette-light-red: #ff8787;
|
|
|
|
--palette-light-violet: #e599f7;
|
|
|
|
--palette-orange: #f76707;
|
|
|
|
--palette-red: #e03131;
|
|
|
|
--palette-violet: #ae3ec9;
|
|
|
|
--palette-white: #ffffff;
|
|
|
|
--palette-yellow: #ffc078;
|
|
|
|
/* TODO: fill style colors should be generated at runtime (later task) */
|
|
|
|
/* for fill style 'semi' */
|
|
|
|
--palette-solid: #fcfffe;
|
|
|
|
--palette-black-semi: #e8e8e8;
|
|
|
|
--palette-blue-semi: #dce1f8;
|
|
|
|
--palette-green-semi: #d3e9e3;
|
|
|
|
--palette-grey-semi: #eceef0;
|
|
|
|
--palette-light-blue-semi: #ddedfa;
|
|
|
|
--palette-light-green-semi: #dbf0e0;
|
|
|
|
--palette-light-red-semi: #f4dadb;
|
|
|
|
--palette-light-violet-semi: #f5eafa;
|
|
|
|
--palette-orange-semi: #f8e2d4;
|
|
|
|
--palette-red-semi: #f4dadb;
|
|
|
|
--palette-violet-semi: #ecdcf2;
|
|
|
|
--palette-white-semi: #ffffff;
|
|
|
|
--palette-yellow-semi: #f9f0e6;
|
|
|
|
/* for fill style 'pattern' */
|
|
|
|
--palette-black-pattern: #494949;
|
|
|
|
--palette-blue-pattern: #6681ee;
|
|
|
|
--palette-green-pattern: #39a785;
|
|
|
|
--palette-grey-pattern: #bcc3c9;
|
|
|
|
--palette-light-blue-pattern: #6fbbf8;
|
|
|
|
--palette-light-green-pattern: #65cb78;
|
|
|
|
--palette-light-red-pattern: #fe9e9e;
|
|
|
|
--palette-light-violet-pattern: #e9acf8;
|
|
|
|
--palette-orange-pattern: #f78438;
|
|
|
|
--palette-red-pattern: #e55959;
|
|
|
|
--palette-violet-pattern: #bd63d3;
|
|
|
|
--palette-white-pattern: #ffffff;
|
|
|
|
--palette-yellow-pattern: #fecb92;
|
|
|
|
--shadow-1: 0px 1px 2px rgba(0, 0, 0, 0.22), 0px 1px 3px rgba(0, 0, 0, 0.09);
|
|
|
|
--shadow-2: 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 3px rgba(0, 0, 0, 0.24),
|
|
|
|
0px 2px 6px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
|
|
--shadow-3: 0px 1px 2px rgba(0, 0, 0, 0.25), 0px 2px 6px rgba(0, 0, 0, 0.14),
|
|
|
|
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
|
|
--shadow-4: 0px 0px 3px rgba(0, 0, 0, 0.16), 0px 5px 4px rgba(0, 0, 0, 0.16),
|
|
|
|
0px 2px 16px rgba(0, 0, 0, 0.06), inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-theme__dark {
|
2023-04-25 11:01:25 +00:00
|
|
|
--color-accent: #e64a4a;
|
|
|
|
--color-background: #212529;
|
|
|
|
--color-brush-fill: rgba(180, 180, 180, 0.05);
|
|
|
|
--color-brush-stroke: rgba(180, 180, 180, 0.25);
|
|
|
|
--color-grid: #909090e6;
|
|
|
|
--color-low: #2c3136;
|
|
|
|
--color-culled: rgb(47, 52, 57);
|
|
|
|
--color-muted-0: rgba(255, 255, 255, 0.02);
|
|
|
|
--color-muted-1: rgba(255, 255, 255, 0.1);
|
|
|
|
--color-muted-2: rgba(255, 255, 255, 0.05);
|
|
|
|
--color-hint: rgba(255, 255, 255, 0.1);
|
|
|
|
--color-overlay: rgba(0, 0, 0, 0.35);
|
|
|
|
--color-divider: #49555f;
|
|
|
|
--color-panel-contrast: #49555f;
|
|
|
|
--color-panel: #363d44;
|
|
|
|
--color-panel-overlay: rgba(54, 61, 68, 0.82);
|
|
|
|
--color-focus: #a5c3f3;
|
|
|
|
--color-selected: #4285f4;
|
|
|
|
--color-selected-contrast: #ffffff;
|
|
|
|
--color-selection-fill: rgba(38, 150, 255, 0.05);
|
|
|
|
--color-selection-stroke: #2f80ed;
|
|
|
|
--color-text-0: #f0eded;
|
|
|
|
--color-text-1: #d9d9d9;
|
|
|
|
--color-text-2: #8e9094;
|
|
|
|
--color-text-3: #515a62;
|
|
|
|
--color-primary: #2f80ed;
|
|
|
|
--color-warn: #d10b0b;
|
|
|
|
--color-text: #f8f9fa;
|
2023-05-19 11:09:13 +00:00
|
|
|
--color-laser: #ff0000;
|
2023-04-25 11:01:25 +00:00
|
|
|
--palette-black: #e1e1e1;
|
|
|
|
--palette-blue: #4156be;
|
|
|
|
--palette-green: #3b7b5e;
|
|
|
|
--palette-grey: #93989f;
|
|
|
|
--palette-light-blue: #588fc9;
|
|
|
|
--palette-light-green: #599f57;
|
|
|
|
--palette-light-red: #c67877;
|
|
|
|
--palette-light-violet: #b583c9;
|
|
|
|
--palette-orange: #bf612e;
|
|
|
|
--palette-red: #aa3c37;
|
|
|
|
--palette-violet: #873fa3;
|
|
|
|
--palette-white: #1d1d1d;
|
|
|
|
--palette-yellow: #cba371;
|
|
|
|
/* TODO: fill style colors should be generated at runtime (later task) */
|
|
|
|
/* for fill style 'semi' */
|
|
|
|
--palette-solid: #28292e;
|
|
|
|
--palette-black-semi: #2c3036;
|
|
|
|
--palette-blue-semi: #262d40;
|
|
|
|
--palette-green-semi: #253231;
|
|
|
|
--palette-grey-semi: #33373c;
|
|
|
|
--palette-light-blue-semi: #2a3642;
|
|
|
|
--palette-light-green-semi: #2a3830;
|
|
|
|
--palette-light-red-semi: #3b3235;
|
|
|
|
--palette-light-violet-semi: #383442;
|
|
|
|
--palette-orange-semi: #3a2e2a;
|
|
|
|
--palette-red-semi: #36292b;
|
|
|
|
--palette-violet-semi: #31293c;
|
|
|
|
--palette-white-semi: #ffffff;
|
|
|
|
--palette-yellow-semi: #3c3934;
|
|
|
|
/* for fill style 'pattern' */
|
|
|
|
--palette-black-pattern: #989898;
|
|
|
|
--palette-blue-pattern: #3a4b9e;
|
|
|
|
--palette-green-pattern: #366a53;
|
|
|
|
--palette-grey-pattern: #7c8187;
|
|
|
|
--palette-light-blue-pattern: #4d7aa9;
|
|
|
|
--palette-light-green-pattern: #4e874e;
|
|
|
|
--palette-light-red-pattern: #a56767;
|
|
|
|
--palette-light-violet-pattern: #9770a9;
|
|
|
|
--palette-orange-pattern: #9f552d;
|
|
|
|
--palette-red-pattern: #8f3734;
|
|
|
|
--palette-violet-pattern: #763a8b;
|
|
|
|
--palette-white-pattern: #ffffff;
|
|
|
|
--palette-yellow-pattern: #fecb92;
|
|
|
|
--shadow-1: 0px 1px 2px #00000029, 0px 1px 3px #00000038,
|
|
|
|
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
|
|
--shadow-2: 0px 1px 3px #00000077, 0px 2px 6px #00000055,
|
|
|
|
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
|
|
--shadow-3: 0px 1px 3px #00000077, 0px 2px 12px rgba(0, 0, 0, 0.22),
|
|
|
|
inset 0px 0px 0px 1px var(--color-panel-contrast);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-counter-scaled {
|
|
|
|
transform: scale(var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
transform-origin: top left;
|
2023-05-05 14:14:42 +00:00
|
|
|
width: calc(100% * var(--tl-zoom));
|
|
|
|
height: calc(100% * var(--tl-zoom));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-container,
|
|
|
|
.tl-container * {
|
2023-04-25 11:01:25 +00:00
|
|
|
-webkit-touch-callout: none;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
scrollbar-highlight-color: transparent;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-container a {
|
2023-04-25 11:01:25 +00:00
|
|
|
-webkit-touch-callout: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
*[contenteditable],
|
|
|
|
*[contenteditable] * {
|
|
|
|
-webkit-user-select: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------------------------------------- */
|
|
|
|
/* Canvas */
|
|
|
|
/* -------------------------------------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-canvas {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-background);
|
|
|
|
color: var(--color-text);
|
|
|
|
z-index: var(--layer-canvas);
|
2023-05-05 14:14:42 +00:00
|
|
|
cursor: var(--tl-cursor);
|
2023-04-25 11:01:25 +00:00
|
|
|
overflow: clip;
|
|
|
|
content-visibility: auto;
|
|
|
|
touch-action: none;
|
|
|
|
contain: strict;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-shapes {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tl-overlays {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
2023-05-16 14:35:22 +00:00
|
|
|
.tl-overlays__item {
|
2023-05-05 14:14:42 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
2023-05-16 14:35:22 +00:00
|
|
|
overflow: visible;
|
2023-05-05 14:14:42 +00:00
|
|
|
pointer-events: none;
|
2023-05-16 14:35:22 +00:00
|
|
|
transform-origin: top left;
|
2023-05-05 14:14:42 +00:00
|
|
|
}
|
|
|
|
|
2023-05-16 14:35:22 +00:00
|
|
|
.tl-svg-context {
|
2023-05-05 14:14:42 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
2023-05-16 14:35:22 +00:00
|
|
|
height: 1px;
|
|
|
|
width: 1px;
|
2023-05-05 14:14:42 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------- Background ------------------- */
|
|
|
|
|
|
|
|
.tl-background {
|
|
|
|
position: absolute;
|
|
|
|
inset: 0px;
|
|
|
|
background-color: var(--color-background);
|
|
|
|
}
|
|
|
|
|
2023-04-25 11:01:25 +00:00
|
|
|
/* --------------------- Grid Layer --------------------- */
|
|
|
|
|
|
|
|
.tl-grid {
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
touch-action: none;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tl-grid-dot {
|
|
|
|
fill: var(--color-grid);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------- Layers --------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-html-layer {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
contain: layout style size;
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ---------------------- Brush --------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-brush {
|
|
|
|
stroke-width: calc(var(--tl-scale) * 1px);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-brush__default {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: var(--color-brush-stroke);
|
|
|
|
fill: var(--color-brush-fill);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------- Scribble -------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-scribble {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke-linejoin: round;
|
|
|
|
stroke-linecap: round;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ---------------------- Shape --------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-shape {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
overflow: visible;
|
|
|
|
transform-origin: top left;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-shape__culled {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
background-color: var(--color-culled);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hitarea-stroke {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: none;
|
|
|
|
stroke: transparent;
|
|
|
|
pointer-events: stroke;
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: min(100px, calc(24px * var(--tl-scale)));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hitarea-fill {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: var(--color-background);
|
|
|
|
stroke: transparent;
|
|
|
|
pointer-events: all;
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: min(100px, calc(24px * var(--tl-scale)));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hitarea-fill-solid {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: transparent;
|
|
|
|
pointer-events: all;
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: min(100px, calc(24px * var(--tl-scale)));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ---------------- Shape Containers ---------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-svg-container {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
pointer-events: none;
|
|
|
|
stroke-linecap: round;
|
|
|
|
stroke-linejoin: round;
|
|
|
|
transform-origin: top left;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-html-container {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
pointer-events: none;
|
|
|
|
stroke-linecap: round;
|
|
|
|
stroke-linejoin: round;
|
|
|
|
/* content-visibility: auto; */
|
|
|
|
transform-origin: top left;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2023-05-16 14:35:22 +00:00
|
|
|
/* --------------- Overlay Stack --------------- */
|
|
|
|
|
|
|
|
/* back of the stack, behind user's stuff */
|
|
|
|
.tl-collaborator__scribble {
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tl-collaborator__brush {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 20;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-collaborator__shape-indicator {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 30;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-scribble {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 40;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-brush {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 50;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-indicator__selected {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 60;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-indicator__hovered {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 70;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-handles {
|
|
|
|
z-index: 80;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-snapline {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 90;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-selection__fg {
|
|
|
|
pointer-events: none;
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 100;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-user-indicator__hint {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 110;
|
2023-05-16 14:35:22 +00:00
|
|
|
stroke-width: calc(2.5px * var(--tl-scale));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* behind collaborator cursor */
|
|
|
|
.tl-collaborator__cursor-hint {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 120;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-collaborator__cursor {
|
2023-05-19 11:16:03 +00:00
|
|
|
z-index: 130;
|
2023-05-16 14:35:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tl-cursor {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2023-04-25 11:01:25 +00:00
|
|
|
/* -------------------- Indicator ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-shape-indicator {
|
2023-04-25 11:01:25 +00:00
|
|
|
transform-origin: top left;
|
|
|
|
fill: none;
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1.5px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ SelectionBox ------------------ */
|
|
|
|
|
2023-05-16 14:35:22 +00:00
|
|
|
.tl-selection__bg {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
transform-origin: top left;
|
|
|
|
background-color: transparent;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-16 14:35:22 +00:00
|
|
|
.tl-selection__fg__outline {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: none;
|
|
|
|
pointer-events: none;
|
|
|
|
stroke: var(--color-selection-stroke);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1.5px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-corner-handle {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
stroke: var(--color-selection-stroke);
|
|
|
|
fill: var(--color-background);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1.5px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-handle {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
fill: var(--color-selection-stroke);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-corner-crop-handle {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
fill: none;
|
|
|
|
stroke: var(--color-selection-stroke);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-corner-crop-edge-handle {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
fill: none;
|
|
|
|
stroke: var(--color-selection-stroke);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-rotate-handle {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: var(--color-selection-stroke);
|
|
|
|
fill: var(--color-background);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1.5px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-mobile-rotate__bg {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: all;
|
2023-05-05 14:14:42 +00:00
|
|
|
r: calc(max(calc(14px * var(--tl-scale)), 20px / max(1, var(--tl-zoom))));
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-grab);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-mobile-rotate__fg {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
stroke: var(--color-selection-stroke);
|
|
|
|
fill: var(--color-background);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1.5px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-transparent {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: transparent;
|
|
|
|
stroke: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------- Handles -------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__bg {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: transparent;
|
|
|
|
stroke: transparent;
|
|
|
|
pointer-events: all;
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-grabbing);
|
2023-05-05 14:14:42 +00:00
|
|
|
r: calc(12px / var(--tl-zoom));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__fg {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: var(--color-background);
|
|
|
|
stroke: var(--color-selection-stroke);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1.5px * var(--tl-scale));
|
|
|
|
r: calc(4px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__bg:active {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__bg:hover {
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-grab);
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: var(--color-selection-fill);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__hint {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__hint:hover {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (pointer: coarse) {
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__bg:active {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: var(--color-selection-fill);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__hint {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-handle__hint > .tl-handle__fg {
|
|
|
|
r: calc(3px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ Bounds Detail ----------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image,
|
|
|
|
.tl-video {
|
2023-04-25 11:01:25 +00:00
|
|
|
object-fit: cover;
|
|
|
|
background-size: cover;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image-container,
|
|
|
|
.tl-video-container,
|
|
|
|
.tl-embed-container {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
pointer-events: all;
|
|
|
|
/* background-color: var(--color-background); */
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image__tg {
|
|
|
|
--scale: calc(min(2, var(--tl-scale)));
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: calc(var(--scale) * 8px);
|
|
|
|
right: calc(var(--scale) * 8px);
|
|
|
|
font-size: 10px;
|
|
|
|
scale: var(--scale);
|
|
|
|
transform-origin: top right;
|
|
|
|
background-color: var(--color-background);
|
|
|
|
padding: 2px 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
/* --------------------- Nametag -------------------- */
|
2023-04-25 11:01:25 +00:00
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-collaborator-cursor {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Rounded corners */
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-nametag {
|
|
|
|
position: absolute;
|
|
|
|
top: 16px;
|
|
|
|
left: 13px;
|
|
|
|
width: fit-content;
|
|
|
|
height: fit-content;
|
|
|
|
max-width: 120px;
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-selected-contrast);
|
|
|
|
white-space: nowrap;
|
|
|
|
position: absolute;
|
2023-05-05 14:14:42 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-04-25 11:01:25 +00:00
|
|
|
border-radius: 10px;
|
|
|
|
padding: 2px 6px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-family: var(--font-family);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------------------------------------- */
|
|
|
|
/* Spinner */
|
|
|
|
/* -------------------------------------------------- */
|
|
|
|
|
|
|
|
@keyframes spinner {
|
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-spinner::after {
|
2023-04-25 11:01:25 +00:00
|
|
|
content: '';
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-top: -10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
border-radius: 50%;
|
|
|
|
border: 2px solid #ccc;
|
|
|
|
border-top-color: #000;
|
|
|
|
animation: spinner 0.6s linear infinite;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------- IconShape ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-iconshape__icon {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: all;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-icon-preview {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------- Text Shape ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
font-weight: normal;
|
|
|
|
min-width: 1px;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
border: none;
|
|
|
|
height: 100%;
|
|
|
|
font-variant: normal;
|
|
|
|
font-style: normal;
|
|
|
|
pointer-events: all;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
overflow-wrap: break-word;
|
2023-05-05 14:14:42 +00:00
|
|
|
text-shadow: var(--tl-text-outline);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-align='start'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-align='middle'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-align='end'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-font='draw'] {
|
|
|
|
font-family: var(--tl-font-draw);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-font='sans'] {
|
|
|
|
font-family: var(--tl-font-sans);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-font='serif'] {
|
|
|
|
font-family: var(--tl-font-serif);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-font='mono'] {
|
|
|
|
font-family: var(--tl-font-mono);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-shape__wrapper[data-isediting='true'] .tl-text-content {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text {
|
2023-04-25 11:01:25 +00:00
|
|
|
/* remove overflow from textarea on windows */
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
border: 0px;
|
|
|
|
color: inherit;
|
|
|
|
caret-color: var(--color-text);
|
|
|
|
background: none;
|
|
|
|
border-image: none;
|
|
|
|
font-size: inherit;
|
|
|
|
font-family: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
font-variant: inherit;
|
|
|
|
font-style: inherit;
|
|
|
|
text-align: inherit;
|
|
|
|
letter-spacing: inherit;
|
|
|
|
text-shadow: inherit;
|
|
|
|
outline: none;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
pointer-events: all;
|
|
|
|
text-rendering: auto;
|
|
|
|
text-transform: none;
|
|
|
|
text-indent: 0px;
|
|
|
|
display: inline-block;
|
|
|
|
appearance: auto;
|
|
|
|
column-count: initial !important;
|
|
|
|
writing-mode: horizontal-tb !important;
|
|
|
|
word-spacing: 0px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-measure {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 999999;
|
|
|
|
top: -9999px;
|
|
|
|
right: -9999px;
|
|
|
|
opacity: 0;
|
|
|
|
width: fit-content;
|
|
|
|
box-sizing: border-box;
|
|
|
|
pointer-events: none;
|
|
|
|
line-break: normal;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
resize: none;
|
|
|
|
border: none;
|
|
|
|
user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-edit-container {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-input,
|
|
|
|
.tl-text-content {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
min-width: 1px;
|
|
|
|
min-height: 1px;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-content {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-input {
|
2023-04-25 11:01:25 +00:00
|
|
|
resize: none;
|
|
|
|
user-select: all;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
overflow: hidden;
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-text);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-input::selection {
|
2023-04-25 11:01:25 +00:00
|
|
|
background: var(--color-selected);
|
|
|
|
color: var(--color-selected-contrast);
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------- Snap Lines ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-snap-line {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: var(--color-accent);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-snap-point {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: var(--color-accent);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------- Groups ------------------ */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-group {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: var(--color-text);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------- Bookmark Shape ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__container {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid var(--color-panel-contrast);
|
|
|
|
background-color: var(--color-panel);
|
|
|
|
border-radius: var(--radius-2);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__image_container {
|
2023-04-25 11:01:25 +00:00
|
|
|
flex: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
border-top-left-radius: var(--radius-1);
|
|
|
|
border-top-right-radius: var(--radius-1);
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__image_container > .tl-hyperlink-button::after {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-panel);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__placeholder {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-muted-2);
|
|
|
|
border-bottom: 1px solid var(--color-muted-2);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__image {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
object-position: center;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__copy_container {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-muted);
|
|
|
|
padding: var(--space-4);
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__heading,
|
|
|
|
.tl-bookmark__description,
|
|
|
|
.tl-bookmark__link {
|
2023-05-16 08:37:37 +00:00
|
|
|
margin: 0px;
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__heading {
|
2023-04-25 11:01:25 +00:00
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
padding-bottom: var(--space-2);
|
2023-05-16 08:37:37 +00:00
|
|
|
margin: 4px 0px;
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__description {
|
2023-04-25 11:01:25 +00:00
|
|
|
font-size: 12px;
|
|
|
|
padding-bottom: var(--space-4);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__link {
|
2023-04-25 11:01:25 +00:00
|
|
|
font-size: 14px;
|
|
|
|
pointer-events: all;
|
|
|
|
z-index: 999;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
color: var(--color-text);
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-decoration: none;
|
|
|
|
color: var(--color-text-2);
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-pointer);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-bookmark__link:hover {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-selected);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ---------------- Hyperlink Button ---------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hyperlink-button {
|
2023-04-25 11:01:25 +00:00
|
|
|
background: none;
|
|
|
|
margin: 0px;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
right: 0px;
|
|
|
|
height: 44px;
|
|
|
|
width: 44px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
z-index: 200;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 400;
|
|
|
|
color: var(--color-text-1);
|
|
|
|
padding: 13px;
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-pointer);
|
2023-04-25 11:01:25 +00:00
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hyperlink-button::after {
|
2023-04-25 11:01:25 +00:00
|
|
|
content: '';
|
|
|
|
z-index: -1;
|
|
|
|
position: absolute;
|
|
|
|
right: 6px;
|
|
|
|
bottom: 6px;
|
|
|
|
display: block;
|
|
|
|
width: calc(100% - 12px);
|
|
|
|
height: calc(100% - 12px);
|
|
|
|
border-radius: var(--radius-1);
|
|
|
|
background-color: var(--color-background);
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hyperlink-button:hover {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-selected);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hyperlink-button:focus-visible {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-selected);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hyperlink-button__icon {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
background-color: currentColor;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hyperlink-button__hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-04-25 11:01:25 +00:00
|
|
|
/* ---------------- Geo shape ---------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-05-19 11:19:11 +00:00
|
|
|
align-items: center;
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-text);
|
2023-05-05 14:14:42 +00:00
|
|
|
text-shadow: var(--tl-text-outline);
|
2023-04-25 11:01:25 +00:00
|
|
|
overflow: hidden;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label[data-isediting='true'] .tl-text-content {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label[data-hastext='false'][data-isediting='false'] > .tl-text-label__inner {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label__inner {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
width: fit-content;
|
|
|
|
height: fit-content;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
pointer-events: all;
|
|
|
|
min-height: auto;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label__inner > .tl-text {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
padding: 16px;
|
|
|
|
height: fit-content;
|
|
|
|
width: fit-content;
|
|
|
|
border-radius: var(--radius-1);
|
|
|
|
max-width: 100%;
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label__inner > .tl-text-input {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 16px;
|
|
|
|
z-index: 4;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label[data-textwrap='true'] > .tl-text-label__inner {
|
2023-04-25 11:01:25 +00:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label[data-isediting='true'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: none;
|
|
|
|
min-height: auto;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-text-label[data-isediting='true'] p {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-24 11:34:13 +00:00
|
|
|
.tl-text-label[data-align='start'],
|
|
|
|
.tl-text-label[data-align='start-legacy'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2023-05-24 11:34:13 +00:00
|
|
|
.tl-text-label[data-align='middle'],
|
|
|
|
.tl-text-label[data-align='middle-legacy'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2023-05-24 11:34:13 +00:00
|
|
|
.tl-text-label[data-align='end'],
|
|
|
|
.tl-text-label[data-align='end-legacy'] {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-hint {
|
2023-04-25 11:01:25 +00:00
|
|
|
stroke: var(--color-text-1);
|
|
|
|
fill: none;
|
|
|
|
stroke-linecap: round;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label[data-font='draw'],
|
|
|
|
.tl-text-label[data-font='draw'] {
|
|
|
|
font-family: var(--tl-font-draw);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label[data-font='sans'],
|
|
|
|
.tl-text-label[data-font='sans'] {
|
|
|
|
font-family: var(--tl-font-sans);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label[data-font='serif'],
|
|
|
|
.tl-text-label[data-font='serif'] {
|
|
|
|
font-family: var(--tl-font-serif);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label[data-font='mono'],
|
|
|
|
.tl-text-label[data-font='mono'] {
|
|
|
|
font-family: var(--tl-font-mono);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------- Arrow Shape ------------------ */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
left: -1px;
|
|
|
|
width: 2px;
|
|
|
|
height: 2px;
|
|
|
|
padding: 0px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
color: var(--color-text);
|
2023-05-05 14:14:42 +00:00
|
|
|
text-shadow: var(--tl-text-outline);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label[data-isediting='true'] p {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label[data-isediting='true'] > .tl-arrow-label__inner {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-background);
|
2023-05-05 14:14:42 +00:00
|
|
|
border: calc(var(--tl-scale) * 1.5px) solid var(--color-selected);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label__inner {
|
2023-04-25 11:01:25 +00:00
|
|
|
border-radius: var(--radius-1);
|
|
|
|
box-sizing: content-box;
|
|
|
|
position: relative;
|
|
|
|
height: max-content;
|
|
|
|
width: max-content;
|
|
|
|
pointer-events: all;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label p,
|
|
|
|
.tl-arrow-label textarea {
|
2023-04-25 11:01:25 +00:00
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
border: 0px;
|
|
|
|
color: inherit;
|
|
|
|
caret-color: var(--color-text);
|
|
|
|
background: none;
|
|
|
|
border-image: none;
|
|
|
|
font-size: inherit;
|
|
|
|
font-family: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
font-variant: inherit;
|
|
|
|
font-style: inherit;
|
|
|
|
text-align: inherit;
|
|
|
|
letter-spacing: inherit;
|
|
|
|
text-shadow: inherit;
|
|
|
|
outline: none;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
pointer-events: all;
|
|
|
|
text-rendering: auto;
|
|
|
|
text-transform: none;
|
|
|
|
text-indent: 0px;
|
|
|
|
display: inline-block;
|
|
|
|
appearance: auto;
|
|
|
|
column-count: initial !important;
|
|
|
|
writing-mode: horizontal-tb !important;
|
|
|
|
word-spacing: 0px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label p {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
height: max-content;
|
|
|
|
z-index: 2;
|
|
|
|
padding: 4px;
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-arrow-label textarea {
|
2023-04-25 11:01:25 +00:00
|
|
|
z-index: 3;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 4px;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
resize: none;
|
|
|
|
border: 0px;
|
|
|
|
user-select: all;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
caret-color: var(--color-text);
|
|
|
|
border-image: none;
|
|
|
|
/* Don't allow textarea to be zero width */
|
|
|
|
min-width: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------- NoteShape ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-note__container {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border-radius: var(--radius-2);
|
|
|
|
box-shadow: var(--shadow-1);
|
|
|
|
overflow: hidden;
|
|
|
|
border-color: currentColor;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-note__container .tl-text-label {
|
2023-04-25 11:01:25 +00:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-note__scrim {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-background);
|
|
|
|
opacity: 0.28;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-loading {
|
2023-04-25 11:01:25 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
gap: var(--space-2);
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
|
|
|
opacity: 0;
|
|
|
|
animation: fade-in 0.2s ease-in-out forwards;
|
|
|
|
animation-delay: 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fade-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------------- FrameShape ------------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame__body {
|
2023-04-25 11:01:25 +00:00
|
|
|
fill: var(--palette-solid);
|
|
|
|
stroke: var(--color-text);
|
2023-05-05 14:14:42 +00:00
|
|
|
stroke-width: calc(1px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame__background {
|
2023-04-25 11:01:25 +00:00
|
|
|
border-style: solid;
|
2023-05-05 14:14:42 +00:00
|
|
|
border-width: calc(1px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
border-color: currentColor;
|
|
|
|
background-color: var(--palette-solid);
|
2023-05-05 14:14:42 +00:00
|
|
|
border-radius: calc(var(--radius-1) * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame__hitarea {
|
2023-04-25 11:01:25 +00:00
|
|
|
border-style: solid;
|
2023-05-05 14:14:42 +00:00
|
|
|
border-width: calc(8px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
border-color: transparent;
|
|
|
|
background: none;
|
|
|
|
pointer-events: stroke;
|
|
|
|
box-sizing: border-box;
|
2023-05-05 14:14:42 +00:00
|
|
|
top: calc(-8px * var(--tl-scale));
|
|
|
|
left: calc(-8px * var(--tl-scale));
|
|
|
|
width: calc(100% + calc(16px * var(--tl-scale)));
|
|
|
|
height: calc(100% + calc(16px * var(--tl-scale)));
|
2023-04-25 11:01:25 +00:00
|
|
|
z-index: 1;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame-heading {
|
2023-04-25 11:01:25 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: absolute;
|
|
|
|
transform-origin: 0% 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
max-width: 100%;
|
|
|
|
min-width: 32px;
|
|
|
|
height: auto;
|
|
|
|
font-size: 12px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame-heading-hit-area {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: all;
|
|
|
|
/* scale from bottom left corner so we can pin it to the top left corner of the frame */
|
|
|
|
transform-origin: 0% 100%;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: var(--radius-1);
|
|
|
|
background-color: var(--color-background);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame-label {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: all;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
padding: var(--space-3) var(--space-3);
|
|
|
|
position: relative;
|
|
|
|
font-size: inherit;
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame-label__editing {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: transparent;
|
|
|
|
outline: 1.5px solid var(--color-selection-stroke);
|
|
|
|
white-space: pre;
|
|
|
|
width: auto;
|
|
|
|
overflow: visible;
|
|
|
|
background-color: var(--color-panel);
|
|
|
|
border-radius: var(--radius-1);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame-name-input {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
outline: none;
|
|
|
|
padding: var(--space-3) var(--space-3);
|
|
|
|
inset: 0px;
|
|
|
|
font-size: inherit;
|
|
|
|
font-family: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
width: 100%;
|
|
|
|
color: var(--color-text-1);
|
|
|
|
border-radius: var(--radius-1);
|
|
|
|
user-select: all;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
white-space: pre;
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-text);
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* If mobile use 16px as font size */
|
|
|
|
/* On iOS, font size under 16px in an input will make the page zoom into the input 🤦♂️ */
|
|
|
|
/* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
|
|
|
|
@media (max-width: 600px) {
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-frame-heading {
|
2023-04-25 11:01:25 +00:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------ iFrames Detail ----------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-embed {
|
2023-04-25 11:01:25 +00:00
|
|
|
border: none;
|
|
|
|
border-radius: var(--radius-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ------------------- Code Editor ------------------ */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image__button {
|
2023-04-25 11:01:25 +00:00
|
|
|
padding: 4px 8px;
|
|
|
|
color: var(--color-text);
|
|
|
|
background-color: var(--color-panel);
|
|
|
|
border-radius: var(--radius-2);
|
|
|
|
box-shadow: var(--shadow-1);
|
|
|
|
pointer-events: all;
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-pointer);
|
2023-04-25 11:01:25 +00:00
|
|
|
outline: none;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image__button:disabled {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image__toolbox {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: flex-end;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-image__toolbox__hidden {
|
2023-04-25 11:01:25 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -------------- Shape Error Boundary -------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-shape-error-boundary {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-muted-1);
|
2023-05-05 14:14:42 +00:00
|
|
|
border-width: calc(1px * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
border-color: var(--color-muted-1);
|
|
|
|
border-style: solid;
|
2023-05-05 14:14:42 +00:00
|
|
|
border-radius: calc(var(--radius-1) * var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
pointer-events: all;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: var(--space-2);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-shape-error-boundary::after {
|
|
|
|
transform: scale(var(--tl-scale));
|
2023-04-25 11:01:25 +00:00
|
|
|
content: 'Error';
|
|
|
|
font-size: 12px;
|
|
|
|
font-family: inherit;
|
|
|
|
color: var(--color-text-0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ----------------- Error Boundary ----------------- */
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: var(--space-4);
|
|
|
|
background-color: var(--color-background);
|
|
|
|
color: var(--color-text-1);
|
|
|
|
position: absolute;
|
2023-05-05 14:14:42 +00:00
|
|
|
z-index: 600;
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__overlay {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
inset: 0px;
|
2023-05-11 22:14:58 +00:00
|
|
|
z-index: 500;
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-overlay);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content * {
|
2023-04-25 11:01:25 +00:00
|
|
|
user-select: all;
|
|
|
|
-webkit-user-select: text;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__canvas {
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
2023-05-16 08:37:37 +00:00
|
|
|
inset: 0px;
|
2023-04-25 11:01:25 +00:00
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
/* some browsers seem to have some weird interactions between stacking contexts
|
|
|
|
and pointer-events. this ::after pseudo element covers the canvas and prevents
|
|
|
|
it from receiving any pointer events or affecting the cursor. */
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__canvas::after {
|
2023-04-25 11:01:25 +00:00
|
|
|
content: ' ';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2023-05-16 08:37:37 +00:00
|
|
|
inset: 0px;
|
2023-05-05 14:14:42 +00:00
|
|
|
z-index: 600;
|
2023-04-25 11:01:25 +00:00
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: fit-content;
|
|
|
|
height: fit-content;
|
|
|
|
max-width: 100%;
|
|
|
|
width: 400px;
|
|
|
|
max-height: 100%;
|
|
|
|
background-color: var(--color-panel);
|
|
|
|
padding: var(--space-6);
|
|
|
|
border-radius: var(--radius-4);
|
|
|
|
box-shadow: var(--shadow-2);
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: var(--space-5);
|
|
|
|
overflow: auto;
|
2023-05-11 22:14:58 +00:00
|
|
|
z-index: 600;
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content__expanded {
|
2023-04-25 11:01:25 +00:00
|
|
|
width: 600px;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content h2 {
|
2023-04-25 11:01:25 +00:00
|
|
|
font-size: 16px;
|
|
|
|
margin: 0px;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content p {
|
2023-04-25 11:01:25 +00:00
|
|
|
line-height: 1.5;
|
2023-05-16 08:37:37 +00:00
|
|
|
margin: 0px;
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content pre {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-muted-2);
|
|
|
|
padding: var(--space-5);
|
|
|
|
border-radius: var(--radius-2);
|
|
|
|
overflow: auto;
|
|
|
|
font-size: 12px;
|
|
|
|
max-height: 320px;
|
2023-05-16 08:37:37 +00:00
|
|
|
margin: 0px;
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content button {
|
2023-04-25 11:01:25 +00:00
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
|
|
|
padding: var(--space-4);
|
|
|
|
border-radius: var(--radius-3);
|
2023-05-23 14:12:11 +00:00
|
|
|
cursor: var(--tl-cursor-pointer);
|
2023-04-25 11:01:25 +00:00
|
|
|
color: inherit;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content button:hover {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-low);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content a {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-text-1);
|
|
|
|
font-weight: 500;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content a:hover {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-text-2);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content__error {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content__error button {
|
2023-04-25 11:01:25 +00:00
|
|
|
position: absolute;
|
|
|
|
top: var(--space-2);
|
|
|
|
right: var(--space-2);
|
|
|
|
font-size: 12px;
|
|
|
|
padding: var(--space-2) var(--space-3);
|
|
|
|
background-color: var(--color-panel);
|
|
|
|
border-radius: var(--radius-1);
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content__actions {
|
2023-04-25 11:01:25 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
gap: var(--space-4);
|
|
|
|
margin: calc(var(--space-4) * -1);
|
2023-05-16 08:37:37 +00:00
|
|
|
margin-top: 0px;
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content__actions__group {
|
2023-04-25 11:01:25 +00:00
|
|
|
display: flex;
|
|
|
|
gap: var(--space-4);
|
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content .tl-error-boundary__reset {
|
2023-04-25 11:01:25 +00:00
|
|
|
color: var(--color-warn);
|
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content .tl-error-boundary__refresh {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: var(--color-selected-contrast);
|
|
|
|
}
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-error-boundary__content .tl-error-boundary__refresh:hover {
|
2023-04-25 11:01:25 +00:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------- Coarse --------------------- */
|
|
|
|
|
|
|
|
@media screen and (pointer: coarse) {
|
|
|
|
/* If mobile always show handle-hint as there is no hover state */
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-canvas__mobile .tl-handle__hint {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-canvas__mobile .tl-handle__bg {
|
|
|
|
r: calc(20px / var(--tl-zoom));
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-05 14:14:42 +00:00
|
|
|
.tl-hidden {
|
2023-04-25 11:01:25 +00:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.debug__ui-logger {
|
|
|
|
position: absolute;
|
|
|
|
top: 62px;
|
|
|
|
left: 16px;
|
|
|
|
color: #555;
|
|
|
|
font-size: 12px;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|