studiokit-scaffolding-js 7.0.12-next.1.7 → 7.0.12-next.1.8

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.
@@ -1,397 +1,397 @@
1
- button,
2
- .btn {
3
- text-align: center;
4
- border: 0 transparent;
5
- border-radius: var(--border-radius);
6
- max-width: 100%;
7
- margin: auto;
8
-
9
- & span {
10
- font-size: 0.9rem;
11
- font-weight: var(--font-weight-bold);
12
- text-transform: capitalize;
13
- }
14
- }
15
-
16
- button.ttc .MuiButton-label {
17
- text-transform: capitalize;
18
- }
19
-
20
- /* Targeting Bootstrap buttons only */
21
- .btn {
22
- box-shadow: none;
23
- padding: 0.5rem 0.75rem;
24
-
25
- @media (--md) {
26
- width: auto;
27
- }
28
-
29
- &.mr4 {
30
- margin-right: 1.25rem !important;
31
- }
32
- }
33
-
34
- button:focus,
35
- .btn:focus {
36
- outline: none;
37
- }
38
-
39
- .stepper button,
40
- .stepper .btn {
41
- &:focus {
42
- outline: 5px auto -webkit-focus-ring-color !important;
43
- outline-offset: -2px;
44
- }
45
- }
46
-
47
- *[class*="btn-"]:not(.btn-link):not(.btn-copy-to-clipboard) {
48
- padding: 0.5rem 0.75rem;
49
- text-transform: capitalize;
50
- font-size: 0.9rem;
51
- font-weight: var(--font-weight-bold);
52
- }
53
-
54
- a[class*="btn-"]:active,
55
- a[class*="btn-"]:focus,
56
- a[class*="btn-"]:active:focus {
57
- text-decoration: none;
58
- }
59
-
60
- .btn span {
61
- display: inline-block;
62
- vertical-align: middle;
63
- }
64
-
65
- .btn .icon-lg,
66
- .btn .icon-md {
67
- display: inline-block;
68
- min-width: 1.5em;
69
- padding-right: 0.5em;
70
- margin-left: -0.25em;
71
- }
72
-
73
- /* material-ui style overrides */
74
- .btn-primary,
75
- .btn-bad,
76
- .btn-disabled {
77
- color: var(--color-white);
78
- float: none;
79
- margin-bottom: 1rem;
80
- overflow: visible;
81
-
82
- & svg {
83
- margin-right: 0.4rem;
84
- height: 1.25rem;
85
- width: 1.25rem;
86
- }
87
-
88
- /* sometimes you don’t want a bottom margin */
89
- &.mb0 {
90
- margin-bottom: 0;
91
- }
92
-
93
- &.mt2 {
94
- margin-top: 0.5rem;
95
- }
96
-
97
- &.padding {
98
- padding-right: 0.5rem;
99
- padding-left: 0.5rem;
100
- }
101
- }
102
-
103
- /* Primary */
104
- .btn-primary {
105
- color: var(--color-white);
106
- white-space: normal;
107
- background-color: var(--color-primary);
108
-
109
- &:hover {
110
- background-color: color-mod(var(--color-primary) l(+7%) s(+15%));
111
- }
112
-
113
- &:active,
114
- &:focus,
115
- &:active:focus,
116
- &:not(:disabled):not(.disabled):active,
117
- &:not(:disabled):not(.disabled):active:focus {
118
- outline: 7px auto -webkit-focus-ring-color;
119
- outline-offset: -2px;
120
- box-shadow: none;
121
- color: var(--color-white);
122
- background-color: var(--color-primary);
123
- }
124
- }
125
-
126
- /* Disabled */
127
- .btn-primary[disabled],
128
- .btn-primary.disabled,
129
- .btn-primary.Mui-disabled,
130
- .btn-primary.Mui-disabled:hover,
131
- .btn-primary.Mui-disabled:focus,
132
- .btn-disabled,
133
- .btn-disabled:hover {
134
- background-color: var(--color-light-grey);
135
-
136
- /* making disabled button color darker to meet accessibility standards */
137
- color: rgb(0 0 0 / 60%);
138
- }
139
-
140
- /* Bad */
141
- .btn-bad {
142
- background-color: var(--color-error);
143
- white-space: normal;
144
-
145
- &:hover {
146
- color: var(--color-white);
147
- background-color: color-mod(var(--color-error) l(+7%) s(+15%));
148
- }
149
-
150
- &:active,
151
- &:focus,
152
- &:active:focus {
153
- background-color: var(--color-error);
154
- color: var(--color-white);
155
- }
156
- }
157
-
158
- /* Text */
159
- .btn-text {
160
- text-transform: none;
161
-
162
- & span {
163
- text-transform: none;
164
- }
165
-
166
- & .caret {
167
- margin-left: 0.5rem;
168
- }
169
-
170
- &.color-primary:hover {
171
- color: var(--color-primary);
172
- background-color: color-mod(var(--color-primary) a(4%));
173
- }
174
-
175
- &.color-purple:hover {
176
- color: var(--color-purple);
177
- background-color: color-mod(var(--color-purple) a(4%));
178
- }
179
-
180
- &.color-red:hover {
181
- color: var(--color-red);
182
- background-color: color-mod(var(--color-red) a(4%));
183
- }
184
-
185
- &.color-pink:hover {
186
- color: var(--color-pink);
187
- background-color: color-mod(var(--color-pink) a(4%));
188
- }
189
-
190
- &.color-blue:hover {
191
- color: var(--color-blue);
192
- background-color: color-mod(var(--color-blue) a(4%));
193
- }
194
-
195
- &.underline:hover {
196
- text-decoration: underline;
197
- }
198
-
199
- &:focus {
200
- outline: none !important;
201
- }
202
- }
203
-
204
- /* Toggle */
205
- .btn-toggle {
206
- font-size: 0.75rem;
207
- padding: 10px;
208
- background-color: transparent;
209
- background-image: none;
210
- box-shadow: none;
211
-
212
- & > .hamburger {
213
- display: inline-block;
214
- }
215
-
216
- & .icon-bar {
217
- display: block;
218
- width: 23px;
219
- height: 4px;
220
-
221
- & + .icon-bar {
222
- margin-top: 4px;
223
- }
224
- }
225
-
226
- &:hover {
227
- & .icon-bar {
228
- background-color: color-mod(var(--color-white));
229
- }
230
- }
231
-
232
- &:active,
233
- &:focus,
234
- &:active:focus {
235
- color: var(--color-white);
236
- }
237
- }
238
-
239
- .btn-toggle-label {
240
- display: none;
241
-
242
- @media (--md) {
243
- display: inherit;
244
- }
245
- }
246
-
247
- .btn-flat-icon,
248
- .btn-flat-icon div {
249
- height: 36px;
250
-
251
- & svg {
252
- margin-top: 6px;
253
- }
254
- }
255
-
256
- /* modal close button tweak */
257
- button.close > span {
258
- font-size: 36px;
259
- font-weight: inherit;
260
- }
261
-
262
- .button-fat {
263
- padding: 0.875em 3em;
264
-
265
- @media (--md) {
266
- padding: 0.875em 4em;
267
- }
268
- }
269
-
270
- .button-large {
271
- min-height: 30vh;
272
- max-width: 20rem;
273
- }
274
-
275
- .dropdown-item.active,
276
- .dropdown-item:active {
277
- color: #16181b;
278
- background-color: #f8f9fa;
279
- }
280
-
281
- /**
282
- * ActionList
283
- */
284
-
285
- .action-list {
286
- display: block;
287
- min-width: 146px;
288
-
289
- & .btn-default {
290
- padding: 0.5rem 1rem;
291
- font-weight: var(--font-weight-bold);
292
- background-color: var(--color-light-grey);
293
- }
294
-
295
- & .dropdown-toggle {
296
- padding: 0.5rem;
297
- border-left: 2px solid var(--color-white);
298
- margin: 0;
299
- align-self: stretch;
300
- }
301
-
302
- & .action-list-menu svg {
303
- height: 2rem;
304
- width: 2rem;
305
- vertical-align: middle;
306
- margin-right: 0.5rem;
307
- }
308
- }
309
-
310
- .action-list.fr {
311
- & .btn-group-default {
312
- float: right;
313
- }
314
- }
315
-
316
- .w-100-lt-xs .action-list {
317
- min-width: 86px;
318
-
319
- & .dropdown {
320
- width: 100%;
321
-
322
- @media (--xs) {
323
- width: auto;
324
- }
325
- }
326
-
327
- & .btn-default:not(.dropdown-toggle) {
328
- width: 90%;
329
-
330
- @media (--xs) {
331
- width: auto;
332
- }
333
- }
334
- }
335
-
336
- .action-list-text-button {
337
- display: none;
338
- }
339
-
340
- /**
341
- * Material UI Buttons
342
- */
343
-
344
- /* Hide bootstrap focus outline on Material buttons since they use their own highlight */
345
- .MuiButtonBase-root:focus,
346
- .MuiButtonBase-root:active,
347
- .MuiButtonBase-root:not(:disabled):not(.disabled):active,
348
- .MuiButtonBase-root:not(:disabled):not(.disabled):active:focus {
349
- outline: none;
350
- }
351
-
352
- /* Material UI icon spacing */
353
- .MuiButton-text .MuiButton-label .MuiSvgIcon-root {
354
- margin-right: 0.4rem;
355
- }
356
-
357
- .MuiSwitch-switchBase .MuiTouchRipple-root {
358
- color: var(--color-primary);
359
- }
360
-
361
- .MuiSwitch-switchBase.MuiSwitch-checked .MuiTouchRipple-root {
362
- color: inherit;
363
- }
364
-
365
- /* making disabled button color darker to meet accessibility standards */
366
- .MuiButton-root.Mui-disabled {
367
- color: rgb(0 0 0 / 60%);
368
- }
369
-
370
- /* allow disabled buttons to have popovers */
371
- .MuiButtonBase-root.Mui-disabled.enable-popovers {
372
- cursor: auto;
373
- pointer-events: all;
374
-
375
- &.MuiButton-outlinedPrimary {
376
- &:hover {
377
- border: 1px solid rgb(0 0 0 / 12%);
378
- }
379
- }
380
- }
381
-
382
- .MuiToggleButton-root {
383
- color: var(--color-primary);
384
-
385
- &.Mui-selected {
386
- background-color: var(--color-primary);
387
- color: var(--color-white);
388
-
389
- &:hover {
390
- background-color: color-mod(var(--color-primary) l(+7%) s(+15%));
391
- }
392
-
393
- &:focus {
394
- background-color: var(--color-primary);
395
- }
396
- }
397
- }
1
+ button,
2
+ .btn {
3
+ text-align: center;
4
+ border: 0 transparent;
5
+ border-radius: var(--border-radius);
6
+ max-width: 100%;
7
+ margin: auto;
8
+
9
+ & span {
10
+ font-size: 0.9rem;
11
+ font-weight: var(--font-weight-bold);
12
+ text-transform: capitalize;
13
+ }
14
+ }
15
+
16
+ button.ttc .MuiButton-label {
17
+ text-transform: capitalize;
18
+ }
19
+
20
+ /* Targeting Bootstrap buttons only */
21
+ .btn {
22
+ box-shadow: none;
23
+ padding: 0.5rem 0.75rem;
24
+
25
+ @media (--md) {
26
+ width: auto;
27
+ }
28
+
29
+ &.mr4 {
30
+ margin-right: 1.25rem !important;
31
+ }
32
+ }
33
+
34
+ button:focus,
35
+ .btn:focus {
36
+ outline: none;
37
+ }
38
+
39
+ .stepper button,
40
+ .stepper .btn {
41
+ &:focus {
42
+ outline: 5px auto -webkit-focus-ring-color !important;
43
+ outline-offset: -2px;
44
+ }
45
+ }
46
+
47
+ *[class*="btn-"]:not(.btn-link):not(.btn-copy-to-clipboard) {
48
+ padding: 0.5rem 0.75rem;
49
+ text-transform: capitalize;
50
+ font-size: 0.9rem;
51
+ font-weight: var(--font-weight-bold);
52
+ }
53
+
54
+ a[class*="btn-"]:active,
55
+ a[class*="btn-"]:focus,
56
+ a[class*="btn-"]:active:focus {
57
+ text-decoration: none;
58
+ }
59
+
60
+ .btn span {
61
+ display: inline-block;
62
+ vertical-align: middle;
63
+ }
64
+
65
+ .btn .icon-lg,
66
+ .btn .icon-md {
67
+ display: inline-block;
68
+ min-width: 1.5em;
69
+ padding-right: 0.5em;
70
+ margin-left: -0.25em;
71
+ }
72
+
73
+ /* material-ui style overrides */
74
+ .btn-primary,
75
+ .btn-bad,
76
+ .btn-disabled {
77
+ color: var(--color-white);
78
+ float: none;
79
+ margin-bottom: 1rem;
80
+ overflow: visible;
81
+
82
+ & svg {
83
+ margin-right: 0.4rem;
84
+ height: 1.25rem;
85
+ width: 1.25rem;
86
+ }
87
+
88
+ /* sometimes you don’t want a bottom margin */
89
+ &.mb0 {
90
+ margin-bottom: 0;
91
+ }
92
+
93
+ &.mt2 {
94
+ margin-top: 0.5rem;
95
+ }
96
+
97
+ &.padding {
98
+ padding-right: 0.5rem;
99
+ padding-left: 0.5rem;
100
+ }
101
+ }
102
+
103
+ /* Primary */
104
+ .btn-primary {
105
+ color: var(--color-white);
106
+ white-space: normal;
107
+ background-color: var(--color-primary);
108
+
109
+ &:hover {
110
+ background-color: color-mod(var(--color-primary) l(+7%) s(+15%));
111
+ }
112
+
113
+ &:active,
114
+ &:focus,
115
+ &:active:focus,
116
+ &:not(:disabled):not(.disabled):active,
117
+ &:not(:disabled):not(.disabled):active:focus {
118
+ outline: 7px auto -webkit-focus-ring-color;
119
+ outline-offset: -2px;
120
+ box-shadow: none;
121
+ color: var(--color-white);
122
+ background-color: var(--color-primary);
123
+ }
124
+ }
125
+
126
+ /* Disabled */
127
+ .btn-primary[disabled],
128
+ .btn-primary.disabled,
129
+ .btn-primary.Mui-disabled,
130
+ .btn-primary.Mui-disabled:hover,
131
+ .btn-primary.Mui-disabled:focus,
132
+ .btn-disabled,
133
+ .btn-disabled:hover {
134
+ background-color: var(--color-light-grey);
135
+
136
+ /* making disabled button color darker to meet accessibility standards */
137
+ color: rgb(0 0 0 / 60%);
138
+ }
139
+
140
+ /* Bad */
141
+ .btn-bad {
142
+ background-color: var(--color-error);
143
+ white-space: normal;
144
+
145
+ &:hover {
146
+ color: var(--color-white);
147
+ background-color: color-mod(var(--color-error) l(+7%) s(+15%));
148
+ }
149
+
150
+ &:active,
151
+ &:focus,
152
+ &:active:focus {
153
+ background-color: var(--color-error);
154
+ color: var(--color-white);
155
+ }
156
+ }
157
+
158
+ /* Text */
159
+ .btn-text {
160
+ text-transform: none;
161
+
162
+ & span {
163
+ text-transform: none;
164
+ }
165
+
166
+ & .caret {
167
+ margin-left: 0.5rem;
168
+ }
169
+
170
+ &.color-primary:hover {
171
+ color: var(--color-primary);
172
+ background-color: color-mod(var(--color-primary) a(4%));
173
+ }
174
+
175
+ &.color-purple:hover {
176
+ color: var(--color-purple);
177
+ background-color: color-mod(var(--color-purple) a(4%));
178
+ }
179
+
180
+ &.color-red:hover {
181
+ color: var(--color-red);
182
+ background-color: color-mod(var(--color-red) a(4%));
183
+ }
184
+
185
+ &.color-pink:hover {
186
+ color: var(--color-pink);
187
+ background-color: color-mod(var(--color-pink) a(4%));
188
+ }
189
+
190
+ &.color-blue:hover {
191
+ color: var(--color-blue);
192
+ background-color: color-mod(var(--color-blue) a(4%));
193
+ }
194
+
195
+ &.underline:hover {
196
+ text-decoration: underline;
197
+ }
198
+
199
+ &:focus {
200
+ outline: none !important;
201
+ }
202
+ }
203
+
204
+ /* Toggle */
205
+ .btn-toggle {
206
+ font-size: 0.75rem;
207
+ padding: 10px;
208
+ background-color: transparent;
209
+ background-image: none;
210
+ box-shadow: none;
211
+
212
+ & > .hamburger {
213
+ display: inline-block;
214
+ }
215
+
216
+ & .icon-bar {
217
+ display: block;
218
+ width: 23px;
219
+ height: 4px;
220
+
221
+ & + .icon-bar {
222
+ margin-top: 4px;
223
+ }
224
+ }
225
+
226
+ &:hover {
227
+ & .icon-bar {
228
+ background-color: color-mod(var(--color-white));
229
+ }
230
+ }
231
+
232
+ &:active,
233
+ &:focus,
234
+ &:active:focus {
235
+ color: var(--color-white);
236
+ }
237
+ }
238
+
239
+ .btn-toggle-label {
240
+ display: none;
241
+
242
+ @media (--md) {
243
+ display: inherit;
244
+ }
245
+ }
246
+
247
+ .btn-flat-icon,
248
+ .btn-flat-icon div {
249
+ height: 36px;
250
+
251
+ & svg {
252
+ margin-top: 6px;
253
+ }
254
+ }
255
+
256
+ /* modal close button tweak */
257
+ button.close > span {
258
+ font-size: 36px;
259
+ font-weight: inherit;
260
+ }
261
+
262
+ .button-fat {
263
+ padding: 0.875em 3em;
264
+
265
+ @media (--md) {
266
+ padding: 0.875em 4em;
267
+ }
268
+ }
269
+
270
+ .button-large {
271
+ min-height: 30vh;
272
+ max-width: 20rem;
273
+ }
274
+
275
+ .dropdown-item.active,
276
+ .dropdown-item:active {
277
+ color: #16181b;
278
+ background-color: #f8f9fa;
279
+ }
280
+
281
+ /**
282
+ * ActionList
283
+ */
284
+
285
+ .action-list {
286
+ display: block;
287
+ min-width: 146px;
288
+
289
+ & .btn-default {
290
+ padding: 0.5rem 1rem;
291
+ font-weight: var(--font-weight-bold);
292
+ background-color: var(--color-light-grey);
293
+ }
294
+
295
+ & .dropdown-toggle {
296
+ padding: 0.5rem;
297
+ border-left: 2px solid var(--color-white);
298
+ margin: 0;
299
+ align-self: stretch;
300
+ }
301
+
302
+ & .action-list-menu svg {
303
+ height: 2rem;
304
+ width: 2rem;
305
+ vertical-align: middle;
306
+ margin-right: 0.5rem;
307
+ }
308
+ }
309
+
310
+ .action-list.fr {
311
+ & .btn-group-default {
312
+ float: right;
313
+ }
314
+ }
315
+
316
+ .w-100-lt-xs .action-list {
317
+ min-width: 86px;
318
+
319
+ & .dropdown {
320
+ width: 100%;
321
+
322
+ @media (--xs) {
323
+ width: auto;
324
+ }
325
+ }
326
+
327
+ & .btn-default:not(.dropdown-toggle) {
328
+ width: 90%;
329
+
330
+ @media (--xs) {
331
+ width: auto;
332
+ }
333
+ }
334
+ }
335
+
336
+ .action-list-text-button {
337
+ display: none;
338
+ }
339
+
340
+ /**
341
+ * Material UI Buttons
342
+ */
343
+
344
+ /* Hide bootstrap focus outline on Material buttons since they use their own highlight */
345
+ .MuiButtonBase-root:focus,
346
+ .MuiButtonBase-root:active,
347
+ .MuiButtonBase-root:not(:disabled):not(.disabled):active,
348
+ .MuiButtonBase-root:not(:disabled):not(.disabled):active:focus {
349
+ outline: none;
350
+ }
351
+
352
+ /* Material UI icon spacing */
353
+ .MuiButton-text .MuiButton-label .MuiSvgIcon-root {
354
+ margin-right: 0.4rem;
355
+ }
356
+
357
+ .MuiSwitch-switchBase .MuiTouchRipple-root {
358
+ color: var(--color-primary);
359
+ }
360
+
361
+ .MuiSwitch-switchBase.MuiSwitch-checked .MuiTouchRipple-root {
362
+ color: inherit;
363
+ }
364
+
365
+ /* making disabled button color darker to meet accessibility standards */
366
+ .MuiButton-root.Mui-disabled {
367
+ color: rgb(0 0 0 / 60%);
368
+ }
369
+
370
+ /* allow disabled buttons to have popovers */
371
+ .MuiButtonBase-root.Mui-disabled.enable-popovers {
372
+ cursor: auto;
373
+ pointer-events: all;
374
+
375
+ &.MuiButton-outlinedPrimary {
376
+ &:hover {
377
+ border: 1px solid rgb(0 0 0 / 12%);
378
+ }
379
+ }
380
+ }
381
+
382
+ .MuiToggleButton-root {
383
+ color: var(--color-primary);
384
+
385
+ &.Mui-selected {
386
+ background-color: var(--color-primary);
387
+ color: var(--color-white);
388
+
389
+ &:hover {
390
+ background-color: color-mod(var(--color-primary) l(+7%) s(+15%));
391
+ }
392
+
393
+ &:focus {
394
+ background-color: var(--color-primary);
395
+ }
396
+ }
397
+ }