-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobals.css
More file actions
105 lines (85 loc) · 1.92 KB
/
Copy pathglobals.css
File metadata and controls
105 lines (85 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@import url("https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/cascadia-code.min.css");
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
/*
* Kan brukes for å debugge layout
*/
.debug {
@apply border-2 border-red-500;
@apply after:content-['debug'];
@apply after:absolute;
}
.flex-row-center {
@apply flex flex-row items-center;
}
.flex-center {
@apply flex items-center justify-center;
}
}
@layer components {
/*
* Den hvite bakgrunnen på logoen i header
*/
.logo-backdrop {
height: calc(100% * 2);
@apply w-64 rounded-r-full bg-white dark:bg-default-dark-background sm:w-80;
@apply absolute -left-14 -top-14;
}
.header-gradient {
@apply bg-gradient-to-r from-root-primary via-root-primary to-root-secondary;
}
.header-gradient-dark {
@apply bg-gradient-to-r from-root-primary-dark via-default-dark-background to-default-dark-background;
}
}
/*
* CSS for hele dokumentet
*/
:root {
@apply overflow-x-hidden;
scroll-behavior: smooth !important;
}
button,
a[role="button"] {
@apply focus:border focus:border-root-primary;
}
.link,
a {
@apply text-root-primary no-underline hover:text-root-primary-dark dark:text-root-light;
}
/*
Gjør at man kan bruke flere tomme p-tagger for å lage luft.
Nyttig sammen med PortableText
*/
p:empty + p:empty {
@apply min-h-[1px];
}
/* ul {
@apply list-disc pl-3.5;
} */
/* ol {
@apply list-decimal pl-3.5;
} */
br {
@apply my-2 block;
}
h1 {
@apply text-4xl font-bold light:text-dark-title;
}
h2 {
@apply text-3xl font-bold light:text-dark-title;
}
h3 {
@apply text-2xl font-bold light:text-dark-title;
}
h4 {
@apply text-xl font-bold light:text-dark-title;
}
h5 {
@apply text-lg font-bold light:text-dark-title;
}
h6 {
@apply text-base font-bold text-dark-title;
}