forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-text.module.css
More file actions
57 lines (49 loc) · 1.12 KB
/
content-text.module.css
File metadata and controls
57 lines (49 loc) · 1.12 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
.root {
color: var(--sl-color-text);
background-color: var(--sl-color-bg-surface);
padding: 0.5rem calc(0.5rem + 3px);
padding-right: calc(1rem + 18px);
border-radius: 0.25rem;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 1rem;
align-self: flex-start;
font-size: 0.875rem;
&[data-compact] {
font-size: 0.75rem;
color: var(--sl-color-text-dimmed);
}
[data-slot="text"] {
line-height: 1.5;
white-space: pre-wrap;
overflow-wrap: anywhere;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
line-clamp: 3;
overflow: hidden;
[data-expanded] & {
display: block;
}
}
[data-slot="expand-button"] {
flex: 0 0 auto;
padding: 2px 0;
font-size: 0.75rem;
}
&[data-theme="invert"] {
background-color: var(--sl-color-blue-high);
color: var(--sl-color-text-invert);
[data-slot="expand-button"] {
opacity: 0.85;
color: var(--sl-color-text-invert);
&:hover {
opacity: 1;
}
}
}
&[data-theme="blue"] {
background-color: var(--sl-color-blue-low);
}
}