@oslokommune/punkt-css 11.0.1 → 11.0.3

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,4 +1,4 @@
1
- /*
1
+ /*
2
2
  * CSS Grid layouts
3
3
  */
4
4
  @use 'sass:map';
@@ -95,6 +95,28 @@ $gapsMedium: map.get(variables.$spacing, 'size-32');
95
95
 
96
96
  // grid cell
97
97
  & > .pkt-cell {
98
+ // Alignment
99
+ &--left {
100
+ justify-self: start;
101
+ }
102
+ &--center {
103
+ justify-self: center;
104
+ }
105
+ &--right {
106
+ justify-self: end;
107
+ }
108
+
109
+ &--top {
110
+ align-self: self-start;
111
+ }
112
+
113
+ &--center-vertical {
114
+ align-self: center;
115
+ }
116
+ &--bottom {
117
+ align-self: self-end;
118
+ }
119
+
98
120
  @for $i from 2 through 12 {
99
121
  &.pkt-cell--span#{$i} {
100
122
  grid-column-end: span $i;
@@ -8,6 +8,7 @@
8
8
  @use 'sass:map';
9
9
  @use '../abstracts/variables';
10
10
  @use '../abstracts/mixins/typography';
11
+ @use '../abstracts/mixins/breakpoints' as *;
11
12
  @use '../abstracts/functions';
12
13
 
13
14
  body {
@@ -154,6 +155,25 @@ button.pkt-link {
154
155
  @include typography.generate-text-class($name, $style);
155
156
  }
156
157
 
158
+ @each $bp-name, $bp-value in variables.$breakpoints {
159
+ @each $name, $style in variables.$pkt-styles {
160
+ @include bp('#{$bp-value}') {
161
+ @include typography.generate-text-class(
162
+ '#{$name}--#{$bp-name}-up',
163
+ $style
164
+ );
165
+ }
166
+ }
167
+ @each $name, $style in variables.$pkt-font-weight {
168
+ @include bp('#{$bp-value}') {
169
+ @include typography.generate-text-class(
170
+ '#{$name}--#{$bp-name}-up',
171
+ $style
172
+ );
173
+ }
174
+ }
175
+ }
176
+
157
177
  /*
158
178
  * Alignment
159
179
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.0.1",
3
+ "version": "11.0.3",
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": "1860e030cf7de6a9e7ef7471ee93997013aad25a"
58
+ "gitHead": "7658d5d8c730d36620dc30ab9de8abe7e3a49ac7"
59
59
  }