@oslokommune/punkt-css 16.10.0 → 16.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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/16.10/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/16.11/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -136,7 +136,7 @@ a,
136
136
  }
137
137
 
138
138
  &--external:hover::after,
139
- &:hover pkt-icon {
139
+ &:hover:not(.pkt-btn) pkt-icon {
140
140
  // #1f42aa
141
141
  filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%)
142
142
  contrast(90%);
@@ -8,10 +8,10 @@ pkt-tab-item {
8
8
  }
9
9
 
10
10
  .pkt-tabs {
11
- --pkt-tabs-bg: var(--pkt-color-background-default);
12
11
  background-color: var(--pkt-tabs-bg);
13
12
  position: relative;
14
13
  border-bottom: 1px solid var(--pkt-color-border-gray);
14
+
15
15
  &__list {
16
16
  position: relative;
17
17
  width: auto;
@@ -104,6 +104,45 @@ pkt-tab-item {
104
104
  }
105
105
  }
106
106
 
107
+ &--with-separator {
108
+ .pkt-tabs__list {
109
+ padding-right: 0.25rem;
110
+ align-items: center;
111
+ }
112
+
113
+ .pkt-tabs__button,
114
+ .pkt-tabs__link {
115
+ position: relative;
116
+ overflow: visible;
117
+ }
118
+
119
+ .pkt-tabs__separator {
120
+ display: inline-flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ align-self: center;
124
+
125
+ pointer-events: none;
126
+ user-select: none;
127
+ margin: 0 0.375rem 0.25rem;
128
+ }
129
+
130
+ .pkt-tabs__separator img {
131
+ width: 1rem;
132
+ height: 1rem;
133
+ display: block;
134
+ }
135
+
136
+ .pkt-tabs__separator-icon {
137
+ font-size: 1.125rem;
138
+ --fg-color: currentColor;
139
+ }
140
+ }
141
+
142
+ &__status-icon {
143
+ font-size: 1.125rem;
144
+ }
145
+
107
146
  &:after {
108
147
  content: '';
109
148
  display: block;
@@ -403,8 +403,12 @@ pkt-button[isLoading] {
403
403
  }
404
404
 
405
405
  &__icon {
406
- --fg-color: currentColor;
407
406
  display: none;
407
+ }
408
+
409
+ &__icon,
410
+ & .pkt-icon {
411
+ --fg-color: currentColor;
408
412
  flex-shrink: 0;
409
413
  }
410
414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "16.10.0",
3
+ "version": "16.11.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",
@@ -60,5 +60,5 @@
60
60
  "url": "https://github.com/oslokommune/punkt/issues"
61
61
  },
62
62
  "license": "MIT",
63
- "gitHead": "7d339c3bc11d0da4291536496aebb6761dd519cb"
63
+ "gitHead": "c0da9ee95130ddfec70981101500f84217b031d6"
64
64
  }