@operato/image-marker 8.0.0-alpha.10

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 (68) hide show
  1. package/.editorconfig +29 -0
  2. package/.storybook/main.js +3 -0
  3. package/.storybook/preview.js +52 -0
  4. package/.storybook/server.mjs +8 -0
  5. package/CHANGELOG.md +11 -0
  6. package/README.md +0 -0
  7. package/assets/images/no-image.png +0 -0
  8. package/demo/index.html +22 -0
  9. package/dist/src/base-image-marker.d.ts +24 -0
  10. package/dist/src/base-image-marker.js +137 -0
  11. package/dist/src/base-image-marker.js.map +1 -0
  12. package/dist/src/index.d.ts +0 -0
  13. package/dist/src/index.js +2 -0
  14. package/dist/src/index.js.map +1 -0
  15. package/dist/src/ox-image-marker-mode.d.ts +13 -0
  16. package/dist/src/ox-image-marker-mode.js +140 -0
  17. package/dist/src/ox-image-marker-mode.js.map +1 -0
  18. package/dist/src/ox-image-marker-view.d.ts +4 -0
  19. package/dist/src/ox-image-marker-view.js +26 -0
  20. package/dist/src/ox-image-marker-view.js.map +1 -0
  21. package/dist/src/ox-image-marker.d.ts +33 -0
  22. package/dist/src/ox-image-marker.js +583 -0
  23. package/dist/src/ox-image-marker.js.map +1 -0
  24. package/dist/src/types.d.ts +20 -0
  25. package/dist/src/types.js +2 -0
  26. package/dist/src/types.js.map +1 -0
  27. package/dist/stories/ox-image-marker-mode.stories.d.ts +16 -0
  28. package/dist/stories/ox-image-marker-mode.stories.js +31 -0
  29. package/dist/stories/ox-image-marker-mode.stories.js.map +1 -0
  30. package/dist/stories/ox-image-marker-view.stories.d.ts +41 -0
  31. package/dist/stories/ox-image-marker-view.stories.js +103 -0
  32. package/dist/stories/ox-image-marker-view.stories.js.map +1 -0
  33. package/dist/stories/ox-image-marker.stories.d.ts +33 -0
  34. package/dist/stories/ox-image-marker.stories.js +86 -0
  35. package/dist/stories/ox-image-marker.stories.js.map +1 -0
  36. package/dist/tsconfig.tsbuildinfo +1 -0
  37. package/package.json +97 -0
  38. package/src/base-image-marker.ts +144 -0
  39. package/src/index.ts +0 -0
  40. package/src/ox-image-marker-mode.ts +145 -0
  41. package/src/ox-image-marker-view.ts +23 -0
  42. package/src/ox-image-marker.ts +626 -0
  43. package/src/types.ts +20 -0
  44. package/stories/ox-image-marker-mode.stories.ts +41 -0
  45. package/stories/ox-image-marker-view.stories.ts +134 -0
  46. package/stories/ox-image-marker.stories.ts +102 -0
  47. package/themes/app-theme.css +138 -0
  48. package/themes/calendar-theme.css +59 -0
  49. package/themes/dark.css +51 -0
  50. package/themes/form-theme.css +70 -0
  51. package/themes/grist-theme.css +175 -0
  52. package/themes/layout-theme.css +94 -0
  53. package/themes/light.css +51 -0
  54. package/themes/material-theme.css +23 -0
  55. package/themes/md-typescale-styles.css +100 -0
  56. package/themes/oops-theme.css +22 -0
  57. package/themes/report-theme.css +47 -0
  58. package/themes/spacing.css +23 -0
  59. package/themes/state-color.css +6 -0
  60. package/themes/tooltip-theme.css +11 -0
  61. package/translations/en.json +1 -0
  62. package/translations/ja.json +1 -0
  63. package/translations/ko.json +1 -0
  64. package/translations/ms.json +1 -0
  65. package/translations/zh.json +1 -0
  66. package/tsconfig.json +25 -0
  67. package/web-dev-server.config.mjs +27 -0
  68. package/web-test-runner.config.mjs +41 -0
@@ -0,0 +1,134 @@
1
+ import '../src/ox-image-marker-view.js'
2
+
3
+ import { html, TemplateResult } from 'lit'
4
+ import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
5
+
6
+ import { Shape, ShapeType } from '../src/types.js'
7
+
8
+ export default {
9
+ title: 'ox-image-marker-view',
10
+ component: 'ox-image-marker-view',
11
+ argTypes: {
12
+ imageUrl: { control: 'text' },
13
+ shapes: { control: 'object' }
14
+ }
15
+ }
16
+
17
+ interface Story<T> {
18
+ (args: T): TemplateResult
19
+ args?: Partial<T>
20
+ argTypes?: Record<string, unknown>
21
+ }
22
+
23
+ interface ArgTypes {
24
+ imageUrl: string
25
+ shapes: Array<{
26
+ id: string
27
+ type: ShapeType
28
+ x?: number
29
+ y?: number
30
+ width?: number
31
+ height?: number
32
+ cx?: number
33
+ cy?: number
34
+ r?: number
35
+ x1?: number
36
+ y1?: number
37
+ x2?: number
38
+ y2?: number
39
+ text?: string
40
+ }>
41
+ }
42
+
43
+ const Template: Story<ArgTypes> = ({ imageUrl, shapes }: ArgTypes) => html`
44
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
45
+ <link href="/themes/light.css" rel="stylesheet" />
46
+ <link href="/themes/dark.css" rel="stylesheet" />
47
+ <link href="/themes/spacing.css" rel="stylesheet" />
48
+ <link href="/themes/md-typescale-styles.css" rel="stylesheet" />
49
+ <link
50
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
51
+ rel="stylesheet"
52
+ />
53
+ <link
54
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
55
+ rel="stylesheet"
56
+ />
57
+ <link
58
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
59
+ rel="stylesheet"
60
+ />
61
+
62
+ <style>
63
+ ${MDTypeScaleStyles.cssText}
64
+ </style>
65
+
66
+ <style>
67
+ body {
68
+ width: 100%;
69
+ height: 800px;
70
+ text-align: center;
71
+
72
+ background-color: var(--md-sys-color-background);
73
+ color: var(--md-sys-color-on-background);
74
+ }
75
+
76
+ ox-image-marker-view {
77
+ height: 650px;
78
+ box-sizing: border-box;
79
+ background-color: var(--md-sys-color-primary-container);
80
+ color: var(--md-sys-color-on-primary-container);
81
+ }
82
+ </style>
83
+
84
+ <ox-image-marker-view .imageUrl=${imageUrl} .shapes=${shapes}></ox-image-marker-view>
85
+ `
86
+
87
+ export const ViewOnly = Template.bind({})
88
+ ViewOnly.args = {
89
+ imageUrl: 'https://via.placeholder.com/800x600',
90
+ shapes: [
91
+ {
92
+ id: '1',
93
+ type: 'rectangle',
94
+ x: 100,
95
+ y: 100,
96
+ width: 200,
97
+ height: 150,
98
+ text: 'Rectangle 1'
99
+ },
100
+ {
101
+ id: '2',
102
+ type: 'circle',
103
+ cx: 300,
104
+ cy: 300,
105
+ r: 50,
106
+ text: 'Circle 1'
107
+ },
108
+ {
109
+ id: '3',
110
+ type: 'line',
111
+ x1: 400,
112
+ y1: 400,
113
+ x2: 500,
114
+ y2: 500,
115
+ text: 'Line 1'
116
+ },
117
+ {
118
+ id: '4',
119
+ type: 'arrow',
120
+ x1: 600,
121
+ y1: 100,
122
+ x2: 700,
123
+ y2: 200,
124
+ text: 'Arrow 1'
125
+ },
126
+ {
127
+ id: '5',
128
+ type: 'text',
129
+ x: 600,
130
+ y: 300,
131
+ text: 'Text 1'
132
+ }
133
+ ]
134
+ }
@@ -0,0 +1,102 @@
1
+ import '../src/ox-image-marker.js'
2
+
3
+ import { html, TemplateResult } from 'lit'
4
+ import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
5
+
6
+ import { Shape } from '../src/types.js'
7
+
8
+ export default {
9
+ title: 'ox-image-marker',
10
+ component: 'ox-image-marker',
11
+ argTypes: {
12
+ imageUrl: { control: 'text', description: 'Image URL to display in the marker.' },
13
+ shapes: { control: 'object', description: 'List of shapes to display on the image.' },
14
+ currentShapeType: {
15
+ control: 'select',
16
+ options: ['text', 'rectangle', 'circle', 'triangle', 'line', 'arrow'],
17
+ description: 'The type of shape to draw on the image.'
18
+ }
19
+ }
20
+ }
21
+
22
+ interface Story<T> {
23
+ (args: T): TemplateResult
24
+ args?: Partial<T>
25
+ argTypes?: Record<string, unknown>
26
+ }
27
+
28
+ interface ArgTypes {
29
+ imageUrl: string
30
+ shapes: Shape[]
31
+ }
32
+
33
+ const Template: Story<ArgTypes> = ({ imageUrl, shapes = [] }: ArgTypes) => html`
34
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
35
+ <link href="/themes/light.css" rel="stylesheet" />
36
+ <link href="/themes/dark.css" rel="stylesheet" />
37
+ <link href="/themes/spacing.css" rel="stylesheet" />
38
+ <link href="/themes/md-typescale-styles.css" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
52
+
53
+ <style>
54
+ ${MDTypeScaleStyles.cssText}
55
+ </style>
56
+
57
+ <style>
58
+ body {
59
+ width: 100%;
60
+ height: 800px;
61
+ text-align: center;
62
+
63
+ background-color: var(--md-sys-color-background);
64
+ color: var(--md-sys-color-on-background);
65
+ }
66
+
67
+ ox-image-marker {
68
+ height: 650px;
69
+ box-sizing: border-box;
70
+ background-color: var(--md-sys-color-primary-container);
71
+ color: var(--md-sys-color-on-primary-container);
72
+ }
73
+ </style>
74
+
75
+ <ox-image-marker .imageUrl=${imageUrl} .shapes=${shapes}></ox-image-marker>
76
+ `
77
+
78
+ export const Regular = Template.bind({})
79
+ Regular.args = {
80
+ imageUrl: 'https://via.placeholder.com/800x600',
81
+ shapes: [
82
+ {
83
+ id: '1',
84
+ type: 'rectangle',
85
+ x: 100,
86
+ y: 100,
87
+ width: 200,
88
+ height: 150,
89
+ selected: true,
90
+ text: 'Rectangle 1'
91
+ },
92
+ {
93
+ id: '2',
94
+ type: 'circle',
95
+ cx: 300,
96
+ cy: 300,
97
+ r: 50,
98
+ selected: false,
99
+ text: 'Circle 1'
100
+ }
101
+ ]
102
+ }
@@ -0,0 +1,138 @@
1
+ body {
2
+ /* theme color */
3
+ --primary-color: var(--md-sys-color-primary);
4
+ --secondary-color: var(--md-sys-color-secondary);
5
+ --focus-color: var(--md-sys-color-on-primary);
6
+ --primary-background-color: var(--md-sys-color-primary-container);
7
+ --secondary-background-color: var(--md-sys-color-secondary-container);
8
+
9
+ --focus-background-color: var(--md-sys-color-primary);
10
+ --primary-text-color: var(--md-sys-color-on-primary);
11
+ --secondary-text-color: var(--md-sys-color-on-secondary);
12
+
13
+ /* common style */
14
+ --border-radius: 4px;
15
+ --border-dim-color: 1px solid rgba(0, 0, 0, 0.15);
16
+ --border-light-color: 1px solid rgba(255, 255, 255, 0.3);
17
+
18
+ --box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.1);
19
+
20
+ --theme-font: 'Noto', Helvetica;
21
+
22
+ --margin-default: var(--spacing-medium, 8px);
23
+ --margin-narrow: var(--spacing-small, 4px);
24
+ --margin-wide: var(--spacing-large, 12px);
25
+ --padding-default: var(--spacing-medium, 8px);
26
+ --padding-narrow: var(--spacing-small, 4px);
27
+ --padding-wide: var(--spacing-large, 12px);
28
+
29
+ --scrollbar-thumb-color: rgba(57, 78, 100, 0.5);
30
+ --scrollbar-thumb-hover-color: var(--md-sys-color-primary);
31
+
32
+ --fontsize-default: 14px;
33
+ --fontsize-small: 13px;
34
+ --fontsize-large: 16px;
35
+
36
+ /* app layout style */
37
+ --app-grid-template-area: 'header header header' 'nav main aside' 'nav footer aside';
38
+
39
+ /* title & description style */
40
+ --title-margin: var(--margin-narrow) 0;
41
+ --title-font: bold 24px var(--theme-font);
42
+ --title-text-color: var(--md-sys-color-secondary);
43
+ --title-font-mobile: bold 20px var(--theme-font);
44
+
45
+ --page-description-margin: var(--margin-narrow) 0 var(--margin-wide) 0;
46
+ --page-description-font: normal var(--fontsize-default) / 1.2rem var(--theme-font);
47
+ --page-description-color: var(--md-sys-color-primary);
48
+
49
+ --subtitle-padding: 12px 5px 3px 5px;
50
+ --subtitle-font: bold 18px var(--theme-font);
51
+ --subtitle-text-color: var(--md-sys-color-primary);
52
+ --subtitle-border-bottom: 1px solid var(--md-sys-color-primary);
53
+
54
+ /* icon style */
55
+ --icon-tiny-size: var(--icon-size-medium, 24px);
56
+ --icon-default-size: var(--icon-size-large, 32px);
57
+ --icon-big-size: var(--icon-size-huge, 48px);
58
+ --icon-default-color: var(--md-sys-color-on-primary);
59
+
60
+ /* material design component themes */
61
+ --mdc-theme-on-primary: var(--md-sys-color-on-primary);
62
+ --mdc-theme-primary: var(--secondary-text-color);
63
+ --mdc-theme-on-secondary: var(--md-sys-color-on-primary);
64
+ --mdc-theme-secondary: var(--md-sys-color-primary);
65
+ --mdc-button-outline-color: var(--md-sys-color-primary);
66
+ --mdc-danger-button-primary-color: var(--status-danger-color);
67
+ --mdc-danger-button-outline-color: var(--status-danger-color);
68
+ --mdc-button-outline-width: 1px;
69
+ --mdc-button-horizontal-padding: 16px;
70
+
71
+ /* button style */
72
+ --button-background-color: var(--md-sys-color-surface-variant);
73
+ --button-background-focus-color: var(--md-sys-color-primary);
74
+ --button-border: var(--border-dim-color);
75
+ --button-border-radius: var(--border-radius);
76
+ --button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
77
+ --button-padding: calc(var(--padding-narrow) * 1.5) var(--padding-wide);
78
+ --button-color: var(--md-sys-color-secondary);
79
+ --button-font: 600 var(--fontsize-default) var(--theme-font);
80
+ --button-text-transform: capitalize;
81
+ --button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
82
+ --button-activ-border: 1px solid var(--md-sys-color-primary);
83
+ --button-activ-background-color: var(--md-sys-color-primary);
84
+ --button-activ-color: var(--md-sys-color-on-primary);
85
+ --iconbtn-padding: var(--padding-narrow);
86
+
87
+ --button-primary-background-color: var(--md-sys-color-primary);
88
+ --button-primary-active-background-color: var(--status-success-color);
89
+ --button-primary-padding: var(--margin-default) var(--margin-wide);
90
+ --button-primary-color: var(--md-sys-color-on-primary);
91
+ --button-primary-font: bold 16px var(--theme-font);
92
+
93
+ /* table style */
94
+ --th-padding: var(--padding-default);
95
+ --th-border-top: 2px solid var(--md-sys-color-secondary);
96
+ --th-text-transform: capitalize;
97
+ --th-font: bold var(--fontsize-small) var(--theme-font);
98
+ --th-color: var(--md-sys-color-secondary);
99
+
100
+ --tr-background-color: var(--md-sys-color-surface-variant);
101
+ --tr-background-odd-color: rgba(255, 255, 255, 0.4);
102
+ --tr-background-hover-color: #e1f5fe;
103
+ --td-border-line: 1px solid rgba(0, 0, 0, 0.05);
104
+ --td-border-bottom: 1px solid rgba(0, 0, 0, 0.09);
105
+ --td-padding: var(--padding-default);
106
+ --td-font: normal 13px var(--theme-font);
107
+ --td-color: var(--md-sys-color-secondary);
108
+
109
+ --label-cell-background-color: var(--md-sys-color-surface); /* th or td common background color */
110
+
111
+ /* form style */
112
+ --label-font: normal var(--fontsize-default) var(--theme-font);
113
+ --label-color: var(--md-sys-color-on-surface);
114
+ --label-text-transform: capitalize;
115
+ --input-margin: var(--margin-narrow) 0;
116
+ --input-padding: 6px 2px;
117
+ --input-min-width: 200px;
118
+ --input-font: normal var(--fontsize-default) var(--theme-font);
119
+ --input-hint-font: normal var(--fontsize-small) var(--theme-font);
120
+ --input-hint-color: #666;
121
+ --input-container-max-width: 900px;
122
+ --fieldset-margin: var(--padding-wide) 0;
123
+ --fieldset-padding: 0 var(--padding-wide) var(--padding-wide) var(--padding-wide);
124
+ --legend-padding: var(--padding-default) 0;
125
+ --legend-color: var(--md-sys-color-secondary);
126
+ --legend-font: bold 16px var(--theme-font);
127
+ }
128
+
129
+ body.dark {
130
+ caret-color: white;
131
+ }
132
+
133
+ @media only screen and (max-width: 460px) {
134
+ body {
135
+ /* subtitle style */
136
+ --subtitle-margin: 0;
137
+ }
138
+ }
@@ -0,0 +1,59 @@
1
+ body {
2
+ --ox-calendar-padding: var(--padding-default);
3
+
4
+ /* monthly common color */
5
+ --calendar-monthly-text-color: var(--md-sys-color-secondary);
6
+ --calendar-monthly-border: 1px solid rgba(0, 0, 0, 0.1);
7
+ --calendar-monthly-border-width: 0 1px 1px 0px;
8
+
9
+ /* monthly layout */
10
+ --calendar-monthly-ol-margin: var(--margin-default) 0;
11
+ --calendar-monthly-ol-top-border: 2px solid var(--md-sys-color-secondary);
12
+ --calendar-current-monty-background-color: var(--md-sys-color-surface-variant);
13
+ --calendar-monthly-label-align: left;
14
+ --calendar-monthly-label-padding: var(--padding-narrow) 0;
15
+ --calendar-monthly-label-color: var(--md-sys-color-secondary);
16
+ --calendar-monthly-opacity: 0.5;
17
+ --calendar-monthly-date-label-background-color: var(--status-danger-color);
18
+ --calendar-monthly-date-label-margin: var(--margin-narrow);
19
+ --calendar-monthly-date-label-padding: 0px 6px;
20
+ --calendar-monthly-date-label-color: var(--md-sys-color-on-primary);
21
+
22
+ --calendar-monthly-background-color: #f4f4f4;
23
+ --calendar-monthly-event-border-radius: var(--border-radius);
24
+ --calendar-monthly-event-margin: var(--padding-narrow) 0 0 0;
25
+ --calendar-monthly-event-padding: 2px var(--padding-default);
26
+ --calendar-monthly-event-border: 3px solid #ccc;
27
+ --calendar-monthly-event-border-width: 0 0 0 3px;
28
+
29
+ /* weekly common color */
30
+ --calendar-weekly-text-color: var(--md-sys-color-secondary);
31
+ --calendar-weekly-border: 1px solid rgba(0, 0, 0, 0.1);
32
+ --calendar-weekly-border-width: 0 1px 1px 0px;
33
+
34
+ /* weekly layout */
35
+ --calendar-weekly-ol-margin: var(--margin-default) 0;
36
+ --calendar-weekly-ol-top-border: 2px solid var(--md-sys-color-secondary);
37
+ --calendar-current-week-background-color: var(--md-sys-color-surface-variant);
38
+ --calendar-weekly-label-align: center;
39
+ --calendar-weekly-label-padding: var(--padding-narrow) 0;
40
+ --calendar-weekly-label-color: var(--md-sys-color-secondary);
41
+ --calendar-weekly-opacity: 0.5;
42
+ --calendar-weekly-date-label-background-color: var(--status-danger-color);
43
+ --calendar-weekly-date-label-margin: var(--margin-narrow);
44
+ --calendar-weekly-date-label-padding: 0px 6px;
45
+ --calendar-weekly-date-label-color: var(--md-sys-color-on-primary);
46
+
47
+ --calendar-weekly-background-color: #f4f4f4;
48
+ --calendar-weekly-event-border-radius: var(--border-radius);
49
+ --calendar-weekly-event-margin: var(--padding-narrow) 0 0 0;
50
+ --calendar-weekly-event-padding: 2px var(--padding-default);
51
+ --calendar-weekly-event-border: 3px solid #ccc;
52
+ --calendar-weekly-event-border-width: 0 0 0 3px;
53
+ }
54
+
55
+ @media only screen and (max-width: 460px) {
56
+ body {
57
+ --calendar-monthly-text-color: tomato;
58
+ }
59
+ }
@@ -0,0 +1,51 @@
1
+ .dark {
2
+ --md-sys-color-primary: rgb(178 197 255);
3
+ --md-sys-color-surface-tint: rgb(178 197 255);
4
+ --md-sys-color-on-primary: rgb(24 46 96);
5
+ --md-sys-color-primary-container: rgb(49 69 120);
6
+ --md-sys-color-on-primary-container: rgb(218 226 255);
7
+ --md-sys-color-secondary: rgb(143 207 243);
8
+ --md-sys-color-on-secondary: rgb(0 53 73);
9
+ --md-sys-color-secondary-container: rgb(0 76 104);
10
+ --md-sys-color-on-secondary-container: rgb(195 232 255);
11
+ --md-sys-color-tertiary: #cffce3;
12
+ --md-sys-color-on-tertiary: rgb(0 56 35);
13
+ --md-sys-color-tertiary-container: #005234;
14
+ --md-sys-color-on-tertiary-container: #cffce3;
15
+ --md-sys-color-error: #fbafa9;
16
+ --md-sys-color-on-error: #fe594e;
17
+ --md-sys-color-error-container: #fe594e;
18
+ --md-sys-color-on-error-container: #fbafa9;
19
+ --md-sys-color-background: rgb(18 19 24);
20
+ --md-sys-color-on-background: rgb(227 226 233);
21
+ --md-sys-color-surface: rgb(18 19 24);
22
+ --md-sys-color-on-surface: rgb(227 226 233);
23
+ --md-sys-color-surface-variant: rgb(69 70 79);
24
+ --md-sys-color-on-surface-variant: rgb(197 198 208);
25
+ --md-sys-color-outline: rgb(143 144 154);
26
+ --md-sys-color-outline-variant: rgb(69 70 79);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(227 226 233);
30
+ --md-sys-color-inverse-on-surface: rgb(47 48 54);
31
+ --md-sys-color-inverse-primary: rgb(73 93 146);
32
+ --md-sys-color-primary-fixed: rgb(218 226 255);
33
+ --md-sys-color-on-primary-fixed: rgb(0 24 72);
34
+ --md-sys-color-primary-fixed-dim: rgb(178 197 255);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(49 69 120);
36
+ --md-sys-color-secondary-fixed: rgb(195 232 255);
37
+ --md-sys-color-on-secondary-fixed: rgb(0 30 44);
38
+ --md-sys-color-secondary-fixed-dim: rgb(143 207 243);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(0 76 104);
40
+ --md-sys-color-tertiary-fixed: #c7e6d5;
41
+ --md-sys-color-on-tertiary-fixed: rgb(0 33 19);
42
+ --md-sys-color-tertiary-fixed-dim: #c7e6d5;
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(0 82 52);
44
+ --md-sys-color-surface-dim: rgb(18 19 24);
45
+ --md-sys-color-surface-bright: rgb(56 57 63);
46
+ --md-sys-color-surface-container-lowest: rgb(13 14 19);
47
+ --md-sys-color-surface-container-low: rgb(26 27 33);
48
+ --md-sys-color-surface-container: rgb(30 31 37);
49
+ --md-sys-color-surface-container-high: rgb(41 42 47);
50
+ --md-sys-color-surface-container-highest: rgb(51 52 58);
51
+ }
@@ -0,0 +1,70 @@
1
+ body {
2
+ --form-border: none;
3
+ --form-margin: var(--spacing-medium);
4
+ --form-max-width: 700px;
5
+ --form-multi-column-max-width: 100%;
6
+ --form-sublabel-font: normal 13px var(--theme-font);
7
+ --form-grid-gap: 12px 5px;
8
+
9
+ --legend-padding: var(--spacing-medium) 0;
10
+ --legend-font: bold 16px var(--theme-font);
11
+ --legend-text-color: var(--md-sys-color-on-secondary);
12
+ --legend-border-bottom: 1px solid var(--md-sys-color-primary);
13
+
14
+ --label-padding: 3px 0;
15
+ --label-font: normal 14px var(--theme-font);
16
+
17
+ --input-field-border: 1px solid rgba(0, 0, 0, 0.2);
18
+ --input-field-border-radius: var(--border-radius);
19
+ --input-field-padding: 2px 9px;
20
+ --input-field-font: normal 14px var(--theme-font);
21
+
22
+ --search-panel-background-color: rgba(0, 0, 0, 0.1);
23
+ --search-panel-search-iconbutton-size: var(--icon-default-size);
24
+ --search-form-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.15);
25
+ --search-form-box-padding: 15px 30px 15px 15px;
26
+
27
+ --ox-input-border: none;
28
+
29
+ --file-uploader-border: 1px solid rgba(0, 0, 0, 0.1);
30
+ --file-uploader-background-color: var(--md-sys-color-background);
31
+ --file-uploader-font: normal 12px/20px var(--theme-font);
32
+ --file-uploader-color: var(--md-sys-color-secondary);
33
+ --file-uploader-icon-color: var(--md-sys-color-primary);
34
+ --file-uploader-candrop-background-color: #fffde9;
35
+ --file-uploader-label-padding: 3px 20px;
36
+ --file-uploader-label-border-radius: var(--border-radius);
37
+ --file-uploader-label-background-color: var(--md-sys-color-secondary);
38
+ --file-uploader-label-font: normal 12px var(--theme-font);
39
+ --file-uploader-label-color: #fff;
40
+ --file-uploader-li-padding: 2px 5px 0px 5px;
41
+ --file-uploader-li-border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
42
+ --file-uploader-li-icon-font: normal 15px var(--md-icon-font, 'Material Symbols Outlined');
43
+ --file-uploader-li-icon-focus-color: var(--md-sys-color-primary);
44
+ }
45
+
46
+ @media screen and (max-width: 480px) {
47
+ body {
48
+ --label-font: normal 15px var(--theme-font);
49
+ }
50
+ }
51
+
52
+ @media (min-width: 481px) and (max-width: 1024px) {
53
+ body {
54
+ --form-margin: 15px 0;
55
+ --form-multi-column-max-width: 100%;
56
+ --form-container-padding: 0 9px 12px 9px;
57
+ --label-font: normal 14px var(--theme-font);
58
+ --input-field-font: normal 15px var(--theme-font);
59
+ --input-field-padding: 3px 5px;
60
+ }
61
+ }
62
+
63
+ @media only screen and (max-width: 925px) {
64
+ body {
65
+ --form-margin: 14px 0;
66
+ --form-multi-column-max-width: 100%;
67
+ --form-container-padding: 0 9px 12px 9px;
68
+ --input-field-padding: 3px 5px;
69
+ }
70
+ }