@tldraw/tldraw 3.16.0-canary.aa1aff3ffe55 → 3.16.0-canary.cf24aedcd577
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
- package/tldraw.css +201 -84
package/dist-cjs/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var import_tldraw = require("tldraw");
|
|
|
19
19
|
__reExport(index_exports, require("tldraw"), module.exports);
|
|
20
20
|
(0, import_tldraw.registerTldrawLibraryVersion)(
|
|
21
21
|
"@tldraw/tldraw",
|
|
22
|
-
"3.16.0-canary.
|
|
22
|
+
"3.16.0-canary.cf24aedcd577",
|
|
23
23
|
"cjs"
|
|
24
24
|
);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/tldraw",
|
|
3
3
|
"description": "A tiny little drawing editor.",
|
|
4
|
-
"version": "3.16.0-canary.
|
|
4
|
+
"version": "3.16.0-canary.cf24aedcd577",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"src"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"tldraw": "3.16.0-canary.
|
|
50
|
+
"tldraw": "3.16.0-canary.cf24aedcd577"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^18.2.0 || ^19.0.0",
|
package/tldraw.css
CHANGED
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
--color-selected: hsl(214, 84%, 56%);
|
|
168
168
|
--color-selected-contrast: hsl(0, 0%, 100%);
|
|
169
169
|
--color-focus: hsl(219, 65%, 50%);
|
|
170
|
+
--color-tooltip: hsla(200, 14%, 4%, 1);
|
|
170
171
|
/* Text */
|
|
171
172
|
--color-text: hsl(0, 0%, 0%);
|
|
172
173
|
--color-text-0: hsl(0, 0%, 11%);
|
|
@@ -222,6 +223,7 @@
|
|
|
222
223
|
--color-selected: hsl(217, 89%, 61%);
|
|
223
224
|
--color-selected-contrast: hsl(0, 0%, 100%);
|
|
224
225
|
--color-focus: hsl(217, 76%, 80%);
|
|
226
|
+
--color-tooltip: hsla(0, 0%, 100%, 1);
|
|
225
227
|
/* Text */
|
|
226
228
|
--color-text: hsl(210, 17%, 98%);
|
|
227
229
|
--color-text-0: hsl(0, 9%, 94%);
|
|
@@ -1875,7 +1877,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1875
1877
|
opacity: 1;
|
|
1876
1878
|
}
|
|
1877
1879
|
|
|
1878
|
-
.tlui-button[aria-expanded='true'][data-direction='left']
|
|
1880
|
+
.tlui-button[aria-expanded='true'][data-direction='left'] {
|
|
1879
1881
|
background: linear-gradient(270deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
1880
1882
|
opacity: 1;
|
|
1881
1883
|
}
|
|
@@ -1939,12 +1941,6 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1939
1941
|
}
|
|
1940
1942
|
}
|
|
1941
1943
|
|
|
1942
|
-
/* Panel button */
|
|
1943
|
-
|
|
1944
|
-
.tlui-button__panel {
|
|
1945
|
-
position: relative;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
1944
|
/* Menu button */
|
|
1949
1945
|
|
|
1950
1946
|
.tlui-button__menu {
|
|
@@ -1985,18 +1981,26 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1985
1981
|
|
|
1986
1982
|
/* Tool lock button */
|
|
1987
1983
|
|
|
1988
|
-
.tlui-toolbar__lock-button {
|
|
1984
|
+
.tlui-main-toolbar__lock-button {
|
|
1989
1985
|
position: absolute;
|
|
1990
|
-
top: 4px;
|
|
1991
|
-
right: 0px;
|
|
1992
1986
|
pointer-events: all;
|
|
1993
1987
|
height: 40px;
|
|
1994
1988
|
width: 40px;
|
|
1995
|
-
min-width: 0px;
|
|
1996
1989
|
border-radius: var(--radius-2);
|
|
1997
1990
|
}
|
|
1998
1991
|
|
|
1999
|
-
.tlui-toolbar__lock-button
|
|
1992
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__lock-button {
|
|
1993
|
+
top: 4px;
|
|
1994
|
+
right: 0px;
|
|
1995
|
+
min-width: 0px;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__lock-button {
|
|
1999
|
+
bottom: 0px;
|
|
2000
|
+
min-height: 0px;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
.tlui-main-toolbar__lock-button::after {
|
|
2000
2004
|
top: 4px;
|
|
2001
2005
|
left: 8px;
|
|
2002
2006
|
inset: 4px;
|
|
@@ -2008,16 +2012,6 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2008
2012
|
position: relative;
|
|
2009
2013
|
height: 48px;
|
|
2010
2014
|
width: 48px;
|
|
2011
|
-
margin-left: -2px;
|
|
2012
|
-
margin-right: -2px;
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
.tlui-button__tool:nth-of-type(1) {
|
|
2016
|
-
margin-left: 0px;
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
.tlui-button__tool:nth-last-of-type(1) {
|
|
2020
|
-
margin-right: 0px;
|
|
2021
2015
|
}
|
|
2022
2016
|
|
|
2023
2017
|
.tlui-button__tool::after {
|
|
@@ -2038,57 +2032,52 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2038
2032
|
opacity: 1;
|
|
2039
2033
|
}
|
|
2040
2034
|
|
|
2041
|
-
.tlui-layout__mobile .tlui-button__tool {
|
|
2035
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool {
|
|
2042
2036
|
height: 48px;
|
|
2043
2037
|
width: 43px;
|
|
2044
2038
|
}
|
|
2045
2039
|
|
|
2046
|
-
.tlui-layout__mobile .tlui-button__tool > .tlui-icon {
|
|
2040
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-button__tool > .tlui-icon {
|
|
2047
2041
|
height: 16px;
|
|
2048
2042
|
width: 16px;
|
|
2049
2043
|
}
|
|
2050
2044
|
|
|
2051
|
-
/*
|
|
2045
|
+
/* Row layout */
|
|
2052
2046
|
|
|
2053
|
-
.tlui-
|
|
2047
|
+
.tlui-row {
|
|
2054
2048
|
display: flex;
|
|
2055
2049
|
flex-direction: row;
|
|
2050
|
+
padding: 0 2px;
|
|
2056
2051
|
}
|
|
2057
|
-
.tlui-
|
|
2052
|
+
.tlui-row > * {
|
|
2058
2053
|
margin-left: -2px;
|
|
2059
2054
|
margin-right: -2px;
|
|
2060
2055
|
}
|
|
2061
|
-
|
|
2062
|
-
|
|
2056
|
+
|
|
2057
|
+
/* Column layout */
|
|
2058
|
+
|
|
2059
|
+
.tlui-column {
|
|
2060
|
+
display: flex;
|
|
2061
|
+
flex-direction: column;
|
|
2062
|
+
padding: 2px 0;
|
|
2063
2063
|
}
|
|
2064
|
-
.tlui-
|
|
2065
|
-
margin-
|
|
2064
|
+
.tlui-column > * {
|
|
2065
|
+
margin-top: -2px;
|
|
2066
|
+
margin-bottom: -2px;
|
|
2066
2067
|
}
|
|
2067
2068
|
|
|
2068
|
-
/*
|
|
2069
|
+
/* Grid layout */
|
|
2069
2070
|
|
|
2070
|
-
.tlui-
|
|
2071
|
+
.tlui-grid {
|
|
2071
2072
|
display: grid;
|
|
2072
|
-
grid-template-columns: repeat(4,
|
|
2073
|
+
grid-template-columns: repeat(4, 1fr);
|
|
2073
2074
|
grid-auto-flow: row;
|
|
2074
2075
|
overflow: hidden;
|
|
2076
|
+
padding: 2px;
|
|
2075
2077
|
}
|
|
2076
|
-
.tlui-
|
|
2078
|
+
.tlui-grid > * {
|
|
2077
2079
|
margin: -2px;
|
|
2078
2080
|
}
|
|
2079
|
-
.tlui-buttons__grid > .tlui-button:nth-of-type(4n),
|
|
2080
|
-
.tlui-buttons__vertical-align > .tlui-button:nth-of-type(3n) {
|
|
2081
|
-
margin-right: 0px;
|
|
2082
|
-
}
|
|
2083
|
-
.tlui-buttons__grid > .tlui-button:nth-of-type(4n - 3) {
|
|
2084
|
-
margin-left: 0px;
|
|
2085
|
-
}
|
|
2086
|
-
.tlui-buttons__grid > .tlui-button:nth-of-type(-n + 4) {
|
|
2087
|
-
margin-top: 0px;
|
|
2088
|
-
}
|
|
2089
|
-
.tlui-buttons__grid > .tlui-button:nth-last-of-type(-n + 4) {
|
|
2090
|
-
margin-bottom: 0px;
|
|
2091
|
-
}
|
|
2092
2081
|
|
|
2093
2082
|
/* Zoom button */
|
|
2094
2083
|
|
|
@@ -2778,6 +2767,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2778
2767
|
max-width: 148px;
|
|
2779
2768
|
}
|
|
2780
2769
|
|
|
2770
|
+
.tlui-style-panel[data-show-ui-labels='true'] .tlui-button[data-isactive='true'] {
|
|
2771
|
+
border-radius: 10px;
|
|
2772
|
+
outline: 2px solid var(--color-text);
|
|
2773
|
+
outline-offset: -5px;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2781
2776
|
.tlui-style-panel::-webkit-scrollbar {
|
|
2782
2777
|
display: none;
|
|
2783
2778
|
}
|
|
@@ -2805,12 +2800,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2805
2800
|
border-bottom: 1px solid var(--color-divider);
|
|
2806
2801
|
}
|
|
2807
2802
|
|
|
2808
|
-
.tlui-style-
|
|
2809
|
-
|
|
2810
|
-
}
|
|
2811
|
-
/* Only really used for the alignment picker */
|
|
2812
|
-
.tlui-style-panel__row__extra-button {
|
|
2813
|
-
margin-left: -2px;
|
|
2803
|
+
.tlui-style-panel__dropdown-picker:only-child {
|
|
2804
|
+
width: 100%;
|
|
2814
2805
|
}
|
|
2815
2806
|
|
|
2816
2807
|
.tlui-style-panel__double-select-picker {
|
|
@@ -2842,15 +2833,36 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2842
2833
|
}
|
|
2843
2834
|
}
|
|
2844
2835
|
|
|
2836
|
+
/* Accessibility subheadings */
|
|
2837
|
+
|
|
2838
|
+
.tlui-style-panel__section .tlui-style-panel__subheading,
|
|
2839
|
+
.tlui-style-panel__section__common .tlui-style-panel__subheading,
|
|
2840
|
+
.tlui-style-panel__subheading + .tlui-slider__container {
|
|
2841
|
+
margin: 0;
|
|
2842
|
+
padding: var(--space-2) var(--space-3) 0px var(--space-4);
|
|
2843
|
+
font-size: 12px;
|
|
2844
|
+
font-weight: inherit;
|
|
2845
|
+
line-height: inherit;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.tlui-style-panel .tlui-style-panel__subheading:nth-of-type(1) {
|
|
2849
|
+
padding-top: var(--space-3);
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
.tlui-style-panel__subheading + .tlui-slider__container {
|
|
2853
|
+
padding-top: 0px;
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2845
2856
|
/* --------------------- Bottom --------------------- */
|
|
2846
2857
|
|
|
2847
2858
|
.tlui-layout__bottom {
|
|
2848
2859
|
grid-row: 2;
|
|
2860
|
+
width: 100%;
|
|
2861
|
+
overflow: hidden;
|
|
2849
2862
|
}
|
|
2850
2863
|
|
|
2851
2864
|
.tlui-layout__bottom__main {
|
|
2852
2865
|
width: 100%;
|
|
2853
|
-
position: relative;
|
|
2854
2866
|
display: flex;
|
|
2855
2867
|
align-items: flex-end;
|
|
2856
2868
|
justify-content: center;
|
|
@@ -2866,7 +2878,6 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2866
2878
|
pointer-events: all;
|
|
2867
2879
|
position: absolute;
|
|
2868
2880
|
left: 0px;
|
|
2869
|
-
bottom: 0px;
|
|
2870
2881
|
}
|
|
2871
2882
|
|
|
2872
2883
|
.tlui-navigation-panel::before {
|
|
@@ -2906,62 +2917,101 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2906
2917
|
/* --------------------- Toolbar -------------------- */
|
|
2907
2918
|
|
|
2908
2919
|
/* Wide container */
|
|
2909
|
-
.tlui-toolbar {
|
|
2920
|
+
.tlui-main-toolbar {
|
|
2910
2921
|
grid-column: 1 / span 3;
|
|
2911
2922
|
grid-row: 1;
|
|
2912
2923
|
display: flex;
|
|
2913
2924
|
align-items: center;
|
|
2914
2925
|
justify-content: center;
|
|
2915
2926
|
flex-grow: 2;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
.tlui-main-toolbar--horizontal {
|
|
2916
2930
|
padding-bottom: calc(var(--space-3) + var(--sab));
|
|
2931
|
+
max-width: 100%;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
.tlui-main-toolbar--vertical {
|
|
2935
|
+
position: absolute;
|
|
2936
|
+
left: 0;
|
|
2937
|
+
top: 90px; /* height of page menu + 'back to content' button */
|
|
2938
|
+
bottom: 140px; /* height of expanded mini-map */
|
|
2939
|
+
padding-left: calc(var(--space-3) + var(--sab));
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
[data-breakpoints-below*='6'] .tlui-main-toolbar--vertical {
|
|
2943
|
+
bottom: 90px; /* collapsed mini-map, but same as top to keep things looking even */
|
|
2917
2944
|
}
|
|
2918
2945
|
|
|
2919
2946
|
/* Centered Content */
|
|
2920
|
-
.tlui-toolbar__inner {
|
|
2947
|
+
.tlui-main-toolbar__inner {
|
|
2921
2948
|
position: relative;
|
|
2922
2949
|
width: fit-content;
|
|
2923
2950
|
display: flex;
|
|
2924
2951
|
gap: var(--space-3);
|
|
2925
|
-
align-items: flex-
|
|
2952
|
+
align-items: flex-start;
|
|
2926
2953
|
}
|
|
2927
2954
|
|
|
2928
|
-
.tlui-
|
|
2955
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__inner {
|
|
2956
|
+
flex-direction: column;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__left {
|
|
2929
2960
|
width: fit-content;
|
|
2930
2961
|
}
|
|
2962
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__left {
|
|
2963
|
+
display: flex;
|
|
2964
|
+
height: fit-content;
|
|
2965
|
+
}
|
|
2931
2966
|
|
|
2932
2967
|
/* Row of controls + lock button */
|
|
2933
|
-
.tlui-toolbar__extras {
|
|
2968
|
+
.tlui-main-toolbar__extras {
|
|
2934
2969
|
position: relative;
|
|
2935
2970
|
z-index: var(--layer-above);
|
|
2936
|
-
width: 100%;
|
|
2937
2971
|
pointer-events: none;
|
|
2938
|
-
|
|
2939
|
-
height: 48px;
|
|
2972
|
+
align-self: stretch;
|
|
2940
2973
|
}
|
|
2941
2974
|
|
|
2942
|
-
.tlui-toolbar__extras:empty {
|
|
2975
|
+
.tlui-main-toolbar__extras:empty {
|
|
2943
2976
|
display: none;
|
|
2944
2977
|
}
|
|
2945
2978
|
|
|
2946
|
-
.tlui-
|
|
2947
|
-
|
|
2979
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__extras {
|
|
2980
|
+
height: 48px;
|
|
2981
|
+
top: 6px;
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__extras {
|
|
2985
|
+
width: 48px;
|
|
2986
|
+
order: 1;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
.tlui-main-toolbar__extras__controls {
|
|
2948
2990
|
position: relative;
|
|
2949
|
-
flex-direction: row;
|
|
2950
2991
|
z-index: var(--layer-above);
|
|
2951
2992
|
background-color: var(--color-low);
|
|
2993
|
+
border: 2px solid var(--color-background);
|
|
2994
|
+
pointer-events: all;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__extras__controls {
|
|
2952
2998
|
border-top-left-radius: var(--radius-4);
|
|
2953
2999
|
border-top-right-radius: var(--radius-4);
|
|
2954
|
-
border: 2px solid var(--color-background);
|
|
2955
3000
|
margin-left: 8px;
|
|
2956
3001
|
margin-right: 0px;
|
|
2957
|
-
pointer-events: all;
|
|
2958
3002
|
width: fit-content;
|
|
2959
3003
|
}
|
|
2960
3004
|
|
|
2961
|
-
.tlui-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
3005
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__extras__controls {
|
|
3006
|
+
border-top-right-radius: var(--radius-4);
|
|
3007
|
+
border-bottom-right-radius: var(--radius-4);
|
|
3008
|
+
margin-top: 8px;
|
|
3009
|
+
margin-left: -2px;
|
|
3010
|
+
margin-bottom: 0px;
|
|
3011
|
+
width: fit-content;
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
.tlui-main-toolbar__tools {
|
|
2965
3015
|
border-radius: var(--radius-4);
|
|
2966
3016
|
z-index: var(--layer-panels);
|
|
2967
3017
|
pointer-events: all;
|
|
@@ -2969,35 +3019,102 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2969
3019
|
background: var(--color-panel);
|
|
2970
3020
|
box-shadow: var(--shadow-2);
|
|
2971
3021
|
}
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
3022
|
+
|
|
3023
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__mobile-style-panel {
|
|
3024
|
+
align-self: flex-end;
|
|
3025
|
+
}
|
|
3026
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__mobile-style-panel {
|
|
3027
|
+
align-self: flex-start;
|
|
2976
3028
|
}
|
|
2977
3029
|
|
|
2978
|
-
.tlui-toolbar__overflow {
|
|
3030
|
+
.tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
|
|
2979
3031
|
width: 40px;
|
|
3032
|
+
margin-left: 2px;
|
|
3033
|
+
}
|
|
3034
|
+
.tlui-main-toolbar--vertical .tlui-main-toolbar__overflow {
|
|
3035
|
+
height: 40px;
|
|
3036
|
+
margin-top: 2px;
|
|
2980
3037
|
}
|
|
2981
3038
|
|
|
2982
|
-
.tlui-layout__mobile .tlui-toolbar__overflow {
|
|
3039
|
+
.tlui-layout__mobile .tlui-main-toolbar--horizontal .tlui-main-toolbar__overflow {
|
|
2983
3040
|
width: 32px;
|
|
2984
3041
|
padding: 0px;
|
|
2985
3042
|
}
|
|
2986
3043
|
|
|
2987
|
-
.tlui-toolbar *[data-state='open']::after {
|
|
3044
|
+
.tlui-main-toolbar--horizontal *[data-state='open']::after {
|
|
2988
3045
|
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2989
3046
|
opacity: 1;
|
|
2990
3047
|
}
|
|
3048
|
+
.tlui-main-toolbar--vertical *[data-state='open']::after {
|
|
3049
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
3050
|
+
opacity: 1;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
.tlui-main-toolbar__tools [data-toolbar-visible='false'],
|
|
3054
|
+
.tlui-main-toolbar__overflow-content [data-toolbar-visible='false'] {
|
|
3055
|
+
display: none;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
.tlui-main-toolbar__group:empty {
|
|
3059
|
+
display: none;
|
|
3060
|
+
}
|
|
3061
|
+
.tlui-row.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
|
|
3062
|
+
border-right: 1px solid var(--color-divider);
|
|
3063
|
+
margin-right: 2px;
|
|
3064
|
+
}
|
|
3065
|
+
.tlui-column.tlui-main-toolbar__group:not(
|
|
3066
|
+
:nth-last-child(-n + 1 of [data-toolbar-visible='true'])
|
|
3067
|
+
) {
|
|
3068
|
+
border-bottom: 1px solid var(--color-divider);
|
|
3069
|
+
margin-bottom: 2px;
|
|
3070
|
+
}
|
|
3071
|
+
.tlui-grid.tlui-main-toolbar__group {
|
|
3072
|
+
grid-column: 1 / span 4;
|
|
3073
|
+
}
|
|
3074
|
+
.tlui-grid.tlui-main-toolbar__group:not(:nth-last-child(-n + 1 of [data-toolbar-visible='true'])) {
|
|
3075
|
+
border-bottom: 1px solid var(--color-divider);
|
|
3076
|
+
margin-bottom: 2px;
|
|
3077
|
+
}
|
|
2991
3078
|
|
|
2992
3079
|
@media (hover: hover) {
|
|
2993
|
-
.tlui-toolbar *[data-state='open']:not(:hover)::after {
|
|
3080
|
+
.tlui-main-toolbar--horizontal *[data-state='open']:not(:hover)::after {
|
|
2994
3081
|
background: linear-gradient(0deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
2995
3082
|
opacity: 1;
|
|
2996
3083
|
}
|
|
3084
|
+
.tlui-main-toolbar--vertical *[data-state='open']:not(:hover)::after {
|
|
3085
|
+
background: linear-gradient(90deg, rgba(144, 144, 144, 0) 0%, var(--color-muted-2) 100%);
|
|
3086
|
+
opacity: 1;
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
/* ------------------- Tooltip -------------------- */
|
|
3091
|
+
|
|
3092
|
+
.tlui-tooltip {
|
|
3093
|
+
font-size: 12px;
|
|
3094
|
+
padding: 2px 8px;
|
|
3095
|
+
border-radius: 4px;
|
|
3096
|
+
background-color: var(--color-tooltip);
|
|
3097
|
+
box-shadow: none;
|
|
3098
|
+
color: var(--color-text-shadow);
|
|
3099
|
+
max-width: 400px;
|
|
3100
|
+
width: fit-content;
|
|
3101
|
+
text-align: center;
|
|
3102
|
+
pointer-events: none;
|
|
3103
|
+
will-change: transform, opacity;
|
|
3104
|
+
z-index: 2;
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
.tlui-tooltip__arrow {
|
|
3108
|
+
fill: var(--color-tooltip);
|
|
3109
|
+
will-change: opacity;
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
[data-radix-popper-content-wrapper]:has(.tlui-tooltip) {
|
|
3113
|
+
z-index: var(--layer-toasts) !important;
|
|
2997
3114
|
}
|
|
2998
3115
|
|
|
2999
|
-
|
|
3000
|
-
transition:
|
|
3116
|
+
[data-radix-popper-content-wrapper]:has(.tlui-tooltip[data-should-animate='true']) {
|
|
3117
|
+
transition: all 0.1s ease-out;
|
|
3001
3118
|
}
|
|
3002
3119
|
|
|
3003
3120
|
/* ------------------- Debug panel ------------------ */
|