@oslokommune/punkt-css 11.16.5 → 11.17.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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.16/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.17/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -112,6 +112,7 @@ a,
112
112
  background-size: 18px 18px;
113
113
  width: 1.125rem;
114
114
  height: 1.125rem;
115
+ vertical-align: middle;
115
116
  }
116
117
 
117
118
  &--external:hover::after {
@@ -11,6 +11,7 @@
11
11
  @forward 'linkcard';
12
12
  @forward 'loader';
13
13
  @forward 'messagebox';
14
+ @forward 'preview';
14
15
  @forward 'progressbar';
15
16
  @forward 'searchinput';
16
17
  @forward 'stepper';
@@ -0,0 +1,71 @@
1
+ @use 'sass:map';
2
+ @use '../abstracts/variables';
3
+ @use '../abstracts/functions';
4
+ @use '../abstracts/mixins/typography';
5
+
6
+ .pkt-preview {
7
+ position: relative;
8
+ .pkt-tabs {
9
+ --pkt-tabs-bg: var(--pkt-color-surface-default-gray);
10
+ }
11
+ &__mode {
12
+ position: absolute;
13
+ top: 1rem;
14
+ right: 1rem;
15
+ }
16
+ &__component {
17
+ display: flex;
18
+ justify-content: space-around;
19
+ align-items: center;
20
+ min-height: 10rem;
21
+ padding: 1rem;
22
+ margin: 1rem 0 0;
23
+ border: 0.25rem solid var(--pkt-color-surface-default-gray);
24
+ background-color: var(--pkt-color-background-default);
25
+ transition: background-color 0.2s linear;
26
+ }
27
+ &__opts {
28
+ padding: 1rem;
29
+ background-color: var(--pkt-color-surface-default-gray);
30
+ > .pkt-cell {
31
+ position: relative;
32
+ > .pkt-tag {
33
+ display: block;
34
+ position: absolute;
35
+ top: 0;
36
+ right: 0;
37
+ padding: 0 0.25rem 0;
38
+ }
39
+ }
40
+ }
41
+ &__code {
42
+ position: relative;
43
+ margin-bottom: 1rem;
44
+ font-size: 0.8rem;
45
+ > pre {
46
+ margin-top: 0 !important;
47
+ background-color: var(--pkt-color-surface-default-gray) !important;
48
+ }
49
+ }
50
+ &__copy {
51
+ position: absolute;
52
+ top: 0.5rem;
53
+ right: 0.5rem;
54
+ display: flex;
55
+ gap: 0.5rem;
56
+ align-items: center;
57
+ }
58
+ &__specs {
59
+ background-color: var(--pkt-color-surface-default-gray);
60
+ pre {
61
+ margin-top: 0 !important;
62
+ }
63
+ h2 {
64
+ padding: 1rem;
65
+ }
66
+ }
67
+ }
68
+
69
+ .astro-code.github-light {
70
+ background-color: var(--pkt-color-surface-default-gray) !important;
71
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.16.5",
3
+ "version": "11.17.0",
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",
@@ -20,7 +20,7 @@
20
20
  "preview": "astro preview"
21
21
  },
22
22
  "devDependencies": {
23
- "@oslokommune/punkt-assets": "^11.16.5",
23
+ "@oslokommune/punkt-assets": "^11.17.0",
24
24
  "astro": "^2.8.1",
25
25
  "edit-json-file": "^1.7.0",
26
26
  "fs-extra": "^11.1.0",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "addd30327ef0aae6fee85acd5a882d3fe5b719d4"
58
+ "gitHead": "998d0193afd61f095d84f824b087cbff62d87782"
59
59
  }