@oslokommune/punkt-css 2.0.0 → 2.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.
package/CHANGELOG.md CHANGED
@@ -3,13 +3,42 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.3](https://github.com/oslokommune/punkt/compare/v2.0.2...v2.0.3) (2023-03-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **css:** [#703](https://github.com/oslokommune/punkt/issues/703) Rett feil på button icon-only ([#704](https://github.com/oslokommune/punkt/issues/704)) ([504daf9](https://github.com/oslokommune/punkt/commit/504daf9b71136742dac8f0c5300417b0f2ccbc91))
12
+
13
+
14
+
15
+ ## [2.0.1](https://github.com/oslokommune/punkt/compare/v2.0.0...v2.0.1) (2023-03-07)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * Endre flat-button i alert ([#697](https://github.com/oslokommune/punkt/issues/697)) ([c98aa2a](https://github.com/oslokommune/punkt/commit/c98aa2aa647a8c200013e2770ba5b0e7d17c7a26))
21
+
22
+
23
+
6
24
  ## [2.0.0](https://github.com/oslokommune/punkt/compare/v1.0.2...v2.0.0) (2023-03-07)
7
25
 
8
26
 
9
27
  ### ⚠ BREAKING CHANGES
10
28
 
11
29
  * #595 Button (#696)
30
+ Buttons har fått ny styling og buttonskins har gått fra 5 til 3:
31
+
32
+ - Primary: Ny styling
33
+ - Secondary: Ny styling
34
+ - Tertiary: **breaking** har fått stylingen til flat-button
35
+
36
+ - Flat: **breaking** fjernet
37
+ - Primary-confirm: **breaking** fjernet
12
38
 
39
+ **Migrering**:
40
+ - Endre Flat til Tertiary
41
+ - Endre gammel Tertiary til Secondary (du kan overstyre fargen selv)
13
42
  ### Features
14
43
 
15
44
  * [#595](https://github.com/oslokommune/punkt/issues/595) Button ([#696](https://github.com/oslokommune/punkt/issues/696)) ([8870dd7](https://github.com/oslokommune/punkt/commit/8870dd732251160f06d59691064045b111c19ed7))
@@ -39,9 +39,6 @@
39
39
  display: flex;
40
40
  float: right;
41
41
  margin-left: 1.5rem;
42
- height: 40px;
43
- width: 40px;
44
- margin-top: -4px;
45
42
  }
46
43
  .pkt-alert__icon {
47
44
  margin-right: 1rem;
@@ -1 +1 @@
1
- .pkt-alert{padding:1.5rem;display:block;overflow:hidden;position:relative}.pkt-alert__text{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em;margin-bottom:0;padding:0}.pkt-alert__title{font-size:1.125rem;font-weight:500;letter-spacing:-0.2px;line-height:1.5em;display:flex;align-items:center;margin-bottom:1.5rem}.pkt-alert__content{display:flex;align-items:flex-start}.pkt-alert__date{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em;margin-top:1.5rem}.pkt-alert__close{display:flex;float:right;margin-left:1.5rem;height:40px;width:40px;margin-top:-4px}.pkt-alert__icon{margin-right:1rem;height:1.875rem;width:1.875rem;flex-shrink:0}.pkt-alert--success{border-left:3px solid #034b45;background-color:#f2fff3;color:#034b45}.pkt-alert--success.pkt-alert .pkt-alert__icon{--bg-color: var(--color-green-dark);--fg-color: var(--color-green-dark-5)}.pkt-alert--success.pkt-alert .pkt-alert__close{--fg-color: var(--color-green-dark)}.pkt-alert--error{border-left:3px solid #96281c;background-color:#fff3f2;color:#96281c}.pkt-alert--error.pkt-alert .pkt-alert__icon{--bg-color: var(--color-error);--fg-color: var(--color-red-5)}.pkt-alert--error.pkt-alert .pkt-alert__close{--fg-color: var(--color-error)}.pkt-alert--warning{border-left:3px solid #f9c66b;background-color:#fef9f0;color:#774c01}.pkt-alert--warning.pkt-alert .pkt-alert__icon{--bg-color: var(--color-yellow);--fg-color: var(--color-blue-dark)}.pkt-alert--warning.pkt-alert .pkt-alert__close{--fg-color: var(--color-warning)}.pkt-alert--info{border-left:3px solid #2a2859;background-color:#f2f9ff;color:#2a2859}.pkt-alert--info.pkt-alert .pkt-alert__icon{--bg-color: var(--color-blue);--fg-color: var(--color-blue-dark)}.pkt-alert--info.pkt-alert .pkt-alert__close{--fg-color: var(--color-blue-dark)}
1
+ .pkt-alert{padding:1.5rem;display:block;overflow:hidden;position:relative}.pkt-alert__text{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em;margin-bottom:0;padding:0}.pkt-alert__title{font-size:1.125rem;font-weight:500;letter-spacing:-0.2px;line-height:1.5em;display:flex;align-items:center;margin-bottom:1.5rem}.pkt-alert__content{display:flex;align-items:flex-start}.pkt-alert__date{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5em;margin-top:1.5rem}.pkt-alert__close{display:flex;float:right;margin-left:1.5rem}.pkt-alert__icon{margin-right:1rem;height:1.875rem;width:1.875rem;flex-shrink:0}.pkt-alert--success{border-left:3px solid #034b45;background-color:#f2fff3;color:#034b45}.pkt-alert--success.pkt-alert .pkt-alert__icon{--bg-color: var(--color-green-dark);--fg-color: var(--color-green-dark-5)}.pkt-alert--success.pkt-alert .pkt-alert__close{--fg-color: var(--color-green-dark)}.pkt-alert--error{border-left:3px solid #96281c;background-color:#fff3f2;color:#96281c}.pkt-alert--error.pkt-alert .pkt-alert__icon{--bg-color: var(--color-error);--fg-color: var(--color-red-5)}.pkt-alert--error.pkt-alert .pkt-alert__close{--fg-color: var(--color-error)}.pkt-alert--warning{border-left:3px solid #f9c66b;background-color:#fef9f0;color:#774c01}.pkt-alert--warning.pkt-alert .pkt-alert__icon{--bg-color: var(--color-yellow);--fg-color: var(--color-blue-dark)}.pkt-alert--warning.pkt-alert .pkt-alert__close{--fg-color: var(--color-warning)}.pkt-alert--info{border-left:3px solid #2a2859;background-color:#f2f9ff;color:#2a2859}.pkt-alert--info.pkt-alert .pkt-alert__icon{--bg-color: var(--color-blue);--fg-color: var(--color-blue-dark)}.pkt-alert--info.pkt-alert .pkt-alert__close{--fg-color: var(--color-blue-dark)}
@@ -527,6 +527,8 @@ p {
527
527
  }
528
528
 
529
529
  body {
530
+ -webkit-font-smoothing: antialiased;
531
+ -moz-osx-font-smoothing: grayscale;
530
532
  min-height: 100vh;
531
533
  overflow-y: scroll;
532
534
  line-height: 1.5;