@mediafly/js-ui 50.5.0 → 51.1.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.
Files changed (138) hide show
  1. package/.node-version +1 -1
  2. package/.semaphore/promotion-deploy-docs.yml +35 -0
  3. package/.semaphore/scripts/notify_jira.sh +115 -0
  4. package/.semaphore/semaphore.yml +91 -0
  5. package/CHANGELOG.md +25 -346
  6. package/README.md +7 -4
  7. package/archive/old-changelog.md +347 -0
  8. package/lib/checkbox/checkbox.html +2 -0
  9. package/lib/color-input/spectrum-color-picker.js +1 -2
  10. package/lib/color-input/spectrum-color-picker.js.map +1 -1
  11. package/lib/constants/constants.js +0 -1
  12. package/lib/constants/constants.js.map +1 -1
  13. package/lib/date-input/date-input.js +2 -3
  14. package/lib/date-input/date-input.js.map +1 -1
  15. package/lib/date-input/validate-date.js +1 -2
  16. package/lib/date-input/validate-date.js.map +1 -1
  17. package/lib/date-time-zone-picker/date-time-zone-picker.js +1 -2
  18. package/lib/date-time-zone-picker/date-time-zone-picker.js.map +1 -1
  19. package/lib/date-time-zone-picker/datepicker.html +17 -18
  20. package/lib/date-time-zone-picker/timepicker.html +19 -9
  21. package/lib/first-time-motivator/first-time-motivator.js +3 -4
  22. package/lib/first-time-motivator/first-time-motivator.js.map +1 -1
  23. package/lib/fonts.css +1 -1
  24. package/lib/gesture-handler/gesture-handler.js +14 -6
  25. package/lib/gesture-handler/gesture-handler.js.map +1 -1
  26. package/lib/hover-tooltip/hover-tooltip.js +7 -4
  27. package/lib/hover-tooltip/hover-tooltip.js.map +1 -1
  28. package/lib/index.d.ts +0 -5
  29. package/lib/index.js +0 -5
  30. package/lib/index.js.map +1 -1
  31. package/lib/jsui.module.css +46 -49
  32. package/lib/loading-indicator/loading-indicator.component.html +6 -6
  33. package/lib/metadata-form/metadata-form.component.d.ts +1 -0
  34. package/lib/metadata-form/metadata-form.component.js +32 -0
  35. package/lib/metadata-form/metadata-form.component.js.map +1 -1
  36. package/lib/metadata-form/metadata-form.html +1 -1
  37. package/lib/rich-text/rich-text.component.d.ts +3 -2
  38. package/lib/rich-text/rich-text.component.js +8 -0
  39. package/lib/rich-text/rich-text.component.js.map +1 -1
  40. package/lib/styles.css +176 -369
  41. package/lib/time-input/time-input.html +1 -1
  42. package/lib/time-input/time-input.js +2 -3
  43. package/lib/time-input/time-input.js.map +1 -1
  44. package/lib/time-input/validate-time.js +1 -2
  45. package/lib/time-input/validate-time.js.map +1 -1
  46. package/lib/tree/tree.js +3 -4
  47. package/lib/tree/tree.js.map +1 -1
  48. package/lib/tsconfig.deploy.tsbuildinfo +26 -155
  49. package/package.json +1 -2
  50. package/src/components/checkbox/checkbox.html +2 -0
  51. package/src/components/color-input/spectrum-color-picker.js +2 -3
  52. package/src/components/constants/constants.js +0 -1
  53. package/src/components/date-input/date-input.js +2 -3
  54. package/src/components/date-input/validate-date.js +1 -2
  55. package/src/components/date-time-zone-picker/date-time-zone-picker.less +20 -19
  56. package/src/components/date-time-zone-picker/date-time-zone-picker.ts +10 -7
  57. package/src/components/date-time-zone-picker/datepicker.html +17 -18
  58. package/src/components/date-time-zone-picker/timepicker.html +19 -9
  59. package/src/components/feedback/feedback.less +1 -1
  60. package/src/components/first-time-motivator/first-time-motivator.ts +4 -5
  61. package/src/components/font-selector/font-selector.less +2 -1
  62. package/src/components/gesture-handler/{gesture-handler.js → gesture-handler.ts} +18 -6
  63. package/src/components/hover-tooltip/hover-tooltip.ts +7 -4
  64. package/src/components/index.less +0 -1
  65. package/src/components/index.ts +0 -5
  66. package/src/components/legacy/mediafly-bootstrap.css +0 -5
  67. package/src/components/less/fonts/mfly-webfont.less +1 -1
  68. package/src/components/less/objects/buttons.less +12 -63
  69. package/src/components/less/objects/buttons.module.css +8 -2
  70. package/src/components/less/objects/containers.less +2 -2
  71. package/src/components/less/objects/forms.less +31 -245
  72. package/src/components/less/objects/labels.less +5 -1
  73. package/src/components/less/objects/radios-checkboxes.less +2 -1
  74. package/src/components/less/utilities/reset.less +1 -1
  75. package/src/components/less/utilities/utilities.less +2 -0
  76. package/src/components/less/variables/colors.less +39 -44
  77. package/src/components/less/variables/effects.less +3 -7
  78. package/src/components/less/variables.module.css +37 -46
  79. package/src/components/less/vendor/pikaday.css +12 -8
  80. package/src/components/loading-indicator/loading-indicator.component.html +6 -6
  81. package/src/components/metadata-form/metadata-form.component.ts +39 -0
  82. package/src/components/metadata-form/metadata-form.html +1 -1
  83. package/src/components/progress-bar/progress-bar.less +2 -1
  84. package/src/components/rich-text/rich-text.component.ts +8 -2
  85. package/src/components/time-input/time-input.html +1 -1
  86. package/src/components/time-input/time-input.js +3 -3
  87. package/src/components/time-input/validate-time.js +1 -2
  88. package/src/components/tree/tree.less +16 -8
  89. package/src/components/tree/tree.ts +5 -6
  90. package/src/fonts/mfly-webfont.woff +0 -0
  91. package/src/index.html +3 -2
  92. package/src/index.spec.js +0 -6
  93. package/Dockerfile +0 -42
  94. package/Jenkinsfile +0 -138
  95. package/lib/date-time-utilities/date-time-utilities.d.ts +0 -1
  96. package/lib/date-time-utilities/date-time-utilities.js +0 -79
  97. package/lib/date-time-utilities/date-time-utilities.js.map +0 -1
  98. package/lib/date-time-utilities/index.d.ts +0 -1
  99. package/lib/date-time-utilities/index.js +0 -4
  100. package/lib/date-time-utilities/index.js.map +0 -1
  101. package/lib/disable-context-menu/disable-context-menu.d.ts +0 -1
  102. package/lib/disable-context-menu/disable-context-menu.js +0 -23
  103. package/lib/disable-context-menu/disable-context-menu.js.map +0 -1
  104. package/lib/disable-context-menu/index.d.ts +0 -1
  105. package/lib/disable-context-menu/index.js +0 -4
  106. package/lib/disable-context-menu/index.js.map +0 -1
  107. package/lib/show-image-loader/index.d.ts +0 -1
  108. package/lib/show-image-loader/index.js +0 -4
  109. package/lib/show-image-loader/index.js.map +0 -1
  110. package/lib/show-image-loader/show-image-loader.d.ts +0 -1
  111. package/lib/show-image-loader/show-image-loader.js +0 -23
  112. package/lib/show-image-loader/show-image-loader.js.map +0 -1
  113. package/lib/slides/index.d.ts +0 -1
  114. package/lib/slides/index.js +0 -4
  115. package/lib/slides/index.js.map +0 -1
  116. package/lib/slides/slides.d.ts +0 -1
  117. package/lib/slides/slides.html +0 -17
  118. package/lib/slides/slides.js +0 -96
  119. package/lib/slides/slides.js.map +0 -1
  120. package/lib/time-conversion/index.d.ts +0 -1
  121. package/lib/time-conversion/index.js +0 -4
  122. package/lib/time-conversion/index.js.map +0 -1
  123. package/lib/time-conversion/time-conversion-factory.d.ts +0 -1
  124. package/lib/time-conversion/time-conversion-factory.js +0 -91
  125. package/lib/time-conversion/time-conversion-factory.js.map +0 -1
  126. package/src/components/date-time-utilities/date-time-utilities.js +0 -94
  127. package/src/components/date-time-utilities/index.ts +0 -1
  128. package/src/components/disable-context-menu/disable-context-menu.ts +0 -21
  129. package/src/components/disable-context-menu/index.ts +0 -1
  130. package/src/components/show-image-loader/index.ts +0 -1
  131. package/src/components/show-image-loader/show-image-loader.js +0 -22
  132. package/src/components/slides/index.ts +0 -1
  133. package/src/components/slides/slides.html +0 -17
  134. package/src/components/slides/slides.less +0 -155
  135. package/src/components/slides/slides.ts +0 -101
  136. package/src/components/time-conversion/index.ts +0 -1
  137. package/src/components/time-conversion/time-conversion-factory.ts +0 -114
  138. package/tsconfig.tsbuildinfo +0 -7221
@@ -30,7 +30,8 @@
30
30
  width: 100%;
31
31
 
32
32
  &[disabled] {
33
- background-color: @color-gray-xx-light;
33
+ background-color: @color-gray-xxx-light;
34
+ color: @color-ui-theme-text-disabled;
34
35
  cursor: not-allowed;
35
36
  opacity: 1;
36
37
  }
@@ -43,7 +44,12 @@
43
44
  padding: 10px 16px;
44
45
  }
45
46
 
47
+ /**
48
+ * Focused border is primary color, with added thickness via box-shadow.
49
+ * This avoids changing the height.
50
+ */
46
51
  &:focus {
52
+ border: @form-input-border-width solid @color-mfly-primary;
47
53
  box-shadow: @input-focus-box-shadow;
48
54
  outline: 0;
49
55
  }
@@ -90,81 +96,6 @@ label {
90
96
  }
91
97
  }
92
98
 
93
- // Input groups (appending buttons to input boxes)
94
- // ----------------------------------------------
95
- .o-input-group {
96
- border-collapse: separate;
97
- display: table;
98
- position: relative;
99
-
100
- .o-form-control {
101
- &:first-child {
102
- border-bottom-right-radius: 0;
103
- border-top-right-radius: 0;
104
- }
105
-
106
- &:not(:first-child) {
107
- &:not(:last-child) {
108
- border-radius: 0;
109
- }
110
- }
111
- }
112
-
113
- &.has-icon-add-on {
114
- .o-form-control {
115
- &:first-child {
116
- border-right: none;
117
- }
118
-
119
- &:last-child {
120
- border-left: none;
121
- }
122
- }
123
-
124
- .o-input-group__add-on {
125
- background-color: #fff;
126
- color: @color-gray-medium;
127
-
128
- &.o-input-group__add-on--disabled {
129
- background-color: @color-gray-xx-light;
130
- }
131
- }
132
- }
133
- }
134
-
135
- .o-input-group__add-on {
136
- background-color: @color-gray-xx-light;
137
- border: 1px solid @color-gray-x-light;
138
- border-radius: 4px;
139
- color: @color-gray-x-dark;
140
- display: table-cell;
141
- font-size: @font-line-height-base;
142
- font-weight: @font-weight-regular;
143
- line-height: 1;
144
- padding: 6px 12px;
145
- text-align: center;
146
- transition: box-shadow ease-in-out 0.3s;
147
- vertical-align: middle;
148
- white-space: nowrap;
149
- width: 1%;
150
-
151
- &:first-child {
152
- border-bottom-right-radius: 0;
153
- border-right: 0;
154
- border-top-right-radius: 0;
155
- }
156
-
157
- &:last-child {
158
- border-bottom-left-radius: 0;
159
- border-left: 0;
160
- border-top-left-radius: 0;
161
- }
162
- }
163
-
164
- .o-input-group__add-on--condensed {
165
- padding: 6px 6px;
166
- }
167
-
168
99
  // Form row (wrapper for visual row of form controls)
169
100
  // ---------------------------------------------------
170
101
  .o-form-row {
@@ -188,178 +119,30 @@ label {
188
119
  }
189
120
  }
190
121
 
191
- // Validation
192
- // ---------------------------------------------------
193
-
194
- /* stylelint-disable-next-line no-duplicate-selectors */
195
- .o-form-control {
196
- // Override native highlighting
197
- &:invalid {
198
- box-shadow: none;
199
- }
200
- // Add our own
201
- form.o-form &,
202
- ng-form.o-form & {
203
- &.ng-dirty {
204
- border: 1px solid @color-dirty-control;
205
-
206
- &:focus {
207
- box-shadow: @input-dirty-focus-box-shadow;
208
- }
209
- }
210
-
211
- &.ng-invalid {
212
- border: 1px solid @color-danger;
213
-
214
- &:focus {
215
- box-shadow: @input-invalid-focus-box-shadow;
216
- }
217
- }
218
-
219
- &.ng-pristine {
220
- border: 1px solid @color-gray-x-light;
221
-
222
- &:focus {
223
- box-shadow: initial;
224
- }
225
- }
226
- }
227
-
228
- //preseve neutral borders if input is not on the end
229
- //of an input group
230
- form.o-form .o-input-group &,
231
- ng-form.o-form .o-input-group & {
232
- &:not(:first-child) {
233
- border-left-color: @color-gray-x-light;
234
-
235
- &:focus {
236
- &.ng-dirty {
237
- box-shadow: @input-dirty-focus-box-shadow-horz3;
238
- }
239
-
240
- &.ng-invalid {
241
- box-shadow: @input-invalid-focus-box-shadow-horz3;
242
- }
243
- }
244
- }
245
-
246
- &:not(:last-child) {
247
- border-right-color: @color-gray-x-light;
248
- }
249
- }
250
-
251
- // support smaller sized inputs if part of o-input-group-sm
252
- .o-input-group--sm & {
253
- border-radius: 3px;
254
- font-size: 12px;
255
- height: 30px;
256
- line-height: 1.5;
257
- padding: 5px 10px;
258
- }
259
-
260
- // support inverse color for navbar use
261
-
262
- .o-input-group--inverse & {
263
- &[type='text'] {
264
- background-color: #333;
265
- border-color: #666;
266
- color: #fff;
267
-
268
- &:focus {
269
- box-shadow: none;
270
- }
271
- }
122
+ /**
123
+ * Validation highlighting
124
+ * --------------------------------------------------
125
+ */
126
+ @color-dirty-control: @color-warning;
272
127
 
273
- &::placeholder {
274
- color: #ccc;
275
- }
276
- }
128
+ form.o-form .o-form-control.ng-dirty,
129
+ ng-form.o-form .o-form-control.ng-dirty {
130
+ border: 1px solid @color-dirty-control;
277
131
  }
278
132
 
279
- .o-input-group__add-on--focus {
280
- box-shadow: @input-focus-box-shadow;
133
+ form.o-form .o-form-control.ng-dirty:focus,
134
+ ng-form.o-form .o-form-control.ng-dirty:focus {
135
+ border: 1px solid @color-dirty-control;
136
+ box-shadow: @input-dirty-focus-box-shadow;
281
137
  }
282
138
 
283
- // Dirty needs to come first, because an invalid field is both dirty and inval
284
- .o-input-group__add-on--dirty {
285
- border-bottom-color: @color-dirty-control;
286
- border-top-color: @color-dirty-control;
287
-
288
- &:first-child {
289
- border-left-color: @color-dirty-control;
290
-
291
- &.o-input-group__add-on--focus {
292
- box-shadow: @input-dirty-focus-box-shadow;
293
- }
294
- }
295
-
296
- &:last-child {
297
- border-right-color: @color-dirty-control;
298
-
299
- &.o-input-group__add-on--focus {
300
- box-shadow: @input-dirty-focus-box-shadow-horz2;
301
- }
302
- }
303
-
304
- // preserve no highlight gray borders/shadows for add-ons
305
- form.o-form--no-dirty-highlight &,
306
- form.o-form--no-highlight &,
307
- ng-form.o-form--no-dirty-highlight &,
308
- ng-form.o-form--no-highlight & {
309
- border-bottom: solid 1px @color-gray-x-light;
310
- border-top: solid 1px @color-gray-x-light;
311
-
312
- &:last-child {
313
- border-right: solid 1px @color-gray-x-light;
314
- }
315
-
316
- &:first-child {
317
- border-left: solid 1px @color-gray-x-light;
318
- }
139
+ /* Invalid but pristine fields shouldn't be red until the user interacts with them. */
140
+ form.o-form .o-form-control.ng-invalid:not(.ng-pristine),
141
+ ng-form.o-form .o-form-control.ng-invalid:not(.ng-pristine) {
142
+ border: 1px solid @color-danger;
319
143
 
320
- &:focus {
321
- box-shadow: @input-focus-box-shadow;
322
- }
323
- }
324
- }
325
-
326
- ng-form:not(.ng-pristine) .o-input-group__add-on--invalid {
327
- border-bottom-color: @color-danger;
328
- border-top-color: @color-danger;
329
-
330
- &:first-child {
331
- border-left-color: @color-danger;
332
-
333
- &.o-input-group__add-on--focus {
334
- box-shadow: @input-invalid-focus-box-shadow;
335
- }
336
- }
337
-
338
- &:last-child {
339
- border-right-color: @color-danger;
340
-
341
- &.o-input-group__add-on--focus {
342
- box-shadow: @input-invalid-focus-box-shadow-horz2;
343
- }
344
- }
345
-
346
- // preserve no highlight gray borders/shadows for add-ons
347
- form.o-form--no-highlight &,
348
- ng-form.o-form--no-highlight & {
349
- border-bottom: solid 1px @color-gray-x-light;
350
- border-top: solid 1px @color-gray-x-light;
351
-
352
- &:last-child {
353
- border-right: solid 1px @color-gray-x-light;
354
- }
355
-
356
- &:first-child {
357
- border-left: solid 1px @color-gray-x-light;
358
- }
359
-
360
- &:focus {
361
- box-shadow: @input-focus-box-shadow;
362
- }
144
+ &:focus {
145
+ box-shadow: @input-invalid-focus-box-shadow;
363
146
  }
364
147
  }
365
148
 
@@ -377,8 +160,7 @@ ng-form:not(.ng-pristine) .o-input-group__add-on--invalid {
377
160
  }
378
161
 
379
162
  // Positioning special cases
380
- .o-form-group &,
381
- .o-input-group & {
163
+ .o-form-group & {
382
164
  right: 0;
383
165
  }
384
166
  }
@@ -387,6 +169,8 @@ ng-form:not(.ng-pristine) .o-input-group__add-on--invalid {
387
169
  // Form controls will turn green, red when dirty, invalid. The no-highlight
388
170
  // class removes this highlighting when inline feeback is not desired (example: login form)
389
171
  // -------------------------------------------------------------
172
+ form.o-form--no-highlight .form-control:focus,
173
+ form.o-form--no-highlight .o-form-control:focus,
390
174
  form.o-form--no-highlight .form-control.ng-invalid,
391
175
  form.o-form--no-highlight .o-form-control.ng-invalid,
392
176
  form.o-form--no-highlight .form-control.ng-dirty,
@@ -397,6 +181,8 @@ form.o-form--no-dirty-highlight .form-control.ng-dirty,
397
181
  form.o-form--no-dirty-highlight .o-form-control.ng-dirty,
398
182
  form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dirty,
399
183
  form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dirty ~ span.input-group-btn > .btn-input-white,
184
+ ng-form.o-form--no-highlight .form-control:focus,
185
+ ng-form.o-form--no-highlight .o-form-control:focus,
400
186
  ng-form.o-form--no-highlight .form-control.ng-invalid,
401
187
  ng-form.o-form--no-highlight .o-form-control.ng-invalid,
402
188
  ng-form.o-form--no-highlight .form-control.ng-dirty,
@@ -410,7 +196,7 @@ ng-form.o-form--no-dirty-highlight .datepicker-wrapper input.form-control.ng-dir
410
196
  border: solid 1px @color-gray-x-light;
411
197
 
412
198
  &:focus {
413
- box-shadow: @input-focus-box-shadow;
199
+ box-shadow: none;
414
200
  }
415
201
  }
416
202
 
@@ -18,5 +18,9 @@
18
18
  &.is-danger { background-color: @color-danger; }
19
19
  &.is-info { background-color: @color-info; }
20
20
  &.is-success { background-color: @color-success; }
21
- &.is-warning { background-color: @color-warning; }
21
+
22
+ &.is-warning {
23
+ background-color: @color-warning;
24
+ color: @color-warning-dark;
25
+ }
22
26
  }
@@ -9,7 +9,8 @@
9
9
  // Standard Checkboxes & Radio
10
10
  .o-radio,
11
11
  .o-checkbox {
12
- display: block;
12
+ align-items: center;
13
+ display: flex;
13
14
  margin-bottom: 10px;
14
15
  margin-top: 10px;
15
16
  min-height: 20px;
@@ -19,7 +19,7 @@ a {
19
19
  // Update 2/2020 (breaking change): Background has been removed to better serve accessibility needs.
20
20
  // All projects expecting background: #f6f6f6 need to set the color in their own project.
21
21
  body {
22
- color: @color-gray-dark;
22
+ color: @color-gray-x-dark;
23
23
  font-family: @font-stack-main;
24
24
  font-size: @font-size-base;
25
25
  line-height: @font-line-height-base;
@@ -80,6 +80,7 @@
80
80
  .u-color-success { color: @color-success; }
81
81
  .u-color-danger { color: @color-danger; }
82
82
  .u-color-warning { color: @color-warning; }
83
+ .u-color-warning-dark { color: @color-warning-dark; }
83
84
  .u-color-info { color: @color-info; }
84
85
 
85
86
  .u-color-gray-xxx-light { color: @color-gray-xxx-light; }
@@ -98,6 +99,7 @@
98
99
  .u-bg-color-success-light { background-color: @color-success-light; }
99
100
  .u-bg-color-danger-light { background-color: @color-danger-light; }
100
101
  .u-bg-color-warning-light { background-color: @color-warning-light; }
102
+ .u-bg-color-warning-dark { background-color: @color-warning-dark; }
101
103
  .u-bg-color-info-light { background-color: @color-info-light; }
102
104
 
103
105
  .u-bg-color-gray-xxx-light { background-color: @color-gray-xxx-light; }
@@ -8,60 +8,55 @@
8
8
 
9
9
  // Basic colors
10
10
  // ----------------------------------------------
11
- @color-gray-xxx-light: #f6f6f6;
12
- @color-gray-xx-light: #e0e0e0;
13
- @color-gray-x-light: #bbb;
14
- @color-gray-light: #999;
15
- @color-gray-medium: #767676;
16
- @color-gray-dark: #535353;
17
- @color-gray-x-dark: #353535;
11
+ @color-gray-xxx-light: #f4f4f7;
12
+ @color-gray-xx-light: #e4e4ea;
13
+ @color-gray-x-light: #b6b7c1;
14
+ @color-gray-light: #9a9ca9;
15
+ @color-gray-medium: #585a64;
16
+ @color-gray-dark: #434551;
17
+ @color-gray-x-dark: #1e202b;
18
18
 
19
19
  // Branding colors
20
20
  // ----------------------------------------------
21
- @color-mfly-green: #00c364;
22
- @color-mfly-blue-dark: #26293d;
23
- @color-mfly-blue: #039dda;
24
- @color-mfly-blue-light: #97deea;
25
- @color-mfly-purple: #531ea4;
26
- @color-mfly-red: #fb2654;
21
+ @color-mfly-primary: #155e93;
22
+ @color-mfly-secondary: #5f5094;
27
23
 
28
24
  // UI colors
29
25
  // ----------------------------------------------
30
- @color-success-light: #d8f2e6;
31
- @color-success: #008c48;
32
- @color-danger-light: #f7dfe4;
33
- @color-danger: #d90d36;
34
- @color-warning-light: #f9e4de;
35
- @color-warning: #de6a44;
36
- @color-info-light: #d8edf5;
37
- @color-info: #015677;
38
- @color-dirty-control: #54A844;
26
+ @color-success-light: #b6f2d6;
27
+ @color-success: #21664c;
28
+ @color-danger-light: #fddedb;
29
+ @color-danger: #9d3a18;
30
+ @color-warning-light: #f6e68a;
31
+ @color-warning: #e4cd6d;
32
+ @color-warning-dark: #7e5105; /* e4cd6d is too light for text, but this color looks gross on icons */
33
+ @color-info-light: #d1e9ee;
34
+ @color-info: #435f64;
39
35
 
40
36
  // Button colors
41
37
  // ----------------------------------------------
42
- @color-button-default-text: @color-gray-medium;
43
- @color-button-default-background: #fff;
44
- @color-button-default-border: #A9ADB1;
45
- @color-button-default-hover-background: @color-gray-xxx-light;
46
- @color-button-default-hover-border: @color-gray-light;
38
+ @color-button-default-text: #1e202b;
39
+ @color-button-default-background: #ffffff;
40
+ @color-button-default-border: #b6b7c1;
41
+ @color-button-default-hover-background: #f4f4f7;
42
+ @color-button-default-hover-border: #b6b7c1;
47
43
 
48
- @color-button-primary-text: #fff;
49
- @color-button-primary-background: @color-gray-medium;
50
- @color-button-primary-border: @color-gray-medium;
44
+ @color-button-primary-text: #ffffff;
45
+ @color-button-primary-background: #155e93;
46
+ @color-button-primary-border: #155e93;
51
47
 
52
48
  // Colors used in ui-theme (React)
53
- // TODO: CE-10120: More of this sort of thing...
54
49
  // ----------------------------------------------
55
- @color-ui-theme-primary: #005ec3;
56
- @color-ui-theme-primary-dark: #004188;
57
- @color-ui-theme-primary-light: #337ecf;
58
- @color-ui-theme-secondary: #101233;
59
- @color-ui-theme-success: #00c364;
60
- @color-ui-theme-warning: #ffa600;
61
- @color-ui-theme-info: #039ddb;
62
- @color-ui-theme-error: #fb2654;
63
- @color-ui-theme-text-primary: #101223;
64
- @color-ui-theme-text-secondary: #737582;
65
- @color-ui-theme-text-disabled: #b3b5bd;
66
- @color-ui-theme-background-default: #fff;
67
- @color-ui-theme-background-overlay: rgba(16, 18, 35, 0.8);
50
+ @color-ui-theme-primary: #155e93;
51
+ @color-ui-theme-primary-dark: #1c486f;
52
+ @color-ui-theme-primary-light: #2b83c6;
53
+ @color-ui-theme-secondary: #5f5094;
54
+ @color-ui-theme-success: #21664c;
55
+ @color-ui-theme-warning: #e4cd6d;
56
+ @color-ui-theme-info: #435f64;
57
+ @color-ui-theme-error: #9d3a18;
58
+ @color-ui-theme-text-primary: #1e202b;
59
+ @color-ui-theme-text-secondary: #737582; /* Only use over white. */
60
+ @color-ui-theme-text-disabled: #b6b7c1;
61
+ @color-ui-theme-background-default: #ffffff;
62
+ @color-ui-theme-background-overlay: rgba(30, 32, 43, 0.8);
@@ -12,10 +12,6 @@
12
12
  @navbar-box-shadow: 0 3px 5px rgba(25, 25, 25, 0.75);
13
13
  @notification-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
14
14
 
15
- @input-focus-box-shadow: 0 0 8px rgba(187, 187, 187, 0.9);
16
- @input-dirty-focus-box-shadow: 0 0 8px rgba(84, 168, 68, 0.8);
17
- @input-dirty-focus-box-shadow-horz2: 2px 0 8px rgba(84, 168, 68, 0.8);
18
- @input-dirty-focus-box-shadow-horz3: 3px 0 8px rgba(84, 168, 68, 0.8);
19
- @input-invalid-focus-box-shadow: 0 0 8px rgba(169, 68, 66, 0.8);
20
- @input-invalid-focus-box-shadow-horz2: 2px 0 8px rgba(169, 68, 66, 0.8);
21
- @input-invalid-focus-box-shadow-horz3: 3px 0 8px rgba(169, 68, 66, 0.8);
15
+ @input-focus-box-shadow: 0 0 0 1px @color-mfly-primary;
16
+ @input-dirty-focus-box-shadow: 0 0 0 1px @color-warning;
17
+ @input-invalid-focus-box-shadow: 0 0 0 1px @color-danger;
@@ -13,58 +13,53 @@
13
13
 
14
14
  .variables {
15
15
  /* Basic colors */
16
- --color-gray-xxx-light: #f6f6f6;
17
- --color-gray-xx-light: #e0e0e0;
18
- --color-gray-x-light: #bbb;
19
- --color-gray-light: #999;
20
- --color-gray-medium: #767676;
21
- --color-gray-dark: #535353;
22
- --color-gray-x-dark: #353535;
16
+ --color-gray-xxx-light: #f4f4f7;
17
+ --color-gray-xx-light: #e4e4ea;
18
+ --color-gray-x-light: #b6b7c1;
19
+ --color-gray-light: #9a9ca9;
20
+ --color-gray-medium: #585a64;
21
+ --color-gray-dark: #434551;
22
+ --color-gray-x-dark: #1e202b;
23
23
 
24
24
  /* Branding colors */
25
- --color-mfly-green: #00c364;
26
- --color-mfly-blue-dark: #26293d;
27
- --color-mfly-blue: #039dda;
28
- --color-mfly-blue-light: #97deea;
29
- --color-mfly-purple: #531ea4;
30
- --color-mfly-red: #fb2654;
25
+ --color-mfly-primary: #155e93;
26
+ --color-mfly-secondary: #5f5094;
31
27
 
32
28
  /* UI colors */
33
- --color-success-light: #d8f2e6;
34
- --color-success: #008c48;
35
- --color-danger-light: #f7dfe4;
36
- --color-danger: #d90d36;
37
- --color-warning-light: #f9e4de;
38
- --color-warning: #de6a44;
39
- --color-info-light: #d8edf5;
40
- --color-info: #015677;
41
- --color-dirty-control: #54a844;
29
+ --color-success-light: #b6f2d6;
30
+ --color-success: #21664c;
31
+ --color-danger-light: #fddedb;
32
+ --color-danger: #9d3a18;
33
+ --color-warning-light: #f6e68a;
34
+ --color-warning: #e4cd6d;
35
+ --color-warning-dark: #7e5105;
36
+ --color-info-light: #d1e9ee;
37
+ --color-info: #435f64;
42
38
 
43
39
  /* Button colors */
44
- --color-button-default-text: var(--color-gray-medium);
40
+ --color-button-default-text: #1e202b;
45
41
  --color-button-default-background: #fff;
46
- --color-button-default-border: #a9adb1;
47
- --color-button-default-hover-background: var(--color-gray-xxx-light);
48
- --color-button-default-hover-border: var(--color-gray-medium);
42
+ --color-button-default-border: #b6b7c1;
43
+ --color-button-default-hover-background: #f4f4f7;
44
+ --color-button-default-hover-border: #b6b7c1;
49
45
  --color-button-primary-text: #fff;
50
- --color-button-primary-background: var(--color-gray-medium);
51
- --color-button-primary-border: var(--color-gray-medium);
46
+ --color-button-primary-background: #155e93;
47
+ --color-button-primary-border: #155e93;
52
48
 
53
- /* Colors used in ui-theme (React)
54
- TODO: CE-10120: More of this sort of thing... */
55
- --color-ui-theme-primary: #005ec3;
56
- --color-ui-theme-primary-dark: #004188;
57
- --color-ui-theme-primary-light: #337ecf;
58
- --color-ui-theme-secondary: #101233;
59
- --color-ui-theme-success: #00c364;
60
- --color-ui-theme-warning: #ffa600;
61
- --color-ui-theme-info: #039ddb;
62
- --color-ui-theme-error: #fb2654;
63
- --color-ui-theme-text-primary: #101223;
64
- --color-ui-theme-text-secondary: #737582;
65
- --color-ui-theme-text-disabled: #b3b5bd;
49
+ /* Colors used in ui-theme (React) */
50
+ --color-ui-theme-primary: #155e93;
51
+ --color-ui-theme-primary-dark: #1c486f;
52
+ --color-ui-theme-primary-light: #2b83c6;
53
+ --color-ui-theme-secondary: #5f5094;
54
+ --color-ui-theme-success: #21664c;
55
+ --color-ui-theme-warning: #e4cd6d;
56
+ --color-ui-theme-info: #435f64;
57
+ --color-ui-theme-error: #9d3a18;
58
+ --color-ui-theme-text-primary: #1e202b;
59
+ --color-ui-theme-text-secondary: #585a64;
60
+ --color-ui-theme-text-disabled: #b6b7c1;
66
61
  --color-ui-theme-background-default: #fff;
67
- --color-ui-theme-background-overlay: #rgba(16, 18, 35, 0.8);
62
+ --color-ui-theme-background-overlay: rgba(30, 32, 43, 0.8);
68
63
 
69
64
  /* Box shadows */
70
65
  --dropdown-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
@@ -74,11 +69,7 @@
74
69
  --notification-box-shadow: 0 5px 8px rgba(0, 0, 0, 0.5);
75
70
  --input-focus-box-shadow: 0 0 8px rgba(187, 187, 187, 0.9);
76
71
  --input-dirty-focus-box-shadow: 0 0 8px rgba(84, 168, 68, 0.8);
77
- --input-dirty-focus-box-shadow-horz2: 2px 0 8px rgba(84, 168, 68, 0.8);
78
- --input-dirty-focus-box-shadow-horz3: 3px 0 8px rgba(84, 168, 68, 0.8);
79
72
  --input-invalid-focus-box-shadow: 0 0 8px rgba(169, 68, 66, 0.8);
80
- --input-invalid-focus-box-shadow-horz2: 2px 0 8px rgba(169, 68, 66, 0.8);
81
- --input-invalid-focus-box-shadow-horz3: 3px 0 8px rgba(169, 68, 66, 0.8);
82
73
 
83
74
  /* Inputs */
84
75
  --form-input-border-width: 1px;
@@ -160,7 +160,7 @@ http://nicolasgallagher.com/micro-clearfix-hack/
160
160
  font-size: 12px;
161
161
  line-height: 15px;
162
162
  text-align: right;
163
- background: #f5f5f5;
163
+ background: #fff;
164
164
  }
165
165
 
166
166
  .pika-week {
@@ -169,15 +169,16 @@ http://nicolasgallagher.com/micro-clearfix-hack/
169
169
  }
170
170
 
171
171
  .is-today .pika-button {
172
- color: #33aaff;
172
+ background: #f4f4f7; /* color-button-default-hover-background (outlined button) */
173
+ border: 1px solid #b6b7c1; /* color-button-default-border (outlined button) */
174
+ color: #1e202b; /* color-button-default-text */
173
175
  font-weight: bold;
174
176
  }
175
177
 
176
178
  .is-selected .pika-button {
177
179
  color: #fff;
178
180
  font-weight: bold;
179
- background: #33aaff;
180
- box-shadow: inset 0 1px 3px #178fe5;
181
+ background: #155e93; /* color-button-primary-background */
181
182
  border-radius: 3px;
182
183
  }
183
184
 
@@ -206,16 +207,19 @@ http://nicolasgallagher.com/micro-clearfix-hack/
206
207
  opacity: .3;
207
208
  }
208
209
 
210
+ /* Can't do hover state button border because it causes layout shift. */
209
211
  .pika-button:hover {
210
- color: #fff;
211
- background: #ff8000;
212
+ background: #f4f4f7; /* color-button-default-hover-background */
212
213
  box-shadow: none;
213
214
  border-radius: 3px;
214
215
  }
215
216
 
216
- /* styling for abbr */
217
+ /* Override light color when hovering selected date. */
218
+ .is-selected .pika-button:hover {
219
+ background: #155e93; /* color-button-primary-background */
220
+ }
221
+
217
222
  .pika-table abbr {
218
223
  border-bottom: none;
219
224
  cursor: help;
220
225
  }
221
-
@@ -3,10 +3,10 @@ loading indicator component, since we don't have a good solution for isolating c
3
3
  <div
4
4
  class="c-loading-indicator__dots"
5
5
  ng-class="{ 'is-inline': $ctrl.inline }">
6
- <label class="c-loading-indicator__dot">●</label>
7
- <label class="c-loading-indicator__dot">●</label>
8
- <label class="c-loading-indicator__dot">●</label>
9
- <label class="c-loading-indicator__dot">●</label>
10
- <label class="c-loading-indicator__dot">●</label>
11
- <label class="c-loading-indicator__dot">●</label>
6
+ <div class="c-loading-indicator__dot">●</div>
7
+ <div class="c-loading-indicator__dot">●</div>
8
+ <div class="c-loading-indicator__dot">●</div>
9
+ <div class="c-loading-indicator__dot">●</div>
10
+ <div class="c-loading-indicator__dot">●</div>
11
+ <div class="c-loading-indicator__dot">●</div>
12
12
  </div>