aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.scss
blob: c203ca0c3aa117fc9d2be0bbb7462f6f55f9417e (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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
@import "../globalCssVariables";

.ProseMirror {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.ProseMirror:focus {
    outline: none !important;
}

.formattedTextBox-cont {
    touch-action: none;
    cursor: text;
    background: inherit;
    padding: 0;
    border-width: 0px;
    border-radius: inherit;
    border-color: $intermediate-color;
    box-sizing: border-box;
    background-color: inherit;
    border-style: solid;
    overflow-y: auto;
    overflow-x: hidden;
    color: initial;
    height: 100%;
    pointer-events: all;
    max-height: 100%;
    display: flex;
    flex-direction: row;

    .formattedTextBox-dictation {
        height: 12px;
        width: 10px;
        top: 0px;
        left: 0px;
        position: absolute;
    }
}

.collectionfreeformview-container {
    position: relative;
}

.formattedTextBox-outer {
    position: relative;
    overflow: auto;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.formattedTextBox-sidebar-handle {
    position: absolute;
    top: calc(50% - 17.5px);
    width: 10px;
    height: 35px;
    background: lightgray;
    border-radius: 20px;
    cursor:grabbing;
}

.formattedTextBox-cont>.formattedTextBox-sidebar-handle {
    right: 0;
    left: unset;
}

.formattedTextBox-sidebar,
.formattedTextBox-sidebar-inking {
    border-left: dashed 1px black;
    height: 100%;
    display: inline-block;
    position: absolute;
    right: 0;

    >.formattedTextBox-sidebar-handle {
        right: unset;
        left: -5;
    }
}

.formattedTextBox-sidebar-inking {
    pointer-events: all;
}

.formattedTextBox-inner-rounded {
    height: 70%;
    width: 85%;
    position: absolute;
    overflow: auto;
    top: 15%;
    left: 10%;
}

.formattedTextBox-inner-rounded,
.formattedTextBox-inner {
    padding: 10px 10px;
    height: 100%;
}

// .menuicon {
//     display: inline-block;
//     border-right: 1px solid rgba(0, 0, 0, 0.2);
//     color: #888;
//     line-height: 1;
//     padding: 0 7px;
//     margin: 1px;
//     cursor: pointer;
//     text-align: center;
//     min-width: 1.4em;
// }

.strong,
.heading {
    font-weight: bold;
}

.em {
    font-style: italic;
}

.userMarkOpen {
    background: rgba(255, 255, 0, 0.267);
    display: inline;
}

.userMark {
    background: rgba(255, 255, 0, 0.267);
    font-size: 2px;
    display: inline-grid;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 10px;
    min-height: 10px;
    text-align: center;
    align-content: center;
}

footnote {
    display: inline-block;
    position: relative;
    cursor: pointer;

    div {
        padding: 0 !important;
    }
}

footnote::after {
    content: counter(prosemirror-footnote);
    vertical-align: super;
    font-size: 75%;
    counter-increment: prosemirror-footnote;
}

.ProseMirror {
    counter-reset: prosemirror-footnote;
}

.footnote-tooltip {
    cursor: auto;
    font-size: 75%;
    position: absolute;
    left: -30px;
    top: calc(100% + 10px);
    background: silver;
    padding: 3px;
    border-radius: 2px;
    max-width: 100px;
    min-width: 50px;
    width: max-content;
}

.prosemirror-attribution {
    font-size: 8px;
}

.footnote-tooltip::before {
    border: 5px solid silver;
    border-top-width: 0px;
    border-left-color: transparent;
    border-right-color: transparent;
    position: absolute;
    top: -5px;
    left: 27px;
    content: " ";
    height: 0;
    width: 0;
}


.formattedTextBox-inlineComment {
    position: relative;
    width: 40px;
    height: 20px;
    &::before {
        content: "→";
    }
    &:hover {
        background: orange;
    }
}

.formattedTextBox-summarizer {
    opacity: 0.5;
    position: relative;
    width: 40px;
    height: 20px;
    &::after {
        content: "←";
    }
}

.formattedTextBox-summarizer-collapsed {
    opacity: 0.5;
    position: relative;
    width: 40px;
    height: 20px;
    &::after {
        content: "...";
    }
}

.ProseMirror {
    touch-action: none;
    span {
        font-family: inherit;
    }

    ol, ul {
        counter-reset: deci1 0 multi1 0;
        padding-left: 1em;
        font-family: inherit;
    }
    ol {
        margin-left: 1em;
        font-family: inherit;
    }

    .decimal1-ol { counter-reset: deci1; p {display: inline; font-family: inherit} margin-left: 0; }
    .decimal2-ol { counter-reset: deci2; p {display: inline; font-family: inherit} font-size: smaller; padding-left: 1em;}
    .decimal3-ol { counter-reset: deci3; p {display: inline; font-family: inherit} font-size: smaller; padding-left: 2em;}
    .decimal4-ol { counter-reset: deci4; p {display: inline; font-family: inherit} font-size: smaller; padding-left: 3em;}
    .decimal5-ol { counter-reset: deci5; p {display: inline; font-family: inherit} font-size: smaller; }
    .decimal6-ol { counter-reset: deci6; p {display: inline; font-family: inherit} font-size: smaller; }
    .decimal7-ol { counter-reset: deci7; p {display: inline; font-family: inherit} font-size: smaller; }

    .multi1-ol { counter-reset: multi1; p {display: inline; font-family: inherit} margin-left: 0;     padding-left: 1.2em }
    .multi2-ol { counter-reset: multi2; p {display: inline; font-family: inherit} font-size: smaller; padding-left: 1.4em;}
    .multi3-ol { counter-reset: multi3; p {display: inline; font-family: inherit} font-size: smaller; padding-left: 2em;}
    .multi4-ol { counter-reset: multi4; p {display: inline; font-family: inherit} font-size: smaller; padding-left: 3.4em;}

    .decimal1:before { transition: 0.5s;counter-increment: deci1; display: inline-block; margin-left: -1em;   width:  1em;   content: counter(deci1) ". ";  }
    .decimal2:before { transition: 0.5s;counter-increment: deci2; display: inline-block; margin-left: -2.1em; width: 2.1em;  content: counter(deci1) "."counter(deci2) ". ";  }
    .decimal3:before { transition: 0.5s;counter-increment: deci3; display: inline-block; margin-left: -2.85em;width: 2.85em; content: counter(deci1) "."counter(deci2) "."counter(deci3) ". "; }
    .decimal4:before { transition: 0.5s;counter-increment: deci4; display: inline-block; margin-left: -3.85em;width: 3.85em; content: counter(deci1) "."counter(deci2) "."counter(deci3) "."counter(deci4) ". "; }
    .decimal5:before { transition: 0.5s;counter-increment: deci5; display: inline-block; margin-left: -2em;   width:  5em;   content: counter(deci1) "."counter(deci2) "."counter(deci3) "."counter(deci4) "."counter(deci5) ". "; }
    .decimal6:before { transition: 0.5s;counter-increment: deci6; display: inline-block; margin-left: -2em;   width:  6em;   content: counter(deci1) "."counter(deci2) "."counter(deci3) "."counter(deci4) "."counter(deci5) "."counter(deci6) ". "; }
    .decimal7:before { transition: 0.5s;counter-increment: deci7; display: inline-block; margin-left: -2em;   width:  7em;   content: counter(deci1) "."counter(deci2) "."counter(deci3) "."counter(deci4) "."counter(deci5) "."counter(deci6) "."counter(deci7) ". "; }
    
    .multi1:before { transition: 0.5s;counter-increment: multi1; display: inline-block; margin-left: -1em;    width: 1.2em;  content: counter(multi1, upper-alpha) ". ";  }
    .multi2:before { transition: 0.5s;counter-increment: multi2; display: inline-block; margin-left: -2em;    width:   2em;  content: counter(multi1, upper-alpha) "."counter(multi2, decimal) ". "; }
    .multi3:before { transition: 0.5s;counter-increment: multi3; display: inline-block; margin-left: -2.85em; width:2.85em;  content: counter(multi1, upper-alpha) "."counter(multi2, decimal) "."counter(multi3, lower-alpha) ". "; }
    .multi4:before { transition: 0.5s;counter-increment: multi4; display: inline-block; margin-left:   -4.2em;  width: 4.2em;    content: counter(multi1, upper-alpha) "."counter(multi2, decimal) "."counter(multi3, lower-alpha) "."counter(multi4, lower-roman) ". "; }
}