@operato/styles 2.0.0-alpha.0 → 2.0.0-alpha.100
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/main.js +3 -0
- package/.storybook/server.mjs +8 -0
- package/CHANGELOG.md +172 -0
- package/dist/src/button-container-styles.js +76 -7
- package/dist/src/button-container-styles.js.map +1 -1
- package/dist/src/common-grist-styles.js +36 -13
- package/dist/src/common-grist-styles.js.map +1 -1
- package/dist/src/common-header-styles.js +97 -96
- package/dist/src/common-header-styles.js.map +1 -1
- package/dist/stories/button-container-styles.stories.d.ts +17 -0
- package/dist/stories/button-container-styles.stories.js +54 -0
- package/dist/stories/button-container-styles.stories.js.map +1 -0
- package/dist/stories/common-header-styles-actions.stories.d.ts +22 -0
- package/dist/stories/common-header-styles-actions.stories.js +83 -0
- package/dist/stories/common-header-styles-actions.stories.js.map +1 -0
- package/dist/stories/common-header-styles-pure.stories.d.ts +21 -0
- package/dist/stories/common-header-styles-pure.stories.js +60 -0
- package/dist/stories/common-header-styles-pure.stories.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -5
- package/src/button-container-styles.ts +76 -7
- package/src/common-grist-styles.ts +36 -13
- package/src/common-header-styles.ts +97 -96
- package/stories/button-container-styles.stories.ts +67 -0
- package/stories/common-header-styles-actions.stories.ts +97 -0
- package/stories/common-header-styles-pure.stories.ts +73 -0
- package/themes/app-theme.css +161 -0
- package/themes/form-theme.css +75 -0
@@ -0,0 +1,161 @@
|
|
1
|
+
body {
|
2
|
+
/***********************************************
|
3
|
+
* 버전: 2.2024-1
|
4
|
+
* 작성일: 2024-04-14
|
5
|
+
* 작성자: Hoppaang
|
6
|
+
* color속성은 앱별 차별성이 크므로 가능하면 62라인 'app layout style'이후부터 수정/복사 등을 권장합니다
|
7
|
+
*
|
8
|
+
* 주요 변경 사항:
|
9
|
+
* - icon style 변수 추가
|
10
|
+
* - material design component themes의 변수명 mdc..에서 md로 교정
|
11
|
+
* - button style에 변수 추가 및 기 속성값 변경
|
12
|
+
|
13
|
+
***********************************************/
|
14
|
+
|
15
|
+
/* theme color */
|
16
|
+
--primary-color-rgb: 130, 105, 96;
|
17
|
+
--primary-color: rgb(var(--primary-color-rgb));
|
18
|
+
--secondary-color-rgb: 78, 78, 90;
|
19
|
+
--secondary-color: rgb(var(--secondary-color-rgb));
|
20
|
+
--focus-color: var(--theme-white-color);
|
21
|
+
--primary-background-color: var(--secondary-color);
|
22
|
+
--secondary-background-color: #283644;
|
23
|
+
--main-section-background-color: #f5f2ee;
|
24
|
+
--theme-white-color: #fff;
|
25
|
+
--theme-black-color: rgba(0, 0, 0, 0.9);
|
26
|
+
|
27
|
+
--focus-background-color: var(--primary-color);
|
28
|
+
--primary-text-color: #3c3938;
|
29
|
+
--secondary-text-color: var(--primary-color);
|
30
|
+
|
31
|
+
--opacity-dark-color: rgba(0, 0, 0, 0.4);
|
32
|
+
--opacity-light-color: rgba(255, 255, 255, 0.8);
|
33
|
+
|
34
|
+
/* status color */
|
35
|
+
--status-success-color: #35a24a;
|
36
|
+
--status-warning-color: #ee8d03;
|
37
|
+
--status-danger-color: #d14946;
|
38
|
+
--status-info-color: #398ace;
|
39
|
+
|
40
|
+
/* common style */
|
41
|
+
--border-radius: 4px;
|
42
|
+
--border-dark-color: 1px solid rgba(0, 0, 0, 0.15);
|
43
|
+
--border-light-color: 1px solid rgba(255, 255, 255, 0.3);
|
44
|
+
|
45
|
+
--box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.1);
|
46
|
+
|
47
|
+
--theme-font: 'Noto', Helvetica;
|
48
|
+
|
49
|
+
--margin-default: 9px;
|
50
|
+
--margin-narrow: 4px;
|
51
|
+
--margin-wide: 15px;
|
52
|
+
--padding-default: var(--margin-default);
|
53
|
+
--padding-narrow: var(--margin-narrow);
|
54
|
+
--padding-wide: var(--margin-wide);
|
55
|
+
|
56
|
+
--scrollbar-thumb-color: rgba(57, 78, 100, 0.5);
|
57
|
+
--scrollbar-thumb-hover-color: var(--primary-color);
|
58
|
+
|
59
|
+
--fontsize-default: 14px;
|
60
|
+
--fontsize-small: 13px;
|
61
|
+
--fontsize-large: 16px;
|
62
|
+
|
63
|
+
/* app layout style */
|
64
|
+
--app-grid-template-area: 'header header header' 'nav main aside' 'nav footer aside';
|
65
|
+
|
66
|
+
/* title & description style */
|
67
|
+
--title-margin: var(--margin-narrow) 0;
|
68
|
+
--title-font: bold 24px var(--theme-font);
|
69
|
+
--title-text-color: var(--secondary-color);
|
70
|
+
--title-font-mobile: bold 20px var(--theme-font);
|
71
|
+
|
72
|
+
--page-description-margin: var(--margin-narrow) 0 var(--margin-wide) 0;
|
73
|
+
--page-description-font: normal var(--fontsize-default) / 1.2rem var(--theme-font);
|
74
|
+
--page-description-color: var(--secondary-text-color);
|
75
|
+
|
76
|
+
--subtitle-padding: 12px 5px 3px 5px;
|
77
|
+
--subtitle-font: bold 18px var(--theme-font);
|
78
|
+
--subtitle-text-color: var(--primary-color);
|
79
|
+
--subtitle-border-bottom: 1px solid var(--primary-color);
|
80
|
+
|
81
|
+
/* icon style */
|
82
|
+
--icon-tiny-size: 24px;
|
83
|
+
--icon-default-size: 36px;
|
84
|
+
--icon-big-size: 48px;
|
85
|
+
--icon-default-color: var(--theme-white-color);
|
86
|
+
--iconbtn-size: 18px; /* added by Hoppaang for new style ver */
|
87
|
+
|
88
|
+
/* material design component themes */
|
89
|
+
--md-theme-on-primary: var(--theme-white-color);
|
90
|
+
--md-theme-primary: var(--secondary-text-color);
|
91
|
+
--md-theme-on-secondary: var(--theme-white-color);
|
92
|
+
--md-theme-secondary: var(--primary-color);
|
93
|
+
--md-button-outline-color: var(--primary-color);
|
94
|
+
--md-danger-button-primary-color: var(--status-danger-color);
|
95
|
+
--md-danger-button-outline-color: var(--status-danger-color);
|
96
|
+
--md-button-outline-width: 1px;
|
97
|
+
|
98
|
+
/* button style */
|
99
|
+
--button-background-color: #fafbfc;
|
100
|
+
--button-background-focus-color: var(--primary-color);
|
101
|
+
--button-border: var(--border-dark-color);
|
102
|
+
--button-border-radius: var(--border-radius);
|
103
|
+
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
104
|
+
--button-padding: calc(var(--padding-narrow) * 1.5) var(--padding-wide); /* Modified by Hoppaang for new style ver */
|
105
|
+
--button-color: var(--secondary-color);
|
106
|
+
--button-font: 600 var(--fontsize-default) var(--theme-font); /* Modified by Hoppaang for new style ver */
|
107
|
+
--button-text-transform: capitalize;
|
108
|
+
--button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
|
109
|
+
--button-activ-border: 1px solid var(--primary-color); /* added by Hoppaang for new style ver */
|
110
|
+
--button-activ-background-color: var(--primary-color); /* added by Hoppaang for new style ver */
|
111
|
+
--button-activ-color: var(--theme-white-color); /* added by Hoppaang for new style ver */
|
112
|
+
--iconbtn-padding: var(--padding-narrow); /* added by Hoppaang for new style ver */
|
113
|
+
|
114
|
+
--button-primary-background-color: var(--primary-color);
|
115
|
+
--button-primary-active-background-color: var(--status-success-color);
|
116
|
+
--button-primary-padding: var(--margin-default) var(--margin-wide);
|
117
|
+
--button-primary-color: var(--theme-white-color);
|
118
|
+
--button-primary-font: bold 16px var(--theme-font);
|
119
|
+
|
120
|
+
/* table style */
|
121
|
+
--th-padding: var(--padding-default);
|
122
|
+
--th-border-top: 2px solid var(--secondary-color);
|
123
|
+
--th-text-transform: capitalize;
|
124
|
+
--th-font: bold var(--fontsize-small) var(--theme-font);
|
125
|
+
--th-color: rgba(var(--secondary-color-rgb), 0.8);
|
126
|
+
|
127
|
+
--tr-background-color: var(--theme-white-color);
|
128
|
+
--tr-background-odd-color: rgba(255, 255, 255, 0.4);
|
129
|
+
--tr-background-hover-color: #e1f5fe;
|
130
|
+
--td-border-line: 1px solid rgba(0, 0, 0, 0.05);
|
131
|
+
--td-border-bottom: 1px solid rgba(0, 0, 0, 0.09);
|
132
|
+
--td-padding: var(--padding-default);
|
133
|
+
--td-font: normal 13px var(--theme-font);
|
134
|
+
--td-color: var(--secondary-color);
|
135
|
+
|
136
|
+
--label-cell-background-color: #f6f6f6; /* th or td common background color */
|
137
|
+
|
138
|
+
/* form style */
|
139
|
+
--label-font: normal var(--fontsize-default) var(--theme-font);
|
140
|
+
--label-color: var(--secondary-color);
|
141
|
+
--label-text-transform: capitalize;
|
142
|
+
--input-margin: var(--margin-narrow) 0;
|
143
|
+
--input-padding: var(--padding-default);
|
144
|
+
--input-min-width: 200px;
|
145
|
+
--input-font: normal var(--fontsize-default) var(--theme-font);
|
146
|
+
--input-hint-font: normal var(--fontsize-small) var(--theme-font);
|
147
|
+
--input-hint-color: #666;
|
148
|
+
--input-container-max-width: 900px;
|
149
|
+
--fieldset-margin: var(--padding-wide) 0;
|
150
|
+
--fieldset-padding: 0 var(--padding-wide) var(--padding-wide) var(--padding-wide);
|
151
|
+
--legend-padding: var(--padding-default) 0;
|
152
|
+
--legend-color: var(--secondary-text-color);
|
153
|
+
--legend-font: bold 16px var(--theme-font);
|
154
|
+
}
|
155
|
+
|
156
|
+
@media only screen and (max-width: 460px) {
|
157
|
+
body {
|
158
|
+
/* subtitle style */
|
159
|
+
--subtitle-margin: 0;
|
160
|
+
}
|
161
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
body {
|
2
|
+
--form-border: none;
|
3
|
+
--form-margin: var(--margin-wide);
|
4
|
+
--form-max-width: 700px;
|
5
|
+
--form-multi-column-max-width: 100%;
|
6
|
+
--form-sublabel-font: normal 13px var(--theme-font);
|
7
|
+
--form-sublabel-color: var(--secondary-color);
|
8
|
+
--form-grid-gap: 12px 5px;
|
9
|
+
|
10
|
+
--legend-padding: var(--padding-default) 0;
|
11
|
+
--legend-font: bold 16px var(--theme-font);
|
12
|
+
--legend-text-color: var(--secondary-text-color);
|
13
|
+
--legend-border-bottom: 1px solid var(--primary-color);
|
14
|
+
|
15
|
+
--label-padding: 3px 0;
|
16
|
+
--label-font: normal 14px var(--theme-font);
|
17
|
+
--label-color: var(--secondary-color);
|
18
|
+
|
19
|
+
--input-field-border: 1px solid rgba(0, 0, 0, 0.2);
|
20
|
+
--input-field-border-radius: var(--border-radius);
|
21
|
+
--input-field-padding: 2px 9px;
|
22
|
+
--input-field-font: normal 14px var(--theme-font);
|
23
|
+
|
24
|
+
--search-panel-background-color: rgba(0, 0, 0, 0.1);
|
25
|
+
--search-panel-search-iconbutton-size: var(--icon-default-size);
|
26
|
+
--search-form-icon-color: var(--primary-color);
|
27
|
+
--search-form-box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.15);
|
28
|
+
--search-form-box-padding: 15px 30px 15px 15px;
|
29
|
+
--search-form-background-color: #fff;
|
30
|
+
--search-form-narrow-background-color: var(--primary-color);
|
31
|
+
--search-form-narrow-text-color: #fff;
|
32
|
+
|
33
|
+
--file-uploader-border: 1px solid rgba(0, 0, 0, 0.1);
|
34
|
+
--file-uploader-background-color: var(--main-section-background-color);
|
35
|
+
--file-uploader-font: normal 12px/20px var(--theme-font);
|
36
|
+
--file-uploader-color: var(--secondary-color);
|
37
|
+
--file-uploader-icon-color: var(--primary-color);
|
38
|
+
--file-uploader-candrop-background-color: #fffde9;
|
39
|
+
--file-uploader-label-padding: 3px 20px;
|
40
|
+
--file-uploader-label-border-radius: var(--border-radius);
|
41
|
+
--file-uploader-label-background-color: var(--secondary-color);
|
42
|
+
--file-uploader-label-font: normal 12px var(--theme-font);
|
43
|
+
--file-uploader-label-color: #fff;
|
44
|
+
--file-uploader-li-padding: 2px 5px 0px 5px;
|
45
|
+
--file-uploader-li-border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
|
46
|
+
--file-uploader-li-icon-margin: 2px 0 2px 5px;
|
47
|
+
--file-uploader-li-icon-font: normal 15px var(--mdc-icon-font, 'Material Icons');
|
48
|
+
--file-uploader-li-icon-focus-color: var(--primary-color);
|
49
|
+
}
|
50
|
+
|
51
|
+
@media screen and (max-width: 480px) {
|
52
|
+
body {
|
53
|
+
--label-font: normal 15px var(--theme-font);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
@media (min-width: 481px) and (max-width: 1024px) {
|
58
|
+
body {
|
59
|
+
--form-margin: 15px 0;
|
60
|
+
--form-multi-column-max-width: 100%;
|
61
|
+
--form-container-padding: 0 9px 12px 9px;
|
62
|
+
--label-font: normal 14px var(--theme-font);
|
63
|
+
--input-field-font: normal 15px var(--theme-font);
|
64
|
+
--input-field-padding: 3px 5px;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
@media only screen and (max-width: 925px) {
|
69
|
+
body {
|
70
|
+
--form-margin: 14px 0;
|
71
|
+
--form-multi-column-max-width: 100%;
|
72
|
+
--form-container-padding: 0 9px 12px 9px;
|
73
|
+
--input-field-padding: 3px 5px;
|
74
|
+
}
|
75
|
+
}
|