@oslokommune/punkt-css 4.0.0 → 4.3.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.
@@ -24,18 +24,36 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
24
24
  &:hover {
25
25
  text-decoration: none;
26
26
  }
27
+
27
28
  &:hover .pkt-linkcard__title {
28
29
  text-decoration: underline;
29
30
  }
30
31
 
32
+
33
+ &:hover .pkt-link--external {
34
+ &::after {
35
+ filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%);
36
+ }
37
+ }
38
+
39
+
31
40
  &__title {
32
41
  @include get-text('pkt-txt-24-medium');
33
42
  margin-bottom: 0.5rem;
43
+
44
+ &.pkt-link--external::after {
45
+ height: 1.5rem;
46
+ width: 1.5rem;
47
+ background-size: 1.5rem 1.5rem;
48
+ margin-left: 0.5rem;
49
+ }
34
50
  }
51
+
35
52
  &__text {
36
53
  p:first-of-type {
37
54
  margin-top: 0;
38
55
  }
56
+
39
57
  p:last-of-type {
40
58
  margin-bottom: 0;
41
59
  }
@@ -44,30 +62,38 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
44
62
  & svg {
45
63
  margin-top: 0.313rem;
46
64
  }
65
+
47
66
  // Modifiers
48
67
  &--beige {
49
68
  background-color: var(--color-beige-light);
50
69
  }
70
+
51
71
  &--blue {
52
72
  background-color: var(--color-blue-5);
53
73
  }
74
+
54
75
  &--grey-outline {
55
76
  border: 4px solid var(--color-gray);
56
77
  }
78
+
57
79
  &--beige-outline {
58
80
  border: 4px solid var(--color-beige-light);
59
81
  }
60
82
  }
83
+
61
84
  // Dark mode
62
85
  @at-root [data-mode='dark'] .pkt-linkcard {
63
86
  &--beige {
64
87
  color: var(--color-blue-dark) !important;
88
+
65
89
  &:focus {
66
90
  color: var(--color-hover) !important;
67
91
  }
68
92
  }
93
+
69
94
  &--blue {
70
95
  color: var(--color-blue-dark) !important;
96
+
71
97
  &:focus {
72
98
  color: var(--color-hover) !important;
73
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "4.0.0",
3
+ "version": "4.3.1",
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": "5de20e7298e204d7770f89bd47df267ca1544f54"
58
+ "gitHead": "9825fdb276c07579af8da135c224f85bd2594014"
59
59
  }