@veritree/ui 0.76.1-9 → 0.77.1

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.
@@ -3,7 +3,7 @@ import { computePosition, flip, shift, offset, size } from '@floating-ui/dom';
3
3
  export const floatingUiMixin = {
4
4
  props: {
5
5
  offset: {
6
- type: [Number, String],
6
+ type: [Number, String, Object],
7
7
  default: 5,
8
8
  },
9
9
  },
@@ -39,11 +39,82 @@ export const floatingUiMixin = {
39
39
  this.active = null;
40
40
  },
41
41
 
42
+ positionContentToTriggerByTopAndLeft(trigger, content, minWidthLimit) {
43
+ /*
44
+ TODO: Try to replace this with the offset object from floating-ui, using mainAxis, crossAxis, and alignmentAxis.
45
+ The problem is that the floating-ui offset values are px values, not percentages, which is the use case I am trying to solve.
46
+ I tried to calculate the percentage based off of the width and height of the trigger element,
47
+ but depending on the placement prop, mainAxis could be x OR y and crossAxis could be x OR y,
48
+ so to calculate the offset based on the width/height of the trigger element
49
+ we would have to calculate it differently for each individual placement preset.
50
+ */
51
+ const contentRect = content.getBoundingClientRect();
52
+ const contentWidth = contentRect.width;
53
+ const contentHeight = contentRect.height;
54
+ const triggerWidth = trigger.getBoundingClientRect().width;
55
+
56
+ let leftObject = this.left || {};
57
+ let topObject = this.top || {};
58
+
59
+ let left = leftObject.value || 0;
60
+ let top = topObject.value || 0;
61
+
62
+ if (leftObject.unit === '%') {
63
+ left = (triggerWidth * left) / 100;
64
+ }
65
+ if (topObject.unit === '%') {
66
+ top = (triggerWidth * top) / 100;
67
+ }
68
+ if (leftObject.positionBy === 'center') {
69
+ left = left - contentWidth / 2;
70
+ }
71
+ if (leftObject.positionBy === 'end') {
72
+ left = left - contentWidth;
73
+ }
74
+ if (topObject.positionBy === 'top') {
75
+ top = top + contentHeight;
76
+ }
77
+ if (topObject.positionBy === 'center') {
78
+ top = top + contentHeight / 2;
79
+ }
80
+
81
+ computePosition(trigger, content, {
82
+ placement: 'top-start',
83
+ middleware: [
84
+ flip(),
85
+ shift({ padding: 5 }),
86
+ size({
87
+ apply({ rects }) {
88
+ if (!minWidthLimit) return;
89
+
90
+ const width = rects.reference.width;
91
+ const minWidth = width < minWidthLimit ? minWidthLimit : width;
92
+
93
+ Object.assign(content.style, {
94
+ minWidth: `${minWidth}px`,
95
+ });
96
+ },
97
+ }),
98
+ ]
99
+ }).then(({ x, y }) => {
100
+ Object.assign(content.style, {
101
+ left: `${x + left}px`,
102
+ top: `${y + top}px`,
103
+ });
104
+ });
105
+ },
106
+
42
107
  positionContentToTrigger() {
43
108
  const trigger = document.getElementById(this.componentTrigger.id);
44
109
  const content = document.getElementById(this.componentContent.id);
45
110
  const minWidthLimit = Number(this.floatingUiMinWidth);
46
111
 
112
+ if (this.top !== null || this.top !== undefined || this.left !== null || this.left !== undefined) {
113
+ this.positionContentToTriggerByTopAndLeft(trigger, content, minWidthLimit);
114
+ return;
115
+ }
116
+
117
+
47
118
  computePosition(trigger, content, {
48
119
  placement: this.placement,
49
120
  middleware: [
package/nuxt.js CHANGED
@@ -23,7 +23,6 @@ const components = [
23
23
  'src/components/Tooltip',
24
24
  'src/components/Switch',
25
25
  'src/components/Separator',
26
- 'src/components/ScrollShadows',
27
26
  ];
28
27
 
29
28
  export default function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.76.1-9",
3
+ "version": "0.77.1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -15,11 +15,10 @@
15
15
  "release": "np --no-tests --no-2fa"
16
16
  },
17
17
  "dependencies": {
18
- "@floating-ui/dom": "^1.6.5",
18
+ "@floating-ui/dom": "^1.2.0",
19
19
  "@linusborg/vue-simple-portal": "^0.1.5",
20
- "@sum.cumo/vue-datepicker": "^4.0.0",
21
- "@veritree/icons": "^0.62.0",
22
- "dayjs": "^1.11.11"
20
+ "@veritree/icons": "^0.60.0",
21
+ "v-calendar": "^2.4.2"
23
22
  },
24
23
  "devDependencies": {
25
24
  "@babel/eslint-parser": "^7.23.10",
@@ -34,7 +33,7 @@
34
33
  "stylelint-config-prettier": "^9.0.5",
35
34
  "stylelint-config-recommended-vue": "^1.5.0",
36
35
  "stylelint-config-standard": "^36.0.0",
37
- "tailwindcss": "^3.4.3"
36
+ "tailwindcss": "^3.4.1"
38
37
  },
39
38
  "engines": {
40
39
  "npm": ">=8.0.0",
@@ -7,7 +7,7 @@
7
7
  : '-mx-4 flex items-center justify-between gap-x-3 p-4 md:-mx-6 md:px-6 md:py-5',
8
8
  ]"
9
9
  >
10
- <slot :hide="hide"></slot>
10
+ <slot></slot>
11
11
  </component>
12
12
  </template>
13
13
 
@@ -15,8 +15,6 @@
15
15
  export default {
16
16
  name: 'VTDialogFooter',
17
17
 
18
- inject: ['apiDialog'],
19
-
20
18
  props: {
21
19
  headless: {
22
20
  type: Boolean,
@@ -27,11 +25,5 @@ export default {
27
25
  default: 'footer',
28
26
  },
29
27
  },
30
-
31
- methods: {
32
- hide() {
33
- this.apiDialog().hide();
34
- },
35
- },
36
28
  };
37
29
  </script>
@@ -2,8 +2,10 @@
2
2
  <VTPopover>
3
3
  <VTPopoverTrigger ref="trigger">
4
4
  <button :class="classComputed" :disabled="disabled" @click.prevent>
5
- <span v-if="valueModel">{{ valueModelFormatted }}</span>
6
- <span class="text-gray-500" v-else>{{ format }}</span>
5
+ <span v-if="valueModel">{{
6
+ new Date(valueModel).toISOString().split('T')[0]
7
+ }}</span>
8
+ <span class="text-gray-500" v-else>yyyy-mm-dd</span>
7
9
  <span
8
10
  v-if="!iconless"
9
11
  class="pointer-events-none absolute right-3 top-1/2 -translate-y-1/2"
@@ -13,24 +15,17 @@
13
15
  </span>
14
16
  </button>
15
17
  </VTPopoverTrigger>
16
- <VTPopoverContent @hidden="$emit('hidden')" @shown="onShown">
17
- <Datepicker
18
+ <VTPopoverContent @hidden="$emit('hidden')" @shown="$emit('shown')">
19
+ <DatePicker
18
20
  v-model="valueModel"
19
- :inline="true"
20
- :initial-view="initialView"
21
- :minimum-view="minimumView"
22
- :maximum-view="maximumView"
23
- :show-edge-dates="showEdgeDates"
24
- :disabled-dates="disabledDatesComputed"
25
- @input="onInput"
26
- >
27
- <template #prevIntervalBtn>
28
- <IconChevronLeft />
29
- </template>
30
- <template #nextIntervalBtn>
31
- <IconChevronRight />
32
- </template>
33
- </Datepicker>
21
+ :min-date="min"
22
+ :max-date="max"
23
+ :model-config="modelConfig"
24
+ :available-dates="availableDates"
25
+ color="null"
26
+ class="min-w-full"
27
+ @dayclick="onDayClick"
28
+ />
34
29
  </VTPopoverContent>
35
30
  </VTPopover>
36
31
  </template>
@@ -43,9 +38,7 @@ import {
43
38
  import VTPopover from './../Popover/VTPopover.vue';
44
39
  import VTPopoverTrigger from './../Popover/VTPopoverTrigger.vue';
45
40
  import VTPopoverContent from './../Popover/VTPopoverContent.vue';
46
- import Datepicker from '@sum.cumo/vue-datepicker';
47
- import { IconChevronLeft, IconChevronRight } from '@veritree/icons';
48
- import dayjs from 'dayjs';
41
+ import DatePicker from 'v-calendar/lib/components/date-picker.umd';
49
42
 
50
43
  export default {
51
44
  name: 'VTInputDate',
@@ -53,23 +46,17 @@ export default {
53
46
  mixins: [formControlMixin, formControlStyleMixin],
54
47
 
55
48
  components: {
56
- Datepicker,
57
- IconChevronLeft,
58
- IconChevronRight,
59
49
  VTPopover,
60
50
  VTPopoverTrigger,
61
51
  VTPopoverContent,
52
+ DatePicker,
62
53
  },
63
54
 
64
55
  props: {
65
- disabledDates: {
66
- type: [Function, Object],
56
+ availableDates: {
57
+ type: Object,
67
58
  default: null,
68
59
  },
69
- format: {
70
- type: String,
71
- default: 'YYYY-MM-DD',
72
- },
73
60
  min: {
74
61
  type: [String, Date],
75
62
  default: null,
@@ -78,26 +65,17 @@ export default {
78
65
  type: [String, Date],
79
66
  default: null,
80
67
  },
81
- initialView: {
82
- type: String,
83
- default: 'day',
84
- },
85
- minimumView: {
86
- type: String,
87
- default: 'day',
88
- },
89
- maximumView: {
90
- type: String,
91
- default: 'year',
92
- },
93
- showEdgeDates: {
94
- type: Boolean,
95
- default: true,
96
- },
97
68
  iconless: {
98
69
  type: Boolean,
99
70
  default: false,
100
71
  },
72
+ modelConfig: {
73
+ type: Object,
74
+ default: () => ({
75
+ type: 'string',
76
+ mask: 'YYYY-MM-DD',
77
+ }),
78
+ },
101
79
  },
102
80
 
103
81
  computed: {
@@ -110,315 +88,12 @@ export default {
110
88
  this.$emit('change', newDate);
111
89
  },
112
90
  },
113
-
114
- valueModelFormatted() {
115
- return dayjs(this.value).format(this.format);
116
- },
117
-
118
- disabledDatesComputed() {
119
- if (this.disabledDates) {
120
- return this.disabledDates;
121
- }
122
-
123
- return {
124
- to: this.min,
125
- from: this.max,
126
- };
127
- },
128
91
  },
129
92
 
130
93
  methods: {
131
- onShown() {
132
- this.$emit('shown');
133
- this.setFocus();
134
- },
135
-
136
- /**
137
- * Sets the focus on the datepicker element.
138
- * If there is a selected date, it focuses on that date.
139
- * If there is no selected date, it focuses on today's date.
140
- */
141
- setFocus() {
142
- const elDatepicker = document.querySelector('.vdp-datepicker');
143
-
144
- if (!elDatepicker) {
145
- return;
146
- }
147
-
148
- const elSelected = elDatepicker.querySelector('.selected');
149
-
150
- if (elSelected) {
151
- elSelected.focus();
152
- return;
153
- }
154
-
155
- const elToday = elDatepicker.querySelector('.today');
156
-
157
- if (elToday) {
158
- elToday.focus();
159
- }
160
- },
161
-
162
- onInput() {
94
+ onDayClick() {
163
95
  this.$refs.trigger.cancel();
164
96
  },
165
97
  },
166
98
  };
167
99
  </script>
168
-
169
- <style>
170
- .rtl {
171
- direction: rtl;
172
- }
173
-
174
- .vdp-datepicker {
175
- font-size: 14px;
176
- }
177
-
178
- .vdp-datepicker__calendar .today {
179
- background-color: #f2f2f2;
180
- }
181
-
182
- .vdp-datepicker__calendar {
183
- & button {
184
- background: inherit;
185
- text-align: center;
186
- }
187
-
188
- & button:disabled {
189
- color: #ddd;
190
- }
191
- }
192
-
193
- /* header */
194
- .vdp-datepicker__calendar header {
195
- display: flex;
196
-
197
- & button {
198
- border: none;
199
- }
200
-
201
- & button:hover:not(:disabled) {
202
- background: #f2f2f2;
203
- }
204
-
205
- & button.vdp-datepicker__up {
206
- color: inherit;
207
- font-weight: 500;
208
- flex-grow: 1;
209
- }
210
-
211
- & .next,
212
- & .prev {
213
- border-radius: 50%;
214
- display: flex;
215
- align-items: center;
216
- justify-content: center;
217
- flex-shrink: 0;
218
- height: 2rem;
219
- aspect-ratio: 1 / 1;
220
- position: relative;
221
- }
222
-
223
- & .next .default,
224
- & .prev .default {
225
- display: flex;
226
- text-indent: -10000px;
227
- }
228
-
229
- & .next .default:after,
230
- & .prev .default:after {
231
- border: 6px solid transparent;
232
- content: '';
233
- left: 50%;
234
- position: absolute;
235
- top: 50%;
236
- transform: translateX(-50%) translateY(-50%);
237
- }
238
-
239
- & .next.rtl,
240
- & .prev.rtl {
241
- transform: rotate(180deg);
242
- }
243
-
244
- & .prev .default:after {
245
- border-right: 10px solid #000;
246
- margin-left: -5px;
247
- }
248
-
249
- & .prev:disabled .default:after {
250
- border-right: 10px solid #ddd;
251
- }
252
-
253
- & .next .default:after {
254
- border-left: 10px solid #000;
255
- margin-left: 5px;
256
- }
257
-
258
- & .next:disabled .default:after {
259
- border-left: 10px solid #ddd;
260
- }
261
- }
262
-
263
- /* body (days, months and years) */
264
- .vdp-datepicker__calendar .picker-cells {
265
- display: grid;
266
- list-style: none;
267
- margin: 0;
268
- padding: 0;
269
-
270
- &:has(.cell.day) {
271
- grid-template-columns: repeat(7, 1fr);
272
- }
273
-
274
- &:has(.cell.month),
275
- &:has(.cell.year) {
276
- min-height: calc(6 * 2rem);
277
- grid-template-columns: repeat(3, 1fr);
278
- }
279
-
280
- & .cell {
281
- border: 1px solid transparent;
282
- }
283
-
284
- & .cell:not(.selected):focus {
285
- border-color: #cccccc;
286
- }
287
-
288
- & .cell.day {
289
- border-radius: 50%;
290
- /* height: 2rem; */
291
- aspect-ratio: 1 / 1;
292
- }
293
- }
294
-
295
- /* cell states */
296
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,
297
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,
298
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {
299
- cursor: pointer;
300
- }
301
-
302
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,
303
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,
304
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {
305
- border-color: #333;
306
- }
307
-
308
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:focus,
309
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:focus,
310
- .vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:focus {
311
- z-index: 1;
312
- }
313
-
314
- .vdp-datepicker__calendar .cell.muted {
315
- color: #ccc;
316
- }
317
-
318
- .vdp-datepicker__calendar .cell.selected {
319
- background: #333;
320
- color: #fff;
321
- }
322
-
323
- .vdp-datepicker__calendar .cell.selected.highlighted,
324
- .vdp-datepicker__calendar .cell.selected:hover {
325
- background: #333;
326
- }
327
-
328
- .vdp-datepicker__calendar .cell.highlighted {
329
- background: #cae5ed;
330
- color: #104756;
331
- }
332
-
333
- .vdp-datepicker__calendar .cell.highlighted.disabled {
334
- color: #accad2;
335
- }
336
-
337
- .vdp-datepicker__calendar .cell.muted.disabled:not(.selected) {
338
- color: #ddd;
339
- }
340
-
341
- .vdp-datepicker__calendar .cell.muted.disabled:not(.selected).highlighted {
342
- color: #accad2;
343
- }
344
-
345
- .vdp-datepicker__calendar .day-header {
346
- display: grid;
347
- grid-template-columns: repeat(7, 1fr);
348
-
349
- & span {
350
- display: flex;
351
- align-items: center;
352
- justify-content: center;
353
- aspect-ratio: 1 / 1;
354
- height: 2rem;
355
- color: #767676;
356
- font-size: 14px;
357
- white-space: nowrap;
358
- }
359
- }
360
-
361
- /* .vdp-datepicker__calendar .picker-view {
362
- width: inherit;
363
- } */
364
-
365
- .vdp-datepicker__calendar .picker-view .cells-wrapper {
366
- overflow: hidden;
367
- position: relative;
368
- }
369
-
370
- .vdp-datepicker__calendar .picker-view .cells-wrapper .picker-cells {
371
- transition: all 0.25s ease-in-out;
372
- }
373
-
374
- .vdp-datepicker__calendar .picker-view .slide-right-enter-active {
375
- top: 0;
376
- }
377
-
378
- .vdp-datepicker__calendar .picker-view .slide-right-leave-active {
379
- position: absolute;
380
- top: 0;
381
- }
382
-
383
- .vdp-datepicker__calendar .picker-view .slide-right-enter {
384
- transform: translate(100%);
385
- }
386
-
387
- .vdp-datepicker__calendar .picker-view .slide-right-leave-to {
388
- transform: translate(-100%);
389
- }
390
-
391
- .vdp-datepicker__calendar .picker-view .slide-left-enter-active {
392
- top: 0;
393
- }
394
-
395
- .vdp-datepicker__calendar .picker-view .slide-left-leave-active {
396
- position: absolute;
397
- top: 0;
398
- }
399
-
400
- .vdp-datepicker__calendar .picker-view .slide-left-enter {
401
- transform: translate(-100%);
402
- }
403
-
404
- .vdp-datepicker__calendar .picker-view .slide-left-leave-to {
405
- transform: translate(100%);
406
- }
407
-
408
- .view-leave-active {
409
- position: absolute;
410
- }
411
-
412
- .vdp-datepicker__calendar-button,
413
- .vdp-datepicker__clear-button {
414
- border: none;
415
- font-style: normal;
416
- }
417
-
418
- .vdp-datepicker__calendar-button.input-group-append,
419
- .vdp-datepicker__calendar-button.input-group-prepend,
420
- .vdp-datepicker__clear-button.input-group-append,
421
- .vdp-datepicker__clear-button.input-group-prepend {
422
- padding: 0;
423
- }
424
- </style>
@@ -3,7 +3,7 @@
3
3
  :class="[
4
4
  headless
5
5
  ? 'progress-bar'
6
- : 'relative min-h-[12px] w-full flex items-stretch overflow-hidden rounded bg-gray-200',
6
+ : 'relative min-h-[12px] w-full overflow-hidden rounded bg-gray-200',
7
7
  ]"
8
8
  role="progressbar"
9
9
  aria-valuemin="0"
@@ -11,13 +11,14 @@
11
11
  :aria-valuenow="value"
12
12
  :aria-label="label"
13
13
  >
14
- <slot>
15
- <VTProgressBarIndicator
16
- :headless="headless"
17
- :percentage="percentageComputed"
18
- :variant="variant"
19
- />
20
- </slot>
14
+ <div
15
+ :class="[
16
+ headless
17
+ ? 'progress-bar__indicator'
18
+ : 'bg-secondary-300 absolute left-0 h-full transition-all duration-500',
19
+ ]"
20
+ :style="{ width: `${percentageComputed}%` }"
21
+ ></div>
21
22
  </div>
22
23
  </template>
23
24
 
@@ -48,10 +49,6 @@ export default {
48
49
  type: String,
49
50
  default: 'rounded-full',
50
51
  },
51
- variant: {
52
- type: String,
53
- default: 'default', // default, alert, warning
54
- },
55
52
  },
56
53
 
57
54
  computed: {
@@ -31,8 +31,34 @@ export default {
31
31
  default: false,
32
32
  },
33
33
  /**
34
- * The placement of the component relative to its trigger element.
35
- * @type {string}
34
+ * The position of the tooltip from the top of the trigger. This overrides the placement prop.
35
+ *
36
+ * @type {Object}
37
+ * @property {string} unit - The unit of the top position (% or px).
38
+ * @property {string} positionBy - Whether to position the top, center, or bottom of the tooltip at it's top value. Defaults to bottom.
39
+ * @property {number} value - The value of the top position.
40
+ * @default null
41
+ */
42
+ top: {
43
+ type: Object,
44
+ default: null,
45
+ },
46
+ /**
47
+ * The position of the tooltip from the start (left) of the trigger. This overrides the placement prop.
48
+ *
49
+ * @type {Object}
50
+ * @property {string} unit - The unit of the top position (& or px).
51
+ * @property {string} positionBy - Whether to position the start, center, or end of the tooltip at it's left value. Defaults to start.
52
+ * @property {number} value - The value of the top position.
53
+ * @default null
54
+ */
55
+ left: {
56
+ type: Object,
57
+ default: null,
58
+ },
59
+ /**
60
+ * The placement of the component relative to its trigger element. If top or bottom are supplied, this value will be ignored.
61
+ * @type {string|number}
36
62
  * @values 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end'
37
63
  * @default 'bottom-start'
38
64
  */
@@ -1,47 +0,0 @@
1
- <template>
2
- <div
3
- :class="[
4
- headless
5
- ? 'progress-bar__indicator'
6
- : `${backgroundComputed} min-h-min transition-all duration-500`,
7
- ]"
8
- :style="{ width: `${percentage}%` }"
9
- ></div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- name: 'VTProgressBarIndicator',
15
-
16
- props: {
17
- headless: {
18
- type: Boolean,
19
- default: false,
20
- },
21
- percentage: {
22
- type: [String, Number],
23
- default: null,
24
- },
25
- variant: {
26
- type: String,
27
- default: 'default', // default, alert, warning
28
- },
29
- },
30
-
31
- computed: {
32
- backgroundComputed() {
33
- if (this.variant === 'default') {
34
- return 'bg-secondary-300';
35
- }
36
-
37
- if (this.variant === 'error') {
38
- return 'bg-error-500';
39
- }
40
-
41
- if (this.variant === 'warning') {
42
- return 'bg-warning-500';
43
- }
44
- },
45
- },
46
- };
47
- </script>
@@ -1,76 +0,0 @@
1
- <template>
2
- <component :is="tag" :class="`scroll-shadows-${orientation}`">
3
- <slot></slot>
4
- </component>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'VTScrollShadows',
10
-
11
- props: {
12
- tag: {
13
- type: String,
14
- default: 'div',
15
- },
16
- orientation: {
17
- type: String,
18
- default: 'vertical', // horizontal
19
- },
20
- },
21
- };
22
- </script>
23
-
24
- <style scoped>
25
- .scroll-shadows-vertical {
26
- background:
27
- /* Shadow Cover TOP */
28
- linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top,
29
- /* Shadow Cover BOTTOM */ linear-gradient(rgba(255, 255, 255, 0), white 70%)
30
- center bottom,
31
- /* Shadow TOP */
32
- radial-gradient(
33
- farthest-side at 50% 0,
34
- rgba(0, 0, 0, 0.1),
35
- rgba(0, 0, 0, 0)
36
- )
37
- center top,
38
- /* Shadow BOTTOM */
39
- radial-gradient(
40
- farthest-side at 50% 100%,
41
- rgba(0, 0, 0, 0.1),
42
- rgba(0, 0, 0, 0)
43
- )
44
- center bottom;
45
-
46
- background-repeat: no-repeat;
47
- background-size:
48
- 100% 30px,
49
- 100% 30px,
50
- 100% 8px,
51
- 100% 8px;
52
- background-attachment: local, local, scroll, scroll;
53
- }
54
-
55
- .scroll-shadows-horizontal {
56
- background:
57
- linear-gradient(90deg, white 30%, rgba(255, 255, 255, 0)),
58
- linear-gradient(90deg, rgba(255, 255, 255, 0), white 70%) 0 100%,
59
- radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.2), white),
60
- radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.2), white) 0 100%;
61
-
62
- background-repeat: no-repeat;
63
- background-color: white;
64
- background-position:
65
- top left,
66
- top right,
67
- top left,
68
- top right;
69
- background-size:
70
- 10px 100%,
71
- 10px 100%,
72
- 5px 100%,
73
- 5px 100%;
74
- background-attachment: local, local, scroll, scroll;
75
- }
76
- </style>