@navikt/ds-css 8.10.6 → 8.11.1

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.
@@ -3524,6 +3524,614 @@
3524
3524
  }
3525
3525
  }
3526
3526
 
3527
+ .aksel-data-grid {
3528
+ flex-direction: column;
3529
+ flex-grow: 1;
3530
+ width: 100%;
3531
+ display: flex;
3532
+ overflow: hidden;
3533
+ }
3534
+
3535
+ .aksel-data-table__border-wrapper {
3536
+ max-height: 100%;
3537
+ display: flex;
3538
+ }
3539
+
3540
+ .aksel-data-table__scroll-wrapper {
3541
+ scroll-timeline: --horizontal-table-scroll inline;
3542
+ width: 100%;
3543
+ position: relative;
3544
+ overflow: auto;
3545
+ }
3546
+
3547
+ .aksel-data-table[data-layout="fixed"] {
3548
+ table-layout: fixed;
3549
+ width: 1px;
3550
+ min-width: 100%;
3551
+ }
3552
+
3553
+ .aksel-data-table[data-layout="auto"] {
3554
+ min-width: 100%;
3555
+ }
3556
+
3557
+ .aksel-data-table {
3558
+ --__axc-data-table-text-size: var(--ax-font-size-large);
3559
+ --__axc-data-table-density: var(--ax-space-12);
3560
+ }
3561
+
3562
+ .aksel-data-table[data-text-size="small"] {
3563
+ --__axc-data-table-text-size: var(--ax-font-size-medium);
3564
+ }
3565
+
3566
+ .aksel-data-table[data-density="tight"] {
3567
+ --__axc-data-table-density: var(--ax-space-6);
3568
+ }
3569
+
3570
+ .aksel-data-table[data-density="loose"] {
3571
+ --__axc-data-table-density: var(--ax-space-20);
3572
+ }
3573
+
3574
+ .aksel-data-table[data-zebra-stripes="true"] .aksel-data-table__tbody :where(.aksel-data-table__tr:nth-child(odd)) {
3575
+ background-color: var(--ax-bg-neutral-softA);
3576
+ }
3577
+
3578
+ .aksel-data-table__thead {
3579
+ background-color: var(--ax-bg-raised);
3580
+ box-shadow: 0 1px 0 0 var(--ax-border-neutral-subtle);
3581
+ position: relative;
3582
+ }
3583
+
3584
+ .aksel-data-table[data-loading="true"] .aksel-data-table__thead:after {
3585
+ content: "";
3586
+ background-color: var(--ax-bg-strong);
3587
+ z-index: 11;
3588
+ block-size: 2px;
3589
+ animation: 1s linear infinite animateDataTableLoading;
3590
+ position: absolute;
3591
+ }
3592
+
3593
+ .aksel-data-table__thead[data-sticky="true"] {
3594
+ z-index: 3;
3595
+ position: sticky;
3596
+ top: 0;
3597
+ }
3598
+
3599
+ .aksel-data-table__tbody {
3600
+ background-color: var(--ax-bg-raised);
3601
+ position: relative;
3602
+ }
3603
+
3604
+ .aksel-data-table__tbody[inert] {
3605
+ opacity: var(--ax-opacity-disabled);
3606
+ }
3607
+
3608
+ .aksel-data-table__tbody[inert]:after {
3609
+ content: "";
3610
+ background-color: var(--ax-bg-overlay);
3611
+ z-index: 2;
3612
+ opacity: .2;
3613
+ position: absolute;
3614
+ inset: 0;
3615
+ }
3616
+
3617
+ .aksel-data-table__tr[data-selected="true"] {
3618
+ background-color: var(--ax-bg-softA);
3619
+ }
3620
+
3621
+ .aksel-data-table__border-wrapper {
3622
+ border-radius: var(--ax-radius-12);
3623
+ position: relative;
3624
+ overflow: hidden;
3625
+ }
3626
+
3627
+ .aksel-data-table__border-wrapper:after {
3628
+ content: "";
3629
+ pointer-events: none;
3630
+ border: 1px solid var(--ax-border-neutral-subtle);
3631
+ border-radius: var(--ax-radius-12);
3632
+ z-index: 3;
3633
+ position: absolute;
3634
+ inset: 0;
3635
+ }
3636
+
3637
+ .aksel-data-table {
3638
+ border-collapse: collapse;
3639
+ border-spacing: 0;
3640
+ border-right: 1px solid var(--ax-border-neutral-subtle);
3641
+ border-bottom: 1px solid var(--ax-border-neutral-subtle);
3642
+ }
3643
+
3644
+ @keyframes scroll-shadow-fade-start {
3645
+ 0% {
3646
+ opacity: 0;
3647
+ }
3648
+
3649
+ 10%, 100% {
3650
+ opacity: 1;
3651
+ }
3652
+ }
3653
+
3654
+ @keyframes scroll-shadow-fade-end {
3655
+ 90% {
3656
+ opacity: 1;
3657
+ }
3658
+
3659
+ 100% {
3660
+ opacity: 0;
3661
+ }
3662
+ }
3663
+
3664
+ .aksel-data-table__cell {
3665
+ box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
3666
+ text-align: start;
3667
+ vertical-align: middle;
3668
+ scroll-margin: var(--ax-space-0);
3669
+ font-size: var(--__axc-data-table-text-size);
3670
+ padding: 0;
3671
+ }
3672
+
3673
+ .aksel-data-table__cell:not(.aksel-data-table__column-header) {
3674
+ overflow: hidden;
3675
+ }
3676
+
3677
+ .aksel-data-table__cell[data-nested="true"] {
3678
+ position: relative;
3679
+ }
3680
+
3681
+ .aksel-data-table__cell[data-nested="true"] > .aksel-data-table__cell-content {
3682
+ margin-inline-start: calc(32px + 8px + calc(var(--__axc-data-table-nested-depth) * var(--ax-space-16)));
3683
+ }
3684
+
3685
+ .aksel-data-table__thead .aksel-data-table__cell {
3686
+ background-color: var(--ax-bg-neutral-soft);
3687
+ }
3688
+
3689
+ .aksel-data-table__cell[data-align="left"] {
3690
+ text-align: start;
3691
+ }
3692
+
3693
+ .aksel-data-table__cell[data-align="center"] {
3694
+ text-align: center;
3695
+ }
3696
+
3697
+ .aksel-data-table__cell[data-align="right"] {
3698
+ text-align: end;
3699
+ }
3700
+
3701
+ .aksel-data-table__cell[data-sticky] {
3702
+ z-index: 1;
3703
+ position: sticky;
3704
+ }
3705
+
3706
+ .aksel-data-table__cell[data-sticky]:after {
3707
+ content: "";
3708
+ pointer-events: none;
3709
+ border-color: var(--ax-border-neutral-subtle);
3710
+ border-style: solid;
3711
+ border-width: 0;
3712
+ position: absolute;
3713
+ inset-block: 0;
3714
+ }
3715
+
3716
+ .aksel-data-table__cell[data-sticky][data-sticky="start"] {
3717
+ left: 0;
3718
+ }
3719
+
3720
+ .aksel-data-table__cell[data-sticky][data-sticky="start"][data-sticky-last]:before {
3721
+ content: "";
3722
+ pointer-events: none;
3723
+ width: 100%;
3724
+ height: 100%;
3725
+ box-shadow: 4px 0 8px 1px var(--ax-border-neutral-subtleA);
3726
+ clip-path: inset(0 -24px 0 0);
3727
+ opacity: 0;
3728
+ position: absolute;
3729
+ inset: 0;
3730
+ }
3731
+
3732
+ .aksel-data-table[data-scroll] .aksel-data-table__cell[data-sticky][data-sticky="start"][data-sticky-last]:before {
3733
+ opacity: 1;
3734
+ animation: 1s linear scroll-shadow-fade-start;
3735
+ animation-timeline: --horizontal-table-scroll;
3736
+ }
3737
+
3738
+ .aksel-data-table__cell[data-sticky][data-sticky="start"][data-sticky-last]:after {
3739
+ border-right-width: 1px;
3740
+ inset-inline: 0 -1px;
3741
+ }
3742
+
3743
+ .aksel-data-table__cell[data-sticky][data-sticky="end"] {
3744
+ right: 0;
3745
+ }
3746
+
3747
+ .aksel-data-table__cell[data-sticky][data-sticky="end"]:before {
3748
+ content: "";
3749
+ pointer-events: none;
3750
+ width: 100%;
3751
+ height: 100%;
3752
+ box-shadow: -4px 0 8px 1px var(--ax-border-neutral-subtleA);
3753
+ clip-path: inset(0 0 0 -24px);
3754
+ opacity: 0;
3755
+ position: absolute;
3756
+ inset: 0;
3757
+ }
3758
+
3759
+ .aksel-data-table[data-scroll] .aksel-data-table__cell[data-sticky][data-sticky="end"]:before {
3760
+ opacity: 1;
3761
+ animation: 1s linear scroll-shadow-fade-end;
3762
+ animation-timeline: --horizontal-table-scroll;
3763
+ }
3764
+
3765
+ .aksel-data-table__cell[data-sticky] {
3766
+ background-color: var(--ax-bg-raised);
3767
+ }
3768
+
3769
+ .aksel-data-table__tr[data-selected="true"] .aksel-data-table__cell[data-sticky] {
3770
+ background-color: var(--ax-bg-soft);
3771
+ }
3772
+
3773
+ .aksel-data-table__thead .aksel-data-table__cell[data-sticky] {
3774
+ background-color: var(--ax-bg-neutral-soft);
3775
+ }
3776
+
3777
+ .aksel-data-table__cell:focus-visible, .aksel-data-table__cell:has(.aksel-data-table__th-sort-button:focus) {
3778
+ outline: 2px solid var(--ax-border-focus);
3779
+ outline-offset: -4px;
3780
+ }
3781
+
3782
+ .aksel-data-table__cell[data-cell-type="action"] {
3783
+ padding: 0;
3784
+ }
3785
+
3786
+ .aksel-data-table__cell[data-cell-type="action"] > .aksel-data-table__cell-content {
3787
+ place-content: center;
3788
+ display: grid;
3789
+ }
3790
+
3791
+ .aksel-data-table__cell {
3792
+ --__axc-data-table-pi-cell: var(--ax-space-16);
3793
+ }
3794
+
3795
+ .aksel-data-table__cell:not([data-cell-type="action"]) > .aksel-data-table__cell-content {
3796
+ padding-block: var(--__axc-data-table-density);
3797
+ padding-inline: var(--__axc-data-table-pi-cell);
3798
+ overflow: hidden;
3799
+ }
3800
+
3801
+ .aksel-data-table[data-truncate-content="true"] :is(.aksel-data-table__cell:not([data-cell-type="action"]) > .aksel-data-table__cell-content) {
3802
+ text-overflow: ellipsis;
3803
+ white-space: nowrap;
3804
+ }
3805
+
3806
+ .aksel-data-table__column-header {
3807
+ --__axc-data-table-density: var(--ax-space-8);
3808
+ font-weight: var(--ax-font-weight-bold);
3809
+ position: relative;
3810
+ }
3811
+
3812
+ .aksel-data-table__column-header:has(.aksel-data-table__th-sort-button:hover:not(:disabled)) {
3813
+ background-color: var(--ax-bg-neutral-moderate-hover);
3814
+ }
3815
+
3816
+ .aksel-data-table__column-header:has(.aksel-data-table__th-sort-button:active:not(:disabled)) {
3817
+ background-color: var(--ax-bg-neutral-moderate-pressed);
3818
+ }
3819
+
3820
+ .aksel-data-table__column-header[data-sortable="true"] {
3821
+ block-size: calc(var(--__axc-data-table-density) + 1.5rem);
3822
+ padding: 0;
3823
+ }
3824
+
3825
+ .aksel-data-table__th-sort-button {
3826
+ align-items: center;
3827
+ gap: var(--ax-space-2);
3828
+ block-size: calc(var(--__axc-data-table-density) + 1.5rem);
3829
+ cursor: pointer;
3830
+ text-align: start;
3831
+ width: 100%;
3832
+ font-weight: inherit;
3833
+ background-color: rgba(0, 0, 0, 0);
3834
+ border: none;
3835
+ padding: 0;
3836
+ display: flex;
3837
+ }
3838
+
3839
+ .aksel-data-table__th-sort-button:focus-visible {
3840
+ outline: none;
3841
+ }
3842
+
3843
+ .aksel-data-table__th-sort-button:disabled {
3844
+ color: inherit;
3845
+ cursor: default;
3846
+ }
3847
+
3848
+ .aksel-data-table__th-sort-icon {
3849
+ flex-shrink: 0;
3850
+ margin-left: auto;
3851
+ }
3852
+
3853
+ .aksel-data-table__th-sort-icon[data-sort-direction="none"] {
3854
+ visibility: hidden;
3855
+ }
3856
+
3857
+ .aksel-data-table__th-sort-button:is(:hover, :focus-visible, :focus-within):not(:disabled) .aksel-data-table__th-sort-icon {
3858
+ visibility: visible;
3859
+ }
3860
+
3861
+ .aksel-data-table[data-layout="fixed"] .aksel-data-table__th-sort-icon[data-sort-direction="none"] {
3862
+ display: none;
3863
+ }
3864
+
3865
+ .aksel-data-table[data-layout="fixed"] .aksel-data-table__th-sort-button:is(:hover, :focus-visible, :focus-within) .aksel-data-table__th-sort-icon {
3866
+ display: block;
3867
+ }
3868
+
3869
+ .aksel-data-table__th-content {
3870
+ text-overflow: ellipsis;
3871
+ white-space: nowrap;
3872
+ overflow: hidden;
3873
+ }
3874
+
3875
+ .aksel-data-table__th-resize-handle {
3876
+ z-index: 1;
3877
+ cursor: col-resize;
3878
+ background: none;
3879
+ border: none;
3880
+ justify-content: center;
3881
+ width: 19px;
3882
+ margin: 0;
3883
+ padding: 0;
3884
+ display: flex;
3885
+ position: absolute;
3886
+ inset-block: 0;
3887
+ inset-inline-end: -10px;
3888
+ }
3889
+
3890
+ .aksel-data-table__th-resize-handle:focus-visible {
3891
+ outline: 2px solid var(--ax-border-focus);
3892
+ outline-offset: -4px;
3893
+ border-radius: var(--ax-radius-8);
3894
+ }
3895
+
3896
+ .aksel-data-table__th-resize-handle:after {
3897
+ content: "";
3898
+ inset-block: 0;
3899
+ border-radius: var(--ax-radius-full);
3900
+ width: 3px;
3901
+ height: 75%;
3902
+ transition: background 50ms linear;
3903
+ position: absolute;
3904
+ top: 50%;
3905
+ transform: translateY(-50%);
3906
+ }
3907
+
3908
+ .aksel-data-table__th-resize-handle:hover, .aksel-data-table__th-resize-handle:focus-visible, .aksel-data-table__th-resize-handle:active {
3909
+ z-index: 3;
3910
+ }
3911
+
3912
+ .aksel-data-table__th-resize-handle:hover:after {
3913
+ background: var(--ax-bg-strong);
3914
+ }
3915
+
3916
+ .aksel-data-table__th-resize-handle:active:after, .aksel-data-table__th-resize-handle:focus-visible:after {
3917
+ background: var(--ax-bg-strong-pressed);
3918
+ }
3919
+
3920
+ .aksel-data-table__column-header:last-of-type .aksel-data-table__th-resize-handle {
3921
+ width: 15px;
3922
+ inset-inline-end: 0;
3923
+ }
3924
+
3925
+ .aksel-data-table__column-header:last-of-type .aksel-data-table__th-resize-handle:after {
3926
+ inset-inline-end: 0;
3927
+ }
3928
+
3929
+ .aksel-data-table__th-resize-handle[data-active="true"] .aksel-data-table__th-resize-handle-indicator {
3930
+ color: var(--ax-bg-strong);
3931
+ height: 1.5rem;
3932
+ position: absolute;
3933
+ top: 50%;
3934
+ transform: translateY(-50%);
3935
+ }
3936
+
3937
+ .aksel-data-table__th-resize-handle[data-active="true"] .aksel-data-table__th-resize-handle-indicator:first-child {
3938
+ right: 12px;
3939
+ }
3940
+
3941
+ .aksel-data-table__th-resize-handle[data-active="true"] .aksel-data-table__th-resize-handle-indicator:last-child {
3942
+ left: 12px;
3943
+ }
3944
+
3945
+ .aksel-data-table__th-resize-handle[data-active="true"]:after {
3946
+ background: var(--ax-bg-strong);
3947
+ }
3948
+
3949
+ .aksel-data-table__th-resize-handle[data-active="true"]:focus-visible, .aksel-data-table__th-resize-handle[data-active="true"]:focus, .aksel-data-table__th-resize-handle[data-active="true"]:active {
3950
+ outline: none;
3951
+ }
3952
+
3953
+ .aksel-data-table__th-action-button {
3954
+ transition: opacity .1s ease-in-out, width .1s ease-in-out, min-width .1s ease-in-out, max-width .1s ease-in-out, padding .1s ease-in-out;
3955
+ }
3956
+
3957
+ .aksel-data-table__th-action-button:focus-visible {
3958
+ transition: none;
3959
+ }
3960
+
3961
+ .aksel-data-table__th-action-button:not(.aksel-data-table__th:is(:hover, :focus-within) .aksel-data-table__th-action-button, .aksel-data-table__th-action-button:focus-visible, .aksel-data-table__th-action-button[data-expanded="true"]), .aksel-data-table__th:has(.aksel-data-table__th-resize-handle:hover:not(:focus)) .aksel-data-table__th-action-button {
3962
+ opacity: 0;
3963
+ min-width: 0;
3964
+ max-width: 0;
3965
+ padding: 0;
3966
+ overflow: hidden;
3967
+ }
3968
+
3969
+ .aksel-data-table__th {
3970
+ scroll-margin-block: var(--ax-space-0);
3971
+ scroll-margin-inline: var(--ax-space-0);
3972
+ }
3973
+
3974
+ .aksel-data-table__th:focus-visible, .aksel-data-table__th:has(.aksel-data-table__th-sort-button:focus) {
3975
+ outline: 2px solid var(--ax-border-focus);
3976
+ outline-offset: -4px;
3977
+ }
3978
+
3979
+ .aksel-data-table__th[data-cell-type="action"] {
3980
+ padding: 0;
3981
+ }
3982
+
3983
+ .aksel-data-table__th[data-cell-type="action"] > .aksel-data-table__cell-content {
3984
+ place-content: center;
3985
+ display: grid;
3986
+ }
3987
+
3988
+ .aksel-data-table__tfoot {
3989
+ background-color: var(--ax-bg-raised);
3990
+ }
3991
+
3992
+ .aksel-data-table__filler-cell {
3993
+ width: auto;
3994
+ padding: 0;
3995
+ display: table-cell;
3996
+ }
3997
+
3998
+ .aksel-data-table__drag-and-drop-root {
3999
+ margin: 0;
4000
+ padding: 0;
4001
+ }
4002
+
4003
+ .aksel-data-drag-and-drop__drag-handler__button {
4004
+ background: none;
4005
+ border: none;
4006
+ height: 1.5rem;
4007
+ padding: 0;
4008
+ position: relative;
4009
+ }
4010
+
4011
+ .aksel-data-drag-and-drop__drag-handler__button:hover {
4012
+ cursor: grab;
4013
+ }
4014
+
4015
+ .aksel-data-drag-and-drop__drag-handler__button:focus-visible, .aksel-data-drag-and-drop__drag-handler__button[data-drag-handler-active="true"] {
4016
+ outline: 2px solid var(--ax-border-focus);
4017
+ outline-offset: -1px;
4018
+ border-radius: var(--ax-radius-8);
4019
+ }
4020
+
4021
+ .aksel-data-table__drag-and-drop-item[data-overlay="true"] {
4022
+ opacity: .8;
4023
+ width: 100%;
4024
+ box-shadow: var(--ax-shadow-dialog);
4025
+ background-color: var(--ax-bg-default);
4026
+ }
4027
+
4028
+ .aksel-data-table__drag-and-drop-item[data-drop-target="true"]:not([data-overlay="true"]) {
4029
+ background: var(--ax-bg-neutral-moderate);
4030
+ }
4031
+
4032
+ .aksel-data-drag-and-drop__drag-handler {
4033
+ height: 1.5rem;
4034
+ position: relative;
4035
+ }
4036
+
4037
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow {
4038
+ background: var(--ax-bg-default);
4039
+ cursor: pointer;
4040
+ z-index: 1;
4041
+ border: none;
4042
+ border-radius: 50%;
4043
+ height: 1.8rem;
4044
+ padding: 0;
4045
+ position: absolute;
4046
+ left: 50%;
4047
+ transform: translate(-50%, -50%);
4048
+ }
4049
+
4050
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow[data-direction="up"] {
4051
+ top: -18px;
4052
+ }
4053
+
4054
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow[data-direction="down"] {
4055
+ bottom: calc(-100% - 22px);
4056
+ }
4057
+
4058
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow:disabled {
4059
+ opacity: .8;
4060
+ cursor: not-allowed;
4061
+ }
4062
+
4063
+ .aksel-data-table__empty-state {
4064
+ padding-block: var(--ax-space-32);
4065
+ padding-inline: var(--ax-space-16);
4066
+ text-align: center;
4067
+ place-content: center;
4068
+ gap: var(--ax-space-8);
4069
+ justify-items: center;
4070
+ display: grid;
4071
+ }
4072
+
4073
+ .aksel-data-table__loading-state {
4074
+ padding-block: var(--ax-space-32);
4075
+ padding-inline: var(--ax-space-16);
4076
+ text-align: center;
4077
+ place-content: center;
4078
+ gap: var(--ax-space-8);
4079
+ justify-items: center;
4080
+ display: grid;
4081
+ position: relative;
4082
+ }
4083
+
4084
+ @keyframes animateDataTableLoading {
4085
+ 0% {
4086
+ inline-size: 0;
4087
+ inset-inline-start: 0;
4088
+ }
4089
+
4090
+ 20% {
4091
+ inline-size: 40%;
4092
+ inset-inline-start: 0;
4093
+ }
4094
+
4095
+ 80% {
4096
+ inline-size: 40%;
4097
+ inset-inline-start: 60%;
4098
+ }
4099
+
4100
+ 100% {
4101
+ inline-size: 0;
4102
+ inset-inline-start: 100%;
4103
+ }
4104
+ }
4105
+
4106
+ .aksel-data-table tr .aksel-checkbox {
4107
+ padding: 0;
4108
+ }
4109
+
4110
+ .aksel-data-table tr .aksel-checkbox:focus-within:after {
4111
+ inset: 0;
4112
+ }
4113
+
4114
+ html[data-dragging-cursor="true"], html[data-dragging-cursor="true"] *, html[data-dragging-cursor="true"] :before, html[data-dragging-cursor="true"] :after {
4115
+ cursor: grabbing !important;
4116
+ }
4117
+
4118
+ .aksel-data-table__nested-toggle {
4119
+ inset-block: 0;
4120
+ left: calc(var(--__axc-data-table-pi-cell) + var(--__axc-data-table-nested-depth) * var(--ax-space-16));
4121
+ align-items: center;
4122
+ display: flex;
4123
+ position: absolute;
4124
+ }
4125
+
4126
+ .aksel-data-table__details-panel-row {
4127
+ box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
4128
+ }
4129
+
4130
+ .aksel-data-table__details-panel-row-cell:focus-visible {
4131
+ outline: 2px solid var(--ax-border-focus);
4132
+ outline-offset: -4px;
4133
+ }
4134
+
3527
4135
  .aksel-dialog__popup {
3528
4136
  --__axc-dialog-transform: ;
3529
4137
  --__axc-dialog-p-b: var(--ax-space-16);