@@ -268,21 +268,22 @@ $breakpoint-mobile: 1024px;
268
268
269
269
// top-bar spacing
270
270
$topbar-margin: 4px;
271
+
271
272
button:not(.button-vue),
272
273
input:not([type="range"]),
273
274
textarea {
274
- margin: 0;
275
275
padding: 7px 6px;
276
-
277
- cursor: text;
278
-
279
- color: var(--color-text-lighter);
280
276
border: 1px solid var(--color-border-dark);
281
277
border-radius: var(--border-radius);
282
- outline: none ;
278
+ margin: 0 ;
283
279
background-color: var(--color-main-background);
284
280
281
+ color: var(--color-text-lighter);
282
+
283
+ cursor: text;
284
+
285
285
font-size: 13px;
286
+ outline: none;
286
287
287
288
&:not(:disabled):not(.primary) {
288
289
&:hover,
@@ -294,17 +295,17 @@ textarea {
294
295
}
295
296
296
297
&:active {
298
+ background-color: var(--color-main-background);
297
299
color: var(--color-text-light);
298
300
outline: none;
299
- background-color: var(--color-main-background);
300
301
}
301
302
}
302
303
303
304
&:disabled {
305
+ background-color: var(--color-background-dark);
306
+ color: var(--color-text-maxcontrast);
304
307
cursor: default;
305
308
opacity: $opacity_disabled;
306
- color: var(--color-text-maxcontrast);
307
- background-color: var(--color-background-dark);
308
309
}
309
310
310
311
&:required {
@@ -318,10 +319,10 @@ textarea {
318
319
319
320
/* Primary action button, use sparingly */
320
321
&.primary {
321
- cursor: pointer;
322
- color: var(--color-primary-text);
323
322
border-color: var(--color-primary-element);
324
323
background-color: var(--color-primary-element);
324
+ color: var(--color-primary-text);
325
+ cursor: pointer;
325
326
326
327
&:not(:disabled) {
327
328
&:hover,
@@ -336,27 +337,27 @@ textarea {
336
337
}
337
338
338
339
&:disabled {
339
- cursor: default;
340
- color: var(--color-primary-text-dark);
341
340
// opacity is already defined to .5 if disabled
342
341
background-color: var(--color-primary-element);
342
+ color: var(--color-primary-text-dark);
343
+ cursor: default;
343
344
}
344
345
}
345
346
}
346
347
@mixin action-active {
347
348
li {
348
349
&.active {
349
- background-color: var(--color-background-hover);
350
- border-radius: 6px;
351
350
padding: 0;
351
+ border-radius: 6px;
352
+ background-color: var(--color-background-hover);
352
353
}
353
354
}
354
355
}
355
356
356
357
@mixin action--disabled {
357
358
.action--disabled {
358
- pointer-events: none;
359
359
opacity: $opacity_disabled;
360
+ pointer-events: none;
360
361
&:hover,
361
362
&:focus {
362
363
cursor: default;
@@ -371,29 +372,29 @@ textarea {
371
372
@mixin action-item($name) {
372
373
.action-#{$name} {
373
374
display: flex;
374
- align-items: flex-start;
375
375
376
376
width: 100%;
377
377
height: auto;
378
- margin: 0;
378
+ box-sizing: border-box; // otherwise router-link overflows in Firefox
379
+ align-items: flex-start;
379
380
padding: 0;
380
381
padding-right: $icon-margin;
381
- box-sizing: border-box; // otherwise router-link overflows in Firefox
382
-
383
- cursor: pointer;
384
- white-space: nowrap;
385
-
386
- opacity: $opacity_normal;
387
- color: var(--color-main-text);
388
382
border: 0;
389
383
border-radius: 0; // otherwise Safari will cut the border-radius area
384
+ margin: 0;
390
385
background-color: transparent;
391
386
box-shadow: none;
387
+ color: var(--color-main-text);
392
388
393
- font-weight: normal ;
389
+ cursor: pointer ;
394
390
font-size: var(--default-font-size);
391
+
392
+ font-weight: normal;
395
393
line-height: $clickable-area;
396
394
395
+ opacity: $opacity_normal;
396
+ white-space: nowrap;
397
+
397
398
&:hover,
398
399
&:focus {
399
400
opacity: $opacity_full;
@@ -407,10 +408,10 @@ textarea {
407
408
&__icon {
408
409
width: $clickable-area;
409
410
height: $clickable-area;
410
- opacity: $opacity_full;
411
411
background-position: $icon-margin center;
412
- background-size: $icon-size;
413
412
background-repeat: no-repeat;
413
+ background-size: $icon-size;
414
+ opacity: $opacity_full;
414
415
}
415
416
416
417
&::v-deep .material-design-icon {
@@ -425,17 +426,17 @@ textarea {
425
426
426
427
// long text area
427
428
p {
429
+
430
+ // in case there are no spaces like long email addresses
431
+ overflow: hidden;
428
432
max-width: 220px;
429
- line-height: 1.6em;
430
433
431
434
// 14px are currently 1em line-height. Mixing units as '44px - 1.6em' does not work.
432
435
padding: #{math.div($clickable-area - 1.6 * 14px, 2)} 0;
433
436
434
437
cursor: pointer;
438
+ line-height: 1.6em;
435
439
text-align: left;
436
-
437
- // in case there are no spaces like long email addresses
438
- overflow: hidden;
439
440
text-overflow: ellipsis;
440
441
}
441
442
@@ -446,12 +447,12 @@ textarea {
446
447
}
447
448
448
449
&__title {
450
+ display: inline-block;
451
+ overflow: hidden;
452
+ max-width: 100%;
449
453
font-weight: bold;
450
454
text-overflow: ellipsis;
451
- overflow: hidden;
452
455
white-space: nowrap;
453
- max-width: 100%;
454
- display: inline-block;
455
456
}
456
457
}
457
458
}
@@ -462,23 +463,23 @@ $input-margin: 4px;
462
463
463
464
.action-input {
464
465
display: flex;
465
- align-items: flex-start;
466
466
467
467
width: 100%;
468
468
height: auto;
469
- margin: 0 ;
469
+ align-items: flex-start ;
470
470
padding: 0;
471
-
472
- cursor: pointer;
473
- white-space: nowrap;
474
-
475
- color: var(--color-main-text);
476
471
border: 0;
477
472
border-radius: 0; // otherwise Safari will cut the border-radius area
473
+ margin: 0;
478
474
background-color: transparent;
479
475
box-shadow: none;
480
476
477
+ color: var(--color-main-text);
478
+
479
+ cursor: pointer;
480
+
481
481
font-weight: normal;
482
+ white-space: nowrap;
482
483
483
484
&::v-deep .material-design-icon {
484
485
width: $clickable-area;
@@ -532,41 +533,41 @@ $input-margin: 4px;
532
533
// Forms & text inputs
533
534
&__form {
534
535
display: flex;
535
- align-items: center;
536
536
flex: 1 1 auto;
537
+ align-items: center;
538
+ padding-right: $icon-margin;
537
539
538
540
margin: $input-margin 0;
539
- padding-right: $icon-margin;
540
541
}
541
542
542
543
&__submit {
543
544
position: absolute;
544
- left: -10000px;
545
545
top: auto;
546
+ left: -10000px;
547
+ overflow: hidden;
546
548
width: 1px;
547
549
height: 1px;
548
- overflow: hidden;
549
550
}
550
551
551
552
&__label {
552
553
display: flex;
553
- align-items: center;
554
- justify-content: center;
555
554
556
555
width: #{$clickable-area - $input-margin * 2};
557
556
height: #{$clickable-area - $input-margin * 2};
558
557
box-sizing: border-box;
559
- margin: 0 0 0 -8px;
558
+ align-items: center;
559
+ justify-content: center;
560
560
padding: 7px 6px;
561
-
562
- opacity: $opacity_full;
563
- color: var(--color-text-lighter);
564
561
border: 1px solid var(--color-border-dark);
565
- border-left-color: transparent;
566
562
border-radius: 0 var(--border-radius) var(--border-radius) 0;
563
+ border-left-color: transparent;
564
+ margin: 0 0 0 -8px;
565
+ background-clip: padding-box;
567
566
/* Avoid background under border */
568
567
background-color: var(--color-main-background);
569
- background-clip: padding-box;
568
+ color: var(--color-text-lighter);
569
+
570
+ opacity: $opacity_full;
570
571
571
572
&,
572
573
* {
@@ -576,11 +577,10 @@ $input-margin: 4px;
576
577
577
578
/* Inputs inside popover supports text, submit & reset */
578
579
&__input {
579
- flex: 1 1 auto;
580
-
581
580
min-width: $clickable-area * 3;
582
581
min-height: #{$clickable-area - $input-margin * 2}; /* twice the element margin-y */
583
582
max-height: #{$clickable-area - $input-margin * 2}; /* twice the element margin-y */
583
+ flex: 1 1 auto;
584
584
margin: 0;
585
585
586
586
// if disabled, change cursor
0 commit comments