@geotab/zenith 3.9.0-beta.2 → 3.9.0-beta.4

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 (67) hide show
  1. package/README.md +29 -0
  2. package/dist/chart/pieChart/centerTextPlugin.js +1 -2
  3. package/dist/chart/pieChart.js +10 -3
  4. package/dist/commonStyles/pillStyles/pillContent.less +3 -2
  5. package/dist/commonStyles/pillStyles/pillStyles.less +2 -1
  6. package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
  7. package/dist/commonStyles/typography/typography.less +251 -613
  8. package/dist/dateInputInner/dateInputInnerControlBlock.js +5 -2
  9. package/dist/index.css +2738 -2499
  10. package/dist/utils/localization/translations/ar.json +0 -1
  11. package/dist/utils/localization/translations/cs.json +0 -1
  12. package/dist/utils/localization/translations/da-DK.json +0 -1
  13. package/dist/utils/localization/translations/de.json +0 -1
  14. package/dist/utils/localization/translations/en.json +0 -1
  15. package/dist/utils/localization/translations/es.json +0 -1
  16. package/dist/utils/localization/translations/fi-FI.json +0 -1
  17. package/dist/utils/localization/translations/fr-FR.json +0 -1
  18. package/dist/utils/localization/translations/fr.json +0 -1
  19. package/dist/utils/localization/translations/hu-HU.json +0 -1
  20. package/dist/utils/localization/translations/id.json +0 -1
  21. package/dist/utils/localization/translations/it.json +0 -1
  22. package/dist/utils/localization/translations/ja.json +0 -1
  23. package/dist/utils/localization/translations/ko-KR.json +0 -1
  24. package/dist/utils/localization/translations/ms.json +0 -1
  25. package/dist/utils/localization/translations/nb-NO.json +0 -1
  26. package/dist/utils/localization/translations/nl.json +0 -1
  27. package/dist/utils/localization/translations/pl.json +0 -1
  28. package/dist/utils/localization/translations/pt-BR.json +0 -1
  29. package/dist/utils/localization/translations/pt-PT.json +0 -1
  30. package/dist/utils/localization/translations/ro-RO.json +0 -1
  31. package/dist/utils/localization/translations/sk-SK.json +0 -1
  32. package/dist/utils/localization/translations/sv.json +0 -1
  33. package/dist/utils/localization/translations/th.json +0 -1
  34. package/dist/utils/localization/translations/tr.json +0 -1
  35. package/dist/utils/localization/translations/zh-Hans.json +0 -1
  36. package/dist/utils/localization/translations/zh-TW.json +0 -1
  37. package/esm/chart/pieChart/centerTextPlugin.js +1 -2
  38. package/esm/chart/pieChart.js +11 -4
  39. package/esm/dateInputInner/dateInputInnerControlBlock.js +5 -2
  40. package/esm/utils/localization/translations/ar.json +0 -1
  41. package/esm/utils/localization/translations/cs.json +0 -1
  42. package/esm/utils/localization/translations/da-DK.json +0 -1
  43. package/esm/utils/localization/translations/de.json +0 -1
  44. package/esm/utils/localization/translations/en.json +0 -1
  45. package/esm/utils/localization/translations/es.json +0 -1
  46. package/esm/utils/localization/translations/fi-FI.json +0 -1
  47. package/esm/utils/localization/translations/fr-FR.json +0 -1
  48. package/esm/utils/localization/translations/fr.json +0 -1
  49. package/esm/utils/localization/translations/hu-HU.json +0 -1
  50. package/esm/utils/localization/translations/id.json +0 -1
  51. package/esm/utils/localization/translations/it.json +0 -1
  52. package/esm/utils/localization/translations/ja.json +0 -1
  53. package/esm/utils/localization/translations/ko-KR.json +0 -1
  54. package/esm/utils/localization/translations/ms.json +0 -1
  55. package/esm/utils/localization/translations/nb-NO.json +0 -1
  56. package/esm/utils/localization/translations/nl.json +0 -1
  57. package/esm/utils/localization/translations/pl.json +0 -1
  58. package/esm/utils/localization/translations/pt-BR.json +0 -1
  59. package/esm/utils/localization/translations/pt-PT.json +0 -1
  60. package/esm/utils/localization/translations/ro-RO.json +0 -1
  61. package/esm/utils/localization/translations/sk-SK.json +0 -1
  62. package/esm/utils/localization/translations/sv.json +0 -1
  63. package/esm/utils/localization/translations/th.json +0 -1
  64. package/esm/utils/localization/translations/tr.json +0 -1
  65. package/esm/utils/localization/translations/zh-Hans.json +0 -1
  66. package/esm/utils/localization/translations/zh-TW.json +0 -1
  67. package/package.json +1 -1
@@ -1,800 +1,438 @@
1
- @import (reference) "../common.less";
2
-
3
- :root {
4
- --main-font: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
5
- --main-font-data: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
6
- --data-font-drive: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
7
- }
8
-
9
- //**********//
10
- // MyGeotab //
11
- //**********//
12
-
13
- //body-label
14
- //label-01
15
- //body-04
16
- //body-s-400
17
- @base-font-size: 12;
18
- @base-line-height: 16;
19
- @base-letter-spacing: 0.32;
20
- @base-font-weight: 400;
21
- @base-font-style: normal;
22
-
23
- //body-01,
24
- //body-l-400
25
- @body-font-size: 16;
26
- @body-line-height: 24;
27
- @body-letter-spacing: 0;
28
-
29
- //body-02-short,
30
- //body-m-400-short
31
- @body-short-font-size: 14;
32
-
33
- //body-02-tall,
34
- //body-m-400-tall
35
- @body-tall-font-size: 14;
36
- @body-tall-line-height: 28;
37
-
38
- //body-03,
39
- //body-s-700
40
- @body-03-weight: 700;
41
-
42
- //body-05,
43
- //body-s-400-italic
44
- @body-05-style: italic;
45
-
46
- //heading-01
47
- //heading-xl-300
48
- @heading-01-font-size: 28;
49
- @heading-01-font-mobile-size: 20;
50
- @heading-01-line-height: 36;
51
- @heading-01-weight: 300;
52
-
53
- //heading-02
54
- //heading-l-400
55
- @heading-02-font-size: 20;
56
- @heading-02-line-height: 24;
57
-
58
- //heading-03
59
- //heading-m-300
60
- @heading-03-font-size: 20;
61
- @heading-03-font-mobile-size: 18;
62
- @heading-03-line-height: 28;
63
-
64
- //heading-04
65
- //heading-s-500
66
- @heading-04-font-size: 16;
67
- @heading-04-line-height: 24;
68
- @heading-04-weight: 500;
69
-
70
- //heading-05
71
- //heading-xs-500
72
- @heading-05-font-size: 14;
73
- @heading-05-letter-spacing: 0.16;
74
- @heading-05-weight: 500;
75
-
76
- //heading-06
77
- @heading-06-letter-spacing: 0;
78
- @heading-06-text-trasnform: uppercase;
79
-
80
- //data-01
81
- //data-xxl
82
- @data-01-font-size: 32;
83
- @data-01-line-height: 40;
84
-
85
- //data-02
86
- //data-xl
87
- @data-02-font-size: 24;
88
- @data-02-line-height: 32;
89
-
90
- //data-03
91
- //data-l
92
- @data-03-font-size: 20;
93
- @data-03-line-height: 24;
94
-
95
- //data-04
96
- //data-m
97
- @data-04-font-size: 18;
98
- @data-04-line-height: 21;
99
-
100
- //data-05
101
- //data-s
102
- @data-05-font-size: 16;
103
- @data-05-line-height: 18;
104
-
105
- //data-06
106
- //data-xs
107
- @data-06-font-size: 14;
108
- @data-06-line-height: 16;
109
-
110
- //*******//
111
- // Drive //
112
- //*******//
113
-
114
- //label-01-drive
115
- //label-400-drive
116
- @drive-base-font-size: 16;
117
- @drive-base-font-mobile-size: 14;
118
- @drive-base-line-height: 18;
119
- @drive-base-letter-spacing: 0.32;
120
- @drive-base-font-weight: 400;
121
- @drive-base-font-style: normal;
122
-
123
- //body-01-drive
124
- //body-l-400-drive
125
- @body-01-drive-font-size: 20;
126
- @body-01-drive-font-mobile-size: 18;
127
- @body-01-drive-line-height: 30;
128
- @body-01-drive-line-height-mobile: 28;
129
- @body-01-drive-letter-spacing: 0;
130
-
131
- //body-02-short-drive
132
- //body-m-400-short-drive
133
- @body-02-short-drive-font-size: 18;
134
- @body-02-short-drive-font-mobile-size: 16;
135
- @body-02-short-drive-line-height: 22;
136
- @body-02-short-drive-line-height-mobile: 20;
137
-
138
- //body-02-tall-drive
139
- //body-m-400-tall-drive
140
- @body-02-tall-drive-font-size: 18;
141
- @body-02-tall-drive-font-mobile-size: 16;
142
- @body-02-tall-drive-line-height: 28;
143
- @body-02-tall-drive-line-height-mobile: 26;
144
-
145
- //body-03-drive,
146
- //body-s-700-drive
147
- @body-03-drive-line-height: 22;
148
- @body-03-drive-weight: 700;
149
-
150
- //body-04-drive,
151
- //body-s-400-drive
152
- @body-04-drive-line-height: 22;
153
- @body-04-drive-line-height-mobile: 20;
154
-
155
- //body-05-drive
156
- //body-s-400-italic-drive
157
- @body-05-drive-line-height: 20;
158
- @body-05-drive-style: italic;
159
-
160
- //heading-01-drive
161
- //heading-xl-300-drive
162
- @heading-01-drive-font-size: 26;
163
- @heading-01-drive-font-mobile-size: 24;
164
- @heading-01-drive-line-height: 34;
165
- @heading-01-drive-line-height-mobile: 32;
166
- @heading-01-drive-weight: 300;
167
-
168
- //heading-02-drive
169
- //heading-l-400-drive
170
- @heading-02-drive-font-size: 24;
171
- @heading-02-drive-font-mobile-size: 22;
172
- @heading-02-drive-line-height: 30;
173
- @heading-02-drive-line-height-mobile: 28;
174
-
175
- //heading-03-drive
176
- //heading-m-300-drive
177
- @heading-03-drive-font-size: 20;
178
- @heading-03-drive-font-mobile-size: 18;
179
- @heading-03-drive-line-height: 26;
180
- @heading-03-drive-mobile-line-height: 24;
181
-
182
- //heading-04-drive
183
- //heading-m-500-drive
184
- @heading-04-drive-font-size: 20;
185
- @heading-04-drive-font-mobile-size: 18;
186
- @heading-04-drive-line-height: 28;
187
- @heading-04-drive-mobile-line-height: 26;
188
- @heading-04-drive-weight: 500;
189
-
190
- //heading-05-drive
191
- //heading-s-500-drive
192
- @heading-05-drive-font-size: 18;
193
- @heading-05-drive-font-mobile-size: 16;
194
- @heading-05-drive-line-height: 22;
195
- @heading-05-drive-mobile-line-height: 20;
196
- @heading-05-drive-letter-spacing: 0.16;
197
-
198
- //heading-06-drive
199
- @heading-06-drive-font-size: 14;
200
- @heading-06-drive-letter-spacing: 0;
201
-
202
- //heading-07-drive
203
- //heading-s-300-drive
204
- @heading-07-drive-font-size: 18;
205
- @heading-07-drive-font-mobile-size: 16;
206
- @heading-07-drive-line-height: 20;
207
- @heading-07-drive-mobile-line-height: 18;
208
-
209
- //data-01-drive
210
- //data-xl-drive
211
- @data-01-drive-font-size: 34;
212
- @data-01-drive-mobile-size: 32;
213
- @data-01-drive-line-height: 42;
214
- @data-01-drive-mobile-line-height: 40;
215
-
216
- //data-02-drive
217
- //data-l-drive
218
- @data-02-drive-font-size: 22;
219
- @data-02-drive-mobile-size: 20;
220
- @data-02-drive-line-height: 26;
221
- @data-02-drive-mobile-line-height: 24;
222
-
223
- //data-03-drive
224
- //data-m-drive
225
- @data-03-drive-font-size: 20;
226
- @data-03-drive-mobile-size: 16;
227
- @data-03-drive-line-height: 22;
228
- @data-03-drive-mobile-line-height: 21;
229
-
230
- //data-04-drive
231
- //data-s-drive
232
- @data-04-drive-font-size: 18;
233
- @data-04-drive-mobile-size: 16;
234
- @data-04-drive-line-height: 26;
235
- @data-04-drive-mobile-line-height: 24;
236
-
237
- //*************************************************************//
238
- // Do not add raw values here, use the variables above instead //
239
- //*************************************************************//
240
-
241
- .zenith-font(@font,
242
- @size: @base-font-size,
243
- @line-height: @base-line-height,
244
- @letter-spacing: @base-letter-spacing,
245
- @weight: @base-font-weight,
246
- @style: @base-font-style,
1
+ .font(
2
+ @font: Roboto,
3
+ @size,
4
+ @line-height: 16px,
5
+ @letter-spacing: 0,
6
+ @weight: 400,
7
+ @style: normal,
247
8
  @text-transform: none,
248
9
  ) {
249
10
  font-family: @font;
250
- font-size: (@size / @rem);
11
+ font-size: @size;
251
12
  font-style: @style;
252
13
  font-weight: @weight;
253
- letter-spacing: (@letter-spacing / @rem);
254
- line-height: (@line-height / @rem);
14
+ letter-spacing: @letter-spacing;
15
+ line-height: @line-height;
255
16
  text-transform: @text-transform;
256
17
  text-decoration: none;
257
18
 
258
19
  html:lang(ar) & {
259
- font-family: @arabic-font-family;
20
+ font-family: var(--arabic-font-family);
260
21
  }
261
22
  }
262
23
 
263
- .zenith-drive-font(@font,
264
- @size: @drive-base-font-size,
265
- @line-height: @drive-base-line-height,
266
- @letter-spacing: @drive-base-letter-spacing,
267
- @weight: @drive-base-font-weight,
268
- @style: @drive-base-font-style,
269
- @text-transform: none,
270
- ) {
271
- font-family: @font;
272
- font-size: (@size / @rem);
273
- font-style: @style;
274
- font-weight: @weight;
275
- letter-spacing: (@letter-spacing / @rem);
276
- line-height: (@line-height / @rem);
277
- text-transform: @text-transform;
278
- text-decoration: none;
24
+ :root {
25
+ --main-font: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
26
+ --main-font-data: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
27
+ --data-font-drive: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
28
+ --arabic-font-family: "Noto Sans Arabic", Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
279
29
  }
280
30
 
281
- // MyGeotab
282
-
283
31
  // Labels
284
32
  .label-01,
285
- .body-label-400,
286
- .body-04,
287
- .body-s-400 {
288
- .zenith-font(@main-font-family);
33
+ .body-label-400 {
34
+ .font(var(--main-font), 12px, @line-height: 16px, @letter-spacing: 0.32px, @weight: 400);
35
+ }
36
+
37
+ // Labels Drive
38
+ .label-01-tablet-drive,
39
+ .tablet-label-400-drive {
40
+ .font(var(--main-font), 16px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400);
41
+ }
42
+
43
+ .label-01-mobile-drive,
44
+ .mobile-label-400-drive {
45
+ .font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400);
46
+ }
47
+
48
+ @media (max-width: 640px) {
49
+ .tablet-label-400-drive {
50
+ .font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400);
51
+ }
289
52
  }
290
53
 
291
54
  // Body
292
55
  .body-01,
293
56
  .body-l-400 {
294
- .zenith-font(@main-font-family, @body-font-size, @body-line-height, @body-letter-spacing);
57
+ .font(var(--main-font), 16px, @line-height: 24px, @letter-spacing: 0, @weight: 400);
295
58
  }
296
59
 
297
60
  .body-02-short,
298
61
  .body-m-400-short {
299
- .zenith-font(@main-font-family, @body-short-font-size, @base-line-height, @body-letter-spacing);
62
+ .font(var(--main-font), 14px, @line-height: 16px, @letter-spacing: 0, @weight: 400);
300
63
  }
301
64
 
302
65
  .body-02-tall,
303
66
  .body-m-400-tall {
304
- .zenith-font(@main-font-family, @body-tall-font-size, @body-tall-line-height, @body-letter-spacing);
67
+ .font(var(--main-font), 14px, @line-height: 28px, @weight: 400, @letter-spacing: 0);
305
68
  }
306
69
 
307
70
  .body-03,
308
71
  .body-s-700 {
309
- .zenith-font(@main-font-family, @weight: @body-03-weight);
310
- }
311
-
312
- .body-05,
313
- .body-s-400-italic {
314
- .zenith-font(@main-font-family, @style: @body-05-style);
315
- }
316
-
317
- // Headings
318
- .heading-01-desktop,//this is here only until we update the mygeotab use of heading-01-desktop to heading-xl-300
319
- .heading-01,
320
- .heading-xl-300 {
321
- .zenith-font(@main-font-family, @heading-01-font-size, @heading-01-line-height, @weight: @heading-01-weight);
72
+ .font(var(--main-font), 12px, @line-height: 16px, @letter-spacing: 0.32px, @weight: 700);
322
73
  }
323
74
 
324
- .heading-02,
325
- .heading-l-400 {
326
- .zenith-font(@main-font-family, @heading-02-font-size, @heading-02-line-height);
327
- }
328
-
329
- .heading-03,
330
- .heading-m-300 {
331
- .zenith-font(@main-font-family, @heading-03-font-size, @heading-03-line-height, @weight: @heading-01-weight);
332
- }
333
-
334
- .heading-04,
335
- .heading-s-500 {
336
- .zenith-font(@main-font-family, @heading-04-font-size, @heading-04-line-height, @weight: @heading-04-weight);
337
- }
338
-
339
- .heading-05,
340
- .heading-xs-500 {
341
- .zenith-font(@main-font-family, @heading-05-font-size, @base-line-height, @heading-05-letter-spacing, @heading-05-weight);
342
- }
343
-
344
- .heading-06 {
345
- .zenith-font(@main-font-family, @body-tall-font-size, @body-line-height, @heading-06-letter-spacing, @heading-05-weight);
346
- }
347
-
348
- .heading-07,
349
- .heading-xs-300 {
350
- .zenith-font(@main-font-family, @heading-05-font-size, @base-line-height, @heading-05-letter-spacing, @weight: @heading-01-weight);
351
- }
352
-
353
- // Data
354
- .data-01,
355
- .data-xxl {
356
- .zenith-font(@main-font-family, @data-01-font-size, @data-01-line-height);
357
- }
358
-
359
- .data-02,
360
- .data-xl {
361
- .zenith-font(@main-font-family, @data-02-font-size, @data-02-line-height);
362
- }
363
-
364
- .data-03,
365
- .data-l {
366
- .zenith-font(@main-font-family, @data-03-font-size, @data-03-line-height);
367
- }
368
-
369
- .data-04,
370
- .data-m {
371
- .zenith-font(@main-font-family, @data-04-font-size, @data-04-line-height);
372
- }
373
-
374
- .data-05,
375
- .data-s {
376
- .zenith-font(@main-font-family, @data-05-font-size, @data-05-line-height);
377
- }
378
-
379
- .data-06,
380
- .data-xs {
381
- .zenith-font(@main-font-family, @data-06-font-size, @data-06-line-height);
75
+ .body-04,
76
+ .body-s-400 {
77
+ .font(var(--main-font), 12px, @line-height: 16px, @letter-spacing: 0.32px, @weight: 400);
382
78
  }
383
79
 
384
- // Drive
385
-
386
- // Labels Drive
387
- .label-01-drive,
388
- .label-400-drive {
389
- .zenith-drive-font(@driver-font-family);
80
+ .body-05,
81
+ .body-s-400-italic {
82
+ .font(var(--main-font), 12px, @line-height: 16px, @letter-spacing: 0.32px, @weight: 400, @style: italic);
390
83
  }
391
84
 
392
85
  // Body Drive
393
- .body-01-drive,
394
- .body-l-400-drive {
395
- .zenith-drive-font(@driver-font-family, @body-01-drive-font-size, @body-01-drive-line-height, @body-01-drive-letter-spacing);
86
+ .body-01-tablet-drive,
87
+ .tablet-body-l-400-drive {
88
+ .font(var(--main-font), 20px, @line-height: 30px, @letter-spacing: 0, @weight: 400);
396
89
  }
397
90
 
398
- .body-02-short-drive,
399
- .body-m-400-short-drive {
400
- .zenith-drive-font(@driver-font-family, @body-02-short-drive-font-size, @body-02-short-drive-line-height);
91
+ .body-01-mobile-drive,
92
+ .mobile-body-l-400-drive {
93
+ .font(var(--main-font), 18px, @line-height: 28px, @letter-spacing: 0, @weight: 400);
401
94
  }
402
95
 
403
- .body-02-tall-drive,
404
- .body-m-400-tall-drive {
405
- .zenith-drive-font(@driver-font-family, @body-02-tall-drive-font-size, @body-02-tall-drive-line-height);
96
+ @media (max-width: 640px) {
97
+ .tablet-body-l-400-drive {
98
+ .font(var(--main-font), 18px, @line-height: 28px, @letter-spacing: 0, @weight: 400);
99
+ }
406
100
  }
407
101
 
408
- .body-03-drive,
409
- .body-s-700-drive {
410
- .zenith-drive-font(@driver-font-family, @line-height: @body-03-drive-line-height, @weight: @body-03-drive-weight);
102
+ .body-02-short-tablet-drive,
103
+ .tablet-body-m-400-short-drive {
104
+ .font(var(--main-font), 18px, @line-height: 22px, @weight: 400);
411
105
  }
412
106
 
413
- .body-04-drive,
414
- .body-s-400-drive {
415
- .zenith-drive-font(@driver-font-family, @line-height: @body-04-drive-line-height);
107
+ .body-02-short-mobile-drive,
108
+ .mobile-body-m-400-short-drive {
109
+ .font(var(--main-font), 16px, @line-height: 20px, @weight: 400);
416
110
  }
417
111
 
418
- .body-05-drive,
419
- .body-s-400-italic-drive {
420
- .zenith-drive-font(@driver-font-family, @line-height: @body-05-drive-line-height, @style: @body-05-drive-style);
112
+ @media (max-width: 640px) {
113
+ .tablet-body-m-400-short-drive {
114
+ .font(var(--main-font), 16px, @line-height: 20px, @weight: 400);
115
+ }
421
116
  }
422
117
 
423
- // Headings Drive
424
- .heading-01-drive,
425
- .heading-xl-300-drive {
426
- .zenith-drive-font(@driver-font-family, @heading-01-drive-font-size, @heading-01-drive-line-height, @weight: @heading-01-drive-weight);
118
+ .body-02-tall-tablet-drive,
119
+ .tablet-body-m-400-tall-drive {
120
+ .font(var(--main-font), 18px, @line-height: 28px, @weight: 400);
427
121
  }
428
122
 
429
- .heading-02-drive,
430
- .heading-l-400-drive {
431
- .zenith-drive-font(@driver-font-family, @heading-02-drive-font-size, @heading-02-drive-line-height);
123
+ .body-02-tall-mobile-drive,
124
+ .mobile-body-m-400-tall-drive {
125
+ .font(var(--main-font), 16px, @line-height: 26px, @weight: 400);
432
126
  }
433
127
 
434
- .heading-03-drive,
435
- .heading-m-300-drive {
436
- .zenith-drive-font(@driver-font-family, @heading-03-drive-font-size, @heading-03-drive-line-height, @weight: @heading-01-drive-weight);
128
+ @media (max-width: 640px) {
129
+ .tablet-body-m-400-tall-drive {
130
+ .font(var(--main-font), 16px, @line-height: 26px, @weight: 400);
131
+ }
437
132
  }
438
133
 
439
- .heading-04-drive,
440
- .heading-m-500-drive {
441
- .zenith-drive-font(@driver-font-family, @heading-04-drive-font-size, @heading-04-drive-line-height, @weight: @heading-04-drive-weight);
134
+ .body-03-tablet-drive,
135
+ .tablet-body-s-700-drive {
136
+ .font(var(--main-font), 16px, @line-height: 22px, @letter-spacing: 0.32px, @weight: 700);
442
137
  }
443
138
 
444
- .heading-05-drive,
445
- .heading-s-500-drive {
446
- .zenith-drive-font(@driver-font-family, @heading-05-drive-font-size, @heading-05-drive-line-height, @heading-05-drive-letter-spacing, @weight: @heading-04-drive-weight);
139
+ .body-03-mobile-drive,
140
+ .mobile-body-s-700-drive {
141
+ .font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 700);
447
142
  }
448
143
 
449
- .heading-06-drive {
450
- .zenith-drive-font(@driver-font-family, @heading-06-drive-font-size, @body-line-height, @heading-06-drive-letter-spacing, @weight: @heading-04-drive-weight, @text-transform: @heading-06-text-trasnform);
144
+ @media (max-width: 640px) {
145
+ .tablet-body-s-700-drive {
146
+ .font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 700);
147
+ }
451
148
  }
452
149
 
453
- .heading-07-drive,
454
- .heading-s-300-drive {
455
- .zenith-drive-font(@driver-font-family, @heading-07-drive-font-size, @heading-07-drive-line-height, @heading-05-drive-letter-spacing, @weight: @heading-01-drive-weight);
150
+ .body-04-tablet-drive,
151
+ .tablet-body-s-400-drive {
152
+ .font(var(--main-font), 16px, @line-height: 22px, @letter-spacing: 0.32px, @weight: 400);
456
153
  }
457
154
 
458
- // Data Drive
459
- .data-01-drive,
460
- .data-xl-drive {
461
- .zenith-drive-font(@driver-font-family, @data-01-drive-font-size, @data-01-drive-line-height);
155
+ .body-04-mobile-drive,
156
+ .mobile-body-s-400-drive {
157
+ .font(var(--main-font), 14px, @line-height: 20px, @letter-spacing: 0.32px, @weight: 400);
462
158
  }
463
159
 
464
- .data-02-drive,
465
- .data-l-drive {
466
- .zenith-drive-font(@driver-font-family, @data-02-drive-font-size, @data-02-drive-line-height);
160
+ @media (max-width: 640px) {
161
+ .tablet-body-s-400-drive {
162
+ .font(var(--main-font), 14px, @line-height: 20px, @letter-spacing: 0.32px, @weight: 400);
163
+ }
467
164
  }
468
165
 
469
- .data-03-drive,
470
- .data-m-drive {
471
- .zenith-drive-font(@driver-font-family, @data-03-drive-font-size, @data-03-drive-line-height);
166
+ .body-05-tablet-drive,
167
+ .tablet-body-s-400-italic-drive {
168
+ .font(var(--main-font), 16px, @line-height: 20px, @letter-spacing: 0.32px, @weight: 400, @style: italic);
472
169
  }
473
170
 
474
- .data-04-drive,
475
- .data-s-drive {
476
- .zenith-drive-font(@driver-font-family, @data-04-drive-font-size, @data-04-drive-line-height);
171
+ .body-05-mobile-drive,
172
+ .mobile-body-s-400-italic-drive {
173
+ .font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400, @style: italic);
477
174
  }
478
175
 
479
- // Responsive overrides (mobile — max-width: 640px)
480
176
  @media (max-width: 640px) {
481
- // MyGeotab
482
- .heading-xl-300 {
483
- .zenith-font(@main-font-family, @heading-01-font-mobile-size, @heading-01-line-height, @weight: @heading-01-weight);
484
- }
485
-
486
- .heading-m-300 {
487
- .zenith-font(@main-font-family, @heading-03-font-mobile-size, @heading-03-line-height, @weight: @heading-01-weight);
488
- }
489
-
490
- // Drive
491
- .label-01-drive,
492
- .label-400-drive {
493
- .zenith-drive-font(@driver-font-family, @drive-base-font-mobile-size);
494
- }
495
-
496
- .body-01-drive,
497
- .body-l-400-drive {
498
- .zenith-drive-font(@driver-font-family, @body-01-drive-font-mobile-size, @body-01-drive-line-height-mobile, @body-01-drive-letter-spacing);
499
- }
500
-
501
- .body-02-short-drive,
502
- .body-m-400-short-drive {
503
- .zenith-drive-font(@driver-font-family, @body-02-short-drive-font-mobile-size, @body-02-short-drive-line-height-mobile);
504
- }
505
-
506
- .body-02-tall-drive,
507
- .body-m-400-tall-drive {
508
- .zenith-drive-font(@driver-font-family, @body-02-tall-drive-font-mobile-size, @body-02-tall-drive-line-height-mobile);
509
- }
510
-
511
- .body-03-drive,
512
- .body-s-700-drive {
513
- .zenith-drive-font(@driver-font-family, @drive-base-font-mobile-size, @line-height: @body-03-drive-line-height, @weight: @body-03-drive-weight);
514
- }
515
-
516
- .body-04-drive,
517
- .body-s-400-drive {
518
- .zenith-drive-font(@driver-font-family, @drive-base-font-mobile-size, @body-04-drive-line-height-mobile);
519
- }
520
-
521
- .body-05-drive,
522
- .body-s-400-italic-drive {
523
- .zenith-drive-font(@driver-font-family, @drive-base-font-mobile-size, @body-05-drive-line-height, @style: @body-05-drive-style);
524
- }
525
-
526
- .heading-01-drive,
527
- .heading-xl-300-drive {
528
- .zenith-drive-font(@driver-font-family, @heading-01-drive-font-mobile-size, @heading-01-drive-line-height-mobile, @weight: @heading-01-drive-weight);
529
- }
530
-
531
- .heading-02-drive,
532
- .heading-l-400-drive {
533
- .zenith-drive-font(@driver-font-family, @heading-02-drive-font-mobile-size, @heading-02-drive-line-height-mobile);
534
- }
535
-
536
- .heading-03-drive,
537
- .heading-m-300-drive {
538
- .zenith-drive-font(@driver-font-family, @heading-03-drive-font-mobile-size, @heading-03-drive-mobile-line-height, @weight: @heading-01-drive-weight);
539
- }
540
-
541
- .heading-04-drive,
542
- .heading-m-500-drive {
543
- .zenith-drive-font(@driver-font-family, @heading-04-drive-font-mobile-size, @heading-04-drive-mobile-line-height, @weight: @heading-04-drive-weight);
544
- }
545
-
546
- .heading-05-drive,
547
- .heading-s-500-drive {
548
- .zenith-drive-font(@driver-font-family, @heading-05-drive-font-mobile-size, @heading-05-drive-mobile-line-height, @heading-05-drive-letter-spacing, @weight: @heading-04-drive-weight);
549
- }
550
-
551
- .heading-07-drive,
552
- .heading-s-300-drive {
553
- .zenith-drive-font(@driver-font-family, @heading-07-drive-font-mobile-size, @heading-07-drive-mobile-line-height, @heading-05-drive-letter-spacing, @weight: @heading-01-drive-weight);
554
- }
555
-
556
- .data-01-drive,
557
- .data-xl-drive {
558
- .zenith-drive-font(@driver-font-family, @data-01-drive-mobile-size, @data-01-drive-mobile-line-height);
559
- }
560
-
561
- .data-02-drive,
562
- .data-l-drive {
563
- .zenith-drive-font(@driver-font-family, @data-02-drive-mobile-size, @data-02-drive-mobile-line-height);
564
- }
565
-
566
- .data-03-drive,
567
- .data-m-drive {
568
- .zenith-drive-font(@driver-font-family, @data-03-drive-mobile-size, @data-03-drive-mobile-line-height);
569
- }
570
-
571
- .data-04-drive,
572
- .data-s-drive {
573
- .zenith-drive-font(@driver-font-family, @data-04-drive-mobile-size, @data-04-drive-mobile-line-height);
177
+ .tablet-body-s-400-italic-drive {
178
+ .font(var(--main-font), 14px, @line-height: 18px, @letter-spacing: 0.32px, @weight: 400, @style: italic);
574
179
  }
575
180
  }
576
181
 
577
- // ─── Backward-compatible aliases removed in MYG-120793 ────────────────────────
578
- // These class definitions were removed as part of the typography refactor.
579
- // Re-added here so existing MyGeotab consumers continue to compile without changes.
580
-
581
- // Legacy .font() mixin
582
- .font(
583
- @font: Roboto,
584
- @size,
585
- @line-height: 16px,
586
- @letter-spacing: 0,
587
- @weight: 400,
588
- @style: normal,
589
- @text-transform: none,
590
- ) {
591
- font-family: @font;
592
- font-size: @size;
593
- font-style: @style;
594
- font-weight: @weight;
595
- letter-spacing: @letter-spacing;
596
- line-height: @line-height;
597
- text-transform: @text-transform;
598
- }
599
-
600
- // Heading — desktop/mobile aliases
601
- .heading-03-desktop {
602
- .zenith-font(@main-font-family, 20, 28, 0, 300);
182
+ // Headings
183
+ .heading-01-desktop,
184
+ .heading-xl-300 {
185
+ .font(var(--main-font), 28px, @line-height: 36px, @weight: 300);
603
186
  }
604
187
 
605
188
  .heading-01-mobile,
606
189
  .heading-xl-300-mobile {
607
- .zenith-font(@main-font-family, 20, 36, 0, 300);
608
- }
609
-
610
- .heading-03-mobile,
611
- .heading-m-300-mobile {
612
- .zenith-font(@main-font-family, 18, 28, 0, 300);
190
+ .font(var(--main-font), 20px, @line-height: 36px, @weight: 300);
613
191
  }
614
192
 
615
- // Label drive tablet/mobile
616
- .label-01-tablet-drive,
617
- .tablet-label-400-drive {
618
- .zenith-font(@main-font-family, 16, 18);
619
- }
620
-
621
- .label-01-mobile-drive,
622
- .mobile-label-400-drive {
623
- .zenith-font(@main-font-family, 14, 18);
624
- }
625
-
626
- // Body-01 — drive tablet/mobile
627
- .body-01-tablet-drive,
628
- .tablet-body-l-400-drive {
629
- .zenith-font(@main-font-family, 20, 30, 0);
630
- }
631
-
632
- .body-01-mobile-drive,
633
- .mobile-body-l-400-drive {
634
- .zenith-font(@main-font-family, 18, 28, 0);
635
- }
636
-
637
- // Body-02-short — drive tablet/mobile
638
- .body-02-short-tablet-drive,
639
- .tablet-body-m-400-short-drive {
640
- .zenith-font(@main-font-family, 18, 22, 0);
641
- }
642
-
643
- .body-02-short-mobile-drive,
644
- .mobile-body-m-400-short-drive {
645
- .zenith-font(@main-font-family, 16, 20, 0);
193
+ @media (max-width: 640px) {
194
+ .heading-xl-300 {
195
+ .font(var(--main-font), 20px, @line-height: 36px, @weight: 300);
196
+ }
646
197
  }
647
198
 
648
- // Body-02-tall — drive tablet/mobile
649
- .body-02-tall-tablet-drive,
650
- .tablet-body-m-400-tall-drive {
651
- .zenith-font(@main-font-family, 18, 28, 0);
199
+ .heading-02,
200
+ .heading-l-400 {
201
+ .font(var(--main-font), 20px, @line-height: 24px, @weight: 400);
652
202
  }
653
203
 
654
- .body-02-tall-mobile-drive,
655
- .mobile-body-m-400-tall-drive {
656
- .zenith-font(@main-font-family, 16, 26, 0);
204
+ .heading-03-desktop,
205
+ .heading-m-300 {
206
+ .font(var(--main-font), 20px, @line-height: 28px, @weight: 300);
657
207
  }
658
208
 
659
- // Body-03 — drive tablet/mobile
660
- .body-03-tablet-drive,
661
- .tablet-body-s-700-drive {
662
- .zenith-font(@main-font-family, 16, 22, @weight: 700);
209
+ .heading-03-mobile,
210
+ .heading-m-300-mobile {
211
+ .font(var(--main-font), 18px, @line-height: 28px, @weight: 300);
663
212
  }
664
213
 
665
- .body-03-mobile-drive,
666
- .mobile-body-s-700-drive {
667
- .zenith-font(@main-font-family, 14, 18, @weight: 700);
214
+ @media (max-width: 640px) {
215
+ .heading-m-300 {
216
+ .font(var(--main-font), 18px, @line-height: 28px, @weight: 300);
217
+ }
668
218
  }
669
219
 
670
- // Body-04 — drive tablet/mobile
671
- .body-04-tablet-drive,
672
- .tablet-body-s-400-drive {
673
- .zenith-font(@main-font-family, 16, 22);
220
+ .heading-04,
221
+ .heading-s-500 {
222
+ .font(var(--main-font), 16px, @line-height: 24px, @weight: 500);
674
223
  }
675
224
 
676
- .body-04-mobile-drive,
677
- .mobile-body-s-400-drive {
678
- .zenith-font(@main-font-family, 14, 20);
225
+ .heading-05,
226
+ .heading-xs-500 {
227
+ .font(var(--main-font), 14px, @line-height: 16px, 0.16px, 500);
679
228
  }
680
229
 
681
- // Body-05 — drive tablet/mobile
682
- .body-05-tablet-drive,
683
- .tablet-body-s-400-italic-drive {
684
- .zenith-font(@main-font-family, 16, 20, @style: italic);
230
+ .heading-06 {
231
+ .font(var(--main-font), 14px, @line-height: 24px, 0, 500, normal, uppercase);
685
232
  }
686
233
 
687
- .body-05-mobile-drive,
688
- .mobile-body-s-400-italic-drive {
689
- .zenith-font(@main-font-family, 14, 18, @style: italic);
234
+ .heading-07,
235
+ .heading-xs-300 {
236
+ .font(var(--main-font), 14px, @line-height: 16px, 0.16px, 300);
690
237
  }
691
238
 
692
- // Heading — drive tablet/mobile
239
+ // Headings Drive
693
240
  .heading-01-tablet-drive,
694
241
  .tablet-heading-xl-300-drive {
695
- .zenith-font(@main-font-family, 26, 34, 0, 300);
242
+ .font(var(--main-font), 26px, 34px, @weight: 300);
696
243
  }
697
244
 
698
245
  .heading-01-mobile-drive,
699
246
  .mobile-heading-xl-300-drive {
700
- .zenith-font(@main-font-family, 24, 32, 0, 300);
247
+ .font(var(--main-font), 24px, 32px, @weight: 300);
248
+ }
249
+
250
+ @media (max-width: 640px) {
251
+ .tablet-heading-xl-300-drive {
252
+ .font(var(--main-font), 24px, 32px, @weight: 300);
253
+ }
701
254
  }
702
255
 
703
256
  .heading-02-tablet-drive,
704
257
  .tablet-heading-l-400-drive {
705
- .zenith-font(@main-font-family, 24, 30, 0);
258
+ .font(var(--main-font), 24px, 30px, @weight: 400);
706
259
  }
707
260
 
708
261
  .heading-02-mobile-drive,
709
262
  .mobile-heading-l-400-drive {
710
- .zenith-font(@main-font-family, 22, 28, 0);
263
+ .font(var(--main-font), 22px, 28px, @weight: 400);
264
+ }
265
+
266
+ @media (max-width: 640px) {
267
+ .tablet-heading-l-400-drive {
268
+ .font(var(--main-font), 22px, 28px, @weight: 400);
269
+ }
711
270
  }
712
271
 
713
272
  .heading-03-tablet-drive,
714
273
  .tablet-heading-m-300-drive {
715
- .zenith-font(@main-font-family, 20, 26, 0, 300);
274
+ .font(var(--main-font), 20px, 26px, @weight: 300);
716
275
  }
717
276
 
718
277
  .heading-03-mobile-drive,
719
278
  .mobile-heading-m-300-drive {
720
- .zenith-font(@main-font-family, 18, 24, 0, 300);
279
+ .font(var(--main-font), 18px, 24px, @weight: 300);
280
+ }
281
+
282
+ @media (max-width: 640px) {
283
+ .tablet-heading-m-300-drive {
284
+ .font(var(--main-font), 18px, 24px, @weight: 300);
285
+ }
721
286
  }
722
287
 
723
288
  .heading-04-tablet-drive,
724
289
  .tablet-heading-m-500-drive {
725
- .zenith-font(@main-font-family, 20, 28, 0, 500);
290
+ .font(var(--main-font), 20px, 28px, @weight: 500);
726
291
  }
727
292
 
728
293
  .heading-04-mobile-drive,
729
294
  .mobile-heading-m-500-drive {
730
- .zenith-font(@main-font-family, 18, 26, 0, 500);
295
+ .font(var(--main-font), 18px, 26px, @weight: 500);
296
+ }
297
+
298
+ @media (max-width: 640px) {
299
+ .tablet-heading-m-500-drive {
300
+ .font(var(--main-font), 18px, 26px, @weight: 500);
301
+ }
731
302
  }
732
303
 
733
304
  .heading-05-tablet-drive,
734
305
  .tablet-heading-s-500-drive {
735
- .zenith-font(@main-font-family, 18, 22, 0.16, 500);
306
+ .font(var(--main-font), 18px, 22px, 0.16px, 500);
736
307
  }
737
308
 
738
309
  .heading-05-mobile-drive,
739
310
  .mobile-heading-s-500-drive {
740
- .zenith-font(@main-font-family, 16, 20, 0.16, 500);
311
+ .font(var(--main-font), 16px, 20px, 0.16px, 500);
312
+ }
313
+
314
+ @media (max-width: 640px) {
315
+ .tablet-heading-s-500-drive {
316
+ .font(var(--main-font), 16px, 20px, 0.16px, 500);
317
+ }
741
318
  }
742
319
 
743
320
  .heading-06-tablet-drive {
744
- .zenith-font(@main-font-family, 14, 22, 0, 500, normal, uppercase);
321
+ .font(var(--main-font), 14px, 22px, 0, 500, normal, uppercase);
745
322
  }
746
323
 
747
324
  .heading-06-mobile-drive {
748
- .zenith-font(@main-font-family, 12, 20, 0, 500, normal, uppercase);
325
+ .font(var(--main-font), 12px, 20px, 0, 500, normal, uppercase);
749
326
  }
750
327
 
751
328
  .heading-07-tablet-drive,
752
329
  .tablet-heading-s-300-drive {
753
- .zenith-font(@main-font-family, 18, 20, 0.16, 300);
330
+ .font(var(--main-font), 18px, 20px, 0.16px, 300);
754
331
  }
755
332
 
756
333
  .heading-07-mobile-drive,
757
334
  .mobile-heading-s-300-drive {
758
- .zenith-font(@main-font-family, 16, 18, 0.16, 300);
335
+ .font(var(--main-font), 16px, 18px, 0.16px, 300);
336
+ }
337
+
338
+ @media (max-width: 640px) {
339
+ .tablet-heading-s-300-drive {
340
+ .font(var(--main-font), 16px, 18px, 0.16px, 300);
341
+ }
759
342
  }
760
343
 
761
- // Data — drive tablet/mobile
344
+ // Data
345
+ .data-01,
346
+ .data-xxl {
347
+ .font(var(--main-font-data), 32px, @line-height: 40px);
348
+ }
349
+
350
+ .data-02,
351
+ .data-xl {
352
+ .font(var(--main-font-data), 24px, 32px);
353
+ }
354
+
355
+ .data-03,
356
+ .data-l {
357
+ .font(var(--main-font-data), 20px, 24px);
358
+ }
359
+
360
+ .data-04,
361
+ .data-m {
362
+ .font(var(--main-font-data), 18px, 21px);
363
+ }
364
+
365
+ .data-05,
366
+ .data-s {
367
+ .font(var(--main-font-data), 16px, 18px);
368
+ }
369
+
370
+ .data-06,
371
+ .data-xs {
372
+ .font(var(--main-font-data), 14px, 16px);
373
+ }
374
+
375
+ // Data Drive
762
376
  .data-01-tablet-drive,
763
377
  .tablet-data-xl-drive {
764
- .zenith-font(@driver-font-family, 34, 42, 0);
378
+ .font(var(--data-font-drive), 34px, 42px);
765
379
  }
766
380
 
767
381
  .data-01-mobile-drive,
768
382
  .mobile-data-xl-drive {
769
- .zenith-font(@driver-font-family, 32, 40, 0);
383
+ .font(var(--data-font-drive), 32px, 40px);
384
+ }
385
+
386
+ @media (max-width: 640px) {
387
+ .tablet-data-xl-drive {
388
+ .font(var(--data-font-drive), 32px, 40px);
389
+ }
770
390
  }
771
391
 
772
392
  .data-02-tablet-drive,
773
393
  .tablet-data-l-drive {
774
- .zenith-font(@driver-font-family, 22, 26, 0);
394
+ .font(var(--data-font-drive), 22px, 26px);
775
395
  }
776
396
 
777
397
  .data-02-mobile-drive,
778
398
  .mobile-data-l-drive {
779
- .zenith-font(@driver-font-family, 20, 24, 0);
399
+ .font(var(--data-font-drive), 20px, 24px);
400
+ }
401
+
402
+ @media (max-width: 640px) {
403
+ .tablet-data-l-drive {
404
+ .font(var(--data-font-drive), 20px, 24px);
405
+ }
780
406
  }
781
407
 
782
408
  .data-03-tablet-drive,
783
409
  .tablet-data-m-drive {
784
- .zenith-font(@driver-font-family, 20, 22, 0);
410
+ .font(var(--data-font-drive), 20px, 22px);
785
411
  }
786
412
 
787
413
  .data-03-mobile-drive,
788
414
  .mobile-data-m-drive {
789
- .zenith-font(@driver-font-family, 16, 21, 0);
415
+ .font(var(--data-font-drive), 16px, 21px);
416
+ }
417
+
418
+ @media (max-width: 640px) {
419
+ .tablet-data-m-drive {
420
+ .font(var(--data-font-drive), 16px, 21px);
421
+ }
790
422
  }
791
423
 
792
424
  .data-04-tablet-drive,
793
425
  .tablet-data-s-drive {
794
- .zenith-font(@driver-font-family, 18, 26, 0);
426
+ .font(var(--data-font-drive), 18px, 26px);
795
427
  }
796
428
 
797
429
  .data-04-mobile-drive,
798
430
  .mobile-data-s-drive {
799
- .zenith-font(@driver-font-family, 16, 24, 0);
431
+ .font(var(--data-font-drive), 16px, 24px);
432
+ }
433
+
434
+ @media (max-width: 640px) {
435
+ .tablet-data-s-drive {
436
+ .font(var(--data-font-drive), 16px, 24px);
437
+ }
800
438
  }