blob: adc1cfec14185c6a17d5278a0ee7fe9fb1a636ef (
plain)
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
|
body {
display: flex;
justify-items: stretch;
}
.result-html {
flex: 1;
height: calc(100vh - 20px);
border: solid lightgray 2px;
border-radius: 5px;
margin: 10px;
}
.editor {
flex: 1;
max-width: 50vw;
margin: 10px;
}
.TinyMDE {
height: calc(100vh - 55px);
padding: 16px;
overflow-y: scroll;
border: 2px solid lightgray;
border-radius: 5px;
span {
white-space: pre;
}
.invalid-input {
text-decoration: red wavy underline 1px;
}
}
.container__suggestions {
display: none;
position: absolute;
width: fit-content;
min-width: 10rem;
max-height: 40vh;
overflow-y: scroll;
border: 2px solid lightgray;
border-radius: 0.5rem;
background: #fff;
}
.container__suggestion {
cursor: pointer;
display: flex;
justify-content: space-between;
overflow: hidden;
height: fit-content;
min-height: 2rem;
white-space: nowrap;
align-items: center;
* {
flex-shrink: 0;
display: inline-block;
overflow: hidden;
padding-inline: 1em;
}
.info {
color: #4682B4;
font-weight: bold;
}
.truncate {
text-overflow: ellipsis;
::before {
width: 2rem
}
}
}
.container__suggestion:not(:first-child) {
border-top: 1px solid rgb(203 213 225);
}
.container__suggestion.focus {
background: rgb(226 232 240);
}
|