@unterberg/nivel 0.2.20 → 0.2.21
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/package.json +1 -1
- package/tailwind.css +94 -0
package/package.json
CHANGED
package/tailwind.css
CHANGED
|
@@ -7,3 +7,97 @@
|
|
|
7
7
|
exclude: rootcolor;
|
|
8
8
|
themes: false;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
.doc-code-pre > code {
|
|
12
|
+
@apply grid bg-base-200!;
|
|
13
|
+
color: var(--color-base-content);
|
|
14
|
+
padding: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.doc-code-pre {
|
|
18
|
+
@apply m-0 overflow-x-auto bg-transparent!;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.doc-code-pre [data-line] {
|
|
22
|
+
@apply block px-0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.doc-code-pre [style*='--shiki-light'] {
|
|
26
|
+
color: var(--shiki-light);
|
|
27
|
+
font-style: var(--shiki-light-font-style, inherit);
|
|
28
|
+
font-weight: var(--shiki-light-font-weight, inherit);
|
|
29
|
+
text-decoration: var(--shiki-light-text-decoration, inherit);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@variant dark {
|
|
33
|
+
.doc-code-pre [style*='--shiki-dark'] {
|
|
34
|
+
color: var(--shiki-dark);
|
|
35
|
+
font-style: var(--shiki-dark-font-style, inherit);
|
|
36
|
+
font-weight: var(--shiki-dark-font-weight, inherit);
|
|
37
|
+
text-decoration: var(--shiki-dark-text-decoration, inherit);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
figure[data-rehype-pretty-code-figure] {
|
|
42
|
+
@apply min-w-0 h-full;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
figure[data-rehype-pretty-code-figure] pre {
|
|
46
|
+
background-color: transparent !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.doc-code-pre .highlighted,
|
|
50
|
+
.doc-code-pre .highlighted-word {
|
|
51
|
+
background: color-mix(in oklab, var(--color-primary) 18%, transparent);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.doc-code-pre.has-diff [data-line].diff,
|
|
55
|
+
[data-file-state='added'] .doc-code-pre [data-line],
|
|
56
|
+
[data-file-state='removed'] .doc-code-pre [data-line],
|
|
57
|
+
.doc-code-file-state .doc-code-pre [data-line] {
|
|
58
|
+
@apply relative pl-4;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.doc-code-pre.has-diff .diff.add,
|
|
62
|
+
[data-file-state='added'] .doc-code-pre [data-line],
|
|
63
|
+
.doc-code-file-added .doc-code-pre [data-line] {
|
|
64
|
+
background: color-mix(in oklab, var(--color-success) 18%, transparent);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.doc-code-pre.has-diff .diff.remove,
|
|
68
|
+
[data-file-state='removed'] .doc-code-pre [data-line],
|
|
69
|
+
.doc-code-file-removed .doc-code-pre [data-line] {
|
|
70
|
+
background: color-mix(in oklab, var(--color-error) 18%, transparent);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.doc-code-pre.has-diff .diff::before,
|
|
74
|
+
[data-file-state='added'] .doc-code-pre [data-line]::before,
|
|
75
|
+
[data-file-state='removed'] .doc-code-pre [data-line]::before,
|
|
76
|
+
.doc-code-file-state .doc-code-pre [data-line]::before {
|
|
77
|
+
@apply absolute left-0 top-1 flex size-3 items-center justify-center rounded font-semibold;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-file-state='added'] .doc-code-pre [data-line]::before {
|
|
81
|
+
@apply bg-success/40 text-success-content!;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.doc-code-pre.has-diff .diff.add::before,
|
|
85
|
+
[data-file-state='added'] .doc-code-pre [data-line]::before,
|
|
86
|
+
.doc-code-file-added .doc-code-pre [data-line]::before {
|
|
87
|
+
@apply content-['+'];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.doc-code-pre.has-diff .diff.remove::before,
|
|
91
|
+
[data-file-state='removed'] .doc-code-pre [data-line]::before,
|
|
92
|
+
.doc-code-file-removed .doc-code-pre [data-line]::before {
|
|
93
|
+
@apply content-['-'];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.with-line-break_white-space code,
|
|
97
|
+
.with-line-break_break-word code {
|
|
98
|
+
@apply whitespace-pre-wrap;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.with-line-break_break-word code {
|
|
102
|
+
@apply break-words;
|
|
103
|
+
}
|