@oslokommune/punkt-css 13.15.7 → 13.15.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.
@@ -110,54 +110,65 @@ $-spacing-size-16: map.get(variables.$spacing, 'size-16');
110
110
 
111
111
  @media screen and (max-width: map.get(variables.$breakpoints, 'tablet')) {
112
112
  .pkt-table.pkt-table--responsive {
113
- .pkt-table {
114
- &__header {
115
- border-bottom: none;
116
- height: 0;
113
+ &__label-padding {
114
+ .pkt-table__data-cell,
115
+ td {
116
+ &::before {
117
+ padding-top: 1rem;
118
+ }
117
119
  }
120
+ }
121
+ .pkt-table__header,
122
+ thead {
123
+ border-bottom: none;
124
+ height: 0;
125
+ }
118
126
 
119
- &__row,
120
- tr {
121
- display: grid;
122
- grid-template-columns: max-content 1fr;
123
- gap: $-spacing-size-16;
124
- padding: $-spacing-size-16 $-spacing-size-16;
125
-
126
- .pkt-table__header-cell,
127
- th {
128
- display: none;
129
- }
127
+ .pkt-table__row,
128
+ tr {
129
+ display: grid;
130
+ grid-template-columns: max-content 1fr;
131
+ gap: $-spacing-size-16;
132
+ padding: $-spacing-size-16 $-spacing-size-16;
133
+
134
+ .pkt-table__header-cell,
135
+ th {
136
+ display: none;
130
137
  }
138
+ }
139
+
140
+ .pkt-table__cell-wrapper {
141
+ grid-column: 2/3;
142
+ }
131
143
 
132
- &__cell-wrapper {
144
+ .pkt-table__data-cell,
145
+ td {
146
+ padding: $-spacing-size-8 $-spacing-size-16;
147
+ display: contents;
148
+
149
+ :only-child {
133
150
  grid-column: 2/3;
134
151
  }
135
152
 
136
- &__data-cell,
137
- td {
138
- padding: $-spacing-size-8 $-spacing-size-16;
139
- display: contents;
140
-
141
- &::before {
142
- grid-column: 1/2;
143
- content: attr(data-label);
144
- font-weight: map.get(variables.$font-weight, 'medium');
145
- }
153
+ &::before {
154
+ grid-column: 1/2;
155
+ content: attr(data-label);
156
+ font-weight: map.get(variables.$font-weight, 'medium');
146
157
  }
158
+ }
147
159
 
148
- &__compact {
149
- .pkt-table__row,
150
- tr {
151
- padding: $-spacing-size-8 $-spacing-size-8;
152
- gap: $-spacing-size-8;
153
- }
160
+ &.pkt-table__compact {
161
+ .pkt-table__row,
162
+ tr {
163
+ padding: $-spacing-size-8 $-spacing-size-8;
164
+ gap: $-spacing-size-8;
154
165
  }
166
+ }
155
167
 
156
- &__zebra-blue {
157
- .pkt-table__row:nth-child(odd),
158
- tr:nth-child(odd) {
159
- background: var(--pkt-color-surface-subtle-pale-blue);
160
- }
168
+ &.pkt-table__zebra-blue {
169
+ .pkt-table__row:nth-child(odd),
170
+ tr:nth-child(odd) {
171
+ background: var(--pkt-color-surface-subtle-pale-blue);
161
172
  }
162
173
  }
163
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "13.15.7",
3
+ "version": "13.15.8",
4
4
  "description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "7e4095937cbada621b5a18bf8d665715a10d5404"
58
+ "gitHead": "6ec5ff09aa5e2f57714264dcd4cd77e95c370cce"
59
59
  }