x4js 1.5.20 → 1.5.21

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.
@@ -0,0 +1,2243 @@
1
+ // out: ../lib/x4.css
2
+
3
+ /**
4
+ * ___ ___ __
5
+ * \ \_/ / / _
6
+ * \ / /_| |_
7
+ * / _ \____ _|
8
+ * /__/ \__\ |_|
9
+ *
10
+ * @file x4.less
11
+ * @author Etienne Cochard
12
+ *
13
+ * Copyright (c) 2019-2022 R-libre ingenierie
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
19
+ * of the Software, and to permit persons to whom the Software is furnished to do so,
20
+ * subject to the following conditions:
21
+ * The above copyright notice and this permission notice shall be included in all copies
22
+ * or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
25
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
26
+ * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
29
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+ **/
31
+
32
+ :root {
33
+ --x4-font: Helvetica, Arial, Sans-Serif;
34
+ --x4-font-size: 13px;
35
+
36
+ --x4-base-color: #266888;
37
+
38
+ --x4-selection-color: #2458B3;
39
+ --x4-selection-text: white;
40
+
41
+ --x4-hover-color: fadeout( #2458B3, 10% );
42
+ --x4-hover-text: white;
43
+
44
+ --x4-mask-color: fadeout( #2458B3, 40% );
45
+ --x4-focus-color: #2458B3;
46
+ --x4-error-color: #b92a09;
47
+ --x4-success-color: #0A6640;
48
+ --x4-form-color: white;
49
+ --x4-tip-background: rgba(0,0,0,0.5);
50
+
51
+ --x4-button-color: white;
52
+ --x4-button-text-color: rgb(54,54,54);
53
+
54
+ --x4-scrollbar-width: 6px;
55
+ --x4-scrollbar-background: white;
56
+ --x4-scrollbar-thumb: grey;
57
+
58
+ --x4-sizer-size: 4px;
59
+ --x4-default-border-color: rgba(0,0,0,0.1);
60
+
61
+ // todo: svg
62
+ --x4-icon-font-family: "fonteawesome";
63
+
64
+ // icons are from Font Awesome by @fontawesome - https://fontawesome.com
65
+ --x4-icon-circle-exclamation: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"/></svg>';
66
+ --x4-icon-window-restore: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M432 64H208C199.2 64 192 71.16 192 80V96H128V80C128 35.82 163.8 0 208 0H432C476.2 0 512 35.82 512 80V304C512 348.2 476.2 384 432 384H416V320H432C440.8 320 448 312.8 448 304V80C448 71.16 440.8 64 432 64zM0 192C0 156.7 28.65 128 64 128H320C355.3 128 384 156.7 384 192V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V192zM96 256H288C305.7 256 320 241.7 320 224C320 206.3 305.7 192 288 192H96C78.33 192 64 206.3 64 224C64 241.7 78.33 256 96 256z"/></svg>';
67
+ --x4-icon-arrow-down: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="currentColor"><path d="M9.375 329.4c12.51-12.51 32.76-12.49 45.25 0L128 402.8V32c0-17.69 14.31-32 32-32s32 14.31 32 32v370.8l73.38-73.38c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-128 128c-12.5 12.5-32.75 12.5-45.25 0l-128-128C-3.125 362.1-3.125 341.9 9.375 329.4z"/></svg>';
68
+ --x4-icon-arrow-up: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="currentColor"><path d="M310.6 182.6c-12.51 12.51-32.76 12.49-45.25 0L192 109.3V480c0 17.69-14.31 32-32 32s-32-14.31-32-32V109.3L54.63 182.6c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l128-128c12.5-12.5 32.75-12.5 45.25 0l128 128C323.1 149.9 323.1 170.1 310.6 182.6z"/></svg>';
69
+ --x4-icon-exclamation: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512" fill="currentColor"><path d="M64 352c17.69 0 32-14.32 32-31.1V64.01c0-17.67-14.31-32.01-32-32.01S32 46.34 32 64.01v255.1C32 337.7 46.31 352 64 352zM64 400c-22.09 0-40 17.91-40 40s17.91 39.1 40 39.1s40-17.9 40-39.1S86.09 400 64 400z"/></svg>';
70
+ --x4-icon-window-minimize: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M0 448C0 430.3 14.33 416 32 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H32C14.33 480 0 465.7 0 448z"/></svg>';
71
+ --x4-icon-window-maximize: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM96 96C78.33 96 64 110.3 64 128C64 145.7 78.33 160 96 160H416C433.7 160 448 145.7 448 128C448 110.3 433.7 96 416 96H96z"/></svg>';
72
+ --x4-icon-window-restore: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M432 64H208C199.2 64 192 71.16 192 80V96H128V80C128 35.82 163.8 0 208 0H432C476.2 0 512 35.82 512 80V304C512 348.2 476.2 384 432 384H416V320H432C440.8 320 448 312.8 448 304V80C448 71.16 440.8 64 432 64zM0 192C0 156.7 28.65 128 64 128H320C355.3 128 384 156.7 384 192V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V192zM96 256H288C305.7 256 320 241.7 320 224C320 206.3 305.7 192 288 192H96C78.33 192 64 206.3 64 224C64 241.7 78.33 256 96 256z"/></svg>';
73
+ --x4-icon-rectangle-times: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M448 32C483.3 32 512 60.65 512 96V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"/></svg>';
74
+ --x4-icon-xmark: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="currentColor"><path d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/></svg>';
75
+ --x4-icon-angle-down: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" fill="currentColor"><path d="M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"/></svg>';
76
+ --x4-icon-calendar-days: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M160 32V64H288V32C288 14.33 302.3 0 320 0C337.7 0 352 14.33 352 32V64H400C426.5 64 448 85.49 448 112V160H0V112C0 85.49 21.49 64 48 64H96V32C96 14.33 110.3 0 128 0C145.7 0 160 14.33 160 32zM0 192H448V464C448 490.5 426.5 512 400 512H48C21.49 512 0 490.5 0 464V192zM64 304C64 312.8 71.16 320 80 320H112C120.8 320 128 312.8 128 304V272C128 263.2 120.8 256 112 256H80C71.16 256 64 263.2 64 272V304zM192 304C192 312.8 199.2 320 208 320H240C248.8 320 256 312.8 256 304V272C256 263.2 248.8 256 240 256H208C199.2 256 192 263.2 192 272V304zM336 256C327.2 256 320 263.2 320 272V304C320 312.8 327.2 320 336 320H368C376.8 320 384 312.8 384 304V272C384 263.2 376.8 256 368 256H336zM64 432C64 440.8 71.16 448 80 448H112C120.8 448 128 440.8 128 432V400C128 391.2 120.8 384 112 384H80C71.16 384 64 391.2 64 400V432zM208 384C199.2 384 192 391.2 192 400V432C192 440.8 199.2 448 208 448H240C248.8 448 256 440.8 256 432V400C256 391.2 248.8 384 240 384H208zM320 432C320 440.8 327.2 448 336 448H368C376.8 448 384 440.8 384 432V400C384 391.2 376.8 384 368 384H336C327.2 384 320 391.2 320 400V432z"/></svg>';
77
+ --x4-icon-tip: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM296 336h-16V248C280 234.8 269.3 224 256 224H224C210.8 224 200 234.8 200 248S210.8 272 224 272h8v64h-16C202.8 336 192 346.8 192 360S202.8 384 216 384h80c13.25 0 24-10.75 24-24S309.3 336 296 336zM256 192c17.67 0 32-14.33 32-32c0-17.67-14.33-32-32-32S224 142.3 224 160C224 177.7 238.3 192 256 192z"/></svg>';
78
+ --x4-icon-check: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M440.1 103C450.3 112.4 450.3 127.6 440.1 136.1L176.1 400.1C167.6 410.3 152.4 410.3 143 400.1L7.029 264.1C-2.343 255.6-2.343 240.4 7.029 231C16.4 221.7 31.6 221.7 40.97 231L160 350.1L407 103C416.4 93.66 431.6 93.66 440.1 103V103z"/></svg>';
79
+ --x4-icon-folder-closed: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M448 96h-172.1L226.7 50.75C214.7 38.74 198.5 32 181.5 32H64C28.65 32 0 60.66 0 96v320c0 35.34 28.65 64 64 64h384c35.35 0 64-28.66 64-64V160C512 124.7 483.3 96 448 96zM64 80h117.5c4.273 0 8.293 1.664 11.31 4.688L256 144h192c8.822 0 16 7.176 16 16v32h-416V96C48 87.18 55.18 80 64 80zM448 432H64c-8.822 0-16-7.176-16-16V240h416V416C464 424.8 456.8 432 448 432z"/></svg>';
80
+ --x4-icon-folder-opened: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" fill="currentColor"><path d="M572.6 270.3l-96 192C471.2 473.2 460.1 480 447.1 480H64c-35.35 0-64-28.66-64-64V96c0-35.34 28.65-64 64-64h117.5c16.97 0 33.25 6.742 45.26 18.75L275.9 96H416c35.35 0 64 28.66 64 64v32h-48V160c0-8.824-7.178-16-16-16H256L192.8 84.69C189.8 81.66 185.8 80 181.5 80H64C55.18 80 48 87.18 48 96v288l71.16-142.3C124.6 230.8 135.7 224 147.8 224h396.2C567.7 224 583.2 249 572.6 270.3z"/></svg>';
81
+
82
+ --x4-icon-chevron-down: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M432.6 209.3l-191.1 183.1C235.1 397.8 229.1 400 224 400s-11.97-2.219-16.59-6.688L15.41 209.3C5.814 200.2 5.502 184.1 14.69 175.4c9.125-9.625 24.38-9.938 33.91-.7187L224 342.8l175.4-168c9.5-9.219 24.78-8.906 33.91 .7187C442.5 184.1 442.2 200.2 432.6 209.3z"/></svg>';
83
+ --x4-icon-chevron-right: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="currentColor"><path d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"/></svg>';
84
+ --x4-icon-chevron-left: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" fill="currentColor"><path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/></svg>';
85
+ --x4-icon-chevron-up: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M15.41 302.7l191.1-183.1C212 114.2 218 111.1 224 111.1s11.97 2.219 16.59 6.688l191.1 183.1c9.594 9.152 9.906 24.34 .7187 33.9c-9.125 9.625-24.38 9.938-33.91 .7187L224 169.2l-175.4 168c-9.5 9.219-24.78 8.906-33.91-.7187C5.502 327 5.814 311.8 15.41 302.7z"/></svg>';
86
+
87
+ --x4-icon-square-check: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"/></svg>';
88
+ --x4-icon-square: 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="currentColor"><path d="M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 64H64C46.33 64 32 78.33 32 96V416C32 433.7 46.33 448 64 448H384C401.7 448 416 433.7 416 416V96C416 78.33 401.7 64 384 64z"/></svg>';
89
+ }
90
+
91
+ @BLACK10: rgba(0,0,0,0.1);
92
+ @BLACK20: rgba(0,0,0,0.2);
93
+ @BLACK30: rgba(0,0,0,0.3);
94
+ @BLACK40: rgba(0,0,0,0.4);
95
+ @BLACK50: rgba(0,0,0,0.5);
96
+ @BLACK60: rgba(0,0,0,0.6);
97
+ @BLACK70: rgba(0,0,0,0.7);
98
+ @BLACK80: rgba(0,0,0,0.8);
99
+ @BLACK90: rgba(0,0,0,0.9);
100
+ @BLACK: #000;
101
+
102
+ @WHITE5: rgba(255,255,255,0.05);
103
+ @WHITE10: rgba(255,255,255,0.1);
104
+ @WHITE20: rgba(255,255,255,0.2);
105
+ @WHITE25: rgba(255,255,255,0.25);
106
+ @WHITE30: rgba(255,255,255,0.3);
107
+ @WHITE40: rgba(255,255,255,0.4);
108
+ @WHITE50: rgba(255,255,255,0.5);
109
+ @WHITE60: rgba(255,255,255,0.6);
110
+ @WHITE70: rgba(255,255,255,0.7);
111
+ @WHITE80: rgba(255,255,255,0.8);
112
+ @WHITE90: rgba(255,255,255,0.9);
113
+ @WHITE: #fff;
114
+
115
+ /* source: https://tailwindcss.com/docs/customizing-colors/#default-color-palette */
116
+ :root {
117
+ --black: #000000;
118
+ --white: #ffffff;
119
+
120
+ --gray-100: #f7fafc;
121
+ --gray-200: #edf2f7;
122
+ --gray-300: #e2e8f0;
123
+ --gray-400: #cbd5e0;
124
+ --gray-500: #a0aec0;
125
+ --gray-600: #718096;
126
+ --gray-700: #4a5568;
127
+ --gray-800: #2d3748;
128
+ --gray-900: #1a202c;
129
+
130
+ --red-100: #fff5f5;
131
+ --red-200: #fed7d7;
132
+ --red-300: #feb2b2;
133
+ --red-400: #fc8181;
134
+ --red-500: #f56565;
135
+ --red-600: #e53e3e;
136
+ --red-700: #c53030;
137
+ --red-800: #9b2c2c;
138
+ --red-900: #742a2a;
139
+
140
+ --orange-100: #fffaf0;
141
+ --orange-200: #feebc8;
142
+ --orange-300: #fbd38d;
143
+ --orange-400: #f6ad55;
144
+ --orange-500: #ed8936;
145
+ --orange-600: #dd6b20;
146
+ --orange-700: #c05621;
147
+ --orange-800: #9c4221;
148
+ --orange-900: #7b341e;
149
+
150
+ --yellow-100: #fffff0;
151
+ --yellow-200: #fefcbf;
152
+ --yellow-300: #faf089;
153
+ --yellow-400: #f6e05e;
154
+ --yellow-500: #ecc94b;
155
+ --yellow-600: #d69e2e;
156
+ --yellow-700: #b7791f;
157
+ --yellow-800: #975a16;
158
+ --yellow-900: #744210;
159
+
160
+ --green-100: #f0fff4;
161
+ --green-200: #c6f6d5;
162
+ --green-300: #9ae6b4;
163
+ --green-400: #68d391;
164
+ --green-500: #48bb78;
165
+ --green-600: #38a169;
166
+ --green-700: #2f855a;
167
+ --green-800: #276749;
168
+ --green-900: #22543d;
169
+
170
+ --teal-100: #e6fffa;
171
+ --teal-200: #b2f5ea;
172
+ --teal-300: #81e6d9;
173
+ --teal-400: #4fd1c5;
174
+ --teal-500: #38b2ac;
175
+ --teal-600: #319795;
176
+ --teal-700: #2c7a7b;
177
+ --teal-800: #285e61;
178
+ --teal-900: #234e52;
179
+
180
+ --blue-100: #ebf8ff;
181
+ --blue-200: #bee3f8;
182
+ --blue-300: #90cdf4;
183
+ --blue-400: #63b3ed;
184
+ --blue-500: #4299e1;
185
+ --blue-600: #3182ce;
186
+ --blue-700: #2b6cb0;
187
+ --blue-800: #2c5282;
188
+ --blue-900: #2a4365;
189
+
190
+ --indigo-100: #ebf4ff;
191
+ --indigo-200: #c3dafe;
192
+ --indigo-300: #a3bffa;
193
+ --indigo-400: #7f9cf5;
194
+ --indigo-500: #667eea;
195
+ --indigo-600: #5a67d8;
196
+ --indigo-700: #4c51bf;
197
+ --indigo-800: #434190;
198
+ --indigo-900: #3c366b;
199
+
200
+ --purple-100: #faf5ff;
201
+ --purple-200: #e9d8fd;
202
+ --purple-300: #d6bcfa;
203
+ --purple-400: #b794f4;
204
+ --purple-500: #9f7aea;
205
+ --purple-600: #805ad5;
206
+ --purple-700: #6b46c1;
207
+ --purple-800: #553c9a;
208
+ --purple-900: #44337a;
209
+
210
+ --pink-100: #fff5f7;
211
+ --pink-200: #fed7e2;
212
+ --pink-300: #fbb6ce;
213
+ --pink-400: #f687b3;
214
+ --pink-500: #ed64a6;
215
+ --pink-600: #d53f8c;
216
+ --pink-700: #b83280;
217
+ --pink-800: #97266d;
218
+ --pink-900: #702459;
219
+ }
220
+
221
+ .x4-root-element {
222
+ padding: 0;
223
+ margin: 0;
224
+ left: 0;
225
+ top: 0;
226
+ right: 0;
227
+ bottom: 0;
228
+
229
+ -webkit-font-smoothing: subpixel-antialiased;
230
+ text-rendering: geometricprecision;
231
+
232
+ font-family: var( --x4-font );
233
+ font-size: var( --x4-font-size );
234
+ }
235
+
236
+ input,
237
+ textarea {
238
+ font-family: inherit;
239
+ font-size: inherit;
240
+ }
241
+
242
+ textarea {
243
+ resize: none;
244
+ outline: none;
245
+ border: 1px solid transparent;
246
+
247
+ &:focus {
248
+ border: 1px solid var( --x4-selection-color );
249
+ }
250
+
251
+ &::selection {
252
+ background-color: var( --x4-selection-color );
253
+ color: #fff;
254
+ }
255
+ }
256
+
257
+ .z-float-4 {
258
+ box-shadow: 4px 4px 8px @BLACK40;
259
+ }
260
+
261
+ .z-float-6 {
262
+ box-shadow: 6px 6px 10px @BLACK50;
263
+ }
264
+
265
+ .z-float-8 {
266
+ box-shadow: 8px 8px 16px @BLACK60;
267
+ }
268
+
269
+ .z-float-15 {
270
+ box-shadow: 4px 4px 15px @BLACK60;
271
+ }
272
+
273
+ .x-comp {
274
+ user-select: none;
275
+ box-sizing: border-box;
276
+ position: relative;
277
+ }
278
+
279
+ .x-flex {
280
+ min-height: 0;
281
+ min-width: 0;
282
+ flex: 1;
283
+ flex-basis: 0;
284
+ }
285
+
286
+ .x-hlayout > .x-min-content {
287
+ min-width: min-content;
288
+ }
289
+
290
+ .x-vlayout > .x-min-content {
291
+ min-height: min-content;
292
+ }
293
+
294
+ .x-fit {
295
+ position: absolute;
296
+ left: 0;
297
+ top: 0;
298
+ right: 0;
299
+ bottom: 0;
300
+ }
301
+
302
+ .x-hfit {
303
+ position: relative;
304
+ left: 0;
305
+ right: 0;
306
+ }
307
+
308
+ .x-vfit {
309
+ position: relative;
310
+ top: 0;
311
+ bottom: 0;
312
+ }
313
+
314
+ .x-hlayout {
315
+ display: flex;
316
+ flex-direction: row;
317
+ overflow: hidden;
318
+
319
+ &.center {
320
+ align-items: center;
321
+ }
322
+ }
323
+
324
+ .x-grid-layout {
325
+ display: grid;
326
+ justify-content: space-evenly;
327
+ }
328
+
329
+ .x-vlayout {
330
+ display: flex;
331
+ flex-direction: column;
332
+ }
333
+
334
+ .x-label {
335
+ color: inherit;
336
+ &.right {
337
+ text-align: right;
338
+ }
339
+
340
+ &.center {
341
+ text-align: center;
342
+ }
343
+ }
344
+
345
+ .x-sizer-overlay {
346
+ position: absolute;
347
+
348
+ &.top {
349
+ width: 100%;
350
+ height: var( --x4-sizer-size );
351
+ cursor: n-resize;
352
+ left: 0;
353
+ top: 0;
354
+ }
355
+
356
+ &.bottom {
357
+ width: 100%;
358
+ height: var( --x4-sizer-size );
359
+ cursor: n-resize;
360
+ left: 0;
361
+ bottom: 0;
362
+ }
363
+
364
+ &.right {
365
+ top: 0;
366
+ right: 0;
367
+ width: var( --x4-sizer-size );
368
+ height: 100%;
369
+ cursor: e-resize;
370
+ }
371
+
372
+ &.left {
373
+ top: 0;
374
+ left: 0;
375
+ width: var( --x4-sizer-size );
376
+ height: 100%;
377
+ cursor: e-resize;
378
+ }
379
+ }
380
+
381
+ .x-sizer-bottom {
382
+ padding-bottom: var( --x4-sizer-size );
383
+ }
384
+
385
+ .x-icon {
386
+ &:before {
387
+ font-family: var( --x4-icon-font-family );
388
+ }
389
+
390
+ display: inline-flex;
391
+ align-items: center;
392
+ text-align: center;
393
+ flex-direction: column;
394
+
395
+ &.x-svg-icon {
396
+ width: 1rem;
397
+ height: 1rem;
398
+
399
+ & > svg {
400
+ width: 100%;
401
+ height: 100%;
402
+ }
403
+ }
404
+ }
405
+
406
+ .x-base-button {
407
+ display: flex;
408
+ flex-direction: row;
409
+ align-items: center;
410
+ gap: 4px;
411
+ outline: none;
412
+ cursor: pointer;
413
+ font-family: var( --x4-font );
414
+ font-size: var( --x4-font-size );
415
+
416
+ height: 2rem;
417
+ padding: 8px;
418
+ overflow: hidden;
419
+
420
+ border: 1px solid var( --x4-default-border-color );
421
+ background-color: var( --x4-button-color );
422
+ color: var( --x4-button-text-color );
423
+
424
+ .x-icon {
425
+ margin: 0 4px;
426
+ color: inherit;
427
+ }
428
+
429
+ .x-svg-icon {
430
+ width: 1rem;
431
+ height: 1rem;
432
+ margin: 0;
433
+ }
434
+
435
+ &:focus {
436
+ border-color: var( --x4-focus-color );
437
+ background-color: var( --x4-focus-color );
438
+ color: white;
439
+ }
440
+
441
+ &.x-disable {
442
+ color: gray;
443
+
444
+ &:after {
445
+ content: "";
446
+ background-color: @WHITE60;
447
+ left: 0;
448
+ right: 0;
449
+ display: block;
450
+ top: 0;
451
+ bottom: 0;
452
+ position: absolute;
453
+ cursor: default;
454
+ }
455
+ }
456
+ }
457
+
458
+ .x-image {
459
+ display: flex;
460
+ overflow: hidden;
461
+
462
+ img {
463
+ width: 100%;
464
+ height: 100%;
465
+ }
466
+ }
467
+
468
+ .x-video {
469
+ display: flex;
470
+ overflow: hidden;
471
+
472
+ video {
473
+ width: 100%;
474
+ height: 100%;
475
+ }
476
+ }
477
+
478
+ .x-image-upload {
479
+ @size: 96px;
480
+
481
+ width: @size;
482
+ height: @size;
483
+ margin: 24px;
484
+
485
+ img {
486
+ width: @size;
487
+ height: @size;
488
+
489
+ background-color: @WHITE70;
490
+ //border: 1px solid white;
491
+ border-radius: 50%;
492
+ }
493
+ }
494
+
495
+ .x-canvas {
496
+ overflow: hidden;
497
+ canvas {
498
+ position: absolute;
499
+ left: 0;
500
+ top: 0;
501
+ right: 0;
502
+ bottom: 0;
503
+ }
504
+ }
505
+
506
+ ::-webkit-scrollbar {
507
+ width: var( --x4-scrollbar-width );
508
+ height: var( --x4-scrollbar-width );
509
+ background-color: var( --x4-scrollbar-background );
510
+ box-sizing: border-box;
511
+ }
512
+
513
+ ::-webkit-scrollbar-thumb {
514
+ background-color: var( --x4-scrollbar-thumb );
515
+ //border-radius: calc( var( --x4-scrollbar-width ) / 2 - 1px );
516
+ }
517
+
518
+ .x-circular-chart {
519
+ background-color: white;
520
+ .z-float-6;
521
+
522
+ .head {
523
+ border-bottom: 1px solid @WHITE10;
524
+ padding: 2px;
525
+ height: 37px;
526
+ white-space: nowrap;
527
+
528
+ .x-label {
529
+ color: white;
530
+ padding: 8px;
531
+ }
532
+
533
+ .x-button {
534
+ height: 32px;
535
+ border: 1px solid @WHITE10;
536
+ }
537
+
538
+ .close-box {
539
+ color: white;
540
+ background-color: transparent;
541
+ border: none;
542
+ font-size: 28px;
543
+ padding-right: 0;
544
+ }
545
+ }
546
+ }
547
+
548
+ .x-text-edit,
549
+ .x-combo-box {
550
+
551
+ display: flex;
552
+ align-items: center;
553
+ //width: 100%;
554
+ min-width: min-content;
555
+ min-height: 32px;
556
+ padding: 0;
557
+
558
+ margin: 0;
559
+ margin-bottom: 4px;
560
+
561
+ .x-hlayout,
562
+ .x-vlayout {
563
+ overflow: visible;
564
+ }
565
+
566
+ &>.x-label {
567
+ &:after {
568
+ content: ':';
569
+ }
570
+
571
+ padding: 4px;
572
+ color: var( --gray-900 );
573
+ margin-top: 1px; // hack alignement label / edit
574
+ line-height: 1.3em;
575
+ min-height: 2em;
576
+ }
577
+
578
+ input,
579
+ .x-fake-input {
580
+ height: 2em;
581
+ font-size: inherit;
582
+ outline: none;
583
+ border: none;
584
+ padding: 4px;
585
+ color: var( --gray-900 );
586
+ border-bottom: 1px solid transparent;
587
+ margin-top: 1px; // hack alignement label / edit
588
+ line-height: 1.3em;
589
+ width: 24px; // fix min-content
590
+
591
+ &::placeholder {
592
+ color: var( --gray-800 );
593
+ }
594
+
595
+ &::selection {
596
+ background-color: var( --x4-selection-color );
597
+ color: #fff;
598
+ }
599
+
600
+ &:focus {
601
+ border-bottom-color: var( --x4-focus-color );
602
+ }
603
+ }
604
+
605
+ &:focus-within {
606
+ &> .x-label {
607
+ color: var( --x4-focus-color );
608
+ }
609
+ }
610
+
611
+ .x-button.gadget {
612
+ background-color: transparent;
613
+ font-size: var( --x4-font-size );
614
+ color: var( --gray-900 );
615
+ border: none;
616
+
617
+ margin: 0;
618
+ padding: 4px;
619
+ height: 2em;
620
+ margin-top: 1px;
621
+
622
+ &:hover {
623
+ background-color: transparent;
624
+ }
625
+
626
+ &:focus {
627
+ color: var( --x4-focus-color );
628
+ }
629
+ }
630
+
631
+ &:focus {
632
+ .x-button.gadget,
633
+ input {
634
+ border-color: var( --x4-focus-color );
635
+ }
636
+
637
+ input {
638
+ border-bottom: 1px solid var( --x4-focus-color );
639
+ }
640
+
641
+ .x-button.gadget {
642
+ color: var( --x4-focus-color );
643
+ }
644
+
645
+ .x-label {
646
+ color: var( --x4-focus-color );
647
+ }
648
+ }
649
+
650
+ .error-info {
651
+ font-size: 70%;
652
+ padding: 4px;
653
+ color: white;
654
+ padding-left: 19px;
655
+ padding-top: 6px;
656
+ pointer-events: none;
657
+ right: 0;
658
+ position: absolute;
659
+ top: -2px;
660
+ z-index: 1;
661
+ }
662
+
663
+ &.x-required .label1:before {
664
+ content: '*';
665
+ padding-right: 2px;
666
+ }
667
+
668
+ &.x-error {
669
+ input {
670
+ border-bottom: none;
671
+ border-left: 4px solid var( --x4-error-color );
672
+ }
673
+ }
674
+ }
675
+
676
+ .x-text-edit {
677
+ // align with combo
678
+ .x-button.gadget {
679
+ margin-left:1 px;
680
+ margin-right:1 px;
681
+ }
682
+ }
683
+
684
+ .x-combo-box {
685
+
686
+ &> .x-label {
687
+ border-top: 1px solid transparent;
688
+ }
689
+
690
+ .x-button.gadget,
691
+ input,
692
+ .x-fake-input {
693
+ border: 1px solid @BLACK10;
694
+ }
695
+
696
+ .x-fake-input {
697
+ min-width: 2em;
698
+ }
699
+
700
+ input,
701
+ .x-fake-input {
702
+ cursor: default;
703
+ border-right: none;
704
+ }
705
+
706
+ &:focus {
707
+ .x-button.gadget,
708
+ input,
709
+ .x-fake-input {
710
+ border-color: var( --x4-focus-color );
711
+ }
712
+
713
+ input,
714
+ .x-fake-input {
715
+ border-bottom: 1px solid var( --x4-focus-color );
716
+ }
717
+
718
+ .x-button.gadget {
719
+ color: var( --x4-focus-color );
720
+ }
721
+
722
+ .x-label {
723
+ color: var( --x4-focus-color );
724
+ }
725
+ }
726
+
727
+ }
728
+
729
+
730
+
731
+
732
+ .x-hlayout {
733
+ & > .x-combo-box {
734
+ margin-bottom: 0;
735
+ //min-height: unset;
736
+ margin-right: 4px;
737
+ }
738
+ }
739
+
740
+ .x-text-edit {
741
+
742
+ &.vertical {
743
+ align-items: stretch;
744
+ }
745
+
746
+ input {
747
+ &:read-only {
748
+ background-color: transparent;
749
+ border-bottom: 1px solid @BLACK10;
750
+ }
751
+ }
752
+
753
+ .x-button {
754
+ padding: 8px 4px;
755
+ height: auto;
756
+ border: none;
757
+ background-color: rgba(0,0,0,0.1);
758
+
759
+ &:hover {
760
+ background-color: rgba(0,0,0,0.3);
761
+ }
762
+ }
763
+
764
+
765
+
766
+ &:focus {
767
+ input {
768
+ border-bottom: 1px solid white;
769
+ }
770
+
771
+ .label1 {
772
+ color: black;
773
+ }
774
+ }
775
+
776
+ }
777
+
778
+ .x-radio-btn,
779
+ .x-check-box {
780
+ align-items: center;
781
+ color: var( --gray-900 );
782
+ outline: none;
783
+ //min-height: 2em;
784
+ padding: 4px 0;
785
+
786
+ input {
787
+ //position: absolute;
788
+ //display: none;
789
+ outline: none;
790
+ margin: 4px;
791
+ padding: 0;
792
+ }
793
+
794
+ .x-label {
795
+ padding: 4px;
796
+ }
797
+
798
+ &:focus-within {
799
+ text-decoration: underline;
800
+ color: var( --x4-selection-color );
801
+ }
802
+ }
803
+
804
+ .x-check-box.slider {
805
+ @delay: 0.2s;
806
+
807
+ input {
808
+ position: absolute;
809
+ clip: rect(0 0 0 0);
810
+ position: absolute;
811
+ width: 1px;
812
+ height: 1px;
813
+ }
814
+
815
+ .x-slide-el {
816
+ width: 2.4em;
817
+ height: 1.4em;
818
+
819
+ &:before {
820
+ box-sizing: border-box;
821
+ position: absolute;
822
+ left: 0px;
823
+ top: 0px;
824
+ content: "";
825
+ display: inline-block;
826
+ width: 2.4em;
827
+ height: 1.4em;
828
+ border-radius: 1.4rem;
829
+ padding: 2px;
830
+ background-color: @BLACK30;
831
+ transition: all .2s;
832
+ border: 1px solid @WHITE50
833
+ }
834
+
835
+ // circle
836
+ &:after {
837
+ box-sizing: border-box;
838
+ content: "";
839
+ top: 2px;
840
+ height: calc(1.4em - 4px);
841
+ width: calc(1.4em - 4px);
842
+ border-radius: 50%;
843
+ background-color: #fff;
844
+ transition: all .2s;
845
+ position: absolute;
846
+ left: 2px;
847
+ }
848
+ }
849
+
850
+ input:checked + .x-slide-el:before {
851
+ background-color: var( --x4-selection-color );
852
+ }
853
+
854
+ input:checked + .x-slide-el:after {
855
+ left: calc( 1em + 2px);
856
+ background-color: white;
857
+ }
858
+
859
+ .x-label {
860
+ padding-left: calc(2.5em + 4px );
861
+ height: 2em;
862
+ }
863
+ }
864
+
865
+ .x-menu {
866
+ box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
867
+ background-color: #f7f7f7;
868
+ padding: 2px 0;
869
+
870
+ max-height: 80%;
871
+ overflow: auto;
872
+ }
873
+
874
+ .x-menu-title {
875
+ width: 100%;
876
+ background-color: #e22e6d;
877
+ color: white;
878
+ height: 2.3em;
879
+ display: block;
880
+ padding: 0 8px;
881
+ line-height: 2.5em;
882
+ }
883
+
884
+ .x-menu-item {
885
+ display: flex;
886
+ flex-direction: row;
887
+ align-items: center;
888
+ outline: none;
889
+
890
+ background-color: transparent;
891
+ color: var( --gray-900 );
892
+
893
+ padding: 0px 8px;
894
+ min-width: 120px;
895
+ border: none;
896
+
897
+ .x-icon {
898
+ width: 1em;
899
+ margin-right: 8px;
900
+ color: var( --gray-700 );
901
+
902
+ &.pop-mark {
903
+ height: 0.8em;
904
+ }
905
+ }
906
+
907
+ .x-label {
908
+ padding: 4px;
909
+ }
910
+
911
+ &:hover {
912
+ background-color: var( --x4-hover-color);
913
+ color: var(--x4-hover-text);
914
+
915
+ .x-icon {
916
+ color: var( --gray-900 );
917
+ }
918
+ }
919
+ }
920
+
921
+ .x-menu-separator {
922
+ margin-top: 4px;
923
+ border-top: 1px solid @BLACK10;
924
+ margin-bottom: 3px;
925
+ }
926
+
927
+ .x-link {
928
+ padding: 4px;
929
+ color: var( --x4-selection-color );
930
+ cursor: pointer;
931
+ outline: none;
932
+
933
+ display: flex;
934
+ align-items: center;
935
+
936
+ &:focus {
937
+ color: var( --x4-selection-color );
938
+ text-decoration: underline;
939
+ }
940
+
941
+ // min-height: 32px;
942
+ color: inherit;
943
+ }
944
+
945
+ .x-column-view {
946
+ border-bottom: 1px solid @WHITE50;
947
+ overflow: hidden;
948
+
949
+ .line {
950
+ height: 48px;
951
+ }
952
+
953
+ .head {
954
+ background: none;
955
+ background-color: inherit;
956
+ box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
957
+ z-index: 2;
958
+
959
+ border: 1px solid transparent;
960
+ border-bottom: 1px solid @WHITE50;
961
+ height: 40px;
962
+
963
+ margin: 0 4px;
964
+
965
+ .x-label {
966
+ line-height: 32px;
967
+ }
968
+ }
969
+
970
+ .h-container {
971
+ margin-right: var( --x4-scrollbar-width );
972
+ }
973
+ }
974
+
975
+ .x-list-view {
976
+
977
+ border: 1px solid var( --x4-default-border-color );
978
+
979
+ .x-list-item {
980
+ padding: 4px;
981
+ line-height: 2em;
982
+ white-space: nowrap;
983
+
984
+ &:hover {
985
+ background-color: var( --x4-hover-color );
986
+ color: var( --x4-hover-text );
987
+ }
988
+
989
+ &.x-selected {
990
+ background-color: var( --x4-selection-color );
991
+ color: var( --x4-selection-text );
992
+ }
993
+
994
+ &:focus {
995
+ outline: none;
996
+ }
997
+ }
998
+
999
+ &:focus {
1000
+ outline: none;
1001
+ border-color: var( --x4-focus-color );
1002
+ }
1003
+
1004
+ .gadgets {
1005
+ border-top: 1px solid @BLACK50;
1006
+ background-color: @BLACK10;
1007
+
1008
+ .x-button {
1009
+ background-color: transparent;
1010
+ &:hover {
1011
+ background-color: white;
1012
+ };
1013
+ }
1014
+ }
1015
+ }
1016
+
1017
+ .x-mask {
1018
+ filter: grayscale(80%);
1019
+
1020
+ &:after {
1021
+ content: '';
1022
+
1023
+ position: absolute; // to be sure it will be over everybody
1024
+ left: -100vw;
1025
+ top: -100vh;
1026
+ width: 200vw;
1027
+ height: 200vh;
1028
+
1029
+ background-color: var( --x4-mask-color );
1030
+ z-index: 999;
1031
+ }
1032
+ }
1033
+
1034
+ .x-popup {
1035
+ position: absolute;
1036
+ z-index: 1000;
1037
+
1038
+ font-family: var( --x4-font );
1039
+ font-size: var( --x4-font-size );
1040
+
1041
+ &:focus {
1042
+ outline: none;
1043
+ }
1044
+ }
1045
+
1046
+ .x-panel {
1047
+ &>.title {
1048
+ align-items: center;
1049
+ line-height: 1.5em;
1050
+ padding: 4px;
1051
+
1052
+ &> .x-label {
1053
+ flex: 1;
1054
+ }
1055
+
1056
+ &> .x-button {
1057
+ background-color: transparent;
1058
+ padding: 0;
1059
+ border: none;
1060
+ box-shadow: none;
1061
+ &:focus {
1062
+ color: var( --gray-900 );
1063
+ }
1064
+ }
1065
+
1066
+ border-bottom: 1px solid var( --x4-default-border-color );
1067
+ }
1068
+
1069
+ &>.body {
1070
+ padding: 8px;
1071
+ flex: 1;
1072
+ }
1073
+ }
1074
+
1075
+ .x-dialog {
1076
+ border: 0.5px solid @BLACK20;
1077
+
1078
+ .z-float-8;
1079
+
1080
+ & > .title {
1081
+ height: 2rem;
1082
+ color: white;
1083
+ padding: 0 8px;
1084
+ display: flex;
1085
+ align-items: center;
1086
+ background-color: var( --x4-selection-color );
1087
+ width: 0; // to avoid title changing dialog size when long
1088
+
1089
+ .x-icon {
1090
+ width: 2em;
1091
+ height: 1.9em;
1092
+ padding: 4px;
1093
+
1094
+ text-align: center;
1095
+ cursor: pointer;
1096
+
1097
+ &:hover {
1098
+ background-color: @WHITE10;
1099
+ }
1100
+ }
1101
+
1102
+ .x-icon.close-btn:hover {
1103
+ background-color: var( --x4-error-color );
1104
+ color: white;
1105
+ }
1106
+
1107
+ .x-label {
1108
+ border-bottom: none;
1109
+ padding: 0;
1110
+ overflow: hidden;
1111
+ text-overflow: ellipsis;
1112
+ white-space: nowrap;
1113
+ }
1114
+
1115
+ .res-btn {
1116
+ display: none;
1117
+ }
1118
+ }
1119
+
1120
+ &.maximized > .title {
1121
+ .min-btn,
1122
+ .max-btn {
1123
+ display: none;
1124
+ }
1125
+
1126
+ .res-btn {
1127
+ display: block;
1128
+ }
1129
+ }
1130
+
1131
+ min-width: 250px;
1132
+ min-height: 100px;
1133
+ }
1134
+
1135
+
1136
+ .x-dialog.x-resized {
1137
+ display: flex;
1138
+ flex-direction: column;
1139
+
1140
+ &>.x-form {
1141
+ flex: 1;
1142
+
1143
+ &>.container {
1144
+ .x-flex;
1145
+ }
1146
+ }
1147
+ }
1148
+
1149
+ .x-dialog.maximized {
1150
+ left: 0;
1151
+ top: 0;
1152
+ width: 100%;
1153
+ height: 100%;
1154
+ margin: 0;
1155
+
1156
+ & > .title {
1157
+ height: 2em;
1158
+ }
1159
+ }
1160
+
1161
+ .x-size-all {
1162
+ margin: 4px;
1163
+
1164
+ &> .x-sizer-overlay {
1165
+ background-color: transparent;
1166
+ border: none;
1167
+
1168
+ &.topleft,
1169
+ &.topright,
1170
+ &.bottomleft,
1171
+ &.bottomright {
1172
+ cursor: se-resize;
1173
+ width: 6px;
1174
+ height: 6px;
1175
+ z-index: 11;
1176
+ }
1177
+
1178
+ &.topleft {
1179
+ left: -4px;
1180
+ top: -4px;
1181
+ }
1182
+
1183
+ &.bottomright {
1184
+ right: -4px;
1185
+ bottom: -4px;
1186
+ }
1187
+
1188
+ &.topright {
1189
+ cursor: nesw-resize;
1190
+ right: -4px;
1191
+ top: -4px;
1192
+ }
1193
+
1194
+ &.bottomleft {
1195
+ cursor: nesw-resize;
1196
+ left: -4px;
1197
+ bottom: -4px;
1198
+ }
1199
+
1200
+ &.top,
1201
+ &.bottom {
1202
+ width: 100%;
1203
+ height: 4px;
1204
+ left: 0;
1205
+ z-index: 10;
1206
+ cursor: n-resize;
1207
+ }
1208
+
1209
+ &.top {
1210
+ top: -4px;
1211
+ }
1212
+
1213
+ &.bottom {
1214
+ bottom: -4px;
1215
+ }
1216
+
1217
+ &.left,
1218
+ &.right {
1219
+ height: 100%;
1220
+ width: 4px;
1221
+ top: 0;
1222
+ z-index: 10;
1223
+ cursor: w-resize;
1224
+ border: none;
1225
+ }
1226
+
1227
+ &.left {
1228
+ left: -4px;
1229
+ }
1230
+
1231
+ &.right {
1232
+ right: -4px;
1233
+ }
1234
+ }
1235
+ }
1236
+
1237
+ .x-form {
1238
+ background-color: var( --x4-form-color );
1239
+ margin-block-end: 0;
1240
+ padding: 8px 0;
1241
+ min-width: 250px;
1242
+ min-height: 50px;
1243
+ padding-right: 4px;
1244
+
1245
+ &>.container {
1246
+ padding: 0px;
1247
+ overflow: auto;
1248
+ padding: 0 4px 0 8px;
1249
+ }
1250
+
1251
+ &>.footer {
1252
+ position: relative;
1253
+ left: 0;
1254
+ bottom: 0;
1255
+ width: 100%;
1256
+ justify-content: flex-end;
1257
+ padding: 0px 4px 0 8px;
1258
+ margin-top: 8px;
1259
+ align-items: center;
1260
+
1261
+ .x-button:not(.x-small) {
1262
+ min-width: 110px;
1263
+ }
1264
+
1265
+ .x-button:not(:first-child) {
1266
+ margin-left: 8px;
1267
+ }
1268
+ }
1269
+ }
1270
+
1271
+ .x-hidden {
1272
+ display: none ! important;
1273
+ }
1274
+
1275
+ .x-tab-view {
1276
+ overflow: hidden;
1277
+ padding: 24px;
1278
+ padding-top: 0;
1279
+
1280
+ .x-tab-switch {
1281
+ border-bottom: 1px solid @WHITE10;
1282
+ background-color: rgba(0,0,0,0.1);
1283
+
1284
+ .x-tab-btn {
1285
+ border: none;
1286
+ background-color: transparent;
1287
+
1288
+ &:hover {
1289
+ .x-label {
1290
+ text-decoration: underline;
1291
+ }
1292
+ }
1293
+ }
1294
+
1295
+ .x-tab-btn.x-active {
1296
+ background-color: rgba(255,255,255,0.2);
1297
+ }
1298
+ }
1299
+ }
1300
+
1301
+ .x-tab-page {
1302
+ min-width: 0;
1303
+ }
1304
+
1305
+ .x-input-box,
1306
+ .x-message-box,
1307
+ .x-important {
1308
+
1309
+ &>.title {
1310
+ background: none;
1311
+ background-color: var( --x4-error-color );
1312
+ height: 2.5em;
1313
+
1314
+ .x-label {
1315
+ border-bottom: none;
1316
+ padding-bottom: 0;
1317
+ }
1318
+
1319
+ .x-icon {
1320
+ display: none;
1321
+ }
1322
+ }
1323
+
1324
+ .x-form {
1325
+ min-height: 100px;
1326
+ background-color: white;
1327
+
1328
+ .panel {
1329
+ align-items: center;
1330
+ }
1331
+
1332
+ .icon {
1333
+ font-size: 48px;
1334
+ width: 48px;
1335
+ height: 48px;
1336
+ color: var( --x4-error-color );
1337
+ margin-right: 8px;
1338
+ }
1339
+
1340
+ .text {
1341
+ padding: 8px;
1342
+ color: #666666;
1343
+ line-height: 1.7em;
1344
+ max-width: 50vw;
1345
+ }
1346
+
1347
+ &>.footer {
1348
+ background-color: white;
1349
+ border-top: 1px solid rgba(0,0,0,0.05);
1350
+ padding-top: 8px;
1351
+
1352
+ .x-button {
1353
+ background-color: var( --x4-error-color );
1354
+ color: white;
1355
+ }
1356
+
1357
+ .x-button:focus {
1358
+ border-color: black;
1359
+ }
1360
+ }
1361
+ }
1362
+ }
1363
+
1364
+ @bwidth: 4px;
1365
+
1366
+ .x-spreadsheet,
1367
+ .x-grid-view {
1368
+
1369
+ @def-height: 2em;
1370
+
1371
+ min-height: 0;
1372
+ overflow: hidden;
1373
+ background-color: white;
1374
+
1375
+ .x-cell {
1376
+ overflow: hidden;
1377
+ padding: 4px;
1378
+ white-space: nowrap;
1379
+ color: var( --gray-900 );
1380
+ height: @def-height;
1381
+
1382
+ span {
1383
+ width: 100%;
1384
+ }
1385
+ }
1386
+
1387
+ .x-footer,
1388
+ .x-header {
1389
+ height: @def-height;
1390
+ background-color: #f0f0f0;
1391
+ align-items: center;
1392
+ border-bottom: 1px solid rgba(0,0,0,0.4);
1393
+
1394
+ .x-sizer-bar {
1395
+ background-color: transparent;
1396
+ }
1397
+
1398
+ .x-cell {
1399
+ border-right: 1px solid rgba(0,0,0,0.1);
1400
+ height: 100%;
1401
+ display: flex;
1402
+ align-items: center;
1403
+
1404
+ span {
1405
+ min-width: 0;
1406
+ text-overflow: ellipsis;
1407
+ overflow: hidden;
1408
+ }
1409
+
1410
+ &.sort {
1411
+ height: 0.7rem;
1412
+ opacity: 0.7;
1413
+ }
1414
+ }
1415
+ }
1416
+
1417
+ .x-header {
1418
+ .x-cell {
1419
+ span {
1420
+ width: unset;
1421
+ text-transform: uppercase;
1422
+ font-weight: bold;
1423
+ }
1424
+
1425
+ .sort {
1426
+ width: 1em;
1427
+ height: 1em;
1428
+ padding-left: 4px;
1429
+ }
1430
+ }
1431
+ }
1432
+
1433
+ .x-row {
1434
+ position: absolute;
1435
+ width: calc( 100% - @bwidth ); // todo: border of 1st col
1436
+ border-bottom: 1px solid #d0d0d0;
1437
+ align-items: center;
1438
+ height: @def-height;
1439
+
1440
+ &.odd {
1441
+ background-color: rgb(250,250,250);
1442
+ }
1443
+ }
1444
+
1445
+ .x-cell {
1446
+ border-right: 1px solid #d0d0d0;
1447
+
1448
+ &.center {
1449
+ text-align: center;
1450
+ justify-content: center;
1451
+ }
1452
+
1453
+ &.right {
1454
+ text-align: right;
1455
+ justify-content: right;
1456
+ }
1457
+ }
1458
+
1459
+ &:focus {
1460
+ outline: none;
1461
+ }
1462
+ }
1463
+
1464
+ .x-grid-view {
1465
+ .x-footer,
1466
+ .x-header {
1467
+ border-left: @bwidth solid #f0f0f0;
1468
+ }
1469
+
1470
+ .x-row {
1471
+ border-left: @bwidth solid transparent;
1472
+
1473
+ &:hover {
1474
+ background-color: rgba(0,0,0,0.1);
1475
+ border-left-color: @BLACK60;
1476
+ }
1477
+
1478
+ &.x-selected {
1479
+ background-color: var( --x4-selection-color );
1480
+
1481
+ .x-cell {
1482
+ color: white;
1483
+ }
1484
+ }
1485
+ }
1486
+
1487
+ .empty-msg {
1488
+ position: absolute;
1489
+ left: 1em;
1490
+ top: 4em;
1491
+ }
1492
+ }
1493
+
1494
+ .x-spreadsheet {
1495
+
1496
+ .x-header {
1497
+ //position: absolute;
1498
+ }
1499
+
1500
+ .content .x-cell {
1501
+ position: absolute;
1502
+ border-right: 1px solid rgba(0,0,0,0.1);
1503
+ border-bottom: 1px solid rgba(0,0,0,0.1);
1504
+ height: 2em;
1505
+ align-items: center;
1506
+ display: flex;
1507
+ }
1508
+
1509
+ .x-cell.x-selected {
1510
+ background-color: @BLACK10;
1511
+ }
1512
+
1513
+ &:focus {
1514
+ .x-cell.x-selected {
1515
+ background-color: var( --x4-selection-color );
1516
+ color: white;
1517
+ }
1518
+ }
1519
+
1520
+ .x-editor {
1521
+ position: absolute;
1522
+ min-height: 0;
1523
+ margin: 0;
1524
+
1525
+ input {
1526
+ margin: 0;
1527
+ min-height: 0;
1528
+ height: 100%;
1529
+ }
1530
+ }
1531
+ }
1532
+
1533
+ .x-form .x-spreadsheet .x-editor {
1534
+ background-color: white;
1535
+ }
1536
+
1537
+ .x-side-bar {
1538
+ min-width: 44px;
1539
+
1540
+ .x-button {
1541
+ background-color: transparent;
1542
+ color: var( --x4-base-color );
1543
+ border: none;
1544
+ //border-bottom: 1px solid fadeout(var( --x4-base-color ),90%);
1545
+
1546
+ min-height: 2em;
1547
+
1548
+ //.x-icon {
1549
+ // color: fadeout( var( --x4-base-color ), 50% );
1550
+ //}
1551
+
1552
+ &:hover {
1553
+ background-color: var( --x4-hover-color );
1554
+ color: white;
1555
+
1556
+ .x-icon {
1557
+ color: fadeout(white,50%);
1558
+ }
1559
+ }
1560
+
1561
+ &.x-active {
1562
+ background-color: var( --x4-base-color );
1563
+ color: white;
1564
+
1565
+ .x-icon {
1566
+ color: white;
1567
+ }
1568
+ }
1569
+
1570
+ &.x-active:hover {
1571
+ //background-color: fadeout(var( --x4-base-color ),20%);
1572
+ color: white;
1573
+
1574
+ .x-icon {
1575
+ color: fadeout(white,50%);
1576
+ }
1577
+ }
1578
+
1579
+ &.trans,
1580
+ &.trans .x-icon {
1581
+ transition: background-color 0.4s ease, color 0.4s ease;
1582
+ }
1583
+ }
1584
+
1585
+ &.collapsed {
1586
+ .x-button {
1587
+ .x-label {
1588
+ display: none;
1589
+ }
1590
+
1591
+ &.x-active .x-icon,
1592
+ &:hover .x-icon {
1593
+ color: white;
1594
+ }
1595
+ }
1596
+ }
1597
+ }
1598
+
1599
+ .x-tooltip {
1600
+ .z-float-4;
1601
+ z-index: 50000;
1602
+ display: inline-block;
1603
+ max-width: 400px;
1604
+ pointer-events: none;
1605
+
1606
+ background-color: white;
1607
+ color: white;
1608
+ padding-left: 24px;
1609
+
1610
+ font-family: var( --x4-font );
1611
+ font-size: var( --x4-font-size );
1612
+
1613
+ .x-icon {
1614
+ position: absolute;
1615
+ left: 5px;
1616
+ top: 7px;
1617
+ color: var( --x4-selection-color );
1618
+ }
1619
+
1620
+ .x-label {
1621
+ background-color: var( --x4-selection-color );
1622
+ white-space: break-spaces;
1623
+ display: inline-block;
1624
+ padding: 6px;
1625
+ line-height: 1.3em;
1626
+ }
1627
+ }
1628
+
1629
+ .x-search-bar {
1630
+ background-color: var( --x4-base-color );
1631
+ height: 2em;
1632
+ }
1633
+
1634
+ .x-popup-table {
1635
+ .z-float-8;
1636
+
1637
+ border-collapse: collapse;
1638
+ background-color: white;
1639
+ padding: 2px 0;
1640
+
1641
+ tr.x-selected {
1642
+ //background-color: rgba(200,255,255,1);
1643
+ background-color: var(--x4-selection-color);
1644
+ color: var( --x4-selection-text);
1645
+ }
1646
+
1647
+ tr:hover {
1648
+ background-color: var(--x4-hover-color);
1649
+ color: var( --x4-hover-text);
1650
+ }
1651
+
1652
+ td {
1653
+ padding: 3px 8px;
1654
+ border-bottom: 1px solid rgba(0,0,0,0.1);
1655
+ }
1656
+
1657
+ .hilite {
1658
+ font-weight: bold;
1659
+ }
1660
+ }
1661
+
1662
+
1663
+ .x-scroll-view,
1664
+ .x-container.x-scroll-view {
1665
+ overflow-y: auto;
1666
+
1667
+ .x-scroll-container {
1668
+ //min-height: 100%;
1669
+ //pb: le container réduit tous les éléments contenus
1670
+ }
1671
+ }
1672
+
1673
+
1674
+ .x-popup-list-view {
1675
+ .z-float-4( );
1676
+ background-color: white;
1677
+
1678
+ .x-combo-popup {
1679
+ min-height: 1em;
1680
+ max-height: 400px;
1681
+
1682
+ border: 1px solid #00000073;
1683
+
1684
+ .x-list-item {
1685
+ height: 2em;
1686
+ line-height: calc( 2em - 8px );
1687
+ }
1688
+
1689
+ overflow: auto;
1690
+ color: var( --gray-900 );
1691
+ }
1692
+ }
1693
+
1694
+ .x-calendar {
1695
+ border: 1px solid @BLACK10;
1696
+ padding: 4px;
1697
+
1698
+ .month-sel {
1699
+ height: 2em;
1700
+ align-items: center;
1701
+ padding-left: 2em;
1702
+
1703
+ .month {
1704
+ padding-right: 4px;
1705
+ }
1706
+
1707
+ .year {
1708
+ cursor: pointer;
1709
+ }
1710
+
1711
+ .month,
1712
+ .year {
1713
+ cursor: pointer;
1714
+ &:hover {
1715
+ text-decoration: underline;
1716
+ }
1717
+ }
1718
+
1719
+ .x-label {
1720
+ font-weight: bold;
1721
+ }
1722
+
1723
+ .x-button {
1724
+ height: auto;
1725
+ color: var( --gray-900 );
1726
+ }
1727
+
1728
+ margin-bottom: 8px;
1729
+ }
1730
+
1731
+ .week {
1732
+ align-items: center;
1733
+ border: 1px solid transparent;
1734
+
1735
+ &:hover {
1736
+ border-color: var( --x4-hover-color );
1737
+ border-radius: 4px;
1738
+ }
1739
+
1740
+ .cell {
1741
+ height: 100%;
1742
+ color: var( --gray-900 );
1743
+ text-align: center;
1744
+ span {
1745
+ margin: auto;
1746
+ }
1747
+ }
1748
+
1749
+ .today {
1750
+ font-weight: bold;
1751
+ background-color: var( --x4-error-color );
1752
+
1753
+ span {
1754
+ //border: 2px solid #013e69;
1755
+ //padding: 4px;
1756
+ border-radius: 2px;
1757
+ color: white;
1758
+ }
1759
+ }
1760
+
1761
+ .weeknum {
1762
+ width: 2em;
1763
+ color: @BLACK30;
1764
+ font-size: 70%;
1765
+ }
1766
+
1767
+ .day {
1768
+ cursor: pointer;
1769
+ }
1770
+
1771
+ .out {
1772
+ color: @BLACK30;
1773
+ }
1774
+
1775
+ .day:hover {
1776
+ background-color: var( --x4-hover-color );
1777
+ color: white;
1778
+ }
1779
+ }
1780
+
1781
+ .header {
1782
+ .cell {
1783
+ color: var( --gray-800 );
1784
+ height: 1.5em;
1785
+ }
1786
+
1787
+ &:hover {
1788
+ background-color: inherit;
1789
+ }
1790
+ }
1791
+ }
1792
+
1793
+ .x-container {
1794
+ // overflow: hidden;
1795
+ }
1796
+
1797
+ .x-popup-calendar {
1798
+ width: 250px;
1799
+ height: 200px;
1800
+ background-color: white;
1801
+ .z-float-8;
1802
+
1803
+
1804
+ }
1805
+
1806
+ .x-separator {
1807
+ background-color: white;
1808
+
1809
+ &.horizontal {
1810
+ width: 4px;
1811
+ border-left: 1px solid #c7c7c7;
1812
+ border-right: 1px solid #c7c7c7;
1813
+ cursor: e-resize;
1814
+ }
1815
+
1816
+ &.vertical {
1817
+ height: 4px;
1818
+ border-top: 1px solid #c7c7c7;
1819
+ border-bottom: 1px solid #c7c7c7;
1820
+ cursor: n-resize;
1821
+
1822
+ }
1823
+
1824
+ &:hover {
1825
+ background-color: #575757;
1826
+ border-color: #575757;
1827
+ }
1828
+ }
1829
+
1830
+ .x-toggle-button {
1831
+ &.checked {
1832
+ background-color: #a8a8a8;
1833
+ }
1834
+ }
1835
+
1836
+
1837
+ .x-color-picker-box {
1838
+ .customs {
1839
+ padding: 8px;
1840
+
1841
+ .cust-cc {
1842
+ height: 16px;
1843
+ border: 1px solid @BLACK40;
1844
+ }
1845
+ }
1846
+ }
1847
+
1848
+ .x-color-picker-editor {
1849
+ .alpha {
1850
+ background-image: url( 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QA6RXhpZgAATU0AKgAAAAgAA1EAAAQAAAABAAAAAFEBAAMAAAABAAEAAFEEAAEAAAAB/AAAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAQABADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9iK90orwugD//2Q==' );
1851
+ padding: 4px;
1852
+ }
1853
+ }
1854
+
1855
+ .x-color-picker {
1856
+
1857
+ .sel {
1858
+ position: absolute;
1859
+ left: 10px;
1860
+ top: 10px;
1861
+ right: 40px;
1862
+ bottom: 40px;
1863
+
1864
+ .marker {
1865
+ position: absolute;
1866
+ width: 6px;
1867
+ height: 6px;
1868
+ margin-top: -3px;
1869
+ margin-left: -3px;
1870
+
1871
+ border: 1px solid white;
1872
+ }
1873
+ }
1874
+
1875
+ .light {
1876
+ background: linear-gradient(to right, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
1877
+ }
1878
+
1879
+ .dark {
1880
+ background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
1881
+ }
1882
+
1883
+ .hue {
1884
+ position: absolute;
1885
+ top: 10px;
1886
+ bottom: 40px;
1887
+ right: 10px;
1888
+ width: 20px;
1889
+ background: linear-gradient(to bottom, #ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 66%,#ff00ff 83%,#ff0000 100%);
1890
+
1891
+ .marker {
1892
+ position: absolute;
1893
+ width: calc( 100% + 6px );
1894
+ height: 4px;
1895
+ margin-top: -2px;
1896
+ margin-left: -3px;
1897
+ background-color: black;
1898
+ //border: 1px solid white;
1899
+ }
1900
+ }
1901
+
1902
+ .sample {
1903
+ position: absolute;
1904
+ bottom: 10px;
1905
+ height: 20px;
1906
+ width: 20px;
1907
+ right: 10px;
1908
+
1909
+ .color {
1910
+ background: linear-gradient(to right, rgba(0,0,0,0) 0%,rgb(255,0,0) 100%);
1911
+ }
1912
+ }
1913
+
1914
+ .alpha,
1915
+ .transp {
1916
+ position: absolute;
1917
+ left: 10px;
1918
+ bottom: 10px;
1919
+ right: 20px;
1920
+ height: 20px;
1921
+ }
1922
+
1923
+ .transp {
1924
+ bottom: 8px;
1925
+ width: 115px;
1926
+ left: 4px;
1927
+ height: 24px;
1928
+ }
1929
+
1930
+ .hexv {
1931
+ position: absolute;
1932
+ bottom: 8px;
1933
+ left: 120px;
1934
+ height: 24px;
1935
+ margin: 0;
1936
+ width: 90px;
1937
+ min-height: unset;
1938
+ }
1939
+
1940
+ .alpha {
1941
+ background-image: url( 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QA6RXhpZgAATU0AKgAAAAgAA1EAAAQAAAABAAAAAFEBAAMAAAABAAEAAFEEAAEAAAAB/AAAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAQABADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9iK90orwugD//2Q==' );
1942
+
1943
+ .marker {
1944
+ position: absolute;
1945
+ height: calc( 100% + 6px );
1946
+ width: 4px;
1947
+ margin-top: -3px;
1948
+ margin-left: -2px;
1949
+ background-color: black;
1950
+ //border: 1px solid white;
1951
+ }
1952
+ }
1953
+
1954
+ &.with-alpha {
1955
+
1956
+ .sel {
1957
+ left: 4px;
1958
+ top: 4px;
1959
+ bottom: 34px;
1960
+ right: 34px;
1961
+ }
1962
+
1963
+ .hue {
1964
+ top: 4px;
1965
+ right: 4px;
1966
+ bottom: 34px;
1967
+ }
1968
+
1969
+ .hexv {
1970
+ bottom: 4px;
1971
+ left: 4px;
1972
+ width: 120px;
1973
+ }
1974
+
1975
+ .alpha {
1976
+ left: 130px;
1977
+ right: 4px;
1978
+ height: 24px;
1979
+ bottom: 4px;
1980
+ }
1981
+
1982
+ .transp,
1983
+ .sample {
1984
+ display: none;
1985
+ }
1986
+ }
1987
+
1988
+ &.pal-mode {
1989
+ display: flex;
1990
+ gap: 1px;
1991
+
1992
+ &>.x-container {
1993
+ width: 100%;
1994
+ }
1995
+
1996
+ .hcol, .vcol {
1997
+ justify-content: space-between;
1998
+ }
1999
+
2000
+ .hcol {
2001
+ min-height: 90px;
2002
+ margin-top: 40px;
2003
+ }
2004
+
2005
+ .hexv {
2006
+ bottom: 10px;
2007
+ left: 120px;
2008
+ right: 10px;
2009
+ width: unset;
2010
+ }
2011
+
2012
+ .transp {
2013
+ display: flex;
2014
+ }
2015
+
2016
+ #hsel {
2017
+ gap: 4px;
2018
+ flex-wrap: wrap;
2019
+ justify-content: center;
2020
+ }
2021
+
2022
+ #vsel {
2023
+ gap: 1px;
2024
+ margin-top: 10px;
2025
+ }
2026
+
2027
+ .clr-box {
2028
+ width: 19px;
2029
+ height: 10px;
2030
+ }
2031
+
2032
+ .hclr-box {
2033
+ height: 16px;
2034
+ min-width: 19px;
2035
+
2036
+ &.selected {
2037
+ border: 1px solid black;
2038
+ }
2039
+
2040
+ font-size: 9px;
2041
+ line-height: 16px;
2042
+ text-align: center;
2043
+ }
2044
+ }
2045
+ }
2046
+
2047
+
2048
+
2049
+ .x-tree-view {
2050
+
2051
+ .x-scroll-view {
2052
+ margin: 4px;
2053
+ }
2054
+
2055
+ .x-tree-item {
2056
+ line-height: 1.5em;
2057
+ white-space: nowrap;
2058
+ overflow: hidden;
2059
+ align-items: center;
2060
+
2061
+ span {
2062
+ padding: 0 4px;
2063
+ }
2064
+
2065
+ .tree-icon {
2066
+ width: 2em;
2067
+ color:#999;
2068
+ height: 0.8em;
2069
+ }
2070
+
2071
+ &.selected {
2072
+ background-color: var( --x4-selection-color );
2073
+ color: var( --x4-selection-text );
2074
+
2075
+ .tree-icon {
2076
+ color: var( --x4-selection-text );
2077
+ }
2078
+ }
2079
+
2080
+ &:hover {
2081
+ background-color: var( --x4-hover-color );
2082
+ color: var( --x4-hover-text );
2083
+
2084
+ .tree-icon {
2085
+ color: var( --x4-hover-text );
2086
+ }
2087
+ }
2088
+
2089
+ .indent {
2090
+ position: absolute;
2091
+ border-left: 1px solid @BLACK10;
2092
+ height: 100%;
2093
+ top: 0;
2094
+ }
2095
+ }
2096
+
2097
+ .gadgets {
2098
+ border-top: 1px solid @BLACK50;
2099
+ background-color: @BLACK10;
2100
+
2101
+ .x-button {
2102
+ background-color: transparent;
2103
+ &:hover {
2104
+ background-color: white;
2105
+ };
2106
+ }
2107
+ }
2108
+ }
2109
+
2110
+ .x-tooltip.error {
2111
+ background-color: var( --x4-error-color );
2112
+ padding: 0 6px;
2113
+ margin-left: 3px;
2114
+ position: absolute;
2115
+ border: 1px solid rgba(0,0,0,0.3);
2116
+
2117
+ .x-label {
2118
+ background-color: transparent;
2119
+ color: white;
2120
+ font-size: inherit;
2121
+ padding: 0;
2122
+ }
2123
+
2124
+ .x-icon {
2125
+ display: none;
2126
+ }
2127
+ }
2128
+
2129
+ .x-text-edit.with-gadgets {
2130
+ input {
2131
+ border-right: none;
2132
+ }
2133
+
2134
+ &> .x-icon {
2135
+ border: 1px solid @BLACK50;
2136
+ width: 1.5em;
2137
+ height: 100%;
2138
+ line-height: 1.8em;
2139
+ border-left: none;
2140
+ }
2141
+ }
2142
+
2143
+ .x-text-hiliter {
2144
+ overflow: hidden;
2145
+
2146
+ textarea {
2147
+ font-family: monospace;
2148
+ font-size: var( --x4-font-size );
2149
+ padding: 2px;
2150
+
2151
+ resize: none;
2152
+ outline: none;
2153
+ border: 1px solid transparent;
2154
+ width: 100%;
2155
+
2156
+ &:focus {
2157
+ border: 1px solid var( --x4-selection-color )
2158
+ }
2159
+
2160
+ color: transparent;
2161
+ background-color: transparent;
2162
+ color: var( --gray-900 );
2163
+
2164
+ -moz-tab-size : 4;
2165
+ -o-tab-size : 4;
2166
+ tab-size : 4;
2167
+ }
2168
+
2169
+ .x-syntax-hiliter {
2170
+ font-family: monospace;
2171
+ font-size: var( --x4-font-size );
2172
+ padding: 2px;
2173
+ border: 1px solid transparent;
2174
+ overflow: hidden;
2175
+ white-space: pre;
2176
+ color: rgb(92,92,92);
2177
+ background-color: white;
2178
+
2179
+ -moz-tab-size : 4;
2180
+ -o-tab-size : 4;
2181
+ tab-size : 4;
2182
+
2183
+ .num {
2184
+ color: #008000;
2185
+ }
2186
+
2187
+ .kword {
2188
+ color: #000080;
2189
+ }
2190
+
2191
+ .str {
2192
+ color: #8b0000;
2193
+ }
2194
+
2195
+ .cmt {
2196
+ color: #8b008b;
2197
+ background-color: fadeout( #8b008b, 80% );
2198
+ }
2199
+
2200
+ .punc {
2201
+ font-weight: bold;
2202
+ color: black;
2203
+ }
2204
+ }
2205
+ }
2206
+
2207
+ .x-list-view.virtual {
2208
+ .x-list-item {
2209
+ position: absolute;
2210
+ left: 0;
2211
+ right: 0;
2212
+ }
2213
+ }
2214
+
2215
+ .x-masonry {
2216
+ display: grid;
2217
+ grid-gap: 10px;
2218
+ grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
2219
+ grid-auto-rows: 10px;
2220
+ }
2221
+
2222
+ .x-tab-bar {
2223
+ border-bottom: 1px solid var(--gray-600);
2224
+ background-color: var(--gray-100);
2225
+
2226
+ &> .x-button {
2227
+ border: none;
2228
+ color: var( --gray-600 );
2229
+
2230
+ &.selected {
2231
+ font-weight: bold;
2232
+ //border: 1px solid var( --x4-selection-color );
2233
+ border-bottom: none;
2234
+ color: var( --x4-selection-color );
2235
+ background-color: transparent;
2236
+ }
2237
+
2238
+ &:focus:not(.selected) {
2239
+ text-decoration: underline;
2240
+ color: black;;
2241
+ }
2242
+ }
2243
+ }