testio-tailwind 1.1.1 → 2.0.0

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 (49) hide show
  1. package/.eleventy.js +2 -5
  2. package/README.md +1 -37
  3. package/icon-classes-extractor.js +3 -3
  4. package/package.json +13 -29
  5. package/src/_includes/head.njk +3 -3
  6. package/src/assets/images/pencil.svg +11 -0
  7. package/src/assets/stylesheets/app.css +94 -69
  8. package/src/assets/stylesheets/components/alerts.css +1 -1
  9. package/src/assets/stylesheets/components/buttons.css +1 -1
  10. package/src/assets/stylesheets/components/cards.css +9 -9
  11. package/src/assets/stylesheets/components/chat.css +9 -6
  12. package/src/assets/stylesheets/components/customer/customer_productcards.css +3 -3
  13. package/src/assets/stylesheets/components/designsystem/designsystem-styles.css +4 -0
  14. package/src/assets/stylesheets/components/devices.css +1 -1
  15. package/src/assets/stylesheets/components/forms.css +3 -10
  16. package/src/assets/stylesheets/components/header.css +1 -2
  17. package/src/assets/stylesheets/components/icons.css +25 -5
  18. package/src/assets/stylesheets/components/list_item.css +1 -2
  19. package/src/assets/stylesheets/components/lists.css +1 -2
  20. package/src/assets/stylesheets/components/loading_spinner.css +61 -79
  21. package/src/assets/stylesheets/components/metasidebar.css +1 -2
  22. package/src/assets/stylesheets/components/notifications.css +1 -1
  23. package/src/assets/stylesheets/components/select.css +1 -1
  24. package/src/assets/stylesheets/components/select2.css +1 -1
  25. package/src/assets/stylesheets/components/splitview.css +6 -6
  26. package/src/assets/stylesheets/components/tables.css +18 -18
  27. package/src/assets/stylesheets/components/tags.css +10 -3
  28. package/src/assets/stylesheets/components/test_header.css +3 -3
  29. package/src/assets/stylesheets/components/tester/tester_cards.css +4 -4
  30. package/src/assets/stylesheets/components/trix_editor.css +3 -3
  31. package/src/assets/stylesheets/components/typography.css +12 -11
  32. package/src/assets/stylesheets/tailwind_config.css +299 -0
  33. package/src/assets/stylesheets/tailwind_custom_utilities.css +268 -0
  34. package/src/index.pug +8 -39
  35. package/src/pages/buttons/buttons-round.haml +58 -0
  36. package/src/pages/colors.pug +94 -67
  37. package/src/pages/components/banner_cards.haml +0 -10
  38. package/src/pages/components/loading_spinner.haml +5 -5
  39. package/src/pages/forms/search.haml +2 -2
  40. package/src/pages/icons/index.njk +35 -2
  41. package/src/static/icons.json +1 -0
  42. package/src/static/site.webmanifest +2 -2
  43. package/src/assets/stylesheets/postcss.config.js +0 -24
  44. package/src/assets/stylesheets/tailwind.config.js +0 -333
  45. /package/src/{static → assets/images}/android-chrome-192x192.png +0 -0
  46. /package/src/{static → assets/images}/android-chrome-512x512.png +0 -0
  47. /package/src/{static → assets/images}/apple-touch-icon.png +0 -0
  48. /package/src/{static → assets/images}/favicon-16x16.png +0 -0
  49. /package/src/{static → assets/images}/favicon-32x32.png +0 -0
@@ -1,4 +1,3 @@
1
-
2
1
  .list-inline {
3
2
  @apply flex flex-wrap;
4
3
  }
@@ -36,7 +35,7 @@ dl.list-inline.responsive {
36
35
  dd {
37
36
  @apply mb-xs;
38
37
  }
39
- @screen lg {
38
+ @media (width >= theme(--breakpoint-lg)) {
40
39
  grid-template-columns: auto 1fr;
41
40
  dd {
42
41
  margin-bottom: 0;
@@ -1,104 +1,86 @@
1
1
  .testio-loader-wrapper {
2
+ display: inline-block;
2
3
  overflow: hidden;
3
4
  position: relative;
5
+ }
4
6
 
5
- .stroke {
6
- stroke-linecap: round;
7
- stroke-miterlimit: 10;
8
- stroke-width: 180px;
9
- }
7
+ .testio-loader-wrapper .stroke {
8
+ stroke: var(--color-info);
9
+ stroke-linecap: round;
10
+ stroke-miterlimit: 10;
11
+ stroke-width: 6px;
12
+ }
10
13
 
11
- .anim-bar {
12
- animation: dash-line 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
13
- stroke: e6e6e6;
14
- }
14
+ .testio-loader-i {
15
+ height: 60px;
16
+ left: 0;
17
+ position: absolute;
18
+ top: 0;
19
+ width: 60px;
20
+ }
15
21
 
16
- .anim-circle {
17
- animation: dash-circle 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
18
- stroke-dasharray: 1, 200;
19
- stroke-dashoffset: 0;
20
- }
22
+ .anim-bar {
23
+ animation: dash-line 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
24
+ }
21
25
 
22
- @keyframes rotate {
23
- 100% {
24
- transform: rotate(360deg);
25
- }
26
+ @keyframes dash-line {
27
+ 0% {
28
+ stroke-dasharray: 1, 200;
29
+ stroke-dashoffset: -60px;
26
30
  }
27
31
 
28
- @keyframes dash-line {
29
- 0% {
30
- stroke-dasharray: 1, 200;
31
- stroke-dashoffset: -180px;
32
- }
33
-
34
- 50% {
35
- stroke-dasharray: 50, 200;
36
- }
37
-
38
- 100% {
39
- stroke-dasharray: 0, 200;
40
- stroke-dashoffset: 180px;
41
- }
32
+ 50% {
33
+ stroke-dasharray: 50, 200;
42
34
  }
43
35
 
44
- @keyframes dash-circle {
45
- 0% {
46
- stroke-dasharray: 1, 200;
47
- stroke-dashoffset: 0;
48
- }
49
-
50
- 50% {
51
- stroke-dasharray: 89, 200;
52
- stroke-dashoffset: -35px;
53
- }
54
-
55
- 100% {
56
- stroke-dasharray: 89, 200;
57
- stroke-dashoffset: -124px;
58
- }
36
+ 100% {
37
+ stroke-dasharray: 0, 200;
38
+ stroke-dashoffset: 60px;
59
39
  }
40
+ }
60
41
 
61
- @keyframes color {
62
- 100%,
63
- 0% {
64
- stroke: #e6e6e6;
65
- }
66
-
67
- 99% {
68
- stroke: #21bef4;
69
- }
70
- }
42
+ .testio-loader-o-wrapper {
43
+ position: relative;
44
+ height: 60px;
45
+ margin-left: 12px;
46
+ width: 60px;
71
47
  }
72
48
 
73
- .testio-loader-i {
74
- height: 180px;
75
- left: 0;
49
+ .testio-loader-o-wrapper .testio-loader-o {
76
50
  position: absolute;
77
- top: 0;
78
- width: 180px;
51
+ bottom: 0;
52
+ height: 60px;
53
+ left: 0;
54
+ right: 0;
55
+ top: 0;
56
+ transform-origin: center center;
79
57
  }
80
58
 
81
- .testio-loader-o-wrapper {
82
- height: 180px;
83
- margin-left: 20;
84
- position: relative;
85
- width: 180px;
86
-
87
- &::before {
59
+ .testio-loader-o-wrapper::before {
88
60
  content: "";
89
61
  display: block;
90
62
  padding-top: 100%;
63
+ }
64
+
65
+ .anim-circle {
66
+ animation: dash-circle 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
67
+ stroke-dasharray: 1, 200;
68
+ stroke-dashoffset: 0;
69
+ }
70
+
71
+ @keyframes dash-circle {
72
+ 0% {
73
+ stroke-dasharray: 1, 200;
74
+ stroke-dashoffset: 0;
91
75
  }
92
76
 
93
- .testio-loader-o {
94
- animation: rotate 2s linear infinite;
95
- bottom: 0;
96
- height: 180px;
97
- left: 0;
98
- position: absolute;
99
- right: 0;
100
- top: 0;
101
- transform-origin: center center;
77
+ 50% {
78
+ stroke-dasharray: 89, 200;
79
+ stroke-dashoffset: -35px;
102
80
  }
103
- }
104
81
 
82
+ 100% {
83
+ stroke-dasharray: 89, 200;
84
+ stroke-dashoffset: -124px;
85
+ }
86
+ }
@@ -1,4 +1,3 @@
1
-
2
1
  aside.metasidebar {
3
2
  @apply relative overflow-hidden;
4
3
  grid-area: aside;
@@ -39,7 +38,7 @@ aside .metasidebar-wrapper {
39
38
  }
40
39
 
41
40
  aside .metasidebar-wrapper[open] {
42
- @screen sm {
41
+ @media (width >= theme(--breakpoint-sm)) {
43
42
  @apply relative grid top-auto;
44
43
  }
45
44
  }
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .drawer .notification-content {
17
- @apply relative grid py-xxs px-xs text-label cursor-pointer;
17
+ @apply relative grid py-xs px-spacing text-label cursor-pointer;
18
18
  grid-template-columns: auto 1fr;
19
19
  grid-template-rows: auto;
20
20
  }
@@ -23,7 +23,7 @@ select {
23
23
  }
24
24
 
25
25
  .form-select-native select {
26
- @apply relative flex flex-row w-full justify-start items-stretch min-h-btn py-xs px-sm text-base text-white rounded bg-primary outline-none border-0 cursor-pointer;
26
+ @apply relative flex flex-row w-full justify-start items-stretch min-h-btn py-xs px-sm text-base text-white rounded bg-primary outline-hidden border-0 cursor-pointer;
27
27
  }
28
28
 
29
29
  .form-select-native .select-wrapper select:disabled {
@@ -50,7 +50,7 @@ select.select2 {
50
50
  }
51
51
 
52
52
  .select2-search__field {
53
- @apply h-btn-sm pl-xs outline-none;
53
+ @apply h-btn-sm pl-xs outline-hidden;
54
54
  }
55
55
 
56
56
  .select2-results__options {
@@ -7,16 +7,16 @@
7
7
  grid-template-columns: 1fr;
8
8
  grid-template-rows: auto auto 1fr auto;
9
9
  grid-area: main;
10
- @screen lg {
10
+ @media (width >= theme(--breakpoint-lg)) {
11
11
  grid-template-columns: 1fr 1fr;
12
12
  }
13
- @screen xl {
13
+ @media (width >= theme(--breakpoint-xl)) {
14
14
  grid-template-columns: 1fr 2fr;
15
15
  }
16
- @screen 2xl {
16
+ @media (width >= theme(--breakpoint-2xl)) {
17
17
  grid-template-columns: 2fr 3fr;
18
18
  }
19
- @screen 3xl {
19
+ @media (width >= theme(--breakpoint-3xl)) {
20
20
  grid-template-columns: 1fr 3fr;
21
21
  }
22
22
  }
@@ -129,7 +129,7 @@
129
129
  dd {
130
130
  margin-bottom: 0;
131
131
  }
132
- @screen xl {
132
+ @media (width >= theme(--breakpoint-xl)) {
133
133
  grid-template-columns: 1fr 2fr 1fr 2fr;
134
134
  }
135
135
  }
@@ -166,7 +166,7 @@
166
166
  .splitview-details-content-grid {
167
167
  @apply grid gap-xs mb-md;
168
168
 
169
- @screen xl {
169
+ @media (width >= theme(--breakpoint-xl)) {
170
170
  grid-template-columns: 1fr 3fr;
171
171
  .label {
172
172
  padding-top: 2px;
@@ -188,20 +188,20 @@ td.action-cell,
188
188
 
189
189
  .table-cellstyle th.missing::after {
190
190
  @apply right-0 bg-gray-600;
191
- -webkit-mask-image: url("$package_path/images/exclamation.svg");
192
- mask-image: url("$package_path/images/exclamation.svg");
191
+ -webkit-mask-image: url("/assets/images/exclamation.svg");
192
+ mask-image: url("/assets/images/exclamation.svg");
193
193
  }
194
194
 
195
195
  .table-cellstyle th.inprogress::after {
196
196
  @apply bg-gray-600;
197
- -webkit-mask-image: url("$package_path/images/clock.svg");
198
- mask-image: url("$package_path/images/clock.svg");
197
+ -webkit-mask-image: url("/assets/images/clock.svg");
198
+ mask-image: url("/assets/images/clock.svg");
199
199
  }
200
200
 
201
201
  .table-cellstyle th.completed::after {
202
202
  @apply h-2.5 top-2.5 right-1.5 bg-success;
203
- -webkit-mask-image: url("$package_path/images/check-thick.svg");
204
- mask-image: url("$package_path/images/check-thick.svg");
203
+ -webkit-mask-image: url("/assets/images/check-thick.svg");
204
+ mask-image: url("/assets/images/check-thick.svg");
205
205
  }
206
206
 
207
207
  .table-cellstyle td {
@@ -228,8 +228,8 @@ td.action-cell,
228
228
 
229
229
  .table-cellstyle td.inprogress::after {
230
230
  @apply bg-gray-600;
231
- -webkit-mask-image: url("$package_path/images/clock.svg");
232
- mask-image: url("$package_path/images/clock.svg");
231
+ -webkit-mask-image: url("/assets/images/clock.svg");
232
+ mask-image: url("/assets/images/clock.svg");
233
233
  }
234
234
 
235
235
  .table-cellstyle td.completed {
@@ -238,8 +238,8 @@ td.action-cell,
238
238
 
239
239
  .table-cellstyle .completed::after {
240
240
  @apply h-2.5 top-2.5 right-1.5 bg-success;
241
- -webkit-mask-image: url("$package_path/images/check-thick.svg");
242
- mask-image: url("$package_path/images/check-thick.svg");
241
+ -webkit-mask-image: url("/assets/images/check-thick.svg");
242
+ mask-image: url("/assets/images/check-thick.svg");
243
243
  }
244
244
 
245
245
  .table-cellstyle td.cell-editable,
@@ -266,8 +266,8 @@ td.action-cell,
266
266
  @apply absolute inline-block w-icon-xs h-icon-xs right-2.5 top-2 bg-primary;
267
267
  content: "";
268
268
  mask-repeat: round;
269
- -webkit-mask-image: url("$package_path/images/edit.svg");
270
- mask-image: url("$package_path/images/edit.svg");
269
+ -webkit-mask-image: url("/assets/images/pencil.svg");
270
+ mask-image: url("/assets/images/pencil.svg");
271
271
  }
272
272
  }
273
273
 
@@ -342,8 +342,8 @@ td.action-cell,
342
342
  &::after {
343
343
  @apply block w-full h-full bg-white;
344
344
  content: "";
345
- mask-image: url("$package_path/images/checkbox-background.svg");
346
- -webkit-mask-image: url("$package_path/images/checkbox-background.svg");
345
+ mask-image: url("/assets/images/checkbox-background.svg");
346
+ -webkit-mask-image: url("/assets/images/checkbox-background.svg");
347
347
  mask-repeat: no-repeat;
348
348
  }
349
349
  }
@@ -368,14 +368,14 @@ td.action-cell,
368
368
 
369
369
  .table-cellstyle td.cell-selectable.inprogress label::after {
370
370
  @apply bg-gray-600;
371
- -webkit-mask-image: url("$package_path/images/clock.svg");
372
- mask-image: url("$package_path/images/clock.svg");
371
+ -webkit-mask-image: url("/assets/images/clock.svg");
372
+ mask-image: url("/assets/images/clock.svg");
373
373
  }
374
374
 
375
375
  .table-cellstyle .cell-selectable.completed label::after {
376
376
  @apply h-2.5 top-2.5 right-1.5 bg-success;
377
- -webkit-mask-image: url("$package_path/images/check-thick.svg");
378
- mask-image: url("$package_path/images/check-thick.svg");
377
+ -webkit-mask-image: url("/assets/images/check-thick.svg");
378
+ mask-image: url("/assets/images/check-thick.svg");
379
379
  }
380
380
 
381
381
 
@@ -13,7 +13,8 @@
13
13
  }
14
14
 
15
15
  .tag .icon {
16
- @apply text-icon-xxs h-icon-xxs;
16
+ height: var(--font-size-icon-xs);
17
+ font-size: var(--font-size-icon-xs);
17
18
  }
18
19
 
19
20
  .tag.sm {
@@ -29,13 +30,19 @@
29
30
  }
30
31
 
31
32
  .tag.popover-tag {
32
- @apply text-base h-auto hover:text-white hover:bg-link-hover cursor-pointer;
33
+ @apply text-base h-auto cursor-pointer;
33
34
  padding-top: 4px;
34
35
  padding-bottom: 4px;
35
36
  }
36
37
 
38
+ .tag.popover-tag:hover {
39
+ @apply bg-link-hover text-white;
40
+ }
41
+
37
42
  .tag.popover-tag .icon {
38
- @apply h-icon-xs mr-icon-spacing text-icon-xs;
43
+ @apply mr-icon-spacing;
44
+ height: var(--font-size-icon-xs);
45
+ font-size: var(--font-size-icon-xs);
39
46
  }
40
47
 
41
48
  .tag.popover-tag:hover .icon {
@@ -7,14 +7,14 @@
7
7
  grid-template-columns: 1fr auto auto;
8
8
  grid-template-rows: auto;
9
9
 
10
- @screen sm {
10
+ @media (width >= theme(--breakpoint-sm)) {
11
11
  @apply pt-xs pr-md pb-0 pl-md;
12
12
  grid-template-areas: "test-title test-progress session-info test-actions"
13
13
  "nav-tabs nav-tabs nav-tabs nav-tabs";
14
14
  grid-template-columns: auto 1fr auto auto;
15
15
  grid-template-rows: auto;
16
16
  }
17
- @screen md {
17
+ @media (width >= theme(--breakpoint-md)) {
18
18
  @apply pt-xs pr-md pb-0 pl-body-padding-desktop;
19
19
  }
20
20
  }
@@ -44,7 +44,7 @@
44
44
  .nav-tabs {
45
45
  @apply pt-xxs pb-xs;
46
46
  }
47
- @screen sm {
47
+ @media (width >= theme(--breakpoint-sm)) {
48
48
  @apply py-xxs;
49
49
  }
50
50
  }
@@ -1,16 +1,16 @@
1
1
  .grid-testercards {
2
2
  @apply grid gap-grid-gutter;
3
3
 
4
- @screen sm {
4
+ @media (width >= theme(--breakpoint-sm)) {
5
5
  grid-template-columns: 1fr 1fr;
6
6
  }
7
- @screen lg {
7
+ @media (width >= theme(--breakpoint-lg)) {
8
8
  grid-template-columns: 1fr 1fr 1fr;
9
9
  }
10
- @screen xl {
10
+ @media (width >= theme(--breakpoint-xl)) {
11
11
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
12
12
  }
13
- @screen 3xl {
13
+ @media (width >= theme(--breakpoint-3xl)) {
14
14
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
15
15
  }
16
16
  }
@@ -1,7 +1,7 @@
1
1
  .form-group.trix-editor {
2
2
  @apply gap-grid-gutter grid-rows-auto;
3
3
  grid-template-rows: auto;
4
- @screen md {
4
+ @media (width >= theme(--breakpoint-md)) {
5
5
  grid-template-areas:
6
6
  "label trix-toolbar"
7
7
  "label trix-editor";
@@ -10,7 +10,7 @@
10
10
 
11
11
  .trix-editor .trix-content {
12
12
  @apply -mt-grid-gutter;
13
- @screen md {
13
+ @media (width >= theme(--breakpoint-md)) {
14
14
  grid-area: trix-editor;
15
15
  }
16
16
  }
@@ -21,7 +21,7 @@
21
21
 
22
22
  trix-toolbar {
23
23
  @apply border border-bordercolor rounded-t;
24
- @screen md {
24
+ @media (width >= theme(--breakpoint-md)) {
25
25
  grid-area: trix-toolbar;
26
26
  }
27
27
  }
@@ -1,4 +1,8 @@
1
1
 
2
+ body {
3
+ @apply font-body text-base;
4
+ }
5
+
2
6
  h1, h2, h3, h4, h5,
3
7
  .text-heading-1,
4
8
  .text-heading-2,
@@ -9,31 +13,27 @@ h1, h2, h3, h4, h5,
9
13
  }
10
14
 
11
15
  h1 {
12
- @apply text-heading-1;
16
+ font-size: var(--font-size-heading-1);
13
17
  }
14
18
 
15
19
  h2 {
16
- @apply text-heading-2;
20
+ font-size: var(--font-size-heading-2);
17
21
  }
18
22
 
19
23
  h3 {
20
- @apply text-heading-3;
24
+ font-size: var(--font-size-heading-3);
21
25
  }
22
26
 
23
27
  h4 {
24
- @apply text-heading-4;
28
+ font-size: var(--font-size-heading-4);
25
29
  }
26
30
 
27
31
  h5 {
28
- @apply text-heading-5;
32
+ font-size: var(--font-size-heading-5);
29
33
  }
30
34
 
31
35
  h6 {
32
- @apply text-heading-6;
33
- }
34
-
35
- body {
36
- @apply text-base;
36
+ font-size: var(--font-size-heading-6);
37
37
  }
38
38
 
39
39
  .text-display-1,
@@ -41,10 +41,11 @@ body {
41
41
  .text-display-3,
42
42
  .text-display-4 {
43
43
  @apply font-display;
44
+ font-weight: var(--font-weight-display);
44
45
  }
45
46
 
46
47
  a {
47
- @apply text-link font-semibold hover:text-link-hover hover:underline cursor-pointer;
48
+ @apply text-link font-semibold leading-5 hover:text-link-hover hover:underline cursor-pointer;
48
49
  }
49
50
 
50
51
  code {