@enso-ui/themes 3.3.1 → 3.3.3

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.
@@ -0,0 +1,287 @@
1
+ $timeline-marker-size: 12px !default;
2
+ $timeline-marker-color: var(--enso-timeline-marker-bg, var(--bulma-border, #dbdbdb)) !default;
3
+ $timeline-marker-icon-size: 24px !default;
4
+ $timeline-marker-border-size: 1px !default;
5
+ $timeline-marker-border: $timeline-marker-border-size solid $timeline-marker-color !default;
6
+ $timeline-line-color: var(--enso-timeline-line-color, var(--bulma-border, #dbdbdb)) !default;
7
+ $timeline-line-width: 1px !default;
8
+ $timeline-line-style: solid !default;
9
+ $timeline-line: $timeline-line-width $timeline-line-style $timeline-line-color !default;
10
+ $timeline-content-padding: 1em 0 0 2em !default;
11
+ $timeline-rtl-content-padding: 1em 2em 0 0 !default;
12
+ $timeline-icon-size: .75rem !default;
13
+ $timeline-header-width: 4em !default;
14
+ $timeline-item-padding-left: calc($timeline-header-width / 2) !default;
15
+ $timeline-item-padding-bottom: 2em !default;
16
+ $dimensions: 16 24 32 48 64 96 128 !default;
17
+
18
+ $timeline-colors: (
19
+ 'muted': (var(--enso-timeline-marker-bg, var(--bulma-border, #dbdbdb)), var(--enso-timeline-marker-fg, var(--bulma-text-strong, #363636))),
20
+ 'primary': (var(--bulma-primary), var(--bulma-primary-invert, #fff)),
21
+ 'link': (var(--bulma-link), var(--bulma-link-invert, #fff)),
22
+ 'info': (var(--bulma-info), var(--bulma-info-invert, #fff)),
23
+ 'success': (var(--bulma-success), var(--bulma-success-invert, #fff)),
24
+ 'warning': (var(--bulma-warning), var(--bulma-warning-invert, #fff)),
25
+ 'danger': (var(--bulma-danger), var(--bulma-danger-invert, #fff)),
26
+ ) !default;
27
+
28
+ .timeline {
29
+ display: flex;
30
+ flex-direction: column;
31
+
32
+ .timeline-header {
33
+ width: $timeline-header-width;
34
+ min-width: $timeline-header-width;
35
+ max-width: $timeline-header-width * 2;
36
+ word-wrap: normal;
37
+ text-align: center;
38
+ display: flex;
39
+ justify-content: center;
40
+ }
41
+
42
+ .timeline-item {
43
+ display: flex;
44
+ position: relative;
45
+ margin-left: $timeline-item-padding-left;
46
+ padding-bottom: $timeline-item-padding-bottom;
47
+
48
+ &::before {
49
+ content: '';
50
+ background-color: $timeline-line-color;
51
+ display: block;
52
+ width: $timeline-line-width;
53
+ height: 100%;
54
+ position: absolute;
55
+ left: -($timeline-line-width / 2);
56
+ top: 0;
57
+ }
58
+
59
+ .timeline-marker {
60
+ position: absolute;
61
+ background: $timeline-marker-color;
62
+ border: $timeline-marker-border;
63
+ border-radius: 100%;
64
+ display: block;
65
+ height: $timeline-marker-size;
66
+ transform: translateX(-50%);
67
+ top: 1.2rem;
68
+ width: $timeline-marker-size;
69
+
70
+ &.is-image {
71
+ @each $dimension in $dimensions {
72
+ &.is-#{$dimension}x#{$dimension} {
73
+ height: #{$dimension}px;
74
+ width: #{$dimension}px;
75
+ }
76
+ }
77
+
78
+ background: $timeline-marker-color;
79
+ border: $timeline-marker-border;
80
+ border-radius: 100%;
81
+ display: block;
82
+ overflow: hidden;
83
+ }
84
+
85
+ &.is-icon {
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: center;
89
+ height: $timeline-marker-icon-size;
90
+ width: $timeline-marker-icon-size;
91
+ background: $timeline-marker-color;
92
+ border: $timeline-marker-border;
93
+ border-radius: 100%;
94
+ padding: .5rem;
95
+
96
+ > * {
97
+ font-size: $timeline-icon-size !important;
98
+ }
99
+ }
100
+
101
+ &.is-outlined {
102
+ .image {
103
+ background: var(--enso-timeline-surface, var(--bulma-scheme-main, #fff));
104
+ }
105
+
106
+ &.is-icon {
107
+ background: var(--enso-timeline-surface, var(--bulma-scheme-main, #fff));
108
+
109
+ > * {
110
+ color: $timeline-marker-color;
111
+ }
112
+ }
113
+ }
114
+
115
+ @each $name, $pair in $timeline-colors {
116
+ $color: nth($pair, 1);
117
+ $color-invert: nth($pair, 2);
118
+
119
+ &.is-#{$name} {
120
+ background-color: $color !important;
121
+ border-color: $color !important;
122
+
123
+ .image {
124
+ border-color: $color !important;
125
+ }
126
+
127
+ &.is-icon {
128
+ background-color: $color !important;
129
+ border-color: $color !important;
130
+
131
+ > * {
132
+ color: $color-invert !important;
133
+ }
134
+ }
135
+
136
+ &.is-outlined {
137
+ background-color: var(--enso-timeline-surface, var(--bulma-scheme-main, #fff)) !important;
138
+ border-color: $color !important;
139
+
140
+ .image {
141
+ background-color: var(--enso-timeline-surface, var(--bulma-scheme-main, #fff)) !important;
142
+ }
143
+
144
+ &.is-icon {
145
+ background-color: var(--enso-timeline-surface, var(--bulma-scheme-main, #fff)) !important;
146
+
147
+ > * {
148
+ color: $color !important;
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ .timeline-content {
157
+ padding: $timeline-content-padding;
158
+
159
+ .heading {
160
+ font-weight: 600;
161
+ }
162
+ }
163
+
164
+ @each $name, $pair in $timeline-colors {
165
+ $color: nth($pair, 1);
166
+
167
+ &.is-#{$name} {
168
+ &::before {
169
+ background-color: $color;
170
+ }
171
+ }
172
+ }
173
+ }
174
+
175
+ &.is-centered {
176
+ .timeline-header {
177
+ display: flex;
178
+ width: 100%;
179
+ align-self: center;
180
+ }
181
+
182
+ .timeline-item {
183
+ width: 50%;
184
+ align-self: flex-end;
185
+ flex-direction: row;
186
+
187
+ &:nth-of-type(2n) {
188
+ align-self: flex-start;
189
+ flex-direction: row-reverse;
190
+ margin-left: 0;
191
+ margin-right: $timeline-item-padding-left;
192
+
193
+ &::before {
194
+ right: -($timeline-line-width / 2);
195
+ left: auto;
196
+ }
197
+
198
+ .timeline-marker {
199
+ transform: translateX(50%);
200
+ }
201
+
202
+ .timeline-content {
203
+ padding: $timeline-rtl-content-padding;
204
+ text-align: right;
205
+ display: flex;
206
+ flex-direction: column;
207
+ align-items: flex-end;
208
+ flex-basis: 100%;
209
+ }
210
+ }
211
+
212
+ &:nth-of-type(2n + 1) {
213
+ &::before {
214
+ content: '';
215
+ background-color: $timeline-line-color;
216
+ display: block;
217
+ width: $timeline-line-width;
218
+ height: 100%;
219
+ position: absolute;
220
+ top: 0;
221
+ }
222
+ }
223
+
224
+ @each $name, $pair in $timeline-colors {
225
+ $color: nth($pair, 1);
226
+
227
+ &.is-#{$name} {
228
+ &::before {
229
+ background-color: $color;
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }
235
+
236
+ &.is-rtl {
237
+ justify-content: flex-end;
238
+ align-items: flex-end;
239
+
240
+ .timeline-item {
241
+ justify-content: flex-end;
242
+ flex-direction: row;
243
+ border-left: none;
244
+ margin-left: 0;
245
+ margin-right: calc($timeline-header-width / 2);
246
+
247
+ &::before {
248
+ right: 0;
249
+ left: auto;
250
+ }
251
+
252
+ .timeline-marker {
253
+ transform: translateX(50%);
254
+
255
+ &.is-image {
256
+ @each $dimension in $dimensions {
257
+ &.is-#{$dimension}x#{$dimension} {
258
+ transform: translateX(50%);
259
+ }
260
+ }
261
+ }
262
+ }
263
+
264
+ .timeline-content {
265
+ padding: $timeline-rtl-content-padding;
266
+ text-align: right;
267
+ }
268
+ }
269
+ }
270
+
271
+ &.no-headers {
272
+ .timeline-item {
273
+ &.is-first {
274
+ &::before {
275
+ height: calc(100% - 1.2rem);
276
+ top: 1.2rem;
277
+ }
278
+ }
279
+
280
+ &.is-last {
281
+ &::before {
282
+ height: 1.2rem;
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
@@ -1 +1 @@
1
- @use 'bulma-extensions/bulma-timeline/dist/css/bulma-timeline.min'
1
+ @use "./components/timeline"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enso-ui/themes",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "Enso UI Themes",
5
5
  "main": "src/bulma/register.js",
6
6
  "repository": {
@@ -24,7 +24,6 @@
24
24
  "@fortawesome/free-solid-svg-icons": "^7.2.0",
25
25
  "@fortawesome/vue-fontawesome": "3.1.3",
26
26
  "bulma": "^1.0.0",
27
- "bulma-extensions": "^6.2.7",
28
27
  "flatpickr": "^4.6.13",
29
28
  "pinia": "^3.0.0",
30
29
  "vue": "^3.0"