@operato/popup 7.0.0-rc.9 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.js +52 -0
- package/CHANGELOG.md +37 -0
- package/dist/src/open-popup.js +1 -1
- package/dist/src/open-popup.js.map +1 -1
- package/dist/src/ox-floating-overlay.js +210 -213
- package/dist/src/ox-floating-overlay.js.map +1 -1
- package/dist/src/ox-popup-list.js +120 -122
- package/dist/src/ox-popup-list.js.map +1 -1
- package/dist/src/ox-popup-menu.js +68 -69
- package/dist/src/ox-popup-menu.js.map +1 -1
- package/dist/src/ox-popup-menuitem.js +44 -45
- package/dist/src/ox-popup-menuitem.js.map +1 -1
- package/dist/src/ox-popup.js +27 -27
- package/dist/src/ox-popup.js.map +1 -1
- package/dist/src/ox-prompt.js +99 -100
- package/dist/src/ox-prompt.js.map +1 -1
- package/dist/stories/open-popup.stories.d.ts +0 -5
- package/dist/stories/open-popup.stories.js +2 -7
- package/dist/stories/open-popup.stories.js.map +1 -1
- package/dist/stories/ox-popup-list-sortable.stories.d.ts +0 -5
- package/dist/stories/ox-popup-list-sortable.stories.js +3 -8
- package/dist/stories/ox-popup-list-sortable.stories.js.map +1 -1
- package/dist/stories/ox-popup-list.stories.d.ts +2 -3
- package/dist/stories/ox-popup-list.stories.js +14 -11
- package/dist/stories/ox-popup-list.stories.js.map +1 -1
- package/dist/stories/ox-popup-menu.stories.d.ts +1 -7
- package/dist/stories/ox-popup-menu.stories.js +2 -8
- package/dist/stories/ox-popup-menu.stories.js.map +1 -1
- package/dist/stories/ox-popup.stories.d.ts +1 -7
- package/dist/stories/ox-popup.stories.js +2 -8
- package/dist/stories/ox-popup.stories.js.map +1 -1
- package/dist/stories/ox-prompt-icon.stories.d.ts +0 -5
- package/dist/stories/ox-prompt-icon.stories.js +5 -15
- package/dist/stories/ox-prompt-icon.stories.js.map +1 -1
- package/dist/stories/ox-prompt-normal.stories.d.ts +2 -3
- package/dist/stories/ox-prompt-normal.stories.js +9 -10
- package/dist/stories/ox-prompt-normal.stories.js.map +1 -1
- package/dist/stories/ox-prompt.stories.d.ts +2 -3
- package/dist/stories/ox-prompt.stories.js +6 -9
- package/dist/stories/ox-prompt.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -4
- package/src/ox-popup-menu.ts +1 -0
- package/src/ox-prompt.ts +1 -1
- package/stories/open-popup.stories.ts +2 -9
- package/stories/ox-popup-list-sortable.stories.ts +2 -8
- package/stories/ox-popup-list.stories.ts +14 -11
- package/stories/ox-popup-menu.stories.ts +3 -11
- package/stories/ox-popup.stories.ts +3 -11
- package/stories/ox-prompt-icon.stories.ts +4 -17
- package/stories/ox-prompt-normal.stories.ts +10 -11
- package/stories/ox-prompt.stories.ts +7 -11
- package/themes/app-theme.css +138 -0
- package/themes/calendar-theme.css +59 -0
- package/themes/dark.css +0 -100
- package/themes/grist-theme.css +44 -40
- package/themes/layout-theme.css +94 -0
- package/themes/light.css +3 -103
- package/themes/material-theme.css +23 -0
- package/themes/oops-theme.css +22 -0
- package/themes/report-theme.css +47 -0
- package/themes/spacing.css +7 -27
- package/themes/state-color.css +1 -1
- package/themes/tooltip-theme.css +11 -0
- package/tsconfig.json +2 -1
- package/themes/dark-hc.css +0 -151
- package/themes/dark-mc.css +0 -151
- package/themes/light-hc.css +0 -151
- package/themes/light-mc.css +0 -151
|
@@ -9,8 +9,7 @@ export default {
|
|
|
9
9
|
component: 'ox-prompt',
|
|
10
10
|
argTypes: {
|
|
11
11
|
type: { control: 'select', options: ['success', 'error', 'warning', 'info', 'question'] },
|
|
12
|
-
preventCloseOnBlur: { control: 'boolean' }
|
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
|
12
|
+
preventCloseOnBlur: { control: 'boolean' }
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -23,29 +22,25 @@ interface Story<T> {
|
|
|
23
22
|
interface ArgTypes {
|
|
24
23
|
type: 'success' | 'error' | 'warning' | 'info' | 'question'
|
|
25
24
|
preventCloseOnBlur: boolean
|
|
26
|
-
theme?: 'light' | 'dark'
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
function popup(
|
|
30
28
|
e: MouseEvent,
|
|
31
29
|
type: 'success' | 'error' | 'warning' | 'info' | 'question' = 'warning',
|
|
32
|
-
theme: 'light' | 'dark',
|
|
33
30
|
preventCloseOnBlur: boolean
|
|
34
31
|
) {
|
|
35
|
-
const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
|
|
36
|
-
|
|
37
32
|
OxPrompt.open({
|
|
38
33
|
title: 'Are you sure ?',
|
|
39
34
|
text: 'Are you sure to exit this page ?',
|
|
40
35
|
type,
|
|
41
|
-
icon:
|
|
36
|
+
icon: 'logout',
|
|
42
37
|
confirmButton: { text: 'Confirm' },
|
|
43
38
|
cancelButton: { text: 'Cancel' },
|
|
44
39
|
preventCloseOnBlur
|
|
45
40
|
})
|
|
46
41
|
}
|
|
47
42
|
|
|
48
|
-
const Template: Story<ArgTypes> = ({ type, preventCloseOnBlur
|
|
43
|
+
const Template: Story<ArgTypes> = ({ type, preventCloseOnBlur }: ArgTypes) => html`
|
|
49
44
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
50
45
|
|
|
51
46
|
<link href="/themes/light.css" rel="stylesheet" />
|
|
@@ -80,15 +75,7 @@ const Template: Story<ArgTypes> = ({ type, preventCloseOnBlur, theme = 'light' }
|
|
|
80
75
|
}
|
|
81
76
|
</style>
|
|
82
77
|
|
|
83
|
-
<
|
|
84
|
-
document.body.classList.add('${theme}')
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<div
|
|
88
|
-
id="place"
|
|
89
|
-
@click=${(e: MouseEvent) => popup(e, type, theme, preventCloseOnBlur)}
|
|
90
|
-
class="md-typescale-display-medium"
|
|
91
|
-
>
|
|
78
|
+
<div id="place" @click=${(e: MouseEvent) => popup(e, type, preventCloseOnBlur)} class="md-typescale-display-medium">
|
|
92
79
|
Click this to prompt image
|
|
93
80
|
</div>
|
|
94
81
|
`
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
title: 'OxPrompt - Normal',
|
|
9
9
|
component: 'ox-prompt',
|
|
10
10
|
argTypes: {
|
|
11
|
-
|
|
11
|
+
preventCloseOnBlur: { control: 'boolean' }
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -19,21 +19,22 @@ interface Story<T> {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
interface ArgTypes {
|
|
22
|
-
|
|
22
|
+
preventCloseOnBlur: boolean
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function popup(e: MouseEvent) {
|
|
25
|
+
function popup(e: MouseEvent, preventCloseOnBlur: boolean) {
|
|
26
26
|
const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
|
|
27
27
|
|
|
28
28
|
OxPrompt.open({
|
|
29
29
|
title: 'Are you sure ?',
|
|
30
30
|
text: 'Are you sure to exit this page ?',
|
|
31
31
|
confirmButton: { text: 'Confirm' },
|
|
32
|
-
cancelButton: { text: 'Cancel' }
|
|
32
|
+
cancelButton: { text: 'Cancel' },
|
|
33
|
+
preventCloseOnBlur
|
|
33
34
|
})
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
const Template: Story<ArgTypes> = ({
|
|
37
|
+
const Template: Story<ArgTypes> = ({ preventCloseOnBlur }: ArgTypes) => html`
|
|
37
38
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
38
39
|
|
|
39
40
|
<link href="/themes/light.css" rel="stylesheet" />
|
|
@@ -68,14 +69,12 @@ const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
|
|
|
68
69
|
}
|
|
69
70
|
</style>
|
|
70
71
|
|
|
71
|
-
<
|
|
72
|
-
document.body.classList.add('${theme}')
|
|
73
|
-
</script>
|
|
74
|
-
|
|
75
|
-
<div id="place" @click=${(e: MouseEvent) => popup(e)} class="md-typescale-display-medium">
|
|
72
|
+
<div id="place" @click=${(e: MouseEvent) => popup(e, preventCloseOnBlur)} class="md-typescale-display-medium">
|
|
76
73
|
Click this to prompt image
|
|
77
74
|
</div>
|
|
78
75
|
`
|
|
79
76
|
|
|
80
77
|
export const Regular = Template.bind({})
|
|
81
|
-
Regular.args = {
|
|
78
|
+
Regular.args = {
|
|
79
|
+
preventCloseOnBlur: true
|
|
80
|
+
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { html, TemplateResult } from 'lit'
|
|
2
2
|
|
|
3
3
|
import { OxPrompt } from '../src/ox-prompt'
|
|
4
|
-
import { ifDefined } from 'lit/directives/if-defined.js'
|
|
5
4
|
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
|
|
6
5
|
|
|
7
6
|
export default {
|
|
8
7
|
title: 'OxPrompt',
|
|
9
8
|
component: 'ox-prompt',
|
|
10
9
|
argTypes: {
|
|
11
|
-
|
|
10
|
+
preventCloseOnBlur: { control: 'boolean' }
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
|
|
@@ -19,10 +18,10 @@ interface Story<T> {
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
interface ArgTypes {
|
|
22
|
-
|
|
21
|
+
preventCloseOnBlur: boolean
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
async function popup(e: MouseEvent) {
|
|
24
|
+
async function popup(e: MouseEvent, preventCloseOnBlur: boolean) {
|
|
26
25
|
const noImage = new URL('/assets/images/no-image.png', import.meta.url).href
|
|
27
26
|
|
|
28
27
|
await OxPrompt.open({
|
|
@@ -32,11 +31,12 @@ async function popup(e: MouseEvent) {
|
|
|
32
31
|
footer: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
|
33
32
|
template: html`<img src=${noImage} />`,
|
|
34
33
|
confirmButton: { text: 'Confirm' },
|
|
35
|
-
cancelButton: { text: 'Cancel' }
|
|
34
|
+
cancelButton: { text: 'Cancel' },
|
|
35
|
+
preventCloseOnBlur
|
|
36
36
|
})
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
const Template: Story<ArgTypes> = ({
|
|
39
|
+
const Template: Story<ArgTypes> = ({ preventCloseOnBlur }: ArgTypes) => html`
|
|
40
40
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
41
41
|
|
|
42
42
|
<link href="/themes/light.css" rel="stylesheet" />
|
|
@@ -71,11 +71,7 @@ const Template: Story<ArgTypes> = ({ theme = 'light' }: ArgTypes) => html`
|
|
|
71
71
|
}
|
|
72
72
|
</style>
|
|
73
73
|
|
|
74
|
-
<
|
|
75
|
-
document.body.classList.add('${theme}')
|
|
76
|
-
</script>
|
|
77
|
-
|
|
78
|
-
<div id="place" @click=${(e: MouseEvent) => popup(e)} class="md-typescale-display-medium">
|
|
74
|
+
<div id="place" @click=${(e: MouseEvent) => popup(e, preventCloseOnBlur)} class="md-typescale-display-medium">
|
|
79
75
|
Click this to prompt image
|
|
80
76
|
</div>
|
|
81
77
|
`
|
|
@@ -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
|
+
}
|
package/themes/dark.css
CHANGED
|
@@ -48,104 +48,4 @@
|
|
|
48
48
|
--md-sys-color-surface-container: rgb(30 31 37);
|
|
49
49
|
--md-sys-color-surface-container-high: rgb(41 42 47);
|
|
50
50
|
--md-sys-color-surface-container-highest: rgb(51 52 58);
|
|
51
|
-
|
|
52
|
-
/* primary palette */
|
|
53
|
-
--md-ref-palette-primary0:#000000;
|
|
54
|
-
--md-ref-palette-primary5:#000E32;
|
|
55
|
-
--md-ref-palette-primary10:#001848;
|
|
56
|
-
--md-ref-palette-primary15:#00215E;
|
|
57
|
-
--md-ref-palette-primary20:#002B74;
|
|
58
|
-
--md-ref-palette-primary25:#002B74;
|
|
59
|
-
--md-ref-palette-primary30:#0040A2;
|
|
60
|
-
--md-ref-palette-primary35:#002B74;
|
|
61
|
-
--md-ref-palette-primary40:#1957CA;
|
|
62
|
-
--md-ref-palette-primary50:#3E71E5;
|
|
63
|
-
--md-ref-palette-primary60:#5C8BFF;
|
|
64
|
-
--md-ref-palette-primary70:#89A9FF;
|
|
65
|
-
--md-ref-palette-primary80:#B2C5FF;
|
|
66
|
-
--md-ref-palette-primary90:#DAE2FF;
|
|
67
|
-
--md-ref-palette-primary95:#EEF0FF;
|
|
68
|
-
--md-ref-palette-primary98:#FAF8FF;
|
|
69
|
-
--md-ref-palette-primary99:#FEFBFF;
|
|
70
|
-
--md-ref-palette-primary100:#FFFFFF;
|
|
71
|
-
|
|
72
|
-
/* secondary palette */
|
|
73
|
-
--md-ref-palette-secondary0:#000000;
|
|
74
|
-
--md-ref-palette-secondary5:#00131D;
|
|
75
|
-
--md-ref-palette-secondary10:#001E2C;
|
|
76
|
-
--md-ref-palette-secondary15:#00293A;
|
|
77
|
-
--md-ref-palette-secondary20:#003549;
|
|
78
|
-
--md-ref-palette-secondary25:#004058;
|
|
79
|
-
--md-ref-palette-secondary30:#004C68;
|
|
80
|
-
--md-ref-palette-secondary35:#005978;
|
|
81
|
-
--md-ref-palette-secondary40:#006689;
|
|
82
|
-
--md-ref-palette-secondary50:#0080AC;
|
|
83
|
-
--md-ref-palette-secondary60:#009BCF;
|
|
84
|
-
--md-ref-palette-secondary70:#00B8F4;
|
|
85
|
-
--md-ref-palette-secondary80:#79D1FF;
|
|
86
|
-
--md-ref-palette-secondary90:#C3E8FF;
|
|
87
|
-
--md-ref-palette-secondary95:#E3F3FF;
|
|
88
|
-
--md-ref-palette-secondary98:#F5FAFF;
|
|
89
|
-
--md-ref-palette-secondary99:#FBFCFF;
|
|
90
|
-
--md-ref-palette-secondary100:#FFFFFF;
|
|
91
|
-
|
|
92
|
-
/* tertiary palette */
|
|
93
|
-
--md-ref-palette-tertiary0:#000000;
|
|
94
|
-
--md-ref-palette-tertiary5:#00150A;
|
|
95
|
-
--md-ref-palette-tertiary10:#002113;
|
|
96
|
-
--md-ref-palette-tertiary15:#002C1B;
|
|
97
|
-
--md-ref-palette-tertiary20:#003823;
|
|
98
|
-
--md-ref-palette-tertiary25:#00452B;
|
|
99
|
-
--md-ref-palette-tertiary30:#005234;
|
|
100
|
-
--md-ref-palette-tertiary35:#005F3E;
|
|
101
|
-
--md-ref-palette-tertiary40:#006C47;
|
|
102
|
-
--md-ref-palette-tertiary50:#00885A;
|
|
103
|
-
--md-ref-palette-tertiary60:#31A372;
|
|
104
|
-
--md-ref-palette-tertiary70:#51BF8B;
|
|
105
|
-
--md-ref-palette-tertiary80:#6EDBA5;
|
|
106
|
-
--md-ref-palette-tertiary90:#A2F4C7;
|
|
107
|
-
--md-ref-palette-tertiary95:#BFFFD9;
|
|
108
|
-
--md-ref-palette-tertiary98:#E8FFEF;
|
|
109
|
-
--md-ref-palette-tertiary99:#F4FFF5;
|
|
110
|
-
--md-ref-palette-tertiary100:#FFFFFF;
|
|
111
|
-
|
|
112
|
-
/* error palette */
|
|
113
|
-
--md-ref-palette-error0:#000000;
|
|
114
|
-
--md-ref-palette-error5:#2d0102;
|
|
115
|
-
--md-ref-palette-error10:#410304;
|
|
116
|
-
--md-ref-palette-error15:#540507;
|
|
117
|
-
--md-ref-palette-error20:#68070a;
|
|
118
|
-
--md-ref-palette-error25:#7d0b0e;
|
|
119
|
-
--md-ref-palette-error30:#930f14;
|
|
120
|
-
--md-ref-palette-error35:#a91319;
|
|
121
|
-
--md-ref-palette-error40:#bc1620;
|
|
122
|
-
--md-ref-palette-error50:#e03236;
|
|
123
|
-
--md-ref-palette-error60:#ff5450;
|
|
124
|
-
--md-ref-palette-error70:#ff8982;
|
|
125
|
-
--md-ref-palette-error80:#ffb3ad;
|
|
126
|
-
--md-ref-palette-error90:#ffdad7;
|
|
127
|
-
--md-ref-palette-error95:#ffedeb;
|
|
128
|
-
--md-ref-palette-error98:#fff8f7;
|
|
129
|
-
--md-ref-palette-error99:#fffbff;
|
|
130
|
-
--md-ref-palette-error100:#FFFFFF;
|
|
131
|
-
|
|
132
|
-
/* neutral palette */
|
|
133
|
-
--md-ref-palette-neutral0:#000000;
|
|
134
|
-
--md-ref-palette-neutral5:#111111;
|
|
135
|
-
--md-ref-palette-neutral10:#1C1C1C;
|
|
136
|
-
--md-ref-palette-neutral15:#262626;
|
|
137
|
-
--md-ref-palette-neutral20:#313131;
|
|
138
|
-
--md-ref-palette-neutral25:#3C3C3C;
|
|
139
|
-
--md-ref-palette-neutral30:#474747;
|
|
140
|
-
--md-ref-palette-neutral35:#535353;
|
|
141
|
-
--md-ref-palette-neutral40:#5F5F5F;
|
|
142
|
-
--md-ref-palette-neutral50:#787878;
|
|
143
|
-
--md-ref-palette-neutral60:#929292;
|
|
144
|
-
--md-ref-palette-neutral70:#ACACAC;
|
|
145
|
-
--md-ref-palette-neutral80:#C8C8C8;
|
|
146
|
-
--md-ref-palette-neutral90:#E4E4E4;
|
|
147
|
-
--md-ref-palette-neutral95:#F0F0F0;
|
|
148
|
-
--md-ref-palette-neutral98:#F9F9F9;
|
|
149
|
-
--md-ref-palette-neutral99:#FEFEFE;
|
|
150
|
-
--md-ref-palette-neutral100:#FFFFFF;
|
|
151
51
|
}
|
package/themes/grist-theme.css
CHANGED
|
@@ -7,19 +7,20 @@ body {
|
|
|
7
7
|
--grist-background-color: transparent;
|
|
8
8
|
--grist-title-margin: 0 0 0 10px;
|
|
9
9
|
--grist-title-border: none;
|
|
10
|
-
--grist-title-font: var(--md-sys-typescale-label-large-weight
|
|
10
|
+
--grist-title-font: var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)) 1.1em
|
|
11
|
+
var(--theme-font, 'Roboto');
|
|
11
12
|
--grist-title-color: var(--md-sys-color-on-surface);
|
|
12
13
|
--grist-title-icon-color: var(--md-sys-color-on-surface-variant);
|
|
13
14
|
--grist-title-icon-margin: 0 3px 2px 0;
|
|
14
|
-
--grist-title-icon-size: var(--
|
|
15
|
+
--grist-title-icon-size: var(--md-sys-typescale-label-large-size, 0.875rem);
|
|
15
16
|
--grist-title-with-grid-padding: 0;
|
|
16
17
|
|
|
17
|
-
--grist-object-editor-font: normal 1em var(--theme-font);
|
|
18
|
+
--grist-object-editor-font: normal 1em var(--theme-font, 'Roboto');
|
|
18
19
|
--grist-object-editor-color: var(--md-sys-color-on-surface);
|
|
19
20
|
|
|
20
21
|
--grist-input-progress-border: 1px solid rgba(255, 255, 255, 0.5);
|
|
21
22
|
--grist-input-progress-background: rgba(121, 110, 110, 0.1);
|
|
22
|
-
--grist-input-progress-bar-background: var(--md-
|
|
23
|
+
--grist-input-progress-bar-background: var(--md-sys-color-primary-fixed-dim);
|
|
23
24
|
--grist-input-progress-bar-color: var(--md-sys-color-on-surface-variant);
|
|
24
25
|
|
|
25
26
|
--grid-header-background-color: var(--md-sys-color-surface-container-low);
|
|
@@ -31,9 +32,10 @@ body {
|
|
|
31
32
|
--grid-header-splitter-border: var(--grid-container-border-color);
|
|
32
33
|
--grid-header-splitter-border-hover: 1px solid var(--md-sys-color-inverse-primary);
|
|
33
34
|
--grid-header-color: var(--md-sys-color-primary);
|
|
34
|
-
--grid-header-font: var(--md-sys-typescale-label-large-weight
|
|
35
|
+
--grid-header-font: var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500))
|
|
36
|
+
var(--fontsize-small) var(--theme-font, 'Roboto');
|
|
35
37
|
--grid-header-filter-title-color: var(--md-sys-color-on-surface);
|
|
36
|
-
--grid-header-filter-title-font: normal 12px var(--theme-font);
|
|
38
|
+
--grid-header-filter-title-font: normal 12px var(--theme-font, 'Roboto');
|
|
37
39
|
--grid-header-filter-title-icon-color: var(--md-sys-color-on-surface-variant);
|
|
38
40
|
|
|
39
41
|
--grid-body-bottom-border: var(--grid-header-bottom-border);
|
|
@@ -41,22 +43,22 @@ body {
|
|
|
41
43
|
--grid-gutter-padding: var(--spacing-tiny) 0;
|
|
42
44
|
|
|
43
45
|
--grid-record-background-color: var(--md-sys-color-surface-container-lowest);
|
|
44
|
-
--grid-record-odd-background-color: var(--md-sys-color-
|
|
46
|
+
--grid-record-odd-background-color: var(--md-sys-color-surface-container-low);
|
|
45
47
|
--grid-record-padding: var(--spacing-small) var(--spacing-medium);
|
|
46
48
|
--grid-record-color: var(--md-sys-color-on-surface-variant);
|
|
47
49
|
--grid-record-color-hover: var(--md-sys-color-primary);
|
|
48
|
-
--grid-record-wide-fontsize: var(--md-sys-typescale-label-
|
|
50
|
+
--grid-record-wide-fontsize: var(--md-sys-typescale-label-large-size, 0.875rem);
|
|
49
51
|
--grid-record-selected-background-color: var(--md-sys-color-primary-container);
|
|
50
|
-
--grid-record-selected-color: var(--md-sys-color-primary);
|
|
52
|
+
--grid-record-selected-color: var(--md-sys-color-on-primary-container);
|
|
51
53
|
--grid-record-focused-border: 1px solid var(--md-sys-color-outline-variant);
|
|
52
54
|
--grid-record-focused-cell-background-color: var(--md-sys-color-secondary-container);
|
|
53
55
|
--grid-record-focused-cell-border: 1px dashed var(--md-sys-color-outline);
|
|
54
56
|
--grid-record-focused-box-shadow: 0px 2px 0px 0px rgb(0 0 0 / 10%);
|
|
55
|
-
--grid-record-emphasized-background-color: var(--md-sys-color-
|
|
56
|
-
--grid-record-emphasized-color: var(--md-sys-color-
|
|
57
|
+
--grid-record-emphasized-background-color: var(--md-sys-color-secondary-fixed-dim);
|
|
58
|
+
--grid-record-emphasized-color: var(--md-sys-color-on-secondary-fixed-variant);
|
|
57
59
|
--grid-record-editing-background-color: var(--md-sys-color-inverse-primary);
|
|
58
60
|
--grid-record-editing-border: 1px dashed rgba(var(--md-sys-color-primary-rgb), 0.4);
|
|
59
|
-
--grid-record-fontsize: var(--md-sys-typescale-label-
|
|
61
|
+
--grid-record-fontsize: var(--md-sys-typescale-label-large-size, 0.875rem);
|
|
60
62
|
--grid-record-border-bottom: var(--grid-container-border-color);
|
|
61
63
|
|
|
62
64
|
--grid-record-dirty-border-top: 24px solid rgba(var(--md-sys-color-primary-rgb), 0.6);
|
|
@@ -66,23 +68,23 @@ body {
|
|
|
66
68
|
--grid-record-dirty-color: var(--md-sys-color-surface);
|
|
67
69
|
|
|
68
70
|
--grid-footer-background-color: var(--md-sys-color-surface-container-low);
|
|
69
|
-
--grid-footer-font-size: var(--md-sys-typescale-label-
|
|
71
|
+
--grid-footer-font-size: var(--md-sys-typescale-label-large-size, 0.875rem);
|
|
70
72
|
--grid-footer-color: var(--md-sys-color-primary);
|
|
71
|
-
--grid-footer-limit-color: var(--md-ref-palette-neutral40);
|
|
72
|
-
--grid-footer-inactive-color: var(--md-ref-palette-neutral40);
|
|
73
|
+
--grid-footer-limit-color: var(--md-ref-palette-neutral40, #5f5f5f);
|
|
74
|
+
--grid-footer-inactive-color: var(--md-ref-palette-neutral40, #5f5f5f);
|
|
73
75
|
--grid-footer-padding: var(--spacing-small) var(--spacing-medium);
|
|
74
76
|
|
|
75
|
-
--data-list-background-color: var(--md-sys-color-surface-container);
|
|
77
|
+
--data-list-background-color: var(--md-sys-color-surface-container-lowest);
|
|
76
78
|
--data-list-item-margin: var(--spacing-medium);
|
|
77
79
|
--data-list-item-padding: var(--spacing-medium) var(--spacing-large);
|
|
78
80
|
--data-list-item-border-bottom: var(--grid-container-border-color);
|
|
79
|
-
--data-list-item-name-font:
|
|
81
|
+
--data-list-item-name-font: bold 1.1em var(--theme-font, 'Roboto');
|
|
80
82
|
--data-list-item-name-color: var(--md-sys-color-secondary);
|
|
81
|
-
--data-list-item-disc-font: normal 0.9em
|
|
82
|
-
--data-list-item-disc-color: var(--md-sys-color-on-
|
|
83
|
-
--data-list-item-etc-label-font:
|
|
84
|
-
--data-list-item-etc-font: normal 0.
|
|
85
|
-
--data-list-item-etc-color: var(--md-ref-palette-neutral50);
|
|
83
|
+
--data-list-item-disc-font: normal 0.9em var(--theme-font, 'Roboto');
|
|
84
|
+
--data-list-item-disc-color: var(--md-sys-color-on-tertiary-container);
|
|
85
|
+
--data-list-item-etc-label-font: bold 1em/1em var(--theme-font, 'Roboto');
|
|
86
|
+
--data-list-item-etc-font: normal 0.9em/1em var(--theme-font, 'Roboto');
|
|
87
|
+
--data-list-item-etc-color: var(--md-ref-palette-neutral50, #787878);
|
|
86
88
|
--data-list-item-icon-font: normal 1em/1em;
|
|
87
89
|
--data-list-item-icon-color: var(--md-sys-color-on-secondary);
|
|
88
90
|
--data-list-selected-background-color: var(--grid-record-selected-background-color);
|
|
@@ -92,24 +94,24 @@ body {
|
|
|
92
94
|
--data-list-fab-shadow: var(--box-shadow);
|
|
93
95
|
|
|
94
96
|
--data-card-background-color: var(--md-sys-color-surface-container);
|
|
95
|
-
--data-card-record-card-background-color: var(--md-sys-color-surface);
|
|
97
|
+
--data-card-record-card-background-color: var(--md-sys-color-surface-container-lowest);
|
|
96
98
|
--data-card-record-card-border: var(--grid-container-border-color);
|
|
97
99
|
--data-card-record-card-border-hover: 1px solid var(--md-sys-color-primary);
|
|
98
100
|
--data-card-record-card-boxshadow-hover: 1px 1px 2px 1px rgba(0, 0, 0, 0.15);
|
|
99
101
|
--data-card-record-card-selected-border: 1px solid var(--md-sys-color-primary);
|
|
100
|
-
--data-card-record-card-border-radius: var(--
|
|
101
|
-
--data-card-item-margin: var(--
|
|
102
|
-
--data-card-item-padding: var(--
|
|
102
|
+
--data-card-record-card-border-radius: var(--md-sys-shape-corner-small);
|
|
103
|
+
--data-card-item-margin: var(--spacing-medium);
|
|
104
|
+
--data-card-item-padding: var(--spacing-medium) var(--spacing-large);
|
|
103
105
|
--data-card-item-border-bottom: var(--grid-container-border-color);
|
|
104
|
-
--data-card-item-name-font: bold 1.
|
|
105
|
-
--data-card-item-name-color: var(--md-sys-color-
|
|
106
|
-
--data-card-item-name-label-font: normal 0.65em/0.8em var(--theme-font);
|
|
107
|
-
--data-card-item-name-label-color:
|
|
108
|
-
--data-card-item-disc-font: normal 0.9em
|
|
109
|
-
--data-card-item-disc-color: var(--md-sys-color-
|
|
110
|
-
--data-card-item-etc-label-font: normal 1em/1em var(--theme-font);
|
|
111
|
-
--data-card-item-etc-font:
|
|
112
|
-
--data-card-item-etc-color: var(--md-
|
|
106
|
+
--data-card-item-name-font: bold 1.1em var(--theme-font, 'Roboto');
|
|
107
|
+
--data-card-item-name-color: var(--md-sys-color-secondary);
|
|
108
|
+
--data-card-item-name-label-font: normal 0.65em/0.8em var(--theme-font, 'Roboto');
|
|
109
|
+
--data-card-item-name-label-color: var(--md-sys-color-secondary);
|
|
110
|
+
--data-card-item-disc-font: normal 0.9em var(--theme-font, 'Roboto');
|
|
111
|
+
--data-card-item-disc-color: var(--md-sys-color-tertiary);
|
|
112
|
+
--data-card-item-etc-label-font: normal 1em/1em var(--theme-font, 'Roboto');
|
|
113
|
+
--data-card-item-etc-font: normal 0.9em/1em var(--theme-font, 'Roboto');
|
|
114
|
+
--data-card-item-etc-color: var(--md-ref-palette-neutral50, #787878);
|
|
113
115
|
--data-card-item-icon-font: normal 1em/1em;
|
|
114
116
|
--data-card-item-icon-color: var(--md-sys-color-on-secondary);
|
|
115
117
|
--data-card-item-btn-border: var(--grid-container-border-color);
|
|
@@ -127,17 +129,18 @@ body {
|
|
|
127
129
|
--record-view-background-color: var(--md-sys-color-surface-container);
|
|
128
130
|
--record-view-gap: var(--spacing-small) 0;
|
|
129
131
|
--record-view-padding: var(--spacing-medium);
|
|
130
|
-
--record-view-label-font: var(--md-sys-typescale-label-large-weight
|
|
132
|
+
--record-view-label-font: var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)) 15px
|
|
133
|
+
var(--theme-font, 'Roboto');
|
|
131
134
|
--record-view-label-color: var(--md-sys-color-secondary);
|
|
132
135
|
--record-view-label-icon-size: var(--fontsize-small);
|
|
133
|
-
--record-view-font: normal 15px var(--theme-font);
|
|
136
|
+
--record-view-font: normal 15px var(--theme-font, 'Roboto');
|
|
134
137
|
--record-view-color: var(--md-sys-color-secondary);
|
|
135
138
|
--record-view-focus-color: var(--md-sys-color-primary);
|
|
136
139
|
--record-view-border-bottom: var(--grid-container-border-color);
|
|
137
140
|
--record-view-edit-border-bottom: 2px solid var(--md-sys-color-primary);
|
|
138
141
|
--record-view-item-padding: var(--spacing-medium);
|
|
139
142
|
|
|
140
|
-
--record-view-footer-background: var(--md-ref-palette-neutral50);
|
|
143
|
+
--record-view-footer-background: var(--md-ref-palette-neutral50, #787878);
|
|
141
144
|
--record-view-footer-button-border: var(--grid-container-border-color);
|
|
142
145
|
--record-view-footer-button-border-width: 0 0 0 1px;
|
|
143
146
|
--record-view-footer-button-font: 17px;
|
|
@@ -150,8 +153,9 @@ body {
|
|
|
150
153
|
|
|
151
154
|
@media only screen and (max-width: 460px) {
|
|
152
155
|
body {
|
|
153
|
-
--record-view-label-font: var(--md-sys-typescale-label-large-weight
|
|
154
|
-
|
|
156
|
+
--record-view-label-font: var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)) 15px/32px
|
|
157
|
+
var(--theme-font, 'Roboto');
|
|
158
|
+
--record-view-font: normal 15px/32px var(--theme-font, 'Roboto');
|
|
155
159
|
--ox-grist-padding: 0;
|
|
156
160
|
}
|
|
157
161
|
}
|