@navikt/ds-css 0.9.1 → 0.11.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.
package/index.css CHANGED
@@ -7,7 +7,6 @@
7
7
  @import "alert.css";
8
8
  @import "button.css";
9
9
  @import "content-container.css";
10
- @import "copy-to-clipboard.css";
11
10
  @import "guide-panel.css";
12
11
  @import "form/index.css";
13
12
  @import "help-text.css";
@@ -19,6 +18,7 @@
19
18
  @import "panel.css";
20
19
  @import "link-panel.css";
21
20
  @import "speech-bubble.css";
21
+ @import "table.css";
22
22
 
23
23
  /* Navno spesific packages */
24
24
  @import "page-header.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "private": false,
5
5
  "description": "Css for NAV Designsystem components",
6
6
  "author": "NAV Designsystem team",
@@ -21,11 +21,11 @@
21
21
  "watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
22
22
  },
23
23
  "devDependencies": {
24
- "@navikt/ds-tokens": "^0.5.2",
24
+ "@navikt/ds-tokens": "^0.6.0",
25
25
  "normalize.css": "^8.0.1",
26
26
  "postcss": "^8.3.6",
27
27
  "postcss-cli": "^8.3.1",
28
28
  "postcss-import": "^14.0.2"
29
29
  },
30
- "gitHead": "d98bff30f6ecce6013f5b2c1dba2784fc9d442f8"
30
+ "gitHead": "a06b27a218f9fdbfed2385eb90a602fae16d3a86"
31
31
  }
package/page-header.css CHANGED
@@ -65,6 +65,6 @@
65
65
  height: 3rem;
66
66
  }
67
67
  .navds-page-header__title {
68
- font-size: var(--navds-font-size-title-xl);
68
+ font-size: var(--navds-font-size-heading-xlarge);
69
69
  }
70
70
  }
package/table.css ADDED
@@ -0,0 +1,28 @@
1
+ .navds-table {
2
+ border-collapse: collapse;
3
+ width: 100%;
4
+ display: table;
5
+ }
6
+
7
+ .navds-table__header {
8
+ display: table-header-group;
9
+ }
10
+
11
+ .navds-table__body {
12
+ display: table-row-group;
13
+ }
14
+
15
+ .navds-table__row {
16
+ display: table-row;
17
+ }
18
+
19
+ .navds-table__cell {
20
+ display: table-cell;
21
+ padding: var(--navds-spacing-4);
22
+ text-align: left;
23
+ border-bottom: var(--navds-border-default);
24
+ }
25
+
26
+ .navds-table--small .navds-table__cell {
27
+ padding: var(--navds-spacing-2);
28
+ }
package/typography.css CHANGED
@@ -5,9 +5,9 @@
5
5
  }
6
6
 
7
7
  .navds-heading--2xlarge {
8
- font-size: var(--navds-font-size-heading-2xl);
8
+ font-size: var(--navds-font-size-heading-2xlarge);
9
9
  letter-spacing: -0.01em;
10
- line-height: var(--navds-font-line-height-heading-2xl);
10
+ line-height: var(--navds-font-line-height-heading-2xlarge);
11
11
  }
12
12
 
13
13
  .navds-heading--2xlarge.navds-typo--spacing {
@@ -15,9 +15,9 @@
15
15
  }
16
16
 
17
17
  .navds-heading--xlarge {
18
- font-size: var(--navds-font-size-heading-xl);
18
+ font-size: var(--navds-font-size-heading-xlarge);
19
19
  letter-spacing: -0.008em;
20
- line-height: var(--navds-font-line-height-heading-xl);
20
+ line-height: var(--navds-font-line-height-heading-xlarge);
21
21
  }
22
22
 
23
23
  .navds-heading--xlarge.navds-typo--spacing {
@@ -25,9 +25,9 @@
25
25
  }
26
26
 
27
27
  .navds-heading--large {
28
- font-size: var(--navds-font-size-heading-l);
28
+ font-size: var(--navds-font-size-heading-large);
29
29
  letter-spacing: -0.004em;
30
- line-height: var(--navds-font-line-height-heading-l);
30
+ line-height: var(--navds-font-line-height-heading-large);
31
31
  }
32
32
 
33
33
  .navds-heading--large.navds-typo--spacing {
@@ -35,9 +35,9 @@
35
35
  }
36
36
 
37
37
  .navds-heading--medium {
38
- font-size: var(--navds-font-size-heading-m);
38
+ font-size: var(--navds-font-size-heading-medium);
39
39
  letter-spacing: -0.002em;
40
- line-height: var(--navds-font-line-height-heading-m);
40
+ line-height: var(--navds-font-line-height-heading-medium);
41
41
  }
42
42
 
43
43
  .navds-heading--medium.navds-typo--spacing {
@@ -45,9 +45,9 @@
45
45
  }
46
46
 
47
47
  .navds-heading--small {
48
- font-size: var(--navds-font-size-heading-s);
48
+ font-size: var(--navds-font-size-heading-small);
49
49
  letter-spacing: -0.001em;
50
- line-height: var(--navds-font-line-height-heading-s);
50
+ line-height: var(--navds-font-line-height-heading-small);
51
51
  }
52
52
 
53
53
  .navds-heading--small.navds-typo--spacing {
@@ -55,9 +55,9 @@
55
55
  }
56
56
 
57
57
  .navds-heading--xsmall {
58
- font-size: var(--navds-font-size-heading-xs);
58
+ font-size: var(--navds-font-size-heading-xsmall);
59
59
  letter-spacing: -0.001em;
60
- line-height: var(--navds-font-line-height-heading-xs);
60
+ line-height: var(--navds-font-line-height-heading-xsmall);
61
61
  }
62
62
 
63
63
  .navds-heading--xsmall.navds-typo--spacing {
@@ -66,10 +66,10 @@
66
66
 
67
67
  /* Ingress */
68
68
  .navds-ingress {
69
- font-size: var(--navds-font-size-xl);
69
+ font-size: var(--navds-font-size-xlarge);
70
70
  font-weight: var(--navds-font-weight-regular);
71
71
  letter-spacing: -0.001em;
72
- line-height: var(--navds-font-line-height-xl);
72
+ line-height: var(--navds-font-line-height-xlarge);
73
73
  margin: 0;
74
74
  }
75
75
 
@@ -79,10 +79,10 @@
79
79
 
80
80
  /* Body */
81
81
  .navds-body-long {
82
- font-size: var(--navds-font-size-l);
82
+ font-size: var(--navds-font-size-large);
83
83
  font-weight: var(--navds-font-weight-regular);
84
84
  letter-spacing: 0;
85
- line-height: var(--navds-font-line-height-xl);
85
+ line-height: var(--navds-font-line-height-xlarge);
86
86
  margin: 0;
87
87
  }
88
88
 
@@ -91,9 +91,9 @@
91
91
  }
92
92
 
93
93
  .navds-body-long--small {
94
- font-size: var(--navds-font-size-m);
94
+ font-size: var(--navds-font-size-medium);
95
95
  letter-spacing: 0.002em;
96
- line-height: var(--navds-font-line-height-l);
96
+ line-height: var(--navds-font-line-height-large);
97
97
  }
98
98
 
99
99
  .navds-body-long--small.navds-typo--spacing {
@@ -101,10 +101,10 @@
101
101
  }
102
102
 
103
103
  .navds-body-short {
104
- font-size: var(--navds-font-size-l);
104
+ font-size: var(--navds-font-size-large);
105
105
  font-weight: var(--navds-font-weight-regular);
106
106
  letter-spacing: 0;
107
- line-height: var(--navds-font-line-height-l);
107
+ line-height: var(--navds-font-line-height-large);
108
108
  margin: 0;
109
109
  }
110
110
 
@@ -113,9 +113,9 @@
113
113
  }
114
114
 
115
115
  .navds-body-short--small {
116
- font-size: var(--navds-font-size-m);
116
+ font-size: var(--navds-font-size-medium);
117
117
  letter-spacing: 0.002em;
118
- line-height: var(--navds-font-line-height-m);
118
+ line-height: var(--navds-font-line-height-medium);
119
119
  }
120
120
 
121
121
  .navds-body-short--small.navds-typo--spacing {
@@ -124,10 +124,10 @@
124
124
 
125
125
  /* Label */
126
126
  .navds-label {
127
- font-size: var(--navds-font-size-l);
127
+ font-size: var(--navds-font-size-large);
128
128
  font-weight: var(--navds-font-weight-bold);
129
129
  letter-spacing: 0;
130
- line-height: var(--navds-font-line-height-l);
130
+ line-height: var(--navds-font-line-height-large);
131
131
  margin: 0;
132
132
  }
133
133
 
@@ -136,9 +136,9 @@
136
136
  }
137
137
 
138
138
  .navds-label--small {
139
- font-size: var(--navds-font-size-m);
139
+ font-size: var(--navds-font-size-medium);
140
140
  letter-spacing: 0.002em;
141
- line-height: var(--navds-font-line-height-m);
141
+ line-height: var(--navds-font-line-height-medium);
142
142
  }
143
143
 
144
144
  .navds-label--small.navds-typo--spacing {
@@ -147,10 +147,10 @@
147
147
 
148
148
  /* Small text */
149
149
  .navds-detail {
150
- font-size: var(--navds-font-size-s);
150
+ font-size: var(--navds-font-size-small);
151
151
  font-weight: var(--navds-font-weight-bold);
152
152
  letter-spacing: 0.004em;
153
- line-height: var(--navds-font-line-height-m);
153
+ line-height: var(--navds-font-line-height-medium);
154
154
  margin: 0;
155
155
  }
156
156
 
@@ -1,3 +0,0 @@
1
- .navds-copy-to-clipboard__popover {
2
- padding: var(--navds-spacing-1);
3
- }