forked from MicrosoftEdge/Demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext-snippet.css
61 lines (55 loc) · 1.05 KB
/
text-snippet.css
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
.snippet {
margin: 0px;
list-style: none;
flex-shrink: 0;
flex-grow: 0;
background: var(--theme-highlight-background);
padding: 1rem;
border-radius: 0.5rem;
position: relative;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.snippet .text {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 6;
-webkit-box-orient: vertical;
font-style: italic;
cursor: pointer;
font-size: 0.9rem;
color: var(--theme-highlight-text);
}
.snippet .text::before,
.snippet .text::after {
font-size: 3rem;
line-height: 0.4;
position: absolute;
color: var(--theme-highlight-text);
top: 1rem;
left: 0;
}
.snippet .text::after {
top: unset;
bottom: 1.5rem;
left: unset;
right: .5rem;
}
.snippet .text:hover {
text-decoration: underline;
}
.snippet button {
background: transparent;
border: 0px;
margin: 0px;
padding: 0.25rem;
cursor: pointer;
border-radius: 0.25rem;
align-self: end;
color: var(--theme-highlight-text);
}
.snippet button:hover {
text-decoration: underline;
}