igniteui-theming 5.2.0-beta.2 → 5.2.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "5.2.0-beta.2",
3
+ "version": "5.2.0-beta.3",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  @use '../../../../utils/map' as *;
2
2
  @use '../light/time-picker' as *;
3
+ @use '../elevation/time-picker' as *;
3
4
 
4
5
  ////
5
6
  /// @package theming
@@ -10,12 +11,32 @@
10
11
  /// Generates a dark material time-picker schema.
11
12
  /// @type {Map}
12
13
  /// @requires $material-time-picker
13
- $dark-material-time-picker: $material-time-picker;
14
+ $dark-material-time-picker: extend(
15
+ $material-time-picker,
16
+ (
17
+ divider-color: (
18
+ color: (
19
+ 'gray',
20
+ 100,
21
+ ),
22
+ ),
23
+ )
24
+ );
14
25
 
15
26
  /// Generates a dark fluent time-picker schema.
16
27
  /// @type {Map}
17
28
  /// @requires $fluent-time-picker
18
- $dark-fluent-time-picker: $fluent-time-picker;
29
+ $dark-fluent-time-picker: extend(
30
+ $fluent-time-picker,
31
+ (
32
+ divider-color: (
33
+ color: (
34
+ 'gray',
35
+ 100,
36
+ ),
37
+ ),
38
+ )
39
+ );
19
40
 
20
41
  /// Generates a dark bootstrap time-picker schema.
21
42
  /// @type {Map}
@@ -24,30 +45,56 @@ $dark-bootstrap-time-picker: $bootstrap-time-picker;
24
45
 
25
46
  /// Generates a dark indigo time-picker schema.
26
47
  /// @type {Map}
27
- /// @prop {Map} text-color [contrast-color: ('surface')] - The text color of an open time picker.
28
- /// @prop {Map} selected-text-color [color: ('primary', 300)] - The text color of a selected item in time picker.
29
- /// @prop {Map} hover-text-color [color: ('primary', 300)] - The hover text color of an open time picker.
48
+ /// @prop {Map} background-color [color: ('gray', 50)] - The time-picker panel background color.
49
+ /// @prop {Map} header-background [color: ('gray', 50)] - The header background color of a time picker.
50
+ /// @prop {Map} selected-text-color [color: ('primary', 200)] - The text color of a selected item in time picker.
51
+ /// @prop {Map} hover-text-color [color: ('primary', 200)] - The hover text color of an open time picker.
52
+ /// @prop {Color} border-color [color: ('gray', 100)] - The border-color of the time picker.
53
+ /// @prop {Color} divider-color [color: ('gray', 100)] - The divider color of the time picker.
30
54
  /// @requires $indigo-time-picker
31
55
  $dark-indigo-time-picker: extend(
32
56
  $indigo-time-picker,
57
+ $dark-indigo-elevation-time-picker,
33
58
  (
34
- text-color: (
35
- contrast-color: (
36
- 'surface',
59
+ background-color: (
60
+ color: (
61
+ 'gray',
62
+ 50,
63
+ ),
64
+ ),
65
+
66
+ header-background: (
67
+ color: (
68
+ 'gray',
69
+ 50,
37
70
  ),
38
71
  ),
39
72
 
40
73
  hover-text-color: (
41
74
  color: (
42
75
  'primary',
43
- 300,
76
+ 200,
44
77
  ),
45
78
  ),
46
79
 
47
80
  selected-text-color: (
48
81
  color: (
49
82
  'primary',
50
- 300,
83
+ 200,
84
+ ),
85
+ ),
86
+
87
+ border-color: (
88
+ color: (
89
+ 'gray',
90
+ 100,
91
+ ),
92
+ ),
93
+
94
+ divider-color: (
95
+ color: (
96
+ 'gray',
97
+ 100,
51
98
  ),
52
99
  ),
53
100
  )
@@ -111,17 +111,85 @@ $dark-bootstrap-tree: extend(
111
111
 
112
112
  /// Generates a dark indigo tree schema.
113
113
  /// @type {Map}
114
- /// @prop {Map} hover-color [color: ('primary', 200, .5)] - The background color used for the tree node on hover.
114
+ /// @prop {Map} background-active [color: ('primary', 400, 0.3)] - The background color used for the active tree node.
115
+ /// @prop {Map} background-active-selected [color: ('primary', 400, 0.3)] - The background color used for the active selected tree node.
116
+ /// @prop {Map} foreground [contrast-color: ('gray', 50, 0.8)] - The color used for the tree node content.
117
+ /// @prop {Map} foreground-active [contrast-color: ('gray', 50)] - The color used for the content in active state of the tree node.
118
+ /// @prop {Map} foreground-selected [contrast-color: ('gray', 50)] - The color used for the content of the selected tree node.
119
+ /// @prop {Map} foreground-active-selected [contrast-color: ('gray', 50)] - The color used for the content of the active selected tree node.
120
+ /// @prop {Map} foreground-disabled [contrast-color: ('gray', 50, 0.2)] - The color used for the content of the disabled tree node.
121
+ /// @prop {Map} icon-color [contrast-color: ('gray', 50, 0.8)] - The color used for the tree node icon.
122
+ /// @prop {Map} hover-color [contrast-color: ('gray', 50, .1)] - The background color used for the tree node on hover.
123
+ /// @prop {Map} hover-selected-color [color: ('primary', 400, 0.5)] - The background color used for the selected tree node on hover.
115
124
  /// @requires $indigo-tree
116
125
  /// @requires $base-dark-tree
117
126
  $dark-indigo-tree: extend(
118
127
  $indigo-tree,
119
- $base-dark-tree,
120
128
  (
129
+ foreground: (
130
+ contrast-color: (
131
+ 'gray',
132
+ 50,
133
+ 0.8,
134
+ ),
135
+ ),
136
+ foreground-selected: (
137
+ contrast-color: (
138
+ 'gray',
139
+ 50,
140
+ ),
141
+ ),
142
+ background-active: (
143
+ color: (
144
+ 'primary',
145
+ 400,
146
+ 0.3,
147
+ ),
148
+ ),
149
+ foreground-active: (
150
+ contrast-color: (
151
+ 'gray',
152
+ 50,
153
+ ),
154
+ ),
155
+ background-active-selected: (
156
+ color: (
157
+ 'primary',
158
+ 400,
159
+ 0.3,
160
+ ),
161
+ ),
162
+ foreground-active-selected: (
163
+ contrast-color: (
164
+ 'gray',
165
+ 50,
166
+ ),
167
+ ),
168
+ foreground-disabled: (
169
+ contrast-color: (
170
+ 'gray',
171
+ 50,
172
+ 0.2,
173
+ ),
174
+ ),
175
+ icon-color: (
176
+ contrast-color: (
177
+ 'gray',
178
+ 50,
179
+ 0.8,
180
+ ),
181
+ ),
121
182
  hover-color: (
183
+ contrast-color: (
184
+ 'gray',
185
+ 50,
186
+ 0.1,
187
+ ),
188
+ ),
189
+ hover-selected-color: (
122
190
  color: (
123
191
  'primary',
124
- 200,
192
+ 400,
125
193
  0.5,
126
194
  ),
127
195
  ),
@@ -11,3 +11,11 @@ $default-elevation-time-picker: (
11
11
  modal-elevation: 24,
12
12
  dropdown-elevation: 8,
13
13
  );
14
+ $indigo-elevation-time-picker: (
15
+ modal-elevation: 5,
16
+ dropdown-elevation: 3,
17
+ );
18
+ $dark-indigo-elevation-time-picker: (
19
+ modal-elevation: 7,
20
+ dropdown-elevation: 2,
21
+ );
@@ -13,6 +13,7 @@
13
13
  /// @prop {Map} text-color [color: ('gray', 500)] - The text color of an open time picker.
14
14
  /// @prop {Map} hover-text-color [color: ('secondary', 500)] - The hover text color of an open time picker.
15
15
  /// @prop {Map} selected-text-color [color: ('secondary', 500)] - The text color of a selected item in time picker.
16
+ /// @prop {Map} active-item-foreground [color: ('gray', 500)] - The foreground color for current item in focused column inside the time picker.
16
17
  /// @prop {Map} active-item-background [color: ('gray', 100)] - The background color for current item in focused column inside the time picker.
17
18
  /// @prop {Map} disabled-text-color [color: ('gray', 400)] - The text color for disabled values.
18
19
  /// @prop {Color} disabled-item-background [transparent] - The background color for disabled values .
@@ -20,9 +21,11 @@
20
21
  /// @prop {Map} header-hour-text-color [contrast-color: ('secondary', 500)] - The header hour text color of a time picker.
21
22
  /// @prop {Map} header-time-period-color [contrast-color: ('secondary', 500, .8)] - The header AM/PM text color of a time picker.
22
23
  /// @prop {Map} background-color [color: 'surface'] - The time-picker panel background color.
23
- /// @prop {Number} modal-elevation [24] - The elevation level, between 0-24, to be used for the time picker in modal mode.
24
+ /// @prop {Color} border-color [transparent] - The border-color of the time picker.
24
25
  /// @prop {Number} dropdown-elevation [8] - The elevation level, between 0-24, to be used for the time picker in dropdown mode.
25
26
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for the overall shape of the time-picker.
27
+ /// @prop {List} time-item-size [(rem(28px), rem(32px), rem(36px))] - The height of the time item.
28
+ /// @prop {Number} default-size [2] - the default size.
26
29
  /// @requires {Map} $default-elevation-time-picker
27
30
  $light-time-picker: extend(
28
31
  $default-elevation-time-picker,
@@ -48,6 +51,13 @@ $light-time-picker: extend(
48
51
  ),
49
52
  ),
50
53
 
54
+ active-item-foreground: (
55
+ color: (
56
+ 'gray',
57
+ 500,
58
+ ),
59
+ ),
60
+
51
61
  active-item-background: (
52
62
  color: (
53
63
  'gray',
@@ -96,12 +106,27 @@ $light-time-picker: extend(
96
106
  rem(20px),
97
107
  ),
98
108
  ),
109
+
110
+ border-color: transparent,
111
+
112
+ time-item-size: (
113
+ sizable: (
114
+ rem(28px),
115
+ rem(32px),
116
+ rem(36px),
117
+ ),
118
+ ),
119
+
120
+ default-size: 2,
99
121
  )
100
122
  );
101
123
 
102
124
  /// Generates a light material time-picker schema.
103
125
  /// @type {Map}
104
126
  /// @prop {List} active-item-border-radius [(rem(15px), rem(0), rem(20px))] - The border radius used for the highlight of the active item in the time-picker.
127
+ /// @prop {Color} divider-color [color: ('gray', 200)] - The divider color of the time picker.
128
+ /// @prop {Color} divider-color [transparent] - The divider color of the time picker.
129
+
105
130
  /// @requires {Map} $light-time-picker
106
131
  $material-time-picker: extend(
107
132
  $light-time-picker,
@@ -113,6 +138,13 @@ $material-time-picker: extend(
113
138
  rem(20px),
114
139
  ),
115
140
  ),
141
+
142
+ divider-color: (
143
+ color: (
144
+ 'gray',
145
+ 200,
146
+ ),
147
+ ),
116
148
  )
117
149
  );
118
150
 
@@ -120,6 +152,8 @@ $material-time-picker: extend(
120
152
  /// @type {Map}
121
153
  /// @prop {List} border-radius [(rem(2px), rem(0), rem(20px))] - The border radius used for the overall shape of the time-picker.
122
154
  /// @prop {List} active-item-border-radius [(rem(2px), rem(0), rem(20px))] - The border radius used for the highlight of the active item in the time-picker.
155
+ /// @prop {List} time-item-size [(rem(28px), rem(32px), rem(40px))] - The height of the time item.
156
+ /// @prop {Color} divider-color [color: ('gray', 200)] - The divider color of the time picker.
123
157
  /// @requires $light-time-picker
124
158
  $fluent-time-picker: extend(
125
159
  $light-time-picker,
@@ -138,6 +172,19 @@ $fluent-time-picker: extend(
138
172
  rem(20px),
139
173
  ),
140
174
  ),
175
+ divider-color: (
176
+ color: (
177
+ 'gray',
178
+ 200,
179
+ ),
180
+ ),
181
+ time-item-size: (
182
+ sizable: (
183
+ rem(28px),
184
+ rem(32px),
185
+ rem(40px),
186
+ ),
187
+ ),
141
188
  )
142
189
  );
143
190
 
@@ -146,6 +193,7 @@ $fluent-time-picker: extend(
146
193
  /// @prop {Map} selected-text-color [color: ('primary', 500)] - The text color of a selected item in time picker.
147
194
  /// @prop {Map} hover-text-color [color: ('primary', 600)] - The hover text color of an open time picker.
148
195
  /// @prop {Map} header-background [color: ('primary', 500)] - The header background color of a time picker.
196
+ /// @prop {Color} divider-color [color: ('gray', 300)] - The divider color of the time picker.
149
197
  /// @prop {List} active-item-border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for the highlight of the active item in the time-picker.
150
198
  /// @requires $light-time-picker
151
199
  $bootstrap-time-picker: extend(
@@ -179,28 +227,41 @@ $bootstrap-time-picker: extend(
179
227
  rem(20px),
180
228
  ),
181
229
  ),
230
+
231
+ divider-color: (
232
+ color: (
233
+ 'gray',
234
+ 300,
235
+ ),
236
+ ),
182
237
  )
183
238
  );
184
239
 
185
240
  /// Generates an indigo time-picker schema.
186
241
  /// @type {Map}
187
- /// @prop {Map} text-color [color: ('gray', 700)] - The text color of an open time picker.
188
- /// @prop {Map} selected-text-color [color: ('primary', 500)] - The text color of a selected item in time picker.
242
+ /// @prop {Map} text-color [color: ('gray', 800)] - The text color of an open time picker.
189
243
  /// @prop {Map} hover-text-color [color: ('primary', 500)] - The hover text color of an open time picker.
190
- /// @prop {Map} header-background [color: ('primary', 500)] - The header background color of a time picker.
191
- /// @prop {Map} header-hour-text-color [contrast-color: ('primary', 500)] - The header hour text color of a time picker.
192
- /// @prop {Map} header-time-period-color [contrast-color: ('primary', 500)] - The header AM/PM text color of a time picker.
193
- /// @prop {List} border-radius [(rem(3px), rem(0), rem(20px))] - The border radius used for the overall shape of the time-picker.
194
- /// @prop {List} active-item-border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for the highlight of the active item in the time-picker.
244
+ /// @prop {Map} selected-text-color [color: ('primary', 500)] - The text color of a selected item in time picker.
245
+ /// @prop {Map} active-item-background [color: ('primary', 500)] - The background color for current item in focused column inside the time picker.
246
+ /// @prop {Map} active-item-foreground [contrast-color: ('primary', 900)] - The foreground color for current item in focused column inside the time picker.
247
+ /// @prop {Map} background-color [contrast-color: ('gray', 900)] - The time-picker panel background color.
248
+ /// @prop {Map} header-background [contrast-color: ('gray', 900)] - The header background color of a time picker.
249
+ /// @prop {Map} header-hour-text-color [color: ('gray', 800)] - The header hour text color of a time picker.
250
+ /// @prop {Map} header-time-period-color [color: ('gray', 800)] - The header AM/PM text color of a time picker.
251
+ /// @prop {List} border-radius [(rem(6px), rem(0), rem(20px))] - The border radius used for the overall shape of the time-picker.
252
+ /// @prop {List} active-item-border-radius [(rem(32px), rem(0), rem(32px))] - The border radius used for the highlight of the active item in the time-picker.
253
+ /// @prop {Color} border-color [color: ('gray', 400)] - The border-color of the time picker.
254
+ /// @prop {Color} divider-color [color: ('gray', 400)] - The divider color of the time picker.
195
255
  ///
196
256
  /// @requires $light-time-picker
197
257
  $indigo-time-picker: extend(
198
258
  $light-time-picker,
259
+ $indigo-elevation-time-picker,
199
260
  (
200
261
  text-color: (
201
262
  color: (
202
263
  'gray',
203
- 700,
264
+ 800,
204
265
  ),
205
266
  ),
206
267
 
@@ -218,39 +279,75 @@ $indigo-time-picker: extend(
218
279
  ),
219
280
  ),
220
281
 
221
- header-background: (
282
+ active-item-foreground: (
283
+ contrast-color: (
284
+ 'primary',
285
+ 900,
286
+ ),
287
+ ),
288
+
289
+ active-item-background: (
222
290
  color: (
223
291
  'primary',
224
292
  500,
225
293
  ),
226
294
  ),
227
295
 
228
- header-hour-text-color: (
296
+ background-color: (
229
297
  contrast-color: (
230
- 'primary',
231
- 500,
298
+ 'gray',
299
+ 900,
232
300
  ),
233
301
  ),
234
302
 
235
- header-time-period-color: (
303
+ header-background: (
236
304
  contrast-color: (
237
- 'primary',
238
- 500,
305
+ 'gray',
306
+ 900,
307
+ ),
308
+ ),
309
+
310
+ header-hour-text-color: (
311
+ color: (
312
+ 'gray',
313
+ 800,
314
+ ),
315
+ ),
316
+
317
+ header-time-period-color: (
318
+ color: (
319
+ 'gray',
320
+ 800,
239
321
  ),
240
322
  ),
241
323
 
242
324
  border-radius: (
243
325
  border-radius: (
244
- rem(3px),
326
+ rem(6px),
245
327
  rem(0),
246
328
  rem(20px),
247
329
  ),
248
330
  ),
331
+
249
332
  active-item-border-radius: (
250
333
  border-radius: (
251
- rem(20px),
334
+ rem(32px),
252
335
  rem(0),
253
- rem(20px),
336
+ rem(32px),
337
+ ),
338
+ ),
339
+
340
+ border-color: (
341
+ color: (
342
+ 'gray',
343
+ 400,
344
+ ),
345
+ ),
346
+
347
+ divider-color: (
348
+ color: (
349
+ 'gray',
350
+ 400,
254
351
  ),
255
352
  ),
256
353
  )
@@ -18,6 +18,7 @@
18
18
  /// @prop {Map} foreground [contrast-color: ('surface')] - The color used for the tree node content.
19
19
  /// @prop {Map} foreground-active [contrast-color: ('gray', 200)] - The color used for the content in active state of the tree node.
20
20
  /// @prop {Map} foreground-disabled [color: ('gray', 500)] - The color used for the content of the disabled tree node.
21
+ /// @prop {Map} icon-color [contrast-color: ('surface')] - The color used for the tree node icon.
21
22
  /// @prop {Map} drop-area-color [color: ('secondary')] - The background color used for the tree node drop aria.
22
23
  /// @prop {Map} hover-color [color: ('gray', 900, .1)] - The background color used for the tree node on hover.
23
24
  /// @prop {Map} hover-selected-color [color: ('gray', 900, .1)] - The background color used for the selected tree node on hover.
@@ -34,6 +35,11 @@ $light-tree: (
34
35
  'surface',
35
36
  ),
36
37
  ),
38
+ icon-color: (
39
+ contrast-color: (
40
+ 'surface',
41
+ ),
42
+ ),
37
43
  background-selected: (
38
44
  color: (
39
45
  'primary',
@@ -223,61 +229,104 @@ $bootstrap-tree: extend(
223
229
 
224
230
  /// Generates a light indigo tree schema.
225
231
  /// @type {Map}
226
- /// @prop {Map} background-active [color: ('surface')] - The background color used for the active tree node.
227
- /// @prop {Map} foreground-active [contrast-color: ('primary')] - The color used for the content in active state of the tree node.
228
- /// @prop {Map} foreground-selected [contrast-color: ('primary')] - The color used for the content of the selected tree node.
229
- /// @prop {Map} background-active-selected [color: ('primary', 400)] - The background color used for the active selected tree node.
230
- /// @prop {Map} foreground-active-selected [contrast-color: ('primary', 400)] - The color used for the content of the active selected tree node.
231
- /// @prop {Map} border-color [color: ('primary', 300)] - The outline shadow color used for tree node in focus state.
232
- /// @prop {Map} hover-color [color: ('primary', 100)] - The background color used for the tree node on hover.
233
- /// @prop {Map} hover-selected-color [color: ('primary', 100)] - The background color used for the selected tree node on hover.
232
+ /// @prop {Color} background [transparent] - The background color used for the tree node.
233
+ /// @prop {Color} background-selected [transparent] - The background color used for the selected tree node.
234
+ /// @prop {Map} background-active [color: ('primary', 300, 0.3)] - The background color used for the active tree node.
235
+ /// @prop {Map} background-active-selected [color: ('primary', 300, 0.3)] - The background color used for the active selected tree node.
236
+ /// @prop {Color} background-disabled [transparent] - The background color used for the tree node in disabled state.
237
+ /// @prop {Map} foreground [color: ('gray', 800)] - The color used for the tree node content.
238
+ /// @prop {Map} foreground-active [color: ('gray', 900)] - The color used for the content in active state of the tree node.
239
+ /// @prop {Map} foreground-selected [color: ('gray', 900)] - The color used for the content of the selected tree node.
240
+ /// @prop {Map} foreground-active-selected [color: ('gray', 900)] - The color used for the content of the active selected tree node.
241
+ /// @prop {Map} foreground-disabled [color: ('gray', 900, 0.2)] - The color used for the content of the disabled tree node.
242
+ /// @prop {Map} icon-color [color: ('gray', 600)] - The color used for the tree node icon.
243
+ /// @prop {Map} border-color [color: ('primary', 400)] - The outline shadow color used for tree node in focus state.
244
+ /// @prop {Map} hover-color [color: ('gray', 900, .05)] - The background color used for the tree node on hover.
245
+ /// @prop {Map} hover-selected-color [color: ('primary', 300, 0.5)] - The background color used for the selected tree node on hover.
246
+ /// @prop {List} size [(rem(24px), rem(28px), rem(32px))] - The size used for the tree node.
234
247
  /// @requires {Map} $light-tree
235
248
  $indigo-tree: extend(
236
249
  $light-tree,
237
250
  (
251
+ background: transparent,
252
+ foreground: (
253
+ color: (
254
+ 'gray',
255
+ 800,
256
+ ),
257
+ ),
258
+ background-selected: transparent,
259
+ foreground-selected: (
260
+ color: (
261
+ 'gray',
262
+ 900,
263
+ ),
264
+ ),
238
265
  background-active: (
239
266
  color: (
240
- 'surface',
267
+ 'primary',
268
+ 300,
269
+ 0.3,
241
270
  ),
242
271
  ),
243
272
  foreground-active: (
244
273
  color: (
245
- 'primary',
274
+ 'gray',
275
+ 900,
246
276
  ),
247
277
  ),
248
- foreground-selected: (
249
- contrast-color: (
250
- 'primary',
278
+ background-disabled: transparent,
279
+ foreground-disabled: (
280
+ color: (
281
+ 'gray',
282
+ 900,
283
+ 0.2,
251
284
  ),
252
285
  ),
253
286
  background-active-selected: (
254
287
  color: (
255
288
  'primary',
256
- 400,
289
+ 300,
290
+ 0.3,
257
291
  ),
258
292
  ),
259
293
  foreground-active-selected: (
260
- contrast-color: (
261
- 'primary',
262
- 400,
294
+ color: (
295
+ 'gray',
296
+ 900,
297
+ ),
298
+ ),
299
+ icon-color: (
300
+ color: (
301
+ 'gray',
302
+ 600,
263
303
  ),
264
304
  ),
265
305
  border-color: (
266
306
  color: (
267
307
  'primary',
268
- 300,
308
+ 400,
269
309
  ),
270
310
  ),
271
311
  hover-color: (
272
312
  color: (
273
- 'primary',
274
- 100,
313
+ 'gray',
314
+ 900,
315
+ 0.05,
275
316
  ),
276
317
  ),
277
318
  hover-selected-color: (
278
319
  color: (
279
320
  'primary',
280
- 100,
321
+ 300,
322
+ 0.5,
323
+ ),
324
+ ),
325
+ size: (
326
+ sizable: (
327
+ rem(24px),
328
+ rem(28px),
329
+ rem(32px),
281
330
  ),
282
331
  ),
283
332
  )
@@ -46,3 +46,11 @@
46
46
 
47
47
  @return $sign + $result;
48
48
  }
49
+
50
+ /// Removes measurement units from variable.
51
+ /// @access private
52
+ /// @param {Number} $var - The variable to remove the unit of.
53
+ /// @return {Number} - The given variable without units.
54
+ @function unitless($var) {
55
+ @return math.div($var, $var * 0 + 1);
56
+ }