@g1cloud/bluesea 5.0.0-alpha.75 → 5.0.0-alpha.77

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.
@@ -18,19 +18,44 @@
18
18
  display: inline-flex;
19
19
  align-items: center;
20
20
  justify-content: left;
21
- background-color: white;
21
+ background-color: $color-body-bg;
22
22
  }
23
23
 
24
24
  // input component
25
25
  .bs-input-wrap {
26
- @extend .bs-box-component-wrap
26
+ @extend .bs-box-component-wrap;
27
+
28
+ .suffix,
29
+ .prefix {
30
+ font-size: 0.9em;
31
+ margin-right: 4px;
32
+ margin-left: 4px;
33
+ background-color: $color-gray-200;
34
+ padding: 2px 4px;
35
+ border-radius: 2px;
36
+ line-height: 1;
37
+ white-space: nowrap;
38
+
39
+ &:first-child {
40
+ margin-left: 4px;
41
+ }
42
+
43
+ .font-icon {
44
+ font-size: 0.9em;
45
+ }
46
+
47
+ img {
48
+ width: 0.9em;
49
+ height: 0.9em;
50
+ }
51
+ }
27
52
  }
28
53
 
29
54
  .bs-input-base {
30
55
  @extend .bs-box-component-base;
31
56
  border: 1px solid $color-border;
32
57
  border-radius: 2px;
33
- background-color: $white;
58
+ background-color: $color-body-bg;
34
59
 
35
60
  > input {
36
61
  border: 0;
@@ -42,6 +67,7 @@
42
67
  padding: 0 6px;
43
68
  background-color: transparent;
44
69
  width: 100%;
70
+ color: $color-body-text;
45
71
  }
46
72
 
47
73
  > textarea {
@@ -53,34 +79,12 @@
53
79
  padding: 6px;
54
80
  line-height: 1.4;
55
81
  font-family: sans-serif;
56
- }
57
-
58
- > .suffix,
59
- .prefix {
60
- font-size: 0.9em;
61
- margin-right: 4px;
62
- background-color: $gray-200;
63
- padding: 2px 4px;
64
- border-radius: 2px;
65
- line-height: 1;
66
- white-space: nowrap;
67
-
68
- &:first-child {
69
- margin-left: 4px;
70
- }
71
-
72
- .font-icon {
73
- font-size: 0.9em;
74
- }
75
-
76
- img {
77
- width: 0.9em;
78
- height: 0.9em;
79
- }
82
+ background-color: $color-body-bg;
83
+ color: $color-body-text;
80
84
  }
81
85
 
82
86
  &:hover {
83
- border-color: $black;
87
+ border-color: $color-border-hover;
84
88
  }
85
89
 
86
90
  &:has(:focus) {
@@ -118,11 +122,17 @@
118
122
 
119
123
  &.disabled {
120
124
  > .input-area {
121
- border-color: $gray-400 !important;
122
- background-color: $gray-100 !important;
125
+ border-color: $color-border !important;
126
+ background-color: $color-gray-100 !important;
127
+ color: $color-gray-400 !important;
123
128
 
124
129
  > input {
125
- color: $gray-400 !important;
130
+ color: $color-gray-400 !important;
131
+ background-color: $color-gray-100 !important;
132
+ }
133
+
134
+ > textarea {
135
+ background-color: $color-gray-100 !important;
126
136
  }
127
137
  }
128
138
  }
@@ -151,7 +161,7 @@
151
161
  .bs-calendar,
152
162
  .bs-calendar-range {
153
163
  .extra-dates {
154
- color: $gray-500;
164
+ color: $color-body-text;
155
165
  margin-top: 4px;
156
166
 
157
167
  .extra-date {
@@ -181,7 +191,7 @@
181
191
  // checkbox, radio-button component
182
192
  .bs-checkbox-base {
183
193
  display: inline-block;
184
- color: $color-text;
194
+ color: $color-body-text;
185
195
 
186
196
  input {
187
197
  appearance: none;
@@ -193,14 +203,14 @@
193
203
  font-size: 20px;
194
204
  vertical-align: middle;
195
205
  cursor: pointer;
196
- color: $color-text;
206
+ color: $color-body-text;
197
207
  }
198
208
 
199
209
  &:hover {
200
- color: $black;
210
+ color: $color-gray-500;
201
211
 
202
212
  & ~ label {
203
- color: $black;
213
+ color: $color-gray-500;
204
214
  }
205
215
  }
206
216
 
@@ -236,11 +246,11 @@
236
246
 
237
247
  &.disabled {
238
248
  & input::before {
239
- color: $gray-400 !important;
249
+ color: $color-gray-400 !important;
240
250
  }
241
251
 
242
252
  & input ~ label {
243
- color: $gray-400 !important;
253
+ color: $color-gray-400 !important;
244
254
  }
245
255
  }
246
256
 
@@ -280,10 +290,11 @@
280
290
  @extend .bs-box-component-wrap;
281
291
  position: relative;
282
292
  outline: 0;
283
- background-color: $white;
293
+ background-color: $color-body-bg;
294
+ color: $color-body-text;
284
295
 
285
296
  &:hover > .selected {
286
- border-color: $black;
297
+ border-color: $color-border-hover;
287
298
  }
288
299
 
289
300
  &:focus > .selected {
@@ -335,9 +346,9 @@
335
346
  }
336
347
 
337
348
  &.disabled > .selected {
338
- border-color: $gray-400 !important;
339
- background-color: $gray-100 !important;
340
- color: $gray-400 !important;
349
+ border-color: $color-border !important;
350
+ background-color: $color-gray-100 !important;
351
+ color: $color-gray-500 !important;
341
352
  }
342
353
 
343
354
  .small-progress {
@@ -378,7 +389,13 @@
378
389
 
379
390
  // utility
380
391
  .component-shadow-base {
381
- box-shadow: 2px 2px 8px #aaa;
392
+ box-shadow: 2px 2px 8px rgba(0,0,0,.1);
393
+ }
394
+
395
+ [data-theme="dark"] {
396
+ .component-shadow-base {
397
+ box-shadow: 2px 2px 8px rgba(255,255,255,.1);
398
+ }
382
399
  }
383
400
 
384
401
  .font-icon {
@@ -1,13 +1,9 @@
1
1
  @import "../variable";
2
2
  @import "../component";
3
3
 
4
- $color-header-bg: $primary !default;
5
- $color-header-text: #FFFFFF !default;
6
4
  $color-menu-bg: #464854 !default;
7
5
  $color-menu-border: #2D2E36;
8
-
9
6
  $header-height: 44px !default;
10
-
11
7
  $sidebar-menu-width: 220px !default;
12
8
 
13
9
  header.default-header {
@@ -36,8 +32,8 @@ header.default-header {
36
32
  margin-right: 6px;
37
33
  padding: 2px 4px;
38
34
  border-radius: 4px;
39
- background-color: $white;
40
- color: $primary-600;
35
+ background-color: $color-header-text;
36
+ color: $color-header-bg;
41
37
  font-size: 1em;
42
38
  font-weight: 700;
43
39
  }
@@ -137,7 +133,7 @@ header.default-header {
137
133
  overflow-x: auto;
138
134
 
139
135
  .header-tab {
140
- background-color: $primary-400;
136
+ background-color: $color-header-tab;
141
137
  padding: 0 12px;
142
138
  height: 32px;
143
139
  border-top-left-radius: 4px;
@@ -178,22 +174,28 @@ header.default-header {
178
174
  display: block;
179
175
  }
180
176
 
181
- background-color: lighten($primary-400, 5%);
177
+ opacity: .8;
182
178
  }
183
179
 
184
180
  &.selected {
185
- color: $color-text;
186
- background-color: $white;
181
+ color: $color-header-tab-text;
182
+ background-color: $color-header-tab-selected;
187
183
 
188
184
  &:hover {
189
- background-color: $white;
185
+ background-color: $color-header-tab-selected;
190
186
  }
191
187
  }
192
188
  }
193
189
  }
194
190
  }
195
191
 
192
+ html {
193
+ background-color: $color-body-bg;
194
+ }
195
+
196
196
  .default-body {
197
+ background-color: $color-body-bg;
198
+ color: $color-body-text;
197
199
  margin-top: $header-height;
198
200
  min-height: calc(100vh - $header-height);
199
201
 
@@ -208,8 +210,9 @@ header.default-header {
208
210
  .fixed-header {
209
211
  position: fixed;
210
212
  width: 100%;
211
- border-bottom: 1px solid $gray-400;
212
- background-color: white;
213
+ min-height: 43px;
214
+ border-bottom: 1px solid $color-border;
215
+ background-color: $color-body-bg;
213
216
  padding: 8px 16px;
214
217
  z-index: 10;
215
218
  }
@@ -220,15 +223,15 @@ header.default-header {
220
223
 
221
224
  .colored-bg {
222
225
  flex-grow: 1;
223
- background-color: $primary-100;
226
+ background-color: $color-colored-bg;
224
227
 
225
228
  > .box-style {
226
- background-color: $white;
229
+ background-color: $color-body-bg;
227
230
  border-radius: 10px;
228
231
  }
229
232
 
230
233
  .dashboard-box-style {
231
- background-color: $white;
234
+ background-color: $color-body-bg;
232
235
  padding: 16px;
233
236
  border-radius: 10px;
234
237
 
package/css/layout.scss CHANGED
@@ -103,7 +103,7 @@
103
103
 
104
104
  .bs-layout-form {
105
105
 
106
- border-bottom: 1px solid $gray-200;
106
+ border-bottom: 1px solid $color-border;
107
107
 
108
108
  > div {
109
109
  display: flex;
@@ -113,18 +113,18 @@
113
113
  padding: 8px 16px;
114
114
  width: 12.3076em;
115
115
  line-height: 1.2em;
116
- color: $black;
116
+ color: $color-body-text;
117
117
  }
118
118
 
119
119
  > :not(.title) {
120
120
  padding: 8px;
121
121
  width: 10em;
122
122
  flex-grow: 1;
123
- color: $gray-700;
123
+ color: $color-body-text;
124
124
  }
125
125
 
126
126
  &:nth-child(odd) {
127
- background-color: $gray-100;
127
+ background-color: $color-gray-100;
128
128
  }
129
129
  }
130
130
 
package/css/utility.scss CHANGED
@@ -712,51 +712,51 @@ $vertical-aligns: baseline, top, middle, bottom, text-bottom, text-top;
712
712
 
713
713
  .code-chip-red {
714
714
  @extend .code-chip-base;
715
- color: $red;
715
+ color: $color-red;
716
716
  border-color: $red;
717
- background-color: #FFE3E2;
717
+ background-color: $color-red-bg;
718
718
  }
719
719
 
720
720
  .code-chip-black {
721
721
  @extend .code-chip-base;
722
- color: $gray-700;
723
- border-color: $gray-700;
724
- background-color: $white;
722
+ color: $color-body-text;
723
+ border-color: $color-body-text;
724
+ background-color: $color-body-bg;
725
725
  }
726
726
 
727
727
  .code-chip-gray {
728
728
  @extend .code-chip-base;
729
- color: $gray;
730
- border-color: $gray;
731
- background-color: #FFF;
729
+ color: $color-gray;
730
+ border-color: $gray-500;
731
+ background-color: $color-gray-bg;
732
732
  }
733
733
 
734
734
  .code-chip-blue {
735
735
  @extend .code-chip-base;
736
- color: $primary;
737
- border-color: $primary;
738
- background-color: $primary-200;
736
+ color: $color-blue;
737
+ border-color: $blue;
738
+ background-color: $color-blue-bg;
739
739
  }
740
740
 
741
741
  .code-chip-green {
742
742
  @extend .code-chip-base;
743
- color: $green;
743
+ color: $color-green;
744
744
  border-color: $green;
745
- background-color: #E9FEE7;
745
+ background-color: $color-green-bg;
746
746
  }
747
747
 
748
748
  .code-chip-purple {
749
749
  @extend .code-chip-base;
750
- color: $purple;
750
+ color: $color-purple;
751
751
  border-color: $purple;
752
- background-color: #EAD8FF;
752
+ background-color: $color-purple-bg;
753
753
  }
754
754
 
755
755
  .code-chip-orange {
756
756
  @extend .code-chip-base;
757
- color: $orange;
757
+ color: $color-orange;
758
758
  border-color: $orange;
759
- background-color: #FFF8DE;
759
+ background-color: $color-orange-bg;
760
760
  }
761
761
 
762
762