pacem-less 0.51.4-euler → 0.51.4-frobenius

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.
@@ -69,6 +69,7 @@ svg.@{PCSS}-pie-chart {
69
69
  }
70
70
  }
71
71
 
72
+
72
73
  &.chart-error,
73
74
  &.chart-disabled,
74
75
  &.chart-danger,
@@ -76,12 +77,15 @@ svg.@{PCSS}-pie-chart {
76
77
  &.chart-success,
77
78
  &.chart-primary,
78
79
  &.chart-accent,
80
+ &.chart-gradient,
79
81
  &.chart-default {
80
82
  > svg.@{PCSS}-pie-chart g.chart-series {
81
83
  .PieSliceGradient(20, 1);
82
84
  }
83
85
  }
84
86
 
87
+ /* #region obsolete */
88
+
85
89
  &.chart-default {
86
90
  .PieSliceGradient(@color_default);
87
91
  }
@@ -113,6 +117,16 @@ svg.@{PCSS}-pie-chart {
113
117
  &.chart-disabled {
114
118
  .PieSliceGradient(@color_disabled);
115
119
  }
120
+
121
+ /* #endregion*/
122
+
123
+ @colors: @all_colors;
124
+ // text
125
+ each(@colors, {
126
+ &.chart-gradient.chart-@{value} {
127
+ .PieSliceGradient( ~"var(--@{PCSS}-color-@{value})");
128
+ }
129
+ });
116
130
  }
117
131
 
118
132
  .@{PCSS}-chart-area.chart-has-data {
@@ -174,43 +188,19 @@ svg.@{PCSS}-pie-chart {
174
188
  .PieSlice(20);
175
189
 
176
190
  path {
177
- transition: transform @easing_in_out_sine .2s; /* do not include 'd' as an animatable property: will conflict with transform -> bad UX *///, d @easing_out_sine .125s;
191
+ transition: transform @easing_in_out_sine .2s; /* do not include 'd' as an animatable property: will conflict with transform -> bad UX */ //, d @easing_out_sine .125s;
178
192
  }
179
193
  }
180
194
 
181
195
  g.chart-series {
182
196
 
183
- &.series-default {
184
- .PieChartSeries(@color_default);
185
- }
186
-
187
- &.series-accent {
188
- .PieChartSeries(@color_accent);
189
- }
190
-
191
- &.series-primary {
192
- .PieChartSeries(@color_primary);
193
- }
194
-
195
- &.series-success {
196
- .PieChartSeries(@color_success);
197
- }
198
-
199
- &.series-warning {
200
- .PieChartSeries(@color_warning);
201
- }
202
-
203
- &.series-danger {
204
- .PieChartSeries(@color_danger);
205
- }
206
-
207
- &.series-error {
208
- .PieChartSeries(@color_error);
209
- }
210
-
211
- &.series-disabled {
212
- .PieChartSeries(@color_disabled);
213
- }
197
+ @colors: @all_colors;
198
+ // text
199
+ each(@colors, {
200
+ &.series-@{value} {
201
+ .PieChartSeries( ~"var(--@{PCSS}-color-@{value})");
202
+ }
203
+ });
214
204
  }
215
205
  }
216
206
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.51.4-euler",
2
+ "version": "0.51.4-frobenius",
3
3
  "name": "pacem-less",
4
4
  "homepage": "https://js.pacem.it",
5
5
  "repository": {