x4js 2.0.12 → 2.0.13

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.
Files changed (108) hide show
  1. package/README.md +15 -15
  2. package/lib/README.txt +15 -15
  3. package/lib/cjs/x4.css +1 -1
  4. package/lib/cjs/x4.js +1 -1
  5. package/lib/esm/x4.css +1 -1
  6. package/lib/esm/x4.mjs +1 -1
  7. package/lib/src/components/base.scss +25 -26
  8. package/lib/src/components/boxes/boxes.module.scss +37 -37
  9. package/lib/src/components/boxes/boxes.ts +129 -125
  10. package/lib/src/components/breadcrumb/breadcrumb.scss +28 -0
  11. package/lib/src/components/breadcrumb/breadcrumb.ts +84 -0
  12. package/lib/src/components/breadcrumb/chevron-right.svg +1 -0
  13. package/lib/src/components/btngroup/btngroup.module.scss +28 -28
  14. package/lib/src/components/btngroup/btngroup.ts +119 -101
  15. package/lib/src/components/button/button.module.scss +154 -153
  16. package/lib/src/components/button/button.ts +117 -117
  17. package/lib/src/components/calendar/calendar.module.scss +162 -162
  18. package/lib/src/components/calendar/calendar.ts +326 -325
  19. package/lib/src/components/checkbox/check.svg +3 -3
  20. package/lib/src/components/checkbox/checkbox.module.scss +141 -141
  21. package/lib/src/components/checkbox/checkbox.ts +125 -124
  22. package/lib/src/components/colorinput/colorinput.module.scss +64 -64
  23. package/lib/src/components/colorinput/colorinput.ts +90 -87
  24. package/lib/src/components/colorpicker/colorpicker.module.scss +132 -132
  25. package/lib/src/components/colorpicker/colorpicker.ts +481 -476
  26. package/lib/src/components/combobox/combobox.module.scss +123 -120
  27. package/lib/src/components/combobox/combobox.ts +192 -190
  28. package/lib/src/components/combobox/updown.svg +3 -3
  29. package/lib/src/components/components.ts +34 -0
  30. package/lib/src/components/dialog/dialog.module.scss +71 -71
  31. package/lib/src/components/dialog/dialog.ts +94 -92
  32. package/lib/src/components/form/form.module.scss +34 -34
  33. package/lib/src/components/form/form.ts +41 -36
  34. package/lib/src/components/grid/datastore.ts +1298 -0
  35. package/lib/src/components/grid/gridview.ts +1108 -0
  36. package/lib/src/components/grid/memdb.ts +325 -0
  37. package/lib/src/components/header/header.module.scss +39 -39
  38. package/lib/src/components/header/header.ts +129 -123
  39. package/lib/src/components/icon/icon.module.scss +29 -29
  40. package/lib/src/components/icon/icon.ts +136 -134
  41. package/lib/src/components/image/image.module.scss +20 -20
  42. package/lib/src/components/image/image.ts +68 -66
  43. package/lib/src/components/input/input.module.scss +69 -69
  44. package/lib/src/components/input/input.ts +275 -274
  45. package/lib/src/components/label/label.module.scss +58 -52
  46. package/lib/src/components/label/label.ts +64 -55
  47. package/lib/src/components/link/link.ts +78 -0
  48. package/lib/src/components/listbox/listbox.module.scss +103 -103
  49. package/lib/src/components/listbox/listbox.ts +431 -427
  50. package/lib/src/components/menu/menu.module.scss +107 -107
  51. package/lib/src/components/menu/menu.ts +171 -168
  52. package/lib/src/components/messages/messages.module.scss +48 -47
  53. package/lib/src/components/messages/messages.ts +68 -63
  54. package/lib/src/components/normalize.scss +386 -386
  55. package/lib/src/components/notification/notification.module.scss +81 -81
  56. package/lib/src/components/notification/notification.ts +109 -108
  57. package/lib/src/components/panel/panel.module.scss +47 -47
  58. package/lib/src/components/panel/panel.ts +57 -56
  59. package/lib/src/components/popup/popup.module.scss +43 -43
  60. package/lib/src/components/popup/popup.ts +396 -395
  61. package/lib/src/components/progress/progress.module.scss +56 -56
  62. package/lib/src/components/progress/progress.ts +43 -42
  63. package/lib/src/components/rating/rating.module.scss +22 -22
  64. package/lib/src/components/rating/rating.ts +131 -125
  65. package/lib/src/components/shared.scss +90 -76
  66. package/lib/src/components/sizers/sizer.module.scss +89 -89
  67. package/lib/src/components/sizers/sizer.ts +123 -119
  68. package/lib/src/components/slider/slider.module.scss +70 -70
  69. package/lib/src/components/slider/slider.ts +147 -142
  70. package/lib/src/components/switch/switch.module.scss +126 -126
  71. package/lib/src/components/switch/switch.ts +61 -55
  72. package/lib/src/components/tabs/tabs.module.scss +46 -46
  73. package/lib/src/components/tabs/tabs.ts +168 -157
  74. package/lib/src/components/textarea/textarea.module.scss +59 -59
  75. package/lib/src/components/textarea/textarea.ts +60 -54
  76. package/lib/src/components/textedit/textedit.module.scss +113 -113
  77. package/lib/src/components/textedit/textedit.ts +83 -82
  78. package/lib/src/components/themes.scss +81 -77
  79. package/lib/src/components/tooltips/tooltips.scss +50 -50
  80. package/lib/src/components/tooltips/tooltips.ts +103 -102
  81. package/lib/src/components/treeview/treeview.module.scss +115 -115
  82. package/lib/src/components/treeview/treeview.ts +410 -403
  83. package/lib/src/components/viewport/viewport.module.scss +24 -24
  84. package/lib/src/components/viewport/viewport.ts +41 -38
  85. package/lib/src/core/component.ts +1002 -979
  86. package/lib/src/core/core_application.ts +44 -0
  87. package/lib/src/core/core_colors.ts +249 -249
  88. package/lib/src/core/core_dom.ts +471 -471
  89. package/lib/src/core/core_dragdrop.ts +200 -200
  90. package/lib/src/core/core_element.ts +97 -97
  91. package/lib/src/core/core_events.ts +149 -149
  92. package/lib/src/core/core_i18n.ts +377 -377
  93. package/lib/src/core/core_router.ts +221 -221
  94. package/lib/src/core/core_styles.ts +214 -214
  95. package/lib/src/core/core_svg.ts +550 -550
  96. package/lib/src/core/core_tools.ts +688 -673
  97. package/lib/src/demo/assets/radio.svg +3 -3
  98. package/lib/src/demo/index.html +11 -11
  99. package/lib/src/demo/main.scss +21 -21
  100. package/lib/src/demo/main.tsx +323 -323
  101. package/lib/src/types/scss.d.ts +4 -4
  102. package/lib/src/types/x4react.d.ts +8 -8
  103. package/lib/src/x4.scss +18 -18
  104. package/lib/src/x4.ts +31 -62
  105. package/lib/styles/x4.css +1 -1
  106. package/lib/types/x4js.d.ts +100 -49
  107. package/package.json +2 -3
  108. package/src/x4.ts +31 -62
@@ -1,114 +1,114 @@
1
- /**
2
- * ___ ___ __
3
- * \ \/ / / _
4
- * \ / /_| |_
5
- * / \____ _|
6
- * /__/\__\ |_|
7
- *
8
- * @file textedit.module.scss
9
- * @author Etienne Cochard
10
- *
11
- * @copyright (c) 2024 R-libre ingenierie
12
- *
13
- * Use of this source code is governed by an MIT-style license
14
- * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
- **/
16
-
17
- @use "../shared.scss";
18
-
19
- :root {
20
- --textedit-border: var( --border );
21
- --textedit-border-focus: var( --border-focus );
22
- --textedit-required: var( --alert-background );
23
-
24
- --textedit-btn-background: inherit;
25
- --textedit-btn-color: var( --text-secondary );
26
- --textedit-btn-color-hover: var( --text-primary );
27
-
28
- --textedit-color-disabled: var( --disabled-background );
29
- }
30
-
31
- .x4textedit {
32
- @extend .hbox;
33
- margin: 5px;
34
- gap: 6px;
35
-
36
- &> #label { // hbox
37
- border-bottom: 1px solid transparent;
38
-
39
- &> .x4label {
40
- @extend .hbox;
41
- height: 100%;
42
- padding: 0;
43
- font-weight: 500;
44
- gap: 0;
45
- }
46
-
47
- &::after {
48
- content: ":"
49
- }
50
- }
51
-
52
- &> #edit {
53
- @extend .hbox;
54
- @extend .flex;
55
- border-bottom: 1px solid var( --textedit-border );
56
-
57
- .x4input {
58
- @extend .flex;
59
- outline: none;
60
- margin: 0;
61
- }
62
-
63
- .x4button {
64
- margin: 0;
65
- padding: 0;
66
- background-color: var( --textedit-btn-background );
67
- color: var( --textedit-btn-color );
68
-
69
- #icon {
70
- color: var( --textedit-btn-color );
71
- }
72
-
73
- &:hover, &:hover #icon {
74
- color: var( --textedit-btn-color-hover );
75
- }
76
-
77
- &:focus {
78
- border-bottom-color: var( --textedit-border-focus );
79
- }
80
- }
81
- }
82
-
83
- &:focus-within {
84
- #edit {
85
- border-bottom-color: var( --textedit-border-focus );
86
- }
87
-
88
- }
89
-
90
- &[required] {
91
- & > #label > .x4label::before {
92
- content: "*";
93
- font-weight: bold;
94
- color: var( --textedit-required )
95
- }
96
- }
97
-
98
- &[disabled] {
99
- &, * {
100
- cursor: not-allowed;
101
- }
102
-
103
- #label > .x4label #text,
104
- #label > .x4label::before,
105
- #label::after {
106
- color: var( --textedit-color-disabled );
107
- }
108
-
109
- #edit input {
110
- color: var( --textedit-color-disabled );
111
- background-color: unset;
112
- }
113
- }
1
+ /**
2
+ * ___ ___ __
3
+ * \ \/ / / _
4
+ * \ / /_| |_
5
+ * / \____ _|
6
+ * /__/\__\ |_|
7
+ *
8
+ * @file textedit.module.scss
9
+ * @author Etienne Cochard
10
+ *
11
+ * @copyright (c) 2024 R-libre ingenierie
12
+ *
13
+ * Use of this source code is governed by an MIT-style license
14
+ * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
+ **/
16
+
17
+ @use "../shared.scss";
18
+
19
+ :root {
20
+ --textedit-border: var( --border );
21
+ --textedit-border-focus: var( --border-focus );
22
+ --textedit-required: var( --alert-background );
23
+
24
+ --textedit-btn-background: inherit;
25
+ --textedit-btn-color: var( --text-secondary );
26
+ --textedit-btn-color-hover: var( --text-primary );
27
+
28
+ --textedit-color-disabled: var( --disabled-background );
29
+ }
30
+
31
+ .x4textedit {
32
+ @extend .hbox;
33
+ margin: 5px;
34
+ gap: 6px;
35
+
36
+ &> #label { // hbox
37
+ border-bottom: 1px solid transparent;
38
+
39
+ &> .x4label {
40
+ @extend .hbox;
41
+ height: 100%;
42
+ padding: 0;
43
+ font-weight: 500;
44
+ gap: 0;
45
+ }
46
+
47
+ &::after {
48
+ content: ":"
49
+ }
50
+ }
51
+
52
+ &> #edit {
53
+ @extend .hbox;
54
+ @extend .flex;
55
+ border-bottom: 1px solid var( --textedit-border );
56
+
57
+ .x4input {
58
+ @extend .flex;
59
+ outline: none;
60
+ margin: 0;
61
+ }
62
+
63
+ .x4button {
64
+ margin: 0;
65
+ padding: 0;
66
+ background-color: var( --textedit-btn-background );
67
+ color: var( --textedit-btn-color );
68
+
69
+ #icon {
70
+ color: var( --textedit-btn-color );
71
+ }
72
+
73
+ &:hover, &:hover #icon {
74
+ color: var( --textedit-btn-color-hover );
75
+ }
76
+
77
+ &:focus {
78
+ border-bottom-color: var( --textedit-border-focus );
79
+ }
80
+ }
81
+ }
82
+
83
+ &:focus-within {
84
+ #edit {
85
+ border-bottom-color: var( --textedit-border-focus );
86
+ }
87
+
88
+ }
89
+
90
+ &[required] {
91
+ & > #label > .x4label::before {
92
+ content: "*";
93
+ font-weight: bold;
94
+ color: var( --textedit-required )
95
+ }
96
+ }
97
+
98
+ &[disabled] {
99
+ &, * {
100
+ cursor: not-allowed;
101
+ }
102
+
103
+ #label > .x4label #text,
104
+ #label > .x4label::before,
105
+ #label::after {
106
+ color: var( --textedit-color-disabled );
107
+ }
108
+
109
+ #edit input {
110
+ color: var( --textedit-color-disabled );
111
+ background-color: unset;
112
+ }
113
+ }
114
114
  }
@@ -1,82 +1,83 @@
1
- /**
2
- * ___ ___ __
3
- * \ \/ / / _
4
- * \ / /_| |_
5
- * / \____ _|
6
- * /__/\__\ |_|
7
- *
8
- * @file textedit.ts
9
- * @author Etienne Cochard
10
- *
11
- * @copyright (c) 2024 R-libre ingenierie
12
- *
13
- * Use of this source code is governed by an MIT-style license
14
- * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
- **/
16
-
17
- import { Component, ComponentProps, makeUniqueComponentId } from '../../core/component';
18
- import { UnsafeHtml } from '../../core/core_tools';
19
-
20
- import { HBox } from '../boxes/boxes';
21
- import { Input, TextInputProps } from "../input/input"
22
- import { Label } from '../label/label';
23
-
24
- import "./textedit.module.scss";
25
-
26
- //@todo: disabled
27
-
28
- /**
29
- *
30
- */
31
-
32
- interface TextEditProps extends ComponentProps {
33
- label: string | UnsafeHtml;
34
- labelWidth?: number;
35
- inputId?: string;
36
-
37
- type?: "text" | "email" | "password";
38
- readonly?: boolean;
39
- required?: boolean;
40
- value: string | number;
41
- placeholder?: string;
42
-
43
- inputGadgets?: Component[];
44
- }
45
-
46
- /**
47
- *
48
- */
49
-
50
- export class TextEdit extends HBox {
51
- constructor( props: TextEditProps ) {
52
- super( props );
53
-
54
- if( !props.inputId ) {
55
- props.inputId = makeUniqueComponentId()
56
- }
57
-
58
- if( props.required ) {
59
- this.setAttribute( "required", true );
60
- }
61
-
62
- const gadgets = props.inputGadgets ?? [];
63
-
64
- this.setContent( [
65
- new HBox( { id: "label", width: props.labelWidth, content: [
66
- new Label( { tag: "label", text: props.label, labelFor: props.inputId } ),
67
- ]}),
68
- new HBox( { id: "edit", content: [
69
- new Input( {
70
- type: props.type ?? "text",
71
- readonly: props.readonly,
72
- value: props.value,
73
- id: props.inputId,
74
- required: props.required,
75
- disabled: props.disabled,
76
- placeholder: props.placeholder
77
- } ),
78
- ...gadgets,
79
- ]})
80
- ])
81
- }
82
- }
1
+ /**
2
+ * ___ ___ __
3
+ * \ \/ / / _
4
+ * \ / /_| |_
5
+ * / \____ _|
6
+ * /__/\__\ |_|
7
+ *
8
+ * @file textedit.ts
9
+ * @author Etienne Cochard
10
+ *
11
+ * @copyright (c) 2024 R-libre ingenierie
12
+ *
13
+ * Use of this source code is governed by an MIT-style license
14
+ * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
+ **/
16
+
17
+ import { Component, ComponentProps, makeUniqueComponentId } from '../../core/component';
18
+ import { class_ns, UnsafeHtml } from '../../core/core_tools';
19
+
20
+ import { HBox } from '../boxes/boxes';
21
+ import { Input, TextInputProps } from "../input/input"
22
+ import { Label } from '../label/label';
23
+
24
+ import "./textedit.module.scss";
25
+
26
+ //@todo: disabled
27
+
28
+ /**
29
+ *
30
+ */
31
+
32
+ interface TextEditProps extends ComponentProps {
33
+ label: string | UnsafeHtml;
34
+ labelWidth?: number;
35
+ inputId?: string;
36
+
37
+ type?: "text" | "email" | "password";
38
+ readonly?: boolean;
39
+ required?: boolean;
40
+ value: string | number;
41
+ placeholder?: string;
42
+
43
+ inputGadgets?: Component[];
44
+ }
45
+
46
+ /**
47
+ *
48
+ */
49
+
50
+ @class_ns( "x4" )
51
+ export class TextEdit extends HBox {
52
+ constructor( props: TextEditProps ) {
53
+ super( props );
54
+
55
+ if( !props.inputId ) {
56
+ props.inputId = makeUniqueComponentId()
57
+ }
58
+
59
+ if( props.required ) {
60
+ this.setAttribute( "required", true );
61
+ }
62
+
63
+ const gadgets = props.inputGadgets ?? [];
64
+
65
+ this.setContent( [
66
+ new HBox( { id: "label", width: props.labelWidth, content: [
67
+ new Label( { tag: "label", text: props.label, labelFor: props.inputId } ),
68
+ ]}),
69
+ new HBox( { id: "edit", content: [
70
+ new Input( {
71
+ type: props.type ?? "text",
72
+ readonly: props.readonly,
73
+ value: props.value,
74
+ id: props.inputId,
75
+ required: props.required,
76
+ disabled: props.disabled,
77
+ placeholder: props.placeholder
78
+ } ),
79
+ ...gadgets,
80
+ ]})
81
+ ])
82
+ }
83
+ }
@@ -1,77 +1,81 @@
1
- /**
2
- * ___ ___ __
3
- * \ \/ / / _
4
- * \ / /_| |_
5
- * / \____ _|
6
- * /__/\__\ |_|
7
- *
8
- * @file themes.scss
9
- * @author Etienne Cochard
10
- *
11
- * @copyright (c) 2024 R-libre ingenierie
12
- *
13
- * Use of this source code is governed by an MIT-style license
14
- * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
- **/
16
-
17
- :root {
18
- --color-primary-a0: #ffffff;
19
- --color-primary-a10: #e0eaf7;
20
- --color-primary-a20: #c0d6ef;
21
- --color-primary-a30: #a0c2e7;
22
- --color-primary-a40: #7dafde;
23
- --color-primary-a50: #569cd6;
24
- --color-primary-a55: #{lighten(#477ba7,5%)};
25
- --color-primary-a60: #477ba7;
26
- --color-primary-a70: #375b7a;
27
- --color-primary-a80: #283d51;
28
- --color-primary-a90: #18212a;
29
- --color-primary-a100: #000000;
30
-
31
- --color-danger-a50: #c01010;
32
- --color-danger-a60: #{darken(#c01010,10%)};
33
-
34
- --color-success-a50: #10c01f;
35
- --color-success-a60: #{darken(#10c01f,10%)};
36
- }
37
-
38
- :root {
39
- // Backgrounds
40
- --background-primary: var(--color-primary-a0); // Fond principal
41
- --background-secondary: var(--color-primary-a10); // Fond secondaire
42
-
43
- // Texts
44
- --text-primary: var(--color-primary-a100); // Texte principal
45
- --text-secondary: #999; // Texte secondaire
46
- --text-ternary: #666; // Texte tertiaire
47
-
48
- // disabled
49
- --disabled-background: #ccc;
50
- --disabled-color: white;
51
- --disabled-color-dark: #aaa;
52
-
53
- // accents
54
- --accent-background: var(--color-primary-a60);
55
- --accent-background-hover: var(--color-primary-a55);
56
- --accent-background-focus: var(--color-primary-a70);
57
- --accent-background-active: var(--color-primary-a80);
58
-
59
- --accent-color: var(--color-primary-a0);
60
- --accent-color-hover: var(--color-primary-a0);
61
- --accent-color-focus: var(--color-primary-a0);
62
- --accent-color-active: var(--color-primary-a0);
63
-
64
- // Borders
65
- --border: #e1e1e1; // Bordures
66
- --border-hover: #c2c2c2; // Bordures au survol
67
- --border-focus: var( --accent-background ); // Bordures si focus
68
-
69
- --alert-background: var( --color-danger-a50 );
70
- --alert-background-active: var( --color-danger-a60 );
71
- --alert-color: var( --color-primary-a0 );
72
-
73
- --success-background: var( --color-success-a50 );
74
- --success-background-active: var( --color-success-a60 );
75
- --success-color: var( --color-success-a0 );
76
- }
77
-
1
+ /**
2
+ * ___ ___ __
3
+ * \ \/ / / _
4
+ * \ / /_| |_
5
+ * / \____ _|
6
+ * /__/\__\ |_|
7
+ *
8
+ * @file themes.scss
9
+ * @author Etienne Cochard
10
+ *
11
+ * @copyright (c) 2024 R-libre ingenierie
12
+ *
13
+ * Use of this source code is governed by an MIT-style license
14
+ * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
+ **/
16
+
17
+
18
+ $color--base: #569cd6;
19
+ $color--interval: 8.4%;
20
+
21
+ :root {
22
+ --color-primary-a0: #ffffff;
23
+ --color-primary-a10: #{lighten($color--base, $color--interval * 4)};
24
+ --color-primary-a20: #{lighten($color--base, $color--interval * 3)};
25
+ --color-primary-a30: #{lighten($color--base, $color--interval * 2)};
26
+ --color-primary-a40: #{lighten($color--base, $color--interval)};
27
+ --color-primary-a50: #{$color--base};
28
+ --color-primary-a55: #{darken($color--base,5%)};
29
+ --color-primary-a60: #{darken($color--base, $color--interval )};
30
+ --color-primary-a70: #{darken($color--base, $color--interval * 2)};
31
+ --color-primary-a80: #{darken($color--base, $color--interval * 3)};
32
+ --color-primary-a90: #{darken($color--base, $color--interval * 4)};
33
+ --color-primary-a100: #000000;
34
+
35
+ --color-danger-a50: #c01010;
36
+ --color-danger-a60: #{darken(#c01010,10%)};
37
+
38
+ --color-success-a50: #10c01f;
39
+ --color-success-a60: #{darken(#10c01f,10%)};
40
+ }
41
+
42
+ :root {
43
+ // Backgrounds
44
+ --background-primary: var(--color-primary-a0); // Fond principal
45
+ --background-secondary: var(--color-primary-a10); // Fond secondaire
46
+
47
+ // Texts
48
+ --text-primary: var(--color-primary-a100); // Texte principal
49
+ --text-secondary: #999; // Texte secondaire
50
+ --text-ternary: #666; // Texte tertiaire
51
+
52
+ // disabled
53
+ --disabled-background: #ccc;
54
+ --disabled-color: white;
55
+ --disabled-color-dark: #aaa;
56
+
57
+ // accents
58
+ --accent-background: var(--color-primary-a60);
59
+ --accent-background-hover: var(--color-primary-a55);
60
+ --accent-background-focus: var(--color-primary-a70);
61
+ --accent-background-active: var(--color-primary-a80);
62
+
63
+ --accent-color: var(--color-primary-a0);
64
+ --accent-color-hover: var(--color-primary-a0);
65
+ --accent-color-focus: var(--color-primary-a0);
66
+ --accent-color-active: var(--color-primary-a0);
67
+
68
+ // Borders
69
+ --border: #e1e1e1; // Bordures
70
+ --border-hover: #c2c2c2; // Bordures au survol
71
+ --border-focus: var( --accent-background ); // Bordures si focus
72
+
73
+ --alert-background: var( --color-danger-a50 );
74
+ --alert-background-active: var( --color-danger-a60 );
75
+ --alert-color: var( --color-primary-a0 );
76
+
77
+ --success-background: var( --color-success-a50 );
78
+ --success-background-active: var( --color-success-a60 );
79
+ --success-color: var( --color-success-a0 );
80
+ }
81
+
@@ -1,51 +1,51 @@
1
- /**
2
- * ___ ___ __
3
- * \ \/ / / _
4
- * \ / /_| |_
5
- * / \____ _|
6
- * /__/\__\ |_|
7
- *
8
- * @file tooltips.scss
9
- * @author Etienne Cochard
10
- *
11
- * @copyright (c) 2024 R-libre ingenierie
12
- *
13
- * Use of this source code is governed by an MIT-style license
14
- * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
- **/
16
-
17
- @use "../shared.scss";
18
-
19
- :root {
20
- --tooltip-background: var( --color-primary-a70 );
21
- --tooltip-color: var( --color-primary-a0 );
22
- --tooltip-border: var( --border-dark );
23
- }
24
-
25
- .x4tooltip {
26
- @extend .shadow-lg;
27
- display: flex;
28
- flex-direction: row;
29
- border: none;
30
- font-size: 90%;
31
- position: absolute;
32
-
33
- .x4icon {
34
- width: 1.6em;
35
- height: 100%;
36
- padding: 2px 4px;
37
- svg {
38
- max-height: 100%;
39
- }
40
-
41
- background-color: var( --tooltip-background );
42
- color: var( --tooltip-color );
43
- border: 1px solid var( --tooltip-border );
44
- }
45
-
46
- #text {
47
- background-color: var( --tooltip-background );
48
- color: var( --tooltip-color );
49
- padding: 4px;
50
- }
1
+ /**
2
+ * ___ ___ __
3
+ * \ \/ / / _
4
+ * \ / /_| |_
5
+ * / \____ _|
6
+ * /__/\__\ |_|
7
+ *
8
+ * @file tooltips.scss
9
+ * @author Etienne Cochard
10
+ *
11
+ * @copyright (c) 2024 R-libre ingenierie
12
+ *
13
+ * Use of this source code is governed by an MIT-style license
14
+ * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
+ **/
16
+
17
+ @use "../shared.scss";
18
+
19
+ :root {
20
+ --tooltip-background: var( --color-primary-a70 );
21
+ --tooltip-color: var( --color-primary-a0 );
22
+ --tooltip-border: var( --border-dark );
23
+ }
24
+
25
+ .x4tooltip {
26
+ @extend .shadow-lg;
27
+ display: flex;
28
+ flex-direction: row;
29
+ border: none;
30
+ font-size: 90%;
31
+ position: absolute;
32
+
33
+ .x4icon {
34
+ width: 1.6em;
35
+ height: 100%;
36
+ padding: 2px 4px;
37
+ svg {
38
+ max-height: 100%;
39
+ }
40
+
41
+ background-color: var( --tooltip-background );
42
+ color: var( --tooltip-color );
43
+ border: 1px solid var( --tooltip-border );
44
+ }
45
+
46
+ #text {
47
+ background-color: var( --tooltip-background );
48
+ color: var( --tooltip-color );
49
+ padding: 4px;
50
+ }
51
51
  }