@oslokommune/punkt-css 12.2.0 → 12.3.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.
- package/CHANGELOG.md +24 -0
- package/README.md +4 -12
- package/dist/css/components/calendar.css +106 -75
- package/dist/css/components/calendar.min.css +1 -1
- package/dist/css/components/card.css +70 -0
- package/dist/css/components/card.min.css +1 -0
- package/dist/css/components/icon.css +6 -8
- package/dist/css/components/icon.min.css +1 -1
- package/dist/css/components/preview.css +4 -0
- package/dist/css/components/preview.min.css +1 -1
- package/dist/css/components/tabs.css +2 -2
- package/dist/css/components/tabs.min.css +1 -1
- package/dist/css/components/textinput.css +27 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +26 -8
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +216 -86
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +43 -12
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt-normalise.css +23 -0
- package/dist/css/pkt-normalise.min.css +1 -1
- package/dist/css/pkt.css +282 -105
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/base/_typography.scss +31 -8
- package/dist/scss/components/_calendar.scss +61 -32
- package/dist/scss/components/_card.scss +92 -0
- package/dist/scss/components/_icon.scss +3 -1
- package/dist/scss/components/_index.scss +1 -0
- package/dist/scss/components/_preview.scss +4 -0
- package/dist/scss/components/_tabs.scss +1 -1
- package/dist/scss/elements/_button.scss +11 -4
- package/dist/scss/elements/_input.scss +29 -1
- package/dist/scss/normalise/_index.scss +24 -0
- package/package.json +2 -2
|
@@ -391,180 +391,282 @@
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
.pkt-calendar,
|
|
394
|
-
pkt-
|
|
394
|
+
pkt-calendar {
|
|
395
|
+
z-index: 2;
|
|
396
|
+
display: block;
|
|
397
|
+
position: relative;
|
|
395
398
|
max-width: 25rem;
|
|
396
399
|
}
|
|
397
400
|
.pkt-calendar .pkt-cal-month-nav,
|
|
398
|
-
pkt-
|
|
401
|
+
pkt-calendar .pkt-cal-month-nav {
|
|
399
402
|
display: flex;
|
|
400
403
|
justify-content: space-between;
|
|
401
404
|
align-items: center;
|
|
402
405
|
margin-bottom: 1rem;
|
|
403
406
|
}
|
|
404
407
|
.pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker,
|
|
405
|
-
pkt-
|
|
408
|
+
pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker {
|
|
406
409
|
display: flex;
|
|
407
410
|
gap: 0.5rem;
|
|
408
411
|
}
|
|
409
412
|
.pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker .pkt-input,
|
|
410
|
-
pkt-
|
|
413
|
+
pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker .pkt-input {
|
|
411
414
|
font-size: 1rem;
|
|
412
415
|
font-weight: 500;
|
|
413
416
|
letter-spacing: -0.2px;
|
|
414
417
|
line-height: 1.5rem;
|
|
415
418
|
}
|
|
416
419
|
.pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker .pkt-input:is(select),
|
|
417
|
-
pkt-
|
|
420
|
+
pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker .pkt-input:is(select) {
|
|
418
421
|
text-align: right;
|
|
419
422
|
}
|
|
420
423
|
.pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker > .pkt-cal-input-year,
|
|
421
|
-
pkt-
|
|
424
|
+
pkt-calendar .pkt-cal-month-nav .pkt-cal-month-picker > .pkt-cal-input-year {
|
|
422
425
|
max-width: 4.5rem;
|
|
423
426
|
}
|
|
427
|
+
.pkt-calendar .pkt-cal-month-nav td,
|
|
428
|
+
.pkt-calendar .pkt-cal-days td,
|
|
429
|
+
pkt-calendar .pkt-cal-month-nav td,
|
|
430
|
+
pkt-calendar .pkt-cal-days td {
|
|
431
|
+
border: 0;
|
|
432
|
+
}
|
|
424
433
|
.pkt-calendar .pkt-cal-month-nav .pkt-btn,
|
|
425
|
-
.pkt-calendar .pkt-cal-month-nav
|
|
434
|
+
.pkt-calendar .pkt-cal-month-nav td > div,
|
|
426
435
|
.pkt-calendar .pkt-cal-days .pkt-btn,
|
|
427
|
-
.pkt-calendar .pkt-cal-days
|
|
428
|
-
pkt-
|
|
429
|
-
pkt-
|
|
430
|
-
pkt-
|
|
431
|
-
pkt-
|
|
436
|
+
.pkt-calendar .pkt-cal-days td > div,
|
|
437
|
+
pkt-calendar .pkt-cal-month-nav .pkt-btn,
|
|
438
|
+
pkt-calendar .pkt-cal-month-nav td > div,
|
|
439
|
+
pkt-calendar .pkt-cal-days .pkt-btn,
|
|
440
|
+
pkt-calendar .pkt-cal-days td > div {
|
|
432
441
|
font: inherit;
|
|
433
442
|
aspect-ratio: 1/1;
|
|
434
443
|
display: flex;
|
|
435
444
|
justify-content: center;
|
|
436
445
|
align-items: center;
|
|
446
|
+
border: 0;
|
|
437
447
|
}
|
|
438
448
|
.pkt-calendar .pkt-cal-month-nav .pkt-btn,
|
|
439
449
|
.pkt-calendar .pkt-cal-days .pkt-btn,
|
|
440
|
-
pkt-
|
|
441
|
-
pkt-
|
|
442
|
-
margin:
|
|
443
|
-
z-index: 1;
|
|
450
|
+
pkt-calendar .pkt-cal-month-nav .pkt-btn,
|
|
451
|
+
pkt-calendar .pkt-cal-days .pkt-btn {
|
|
452
|
+
margin: 0;
|
|
444
453
|
border-radius: 50%;
|
|
445
454
|
}
|
|
446
455
|
.pkt-calendar .pkt-cal-month-nav .pkt-btn:focus, .pkt-calendar .pkt-cal-month-nav .pkt-btn:active,
|
|
447
456
|
.pkt-calendar .pkt-cal-days .pkt-btn:focus,
|
|
448
457
|
.pkt-calendar .pkt-cal-days .pkt-btn:active,
|
|
449
|
-
pkt-
|
|
450
|
-
pkt-
|
|
451
|
-
pkt-
|
|
452
|
-
pkt-
|
|
458
|
+
pkt-calendar .pkt-cal-month-nav .pkt-btn:focus,
|
|
459
|
+
pkt-calendar .pkt-cal-month-nav .pkt-btn:active,
|
|
460
|
+
pkt-calendar .pkt-cal-days .pkt-btn:focus,
|
|
461
|
+
pkt-calendar .pkt-cal-days .pkt-btn:active {
|
|
453
462
|
outline: 0;
|
|
454
463
|
border: 0;
|
|
455
464
|
}
|
|
456
|
-
.pkt-calendar .pkt-cal-month-nav .pkt-btn:disabled,
|
|
457
|
-
.pkt-calendar .pkt-cal-days .pkt-btn:disabled,
|
|
458
|
-
pkt-el-calendar .pkt-cal-month-nav .pkt-btn:disabled,
|
|
459
|
-
pkt-el-calendar .pkt-cal-days .pkt-btn:disabled {
|
|
460
|
-
background-color: transparent;
|
|
461
|
-
border: 0;
|
|
462
|
-
cursor: not-allowed;
|
|
463
|
-
}
|
|
464
465
|
.pkt-calendar .pkt-cal-days,
|
|
465
|
-
pkt-
|
|
466
|
-
list-style: none;
|
|
467
|
-
display: grid;
|
|
468
|
-
grid-template-columns: repeat(7, 14.285%);
|
|
466
|
+
pkt-calendar .pkt-cal-days {
|
|
469
467
|
margin: 0;
|
|
470
468
|
padding-left: 0;
|
|
471
|
-
|
|
472
|
-
|
|
469
|
+
border-spacing: 0;
|
|
470
|
+
}
|
|
471
|
+
.pkt-calendar .pkt-cal-days td,
|
|
472
|
+
pkt-calendar .pkt-cal-days td {
|
|
473
|
+
padding: 0;
|
|
473
474
|
}
|
|
474
|
-
.pkt-calendar .pkt-cal-days
|
|
475
|
-
pkt-
|
|
475
|
+
.pkt-calendar .pkt-cal-days div,
|
|
476
|
+
pkt-calendar .pkt-cal-days div {
|
|
476
477
|
aspect-ratio: 1/1;
|
|
477
478
|
justify-content: center;
|
|
478
479
|
align-items: center;
|
|
479
480
|
position: relative;
|
|
480
481
|
text-align: center;
|
|
481
|
-
z-index: 1;
|
|
482
482
|
}
|
|
483
|
-
.pkt-calendar .pkt-cal-days
|
|
484
|
-
pkt-
|
|
485
|
-
pkt-
|
|
483
|
+
.pkt-calendar .pkt-cal-days div:before, .pkt-calendar .pkt-cal-days div:after,
|
|
484
|
+
pkt-calendar .pkt-cal-days div:before,
|
|
485
|
+
pkt-calendar .pkt-cal-days div:after {
|
|
486
486
|
content: "";
|
|
487
487
|
display: block;
|
|
488
488
|
position: absolute;
|
|
489
489
|
top: 0;
|
|
490
490
|
bottom: 0;
|
|
491
|
-
z-index:
|
|
491
|
+
z-index: -1;
|
|
492
492
|
}
|
|
493
|
-
.pkt-calendar .pkt-cal-days
|
|
494
|
-
pkt-
|
|
493
|
+
.pkt-calendar .pkt-cal-days div:before,
|
|
494
|
+
pkt-calendar .pkt-cal-days div:before {
|
|
495
495
|
left: 0;
|
|
496
496
|
right: 50%;
|
|
497
497
|
}
|
|
498
|
-
.pkt-calendar .pkt-cal-days
|
|
499
|
-
pkt-
|
|
498
|
+
.pkt-calendar .pkt-cal-days div:after,
|
|
499
|
+
pkt-calendar .pkt-cal-days div:after {
|
|
500
500
|
left: 50%;
|
|
501
501
|
right: 0;
|
|
502
502
|
}
|
|
503
503
|
.pkt-calendar.pkt-cal-weeknumbers .pkt-cal-day-names, .pkt-calendar.pkt-cal-weeknumbers .pkt-cal-days,
|
|
504
|
-
pkt-
|
|
505
|
-
pkt-
|
|
504
|
+
pkt-calendar.pkt-cal-weeknumbers .pkt-cal-day-names,
|
|
505
|
+
pkt-calendar.pkt-cal-weeknumbers .pkt-cal-days {
|
|
506
506
|
grid-template-columns: repeat(8, 12.5%);
|
|
507
507
|
}
|
|
508
508
|
.pkt-calendar .pkt-cal-other,
|
|
509
|
-
pkt-
|
|
509
|
+
.pkt-calendar .pkt-cal-days [data-disabled],
|
|
510
|
+
pkt-calendar .pkt-cal-other,
|
|
511
|
+
pkt-calendar .pkt-cal-days [data-disabled] {
|
|
512
|
+
cursor: not-allowed;
|
|
510
513
|
color: var(--pkt-color-grays-gray-200);
|
|
511
514
|
}
|
|
512
515
|
.pkt-calendar .pkt-cal-other .pkt-btn,
|
|
513
|
-
pkt-
|
|
516
|
+
.pkt-calendar .pkt-cal-days [data-disabled] .pkt-btn,
|
|
517
|
+
pkt-calendar .pkt-cal-other .pkt-btn,
|
|
518
|
+
pkt-calendar .pkt-cal-days [data-disabled] .pkt-btn {
|
|
514
519
|
color: inherit;
|
|
515
520
|
background: transparent;
|
|
516
521
|
border: none;
|
|
517
522
|
}
|
|
518
523
|
.pkt-calendar .pkt-cal-today .pkt-btn,
|
|
519
|
-
pkt-
|
|
520
|
-
z-index: 2;
|
|
524
|
+
pkt-calendar .pkt-cal-today .pkt-btn {
|
|
521
525
|
text-decoration: underline;
|
|
522
526
|
outline: 1px solid var(--pkt-color-border-default);
|
|
527
|
+
outline-offset: -1px;
|
|
523
528
|
}
|
|
524
529
|
.pkt-calendar .pkt-cal-selected .pkt-btn,
|
|
525
530
|
.pkt-calendar .pkt-cal-selected .pkt-btn:focus,
|
|
526
|
-
pkt-
|
|
527
|
-
pkt-
|
|
531
|
+
.pkt-calendar .pkt-cal-selected .pkt-btn:hover,
|
|
532
|
+
pkt-calendar .pkt-cal-selected .pkt-btn,
|
|
533
|
+
pkt-calendar .pkt-cal-selected .pkt-btn:focus,
|
|
534
|
+
pkt-calendar .pkt-cal-selected .pkt-btn:hover {
|
|
528
535
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
529
536
|
}
|
|
530
|
-
.pkt-calendar .pkt-cal-
|
|
531
|
-
.pkt-calendar .pkt-cal-
|
|
532
|
-
pkt-
|
|
533
|
-
pkt-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
.pkt-calendar .pkt-cal-in-range:before, .pkt-calendar .pkt-cal-in-range:after, .pkt-calendar .pkt-cal-in-range-first:after, .pkt-calendar .pkt-cal-in-range-last:before,
|
|
537
|
-
pkt-el-calendar .pkt-cal-in-range:before,
|
|
538
|
-
pkt-el-calendar .pkt-cal-in-range:after,
|
|
539
|
-
pkt-el-calendar .pkt-cal-in-range-first:after,
|
|
540
|
-
pkt-el-calendar .pkt-cal-in-range-last:before {
|
|
537
|
+
.pkt-calendar .pkt-cal-in-range :before,
|
|
538
|
+
.pkt-calendar .pkt-cal-in-range :after, .pkt-calendar .pkt-cal-in-range-first :after, .pkt-calendar .pkt-cal-in-range-last :before,
|
|
539
|
+
pkt-calendar .pkt-cal-in-range :before,
|
|
540
|
+
pkt-calendar .pkt-cal-in-range :after,
|
|
541
|
+
pkt-calendar .pkt-cal-in-range-first :after,
|
|
542
|
+
pkt-calendar .pkt-cal-in-range-last :before {
|
|
541
543
|
background-color: var(--pkt-color-surface-default-light-blue);
|
|
542
544
|
}
|
|
543
|
-
.pkt-calendar .pkt-cal-in-range-first:before, .pkt-calendar .pkt-cal-in-range-last:after,
|
|
544
|
-
pkt-
|
|
545
|
-
pkt-
|
|
545
|
+
.pkt-calendar .pkt-cal-in-range-first :before, .pkt-calendar .pkt-cal-in-range-last :after,
|
|
546
|
+
pkt-calendar .pkt-cal-in-range-first :before,
|
|
547
|
+
pkt-calendar .pkt-cal-in-range-last :after {
|
|
546
548
|
background-color: transparent;
|
|
547
549
|
}
|
|
548
|
-
.pkt-calendar .pkt-cal-range-hover:before,
|
|
550
|
+
.pkt-calendar .pkt-cal-range-hover :before,
|
|
549
551
|
.pkt-calendar .pkt-cal-range-hover .pkt-btn,
|
|
550
|
-
pkt-
|
|
551
|
-
pkt-
|
|
552
|
+
pkt-calendar .pkt-cal-range-hover :before,
|
|
553
|
+
pkt-calendar .pkt-cal-range-hover .pkt-btn {
|
|
552
554
|
background-color: var(--pkt-color-surface-default-light-blue);
|
|
553
555
|
}
|
|
554
556
|
.pkt-calendar .pkt-cal-range-hover .pkt-btn,
|
|
555
|
-
pkt-
|
|
557
|
+
pkt-calendar .pkt-cal-range-hover .pkt-btn {
|
|
556
558
|
border-color: var(--pkt-color-surface-default-light-blue);
|
|
557
559
|
}
|
|
558
560
|
.pkt-calendar .pkt-cal-excluded,
|
|
559
|
-
pkt-
|
|
561
|
+
pkt-calendar .pkt-cal-excluded {
|
|
560
562
|
background-color: var(--pkt-color-brand-neutrals-100);
|
|
561
563
|
}
|
|
562
|
-
.pkt-calendar .pkt-cal-excluded:before,
|
|
563
|
-
pkt-
|
|
564
|
-
pkt-
|
|
564
|
+
.pkt-calendar .pkt-cal-excluded :before,
|
|
565
|
+
.pkt-calendar .pkt-cal-excluded :after,
|
|
566
|
+
pkt-calendar .pkt-cal-excluded :before,
|
|
567
|
+
pkt-calendar .pkt-cal-excluded :after {
|
|
565
568
|
background-color: transparent;
|
|
566
569
|
}
|
|
567
570
|
|
|
571
|
+
pkt-datepicker {
|
|
572
|
+
display: block;
|
|
573
|
+
position: relative;
|
|
574
|
+
}
|
|
575
|
+
pkt-datepicker .pkt-datepicker {
|
|
576
|
+
position: relative;
|
|
577
|
+
}
|
|
578
|
+
pkt-datepicker .pkt-datepicker__tags .pkt-tag {
|
|
579
|
+
margin: 0 0.25rem 0.5rem 0;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.pkt-datepicker__inputs {
|
|
583
|
+
width: 100%;
|
|
584
|
+
position: relative;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.pkt-calendar-popup {
|
|
588
|
+
top: 100%;
|
|
589
|
+
left: 0;
|
|
590
|
+
z-index: 2;
|
|
591
|
+
margin: 0;
|
|
592
|
+
padding: 0.5rem;
|
|
593
|
+
position: absolute;
|
|
594
|
+
width: max-content;
|
|
595
|
+
background: var(--pkt-color-background-default);
|
|
596
|
+
box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/*
|
|
600
|
+
* Cardcomponent
|
|
601
|
+
*/
|
|
602
|
+
.pkt-card {
|
|
603
|
+
padding: 2rem;
|
|
604
|
+
display: flex;
|
|
605
|
+
gap: 3rem;
|
|
606
|
+
}
|
|
607
|
+
.pkt-card__wrapper {
|
|
608
|
+
display: flex;
|
|
609
|
+
flex-direction: column;
|
|
610
|
+
gap: 1rem;
|
|
611
|
+
}
|
|
612
|
+
.pkt-card__tags {
|
|
613
|
+
display: flex;
|
|
614
|
+
gap: 1rem;
|
|
615
|
+
}
|
|
616
|
+
.pkt-card--landscape {
|
|
617
|
+
flex-direction: row;
|
|
618
|
+
max-width: 950px;
|
|
619
|
+
}
|
|
620
|
+
.pkt-card--landscape .pkt-card__image {
|
|
621
|
+
min-width: 320px;
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
}
|
|
624
|
+
.pkt-card--landscape .pkt-card__image img {
|
|
625
|
+
height: 100%;
|
|
626
|
+
width: 100%;
|
|
627
|
+
object-fit: cover;
|
|
628
|
+
object-position: center;
|
|
629
|
+
}
|
|
630
|
+
.pkt-card--portrait {
|
|
631
|
+
flex-direction: column;
|
|
632
|
+
max-width: 500px;
|
|
633
|
+
}
|
|
634
|
+
.pkt-card--portrait .pkt-card__image {
|
|
635
|
+
max-height: 400px;
|
|
636
|
+
overflow: hidden;
|
|
637
|
+
}
|
|
638
|
+
.pkt-card--portrait .pkt-card__image img {
|
|
639
|
+
width: 100%;
|
|
640
|
+
height: 100%;
|
|
641
|
+
object-fit: cover;
|
|
642
|
+
object-position: center;
|
|
643
|
+
}
|
|
644
|
+
.pkt-card--outlined {
|
|
645
|
+
border: 3px solid var(--pkt-color-grays-gray-100);
|
|
646
|
+
background-color: var(--pkt-color-background-default);
|
|
647
|
+
}
|
|
648
|
+
.pkt-card--gray {
|
|
649
|
+
background-color: var(--pkt-color-background-subtle);
|
|
650
|
+
}
|
|
651
|
+
.pkt-card--blue {
|
|
652
|
+
background-color: var(--pkt-color-brand-blue-300);
|
|
653
|
+
}
|
|
654
|
+
.pkt-card--green {
|
|
655
|
+
background-color: var(--pkt-color-brand-light-green-400);
|
|
656
|
+
}
|
|
657
|
+
.pkt-card--beige {
|
|
658
|
+
background-color: var(--pkt-color-brand-light-beige-1000);
|
|
659
|
+
}
|
|
660
|
+
.pkt-card h1,
|
|
661
|
+
.pkt-card h2,
|
|
662
|
+
.pkt-card h3,
|
|
663
|
+
.pkt-card h4,
|
|
664
|
+
.pkt-card h5,
|
|
665
|
+
.pkt-card p {
|
|
666
|
+
padding: 0;
|
|
667
|
+
margin: 0;
|
|
668
|
+
}
|
|
669
|
+
|
|
568
670
|
/*
|
|
569
671
|
* Footer element
|
|
570
672
|
*/
|
|
@@ -1010,30 +1112,28 @@ pkt-el-calendar .pkt-cal-excluded:after {
|
|
|
1010
1112
|
* TODO: use SVG icons instead
|
|
1011
1113
|
*/
|
|
1012
1114
|
.pkt-icon,
|
|
1013
|
-
pkt-
|
|
1115
|
+
pkt-icon {
|
|
1014
1116
|
display: inline-flex;
|
|
1015
1117
|
min-height: 1rem;
|
|
1016
1118
|
min-width: 1rem;
|
|
1017
1119
|
}
|
|
1018
1120
|
.pkt-icon > svg,
|
|
1019
|
-
pkt-
|
|
1121
|
+
pkt-icon > svg {
|
|
1020
1122
|
min-height: 1rem;
|
|
1021
1123
|
min-width: 1rem;
|
|
1022
1124
|
max-height: 100%;
|
|
1023
1125
|
max-width: 100%;
|
|
1024
1126
|
}
|
|
1025
|
-
|
|
1026
|
-
pkt-
|
|
1127
|
+
|
|
1128
|
+
.pkt-icon--small {
|
|
1027
1129
|
height: 1rem;
|
|
1028
1130
|
width: 1rem;
|
|
1029
1131
|
}
|
|
1030
|
-
.pkt-icon--medium
|
|
1031
|
-
pkt-el-icon--medium {
|
|
1132
|
+
.pkt-icon--medium {
|
|
1032
1133
|
height: 1.5rem;
|
|
1033
1134
|
width: 1.5rem;
|
|
1034
1135
|
}
|
|
1035
|
-
.pkt-icon--large
|
|
1036
|
-
pkt-el-icon--large {
|
|
1136
|
+
.pkt-icon--large {
|
|
1037
1137
|
height: 4rem;
|
|
1038
1138
|
width: 4rem;
|
|
1039
1139
|
}
|
|
@@ -1613,6 +1713,10 @@ pkt-el-icon--large {
|
|
|
1613
1713
|
background-color: var(--pkt-color-surface-default-gray) !important;
|
|
1614
1714
|
}
|
|
1615
1715
|
|
|
1716
|
+
.preview-content {
|
|
1717
|
+
display: contents;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1616
1720
|
.pkt-progressbar {
|
|
1617
1721
|
--pkt-progress-width: 0%;
|
|
1618
1722
|
--pkt-progress-label-width: 5rem;
|
|
@@ -1978,8 +2082,8 @@ pkt-el-icon--large {
|
|
|
1978
2082
|
white-space: nowrap;
|
|
1979
2083
|
}
|
|
1980
2084
|
.pkt-tabs__link .pkt-icon,
|
|
1981
|
-
.pkt-tabs__link pkt-
|
|
1982
|
-
.pkt-tabs__button pkt-
|
|
2085
|
+
.pkt-tabs__link pkt-icon, .pkt-tabs__button .pkt-icon,
|
|
2086
|
+
.pkt-tabs__button pkt-icon {
|
|
1983
2087
|
--fg-color: currentColor;
|
|
1984
2088
|
}
|
|
1985
2089
|
.pkt-tabs__link, .pkt-tabs__link:hover, .pkt-tabs__link:active, .pkt-tabs__button, .pkt-tabs__button:hover, .pkt-tabs__button:active {
|
|
@@ -2374,6 +2478,9 @@ pkt-el-icon--large {
|
|
|
2374
2478
|
margin: 0;
|
|
2375
2479
|
padding: 0.5rem 1rem;
|
|
2376
2480
|
}
|
|
2481
|
+
.pkt-input:not(.pkt-input-compact), .pkt-textinput__input:not(.pkt-input-compact) {
|
|
2482
|
+
min-height: 3rem;
|
|
2483
|
+
}
|
|
2377
2484
|
.pkt-input-compact.pkt-input, .pkt-input-compact.pkt-textinput__input {
|
|
2378
2485
|
border: 0;
|
|
2379
2486
|
border-bottom: 1px solid var(--pkt-color-input-border-normal);
|
|
@@ -2403,7 +2510,7 @@ pkt-el-icon--large {
|
|
|
2403
2510
|
padding-right: 3rem;
|
|
2404
2511
|
}
|
|
2405
2512
|
.pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]) {
|
|
2406
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/12.
|
|
2513
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/12.3/icons/chevron-thin-down.svg);
|
|
2407
2514
|
background-image: var(--svg);
|
|
2408
2515
|
background-repeat: no-repeat;
|
|
2409
2516
|
background-position: right 0.7rem top 50%;
|
|
@@ -2548,4 +2655,27 @@ pkt-el-icon--large {
|
|
|
2548
2655
|
letter-spacing: -0.2px;
|
|
2549
2656
|
line-height: 1.375rem;
|
|
2550
2657
|
color: var(--pkt-color-input-text-error);
|
|
2658
|
+
}
|
|
2659
|
+
.pkt-input__range-inputs {
|
|
2660
|
+
container: range/inline-size;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
@container range (width < 30rem) {
|
|
2664
|
+
.pkt-input__container {
|
|
2665
|
+
border: 2px solid var(--pkt-color-input-border-normal);
|
|
2666
|
+
display: grid;
|
|
2667
|
+
grid-template-rows: auto auto;
|
|
2668
|
+
grid-template-columns: min-content auto 4rem;
|
|
2669
|
+
gap: 0;
|
|
2670
|
+
}
|
|
2671
|
+
.pkt-input__container > :nth-child(2) {
|
|
2672
|
+
grid-column-start: span 2;
|
|
2673
|
+
}
|
|
2674
|
+
.pkt-input__container .pkt-input-prefix,
|
|
2675
|
+
.pkt-input__container .pkt-input-suffix,
|
|
2676
|
+
.pkt-input__container .pkt-input-icon,
|
|
2677
|
+
.pkt-input__container .pkt-input,
|
|
2678
|
+
.pkt-input__container .pkt-textinput__input {
|
|
2679
|
+
border: 0;
|
|
2680
|
+
}
|
|
2551
2681
|
}
|