Skip to content

Commit 9260b36

Browse files
committed
Flytt prefliht styles i egen fil & importer
For å unngå at layer spesifisiteten blir feil. Krever egen fil at import rekkefølgen skal bli riktig.
1 parent 7b243d5 commit 9260b36

File tree

2 files changed

+32
-34
lines changed

2 files changed

+32
-34
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'tailwindcss/base';
2+
@import './preflight.css';
23
@import '@navikt/ds-css';
34
@import 'tailwindcss/components';
45
@import 'tailwindcss/utilities';
@@ -22,37 +23,3 @@
2223
--ac-button-tertiary-neutral-text: var(--a-gray-900);
2324
--a-shadow-focus-inverted: 0 0 0 3px var(--a-orange-500);
2425
}
25-
26-
.dekorator {
27-
@layer tw-base {
28-
h1,
29-
h2,
30-
h3,
31-
h4,
32-
h5,
33-
h6 {
34-
font-size: inherit;
35-
font-weight: inherit;
36-
}
37-
38-
ol,
39-
ul {
40-
list-style: none;
41-
margin: 0;
42-
padding: 0;
43-
}
44-
45-
*,
46-
::before,
47-
::after {
48-
border-width: 0;
49-
border-style: solid;
50-
border-color: theme('borderColor.DEFAULT', currentColor);
51-
}
52-
53-
::before,
54-
::after {
55-
--tw-content: '';
56-
}
57-
}
58-
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.dekorator {
2+
h1,
3+
h2,
4+
h3,
5+
h4,
6+
h5,
7+
h6 {
8+
font-size: inherit;
9+
font-weight: inherit;
10+
}
11+
12+
ol,
13+
ul {
14+
list-style: none;
15+
margin: 0;
16+
padding: 0;
17+
}
18+
19+
*,
20+
::before,
21+
::after {
22+
border-width: 0;
23+
border-style: solid;
24+
border-color: theme('borderColor.DEFAULT', currentColor);
25+
}
26+
27+
::before,
28+
::after {
29+
--tw-content: '';
30+
}
31+
}

0 commit comments

Comments
 (0)