index.scss 59.5 KB
Newer Older
1
2
3
body{
    overflow-y: scroll;
}
Рамис's avatar
Рамис committed
4
5
.ProseMirror{
    outline: none;
Рамис's avatar
Рамис committed
6
    min-height: 204px;
Рамис's avatar
bug fix    
Рамис committed
7
    padding-bottom: 12px;
Рамис's avatar
Рамис committed
8
}
Sergey's avatar
Sergey committed
9

10
11
12
13
14
15
16
17
18
19
20
.progress-btn {
    background-color: #1790FF;
    border-radius: 24px;
    color: #AAB2BD;
}

.audio-player {
    width: 100%;
    height: 51px;
    background-color: #E6F7FF;
    border-radius: 51px;
Sergey's avatar
Sergey committed
21
    display: flex;
22
    justify-content: space-between;
Sergey's avatar
Sergey committed
23
24
    align-items: center;

25
26
27
28
29
    &-start {
        height: 33px;
        width: 33px;
        background-color: white;
        border-radius: 100px;
Sergey's avatar
Sergey committed
30
31
32
        display: flex;
        justify-content: center;
        align-items: center;
33
34
35
36
37
38
39
    }

    &-center-start {
        width: 70%;
        height: 70%;
        background-color: #FF3B30;
        border-radius: 100px;
Sergey's avatar
Sergey committed
40
        cursor: pointer;
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
    }

    &-center-recording {
        width: 40%;
        height: 40%;
        background-color: #FF3B30;
        border-radius: 2px;
        cursor: pointer;
    }

    &-margin {
        margin: 10px;
    }

    &-voice {
        width: 70%;
        border-bottom: 2px dotted #1790FF;
    }

    &-timer {
        margin-right: 20px;
        color: #1790FF;
    }
}

.web {
    &-bottom-elements {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
Sergey's avatar
Sergey committed
71
        margin-top: 30px;
72
    }
Sergey's avatar
Sergey committed
73

74
75
76
77
78
79
80
    &-button-wrap {
        cursor: pointer;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
Sergey's avatar
Sergey committed
81

82
83
84
85
86
87
88
89
90
91
92
93
94
    &-button-rerecord {
        cursor: pointer;
        width: 30px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_220_1498)'%3E%3Ccircle cx='15' cy='15' r='15' fill='%23AAB2BD'/%3E%3Cpath d='M9.16992 15.8948C9.16992 19.3059 11.918 22.0608 15.3223 22.0608C18.7334 22.0608 21.4814 19.3059 21.4814 15.8948C21.4814 12.4836 18.7676 9.76294 15.3633 9.76294C15.0557 9.76294 14.7549 9.79028 14.4951 9.84497L16.0195 8.34106C16.1494 8.19751 16.2246 8.03345 16.2246 7.82837C16.2246 7.41138 15.9033 7.06958 15.4863 7.06958C15.2744 7.06958 15.1035 7.14478 14.9668 7.29517L12.1641 10.1389C12.0137 10.2893 11.9316 10.4875 11.9316 10.6926C11.9316 10.9045 12.0068 11.0891 12.1641 11.2532L14.9668 14.0764C15.0967 14.2131 15.2744 14.2815 15.4863 14.2815C15.9033 14.2815 16.2246 13.9602 16.2246 13.5364C16.2246 13.3381 16.1494 13.1741 16.0127 13.0374L14.29 11.3284C14.6045 11.2668 14.9668 11.2395 15.3633 11.2395C17.9268 11.2395 19.957 13.2903 19.957 15.8948C19.957 18.4651 17.8994 20.5364 15.3223 20.5364C12.7588 20.5364 10.6875 18.4651 10.6875 15.8948C10.6875 15.4368 10.3867 15.1155 9.94922 15.1155C9.49121 15.1155 9.16992 15.4368 9.16992 15.8948Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_220_1498'%3E%3Crect width='30' height='30' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");

        &-text {
            margin-left: 10px;
            font-weight: 400;
            font-size: 17px;
            line-height: 20px;
            text-align: center;
            color: #AAB2BD;
Sergey's avatar
Sergey committed
95
        }
96
    }
Sergey's avatar
Sergey committed
97

98
99
100
101
102
103
    &-button-mute {
        cursor: pointer;
        width: 36px;
        height: 36px;
        background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.85 4.5C15.0784 4.5 12.75 6.82843 12.75 9.6V15.45C12.75 18.2216 15.0784 20.55 17.85 20.55C20.8296 20.55 23.064 18.3294 22.9512 15.51C22.9504 15.49 22.95 15.47 22.95 15.45V9.6C22.95 6.82843 20.6216 4.5 17.85 4.5ZM9.75 9.6C9.75 5.17157 13.4216 1.5 17.85 1.5C22.2784 1.5 25.95 5.17157 25.95 9.6V15.4215C26.1191 20.0862 22.3603 23.55 17.85 23.55C13.4216 23.55 9.75 19.8784 9.75 15.45V9.6ZM6 13.95C6.82843 13.95 7.5 14.6216 7.5 15.45C7.5 21.2284 12.2275 25.9308 17.9659 25.8004L18 25.8C23.634 25.8 28.35 21.2092 28.35 15.45C28.35 14.6216 29.0216 13.95 29.85 13.95C30.6784 13.95 31.35 14.6216 31.35 15.45C31.35 22.4247 26.0042 28.0538 19.35 28.7315V33C19.35 33.8284 18.6785 34.5 17.85 34.5C17.0216 34.5 16.35 33.8284 16.35 33V28.7309C9.67992 28.0296 4.5 22.3045 4.5 15.45C4.5 14.6216 5.17157 13.95 6 13.95Z' fill='%23AAB2BD'/%3E%3C/svg%3E");
    }
Sergey's avatar
Sergey committed
104

105
106
107
108
109
110
    &-button-unmute {
        cursor: pointer;
        width: 36px;
        height: 36px;
        background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.85 4.5C15.0784 4.5 12.75 6.82843 12.75 9.6V15.45C12.75 18.2216 15.0784 20.55 17.85 20.55C20.8296 20.55 23.064 18.3294 22.9512 15.51C22.9504 15.49 22.95 15.47 22.95 15.45V9.6C22.95 6.82843 20.6216 4.5 17.85 4.5ZM9.75 9.6C9.75 5.17157 13.4216 1.5 17.85 1.5C22.2784 1.5 25.95 5.17157 25.95 9.6V15.4215C26.1191 20.0862 22.3603 23.55 17.85 23.55C13.4216 23.55 9.75 19.8784 9.75 15.45V9.6ZM6 13.95C6.82843 13.95 7.5 14.6216 7.5 15.45C7.5 21.2284 12.2275 25.9308 17.9659 25.8004L18 25.8C23.634 25.8 28.35 21.2092 28.35 15.45C28.35 14.6216 29.0216 13.95 29.85 13.95C30.6784 13.95 31.35 14.6216 31.35 15.45C31.35 22.4247 26.0042 28.0538 19.35 28.7315V33C19.35 33.8284 18.6785 34.5 17.85 34.5C17.0216 34.5 16.35 33.8284 16.35 33V28.7309C9.67992 28.0296 4.5 22.3045 4.5 15.45C4.5 14.6216 5.17157 13.95 6 13.95Z' fill='%23AAB2BD'/%3E%3Crect y='3.12558' width='3' height='45.1821' rx='1.5' transform='rotate(-45.1148 0 3.12558)' fill='%23FF5F56'/%3E%3C/svg%3E");
    }
Sergey's avatar
Sergey committed
111

112
113
114
115
116
117
    &-button-spacer {
        cursor: pointer;
        width: 36px;
        height: 36px;
    }
}
Sergey's avatar
Sergey committed
118

119
120
121
122
123
.webwrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
Яков's avatar
Яков committed
124
    width: 100%;
125
126

    &-video {
Яков's avatar
Яков committed
127
128
129
        width: 100%;
        height: auto;
        border-radius: 12px;
130
131
132
133
134
135
    }

    &-start-border {
        border: 3px solid white;
        border-radius: 100px;
        position: absolute;
Яков's avatar
Яков committed
136
        bottom: 24px;
137
138
139
140
141
142
143
144
145
146
147
148
        height: 70px;
        width: 70px;
        padding: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 2;
    }

    &-timer {
        position: absolute;
Яков's avatar
Яков committed
149
150
151
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
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
        font-weight: 400;
        font-size: 21px;
        line-height: 20px;
        text-align: center;
        color: #ffffff;
        z-index: 2;
    }

    &-start-center {
        width: 100%;
        height: 100%;
        background-color: #FF3B30;
        border-radius: 100px;
        border: none;
        cursor: pointer;
        z-index: 2;
    }

    &-record-center {
        width: 65%;
        height: 65%;
        background-color: #FF3B30;
        border-radius: 12px;
        border: none;
        cursor: pointer;
        z-index: 2;
    }

    &-content {
Яков's avatar
Яков committed
181
182
        width: 100%;
        aspect-ratio: 16 / 9;
183
184
185
186
187
        background-color: black;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
Яков's avatar
Яков committed
188
189
        overflow: hidden;
        position: relative;
Sergey's avatar
Sergey committed
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
//.btn {
//    &-video {
//        border-radius: 66px;
//        width: 200px;
//        height: 50px;
//        display: flex;
//        justify-content: center;
//        align-items: center;
//        cursor: pointer;
//        color: white;
//        margin: 5px;
//        margin-top: 30px;
//        border: none;
//        font-size: 17px;
//
//        &:hover {
//            -webkit-box-shadow: 4px 4px 26px 12px rgba(34, 60, 80, 0.2);
//            -moz-box-shadow: 4px 4px 26px 12px rgba(34, 60, 80, 0.2);
//            box-shadow: 4px 4px 26px 12px rgba(34, 60, 80, 0.2);
//        }
//
//        &-disabled {
//            background-color: #AAB2BD;
//        }
//
//        &-wrap {
//            display: flex;
//            flex-direction: row;
//        }
//
//        &-record {
//            background-color: #72c85f;
//        }
//
//        &-stop {
//            background-color: #EE505A;
//        }
//
//        &-mute {
//            background-color: #AAB2BD;
//        }
//    }
//}

Яков's avatar
Яков committed
237
238
239
240
@keyframes atma-spin {
    to { transform: rotate(360deg); }
}

Рамис's avatar
Рамис committed
241
242
.atma-editor {
    position: relative;
Рамис's avatar
Рамис committed
243
244
245
    border-radius: 8px;
    display: flex;
    flex-direction: column;
Рамис's avatar
Рамис committed
246
247

    &-wrap{
Яков's avatar
Яков committed
248
249
        margin-bottom: 20px;

Рамис's avatar
Рамис committed
250
251
252
253
254
        *{
            box-sizing: border-box;
        }
    }

Рамис's avatar
fix bug    
Рамис committed
255

256
257
258
259
260
    // ── Панель ───────────────────────────────────────────────────────────
    //
    // Геометрия из макета: кнопка 32×32, зазор внутри группы 2, отбивка
    // между группами 8 + разделитель 1 + 8, поля панели 4/9. На 1600 px
    // сорок кнопок укладываются в один ряд высотой 42.
Рамис's avatar
Рамис committed
261
262
    &-toolbar{
        display: flex;
263
        flex-wrap: wrap;
264
        justify-content: left;
Рамис's avatar
Рамис committed
265
266
267
        position: sticky;
        top: 0;
        flex-direction: row;
268
269
270
        align-items: center;
        border-radius: 8px 8px 0 0;
        border: 1px solid #E3E7EC;
Рамис's avatar
Рамис committed
271
        background-color: #ffffff;
Рамис's avatar
Рамис committed
272
        box-shadow: 0 -3px 0 3px #ffffff;
273
        padding: 4px 9px;
Яков's avatar
Яков committed
274
        z-index: var(--atma-toolbar-z-index, 10);
275
        gap: 2px;
Рамис's avatar
Рамис committed
276

277
278
279
280
281
282
        // Подпись группы решает, показываться ли ей, по ширине САМОЙ ПАНЕЛИ,
        // а не окна. В админке панель шириной 1080 при окне 1600: правило
        // по @media показало бы подпись там, где она не влезает, и панель
        // уехала бы во второй ряд.
        container-type: inline-size;

Рамис's avatar
Рамис committed
283
284
285
        &-g{
            display: flex;
            flex-direction: row;
Яков's avatar
Яков committed
286
            align-items: center;
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
            gap: 2px;

            // Группа с подписью: четыре возможности, которыми не пользовались
            // ни разу. Рамка и слово рядом делают их отдельной вещью,
            // а не продолжением ряда медиа-кнопок.
            &.has-label{
                border: 1px solid #E3E7EC;
                border-radius: 10px;
                padding: 1px 4px 1px 2px;
                margin: 0 4px;
            }

            &-label{
                display: none;
                font-size: 10px;
                font-weight: 600;
                letter-spacing: 0.06em;
                text-transform: uppercase;
                color: #6B7280;
                white-space: nowrap;
                padding: 0 8px 0 6px;

                // Подпись занимает 96 px и появляется только там, где панель
310
311
312
313
                // и без неё укладывается в один ряд. Браузер без поддержки
                // @container подпись просто не покажет — деградация мягкая,
                // группу всё равно видно по рамке.
                @container (min-width: 1200px){
314
315
316
                    display: inline;
                }
            }
Рамис's avatar
Рамис committed
317

Яков's avatar
Яков committed
318
319
            .qseparator{
                width: 1px;
320
321
322
                height: 20px;
                background-color: #E3E7EC;
                margin: 0 8px;
Яков's avatar
Яков committed
323
                flex-shrink: 0;
Рамис's avatar
Рамис committed
324
            }
Рамис's avatar
fix bug    
Рамис committed
325
        }
Яков's avatar
Яков committed
326

Яков's avatar
Яков committed
327
328
329
330
331
332
333
334
335
336
337
338
        &-info{
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
            padding: 2px 4px;
            color: #8c8c8c;
            flex-shrink: 0;
            align-self: center;
            text-decoration: none;
            border-radius: 4px;
            transition: color 0.15s;
Яков's avatar
Яков committed
339
340
341
342
            background: none;
            border: none;
            cursor: pointer;
            outline: none;
Яков's avatar
Яков committed
343
344
345
346
347
            &:hover{
                color: #1790FF;
            }
        }

348
349
350
        // Кнопка со списком: сама выполняет главное действие группы,
        // каретка открывает остальное. Каретка отбита от иконки волосяной
        // линией и полем 4 — так сразу видно, что кнопка составная.
Рамис's avatar
bug fix    
Рамис committed
351
352
353
        &-s{
            $this: &;
            position: relative;
354
355
356
            display: flex;
            align-items: center;
            padding-right: 14px;
Яков's avatar
Яков committed
357
            margin-right: 0;
358
359
360
361
362
363
364
365
366
367
            border-radius: 8px;
            cursor: pointer;

            &:hover{
                background-color: #EDF1F6;

                .qicon:not(.active){
                    background-color: transparent;
                }
            }
Рамис's avatar
bug fix    
Рамис committed
368
369
370
371
372
373
374
375
376

            .qseparator{
                display: block;
                height: 8px;
            }

            &-opts{
                position: absolute;
                clip: rect(0,0,0,0);
377
378
379
380
                width: 260px;
                border: 1px solid #E3E7EC;
                border-radius: 12px;
                box-shadow: 0 12px 32px 0 rgba(15, 20, 25, 0.12);
Рамис's avatar
bug fix    
Рамис committed
381
                background-color: #fff;
382
                padding: 6px;
Рамис's avatar
bug fix    
Рамис committed
383
384
                right: 42%;
                transform: translateX(50%);
Яков's avatar
update    
Яков committed
385
                z-index: 10;
Рамис's avatar
bug fix    
Рамис committed
386

387
388
389
                // Пункт: иконка 20 и подпись словами. Высота 34 —
                // достаточно, чтобы попасть мышью, и не превращает список
                // из одиннадцати пунктов в простыню.
Рамис's avatar
bug fix    
Рамис committed
390
391
392
                &-item{
                    display: flex;
                    align-items: center;
393
394
395
396
397
                    gap: 10px;
                    height: 34px;
                    padding: 0 10px;
                    border-radius: 8px;
                    color: #0F1419;
Рамис's avatar
bug fix    
Рамис committed
398
                    cursor: pointer;
399
400
401
402
403

                    .qicon-svg{
                        flex-shrink: 0;
                        color: #0F1419;
                    }
Рамис's avatar
bug fix    
Рамис committed
404
405

                    &:hover{
406
                        background-color: #EDF1F6;
Рамис's avatar
bug fix    
Рамис committed
407
408
409
                    }

                    span{
410
411
                        font-size: 13.5px;
                        line-height: 1.3;
Рамис's avatar
bug fix    
Рамис committed
412
                        white-space: nowrap;
413
414
                        overflow: hidden;
                        text-overflow: ellipsis;
Рамис's avatar
bug fix    
Рамис committed
415
                    }
Рамис's avatar
Рамис committed
416
417

                    &.active{
418
419
420
421
422
423
                        background-color: #1790FF;
                        color: #FFFFFF;

                        .qicon-svg{
                            color: #FFFFFF;
                        }
Рамис's avatar
Рамис committed
424
                    }
Рамис's avatar
Рамис committed
425
426

                    &.disabled{
427
                        color: #B7BFC9;
Рамис's avatar
Рамис committed
428
                        cursor: default;
429
430
431
432
433
434
435
436

                        .qicon-svg{
                            color: #B7BFC9;
                        }

                        &:hover{
                            background-color: transparent;
                        }
Рамис's avatar
Рамис committed
437
                    }
Рамис's avatar
Рамис committed
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464

                    &[data-type="h2"]{
                        span{
                            font-size: 1.5em;
                        }
                    }
                    &[data-type="h3"]{
                        span{
                            font-size: 1.17em;
                        }
                    }

                    &[data-type="h2"], &[data-type="h3"], &[data-type="h4"]{
                        font-weight: 500;
                        padding: 8px;

                        .qicon{
                            display: none;
                        }
                    }
                    &[data-type="paragraph"]{
                        padding: 8px;

                        .qicon{
                            display: none;
                        }
                    }
Рамис's avatar
bug fix    
Рамис committed
465
466
467
                }
            }

468
469
470
471
472
473
474
475
476
477
478
479
480
            // Каретка 10×6 и волосяная линия слева от неё: кнопка составная,
            // и это должно быть видно, а не угадываться.
            &:before{
                content: '';
                position: absolute;
                right: 14px;
                top: 50%;
                width: 1px;
                height: 16px;
                margin-top: -8px;
                background-color: #E3E7EC;
            }

Рамис's avatar
Рамис committed
481
482
483
            &:after{
                content: '';
                display: inline-block;
484
485
                width: 10px;
                height: 6px;
Рамис's avatar
Рамис committed
486
487
                position: absolute;
                top: 50%;
488
489
490
491
492
                right: 2px;
                margin-top: -3px;
                background-color: #6B7280;
                clip-path: polygon(0 0, 100% 0, 50% 100%);
                transition: transform .12s ease;
Рамис's avatar
Рамис committed
493
494
            }

Рамис's avatar
bug fix    
Рамис committed
495
496
497
498
499
            &.show{
                #{$this}-opts{
                    clip: auto;
                }

Рамис's avatar
Рамис committed
500
501
502
503
                &:after{
                    transform: rotate(180deg);
                }
            }
Рамис's avatar
bug fix    
Рамис committed
504
        }
Рамис's avatar
Рамис committed
505

506
507
508
509
510
511
512
513
514
515
516
517
518
519
        // ── Кнопка панели ────────────────────────────────────────────────
        //
        // Шесть состояний из макета. Ключевая правка: наведение больше
        // не гасит иконку прозрачностью — под ней появляется подложка,
        // а сама иконка остаётся чёрной. Тускнеющая иконка читается как
        // «кнопка выключилась», а не «сюда можно нажать».
        //
        // Цветом управляет `color`: иконка — дочерний <svg> со stroke
        // currentColor (см. src/icons.js). С прежними background-image
        // это было невозможно, поэтому активное состояние и было серым.
        //
        // Размер один на все кнопки — 32×32. Раньше блок кода имел
        // width: 46px, а PPTX margin-top: 4px, потому что их картинки были
        // разной пропорции; теперь все на сетке 24×24.
Рамис's avatar
Рамис committed
520
        .qicon{
521
522
523
524
525
526
527
528
529
530
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 8px;
            color: #0F1419;
            background-color: transparent;
            transition: background-color .12s ease, color .12s ease;
Рамис's avatar
Рамис committed
531

532
533
534
            .qicon-svg{
                display: block;
                pointer-events: none;
Рамис's avatar
Рамис committed
535
536
            }

537
538
539
540
            &:hover{
                cursor: pointer;
                background-color: #EDF1F6;
            }
yakoff94's avatar
yakoff94 committed
541

542
543
544
545
546
547
548
549
550
551
552
553
            &:active{
                background-color: #E2E7EE;
            }

            // Единственное состояние с цветом: форматирование применено
            // к выделению. Серым его не показать — спутается с наведением.
            &.active{
                background-color: #1790FF;
                color: #FFFFFF;

                &:hover{
                    background-color: #1790FF;
yakoff94's avatar
yakoff94 committed
554
555
556
                }
            }

557
558
559
560
561
562
563
564
            &.disabled{
                color: #B7BFC9;
                background-color: transparent;
                cursor: default !important;

                &:hover{
                    background-color: transparent;
                }
Рамис's avatar
Рамис committed
565
            }
Рамис's avatar
Рамис committed
566
        }
567

Яков's avatar
Яков committed
568
569
570
571
        &-emoji{
            position: relative;
        }

572
573
574
        &:hover{
            z-index: 100000;
        }
Рамис's avatar
Рамис committed
575
576
577
    }


Яков's avatar
update    
Яков committed
578
579
580
581
582
583
584
585
586
587
    // Поверхность редактирования: ТОЛЬКО рамка поля ввода и служебное для ProseMirror.
    //
    // Типографика контента отсюда УБРАНА и живёт в платформе —
    // AtmaGuru/src/React/sass/_content.scss. Причина: пакет диктовал вид вывода,
    // а платформа его отменяла (класс .fix-editor существовал только ради этого).
    // Теперь автор в редакторе и учащийся в уроке берут оформление из одного файла,
    // и WYSIWYG становится настоящим.
    //
    // Оформление контента сюда НЕ ВОЗВРАЩАТЬ. Граница описана в
    // docs/Редактор уроков и рендер контента — ТЗ.md, §3.2.
Рамис's avatar
Рамис committed
588
589
590
591
    &-content{
        border: 1px solid #ccc;
        border-top: 0;
        padding: 12px 15px;
Рамис's avatar
bug fix    
Рамис committed
592
        padding-bottom: 0;
Рамис's avatar
Рамис committed
593

Яков's avatar
update    
Яков committed
594
595
596
597
598
599
        // Пустой абзац в ProseMirror схлопывается без этого — курсор некуда поставить.
        // Правило редактирования, не оформления.
        p:after {
            content:"";
            display:inline-block;
            width:0;
Рамис's avatar
Рамис committed
600
601
        }

Яков's avatar
update    
Яков committed
602
603
604
605
606
607
608
609
610
611
612
        // ── Служебное для ProseMirror: существует только во время правки ──────
        .selectedCell:after{
            z-index: 2;
            position: absolute;
            content: '';
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(200,200,255, 0.4);
            pointer-events: none;
Рамис's avatar
Рамис committed
613
614
        }

Яков's avatar
update    
Яков committed
615
616
617
618
619
620
621
622
        .column-resize-handle{
            position: absolute;
            right: -2px;
            top: 0;
            bottom: -2px;
            width: 4px;
            background-color: #adf;
            pointer-events: none;
Рамис's avatar
Рамис committed
623
        }
Рамис's avatar
Рамис committed
624

Рамис's avatar
Рамис committed
625
626
        .resize-cursor{
            cursor: col-resize;
Рамис's avatar
fix bug    
Рамис committed
627
        }
628

Яков's avatar
Яков committed
629
630
631
632
633
634
635
636
        a[data-button-link="true"]{
            cursor: pointer;
        }

        .ProseMirror-selectednode[data-button-link="true"]{
            outline: 2px solid #1790FF;
            outline-offset: 2px;
        }
Рамис's avatar
Рамис committed
637
638
639
640
641
642
643
    }
    &-bubble{
        display: flex;
        flex-direction: row;
        border-radius: 8px;
        box-shadow: 0 16px 24px 0 rgba(0,0,0,0.2);
        background-color: #fff;
Рамис's avatar
Рамис committed
644
        padding: 8px;
Рамис's avatar
Рамис committed
645
646

        .qicon{
Рамис's avatar
Рамис committed
647
            width: 25px;
Рамис's avatar
Рамис committed
648
649
650
651
652
653
654
655
656
657
            height: 28px;
            background-repeat: no-repeat;
            background-position: center;
            margin-right: 2px;
            //background-color: tomato;

            &.active{
                opacity: 0.5;
            }

yakoff94's avatar
yakoff94 committed
658
659
660
661
662
663
664
665
666
            &.disabled{
                opacity: 0.5;
                cursor: not-allowed !important;

                &:hover {
                    opacity: 0.5 !important;
                }
            }

Рамис's avatar
Рамис committed
667
668
669
670
            &:hover{
                cursor: pointer;
                opacity: 0.8;
            }
671
        }
Рамис's avatar
Рамис committed
672
    }
Рамис's avatar
Рамис committed
673

Рамис's avatar
Рамис committed
674
675
676
677
678
679
680
681
682
683
    &-modal{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
684
        z-index: 100001;
685
        background-color: rgba(0, 0, 0, 0.2);
Рамис's avatar
Рамис committed
686
687
688
689
690
691
692
693
694

        &-box{
            display: inline-block;
            position: fixed;
            top: 50%;
            min-height: 200px;
            background: #fff;
            transform: translate(0, -50%);
            border-radius: 8px;
Яков's avatar
Яков committed
695
            max-width: 646px;
Яков's avatar
Яков committed
696
            min-width: 540px;
Рамис's avatar
Рамис committed
697
            padding: 48px;
Яков's avatar
Яков committed
698
699
700
            max-height: min(90dvh, 900px);
            overflow-y: auto;
            overflow-x: hidden;
Рамис's avatar
Рамис committed
701

Яков's avatar
update    
Яков committed
702
703
704
705
706
707
708
709
710
711
712
            @media (max-width: 600px) {
                min-width: 0;
                width: calc(100vw - 32px);
                max-width: calc(100vw - 32px);
                left: 50%;
                transform: translate(-50%, -50%);
                padding: 24px 16px;
                max-height: calc(100dvh - 40px);
                border-radius: 12px;
            }

Рамис's avatar
Рамис committed
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
            &-header{
                display: block;
                text-align: left;
                font-size: 21px;
                font-weight: bold;
                margin-bottom: 35px;
            }
        }

        &-close {
            position: absolute;
            top: 0;
            right: 0;
        }

        &-action {
            width: 100%;
            padding: 24px 0 0;
            text-align: right;
        }

        input[type="text"]{
            background-color: #F5F7FA;
            font-size: 18px;
            border: none;
            padding: 19px 25px;
            border-radius: 16px;
            width: 100%;
            margin-bottom: 24px;
        }
    }

Яков's avatar
Яков committed
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
    &-field{
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;

        span{
            font-size: 13px;
            color: #4f4f4f;
        }

        &-color{
            align-items: flex-start;
        }
    }

    &-color-input{
        width: 72px;
        min-width: 72px;
        height: 36px;
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        background: #fff;
        padding: 3px;
    }

    &-button-link{
        &-form{
            min-width: 420px;
        }

        &-grid{
            display: grid;
            grid-template-columns: minmax(0, 1.3fr) repeat(2, auto);
            gap: 16px;
            align-items: start;
        }

        &-preview-wrap{
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 8px;

            span{
                font-size: 13px;
                color: #4f4f4f;
            }
        }

        &-preview{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            align-self: flex-start;
            min-height: 42px;
            border-radius: 10px;
            padding: 10px 18px;
            text-decoration: none;
        }
    }

Рамис's avatar
Рамис committed
807
808
809
    &-uploader{
        &-drop{
            display: flex;
Яков's avatar
Яков committed
810
            width: 550px;
Рамис's avatar
Рамис committed
811
812
813
814
815
816
817
            height: 154px;
            background-color: #F5F7FA;
            border-radius: 16px;
            border: 2px dashed #CCD1D9;
            box-shadow: 0 0 0 1px #F5F7FA;
            justify-content: center;
            align-items: center;
Рамис's avatar
Рамис committed
818
819
820
821
822
            cursor: pointer;

            &:hover{
                border-color: #adb0b6;
            }
Яков's avatar
update    
Яков committed
823
824
825
826
827

            @media (max-width: 600px) {
                width: 100%;
                height: 120px;
            }
Рамис's avatar
Рамис committed
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
        }
        &-placeholder{
            display: inline-block;
            color: #656D77;
        }

        &-uitems{
            display: block;
            text-align: left;
            margin-bottom: 32px;

            &-elem{
                position: relative;
                display: inline-block;
                width: 116px;
                background-color: lightgrey;
                border-radius: 4px;
                margin-right: 16px;
                background-repeat: no-repeat;
                background-size: cover;
                background-position: center;
                aspect-ratio: 16 / 9;
Рамис's avatar
Рамис committed
850
851
852
853
854
855
856
857
858
859
860
861
862
863

                &.atma-editor-uploader-file{
                    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2213%22%20height%3D%2216%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3.712%2012.6H8.86c.17%200%20.31-.057.422-.17a.588.588%200%200%200%20.167-.43.588.588%200%200%200-.167-.43.567.567%200%200%200-.422-.17H3.713a.567.567%200%200%200-.423.17.588.588%200%200%200-.167.43c0%20.173.056.317.167.43.111.113.252.17.422.17zm0-3.4H8.86c.17%200%20.31-.057.422-.17a.588.588%200%200%200%20.167-.43.588.588%200%200%200-.167-.43A.567.567%200%200%200%208.86%208H3.713a.567.567%200%200%200-.423.17.588.588%200%200%200-.167.43c0%20.173.056.317.167.43.111.113.252.17.422.17zM1.18%2016c-.315%200-.59-.12-.825-.36A1.161%201.161%200%200%201%200%2014.8V1.2C0%20.88.118.6.354.36.589.12.864%200%201.179%200h6.6a1.164%201.164%200%200%201%20.844.36l3.595%203.66a1.214%201.214%200%200%201%20.353.86v9.92c0%20.32-.117.6-.353.84s-.51.36-.825.36H1.179zM7.68%201.2H1.18v13.6h10.214V4.92H8.27a.567.567%200%200%201-.423-.17.588.588%200%200%201-.167-.43V1.2zm-6.501%200v3.72V1.2%2014.8%201.2z%22%20fill%3D%22%231790FF%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E') !important;
                    background-position: center top;
                    background-size: 30px;
                    aspect-ratio: auto;
                    width: 76px;
                    min-height: 56px;
                    background-color: transparent;
                    padding-top: 40px;
                    font-size: 11px;
                    margin-right: 30px;
                    vertical-align: top;
                }
Рамис's avatar
Рамис committed
864
865
866
            }

            &-del{
Рамис's avatar
Рамис committed
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
                display: inline-block;
                width: 20px;
                height: 20px;
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.163%209.649c.092.091.2.152.326.182.125.03.25.03.375%200a.66.66%200%200%200%20.32-.177l3.222-3.222L8.543%209.57a.7.7%200%200%200%20.32.183c.125.033.25.034.373.002a.707.707%200%200%200%20.328-.19.693.693%200%200%200%20.185-.323.753.753%200%200%200%200-.375.68.68%200%200%200-.18-.323L6.432%205.406l3.222-3.222a.655.655%200%200%200%20.18-.322.808.808%200%200%200-.003-.373.693.693%200%200%200-.51-.51.763.763%200%200%200-.373-.004.674.674%200%200%200-.32.183L5.406%204.38%202.269%201.243a.655.655%200%200%200-.323-.18.844.844%200%200%200-.375%200%20.656.656%200%200%200-.328.18.669.669%200%200%200-.186.333.807.807%200%200%200%20.003.373c.03.122.09.228.183.32L4.38%205.406%201.158%208.628a.68.68%200%200%200-.18.317.753.753%200%200%200%200%20.376.693.693%200%200%200%20.185.328z%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E');
                border-radius: 10px;
                background-position: center center;
                background-repeat: no-repeat;
                position: absolute;
                top: -10px;
                right: -10px;
                background-color: rgba(204,209,217,0.8);
                z-index: 1;

                &:hover{
                    background-color: #FF4E44;
                    cursor: pointer;
                }
Рамис's avatar
Рамис committed
884
885
            }

Рамис's avatar
Рамис committed
886
887


Рамис's avatar
Рамис committed
888
889
        }

Яков's avatar
Яков committed
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
        &-processing{
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            margin-bottom: 12px;
            background: #f0f7ff;
            border: 1px solid #bae0ff;
            border-radius: 8px;
            color: #1677ff;
            font-size: 14px;
        }

        &-processing-spinner{
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #bae0ff;
            border-top-color: #1677ff;
            border-radius: 50%;
            flex-shrink: 0;
            animation: atma-spin 0.8s linear infinite;
        }

Рамис's avatar
Рамис committed
914
        &-progress{
Рамис's avatar
Рамис committed
915
            display: flex;
Рамис's avatar
Рамис committed
916
            position: relative;
Рамис's avatar
Рамис committed
917
918
            width: 46px;
            height: 46px;
Рамис's avatar
Рамис committed
919
            background-color: #ffffff;
Рамис's avatar
Рамис committed
920
921
922
923
924
            border-radius: 23px;
            color: #1790FF;
            font-size: 13px;
            justify-content: center;
            align-items: center;
Рамис's avatar
Рамис committed
925
926
927
928
929
930
931
932
933
934
935
936
937
938

            &-wrap{
                display: flex;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(67,74,83,0.5);
                border-radius: inherit;
                justify-content: center;
                align-items: center;
            }

Рамис's avatar
Рамис committed
939
940
941
942
943
944
945
946
947
948
949
            //& > div{
            //    position: absolute;
            //    top: 0;
            //    left: 0;
            //    height: 100%;
            //    background-color: #1790FF;
            //    border-radius: 4px;
            //    overflow: hidden;
            //
            //
            //}
Рамис's avatar
Рамис committed
950
951
952
        }
    }

Яков's avatar
Яков committed
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
    &-suggest{
        margin-bottom: 20px;

        &-loading{
            color: #656D77;
            font-size: 13px;
            margin-bottom: 16px;
        }

        &-title{
            font-size: 13px;
            color: #656D77;
            margin-bottom: 10px;
        }

        &-list{
Яков's avatar
Яков committed
969
970
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
Яков's avatar
Яков committed
971
            gap: 10px;
Яков's avatar
Яков committed
972
            max-height: min(280px, calc(90dvh - 440px));
Яков's avatar
Яков committed
973
974
            overflow-y: auto;
            padding-right: 4px;
Яков's avatar
Яков committed
975
976
977
978
979

            &.is-video{
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
                max-height: min(400px, calc(90dvh - 440px));
            }
Яков's avatar
Яков committed
980
981
982
983
        }

        &-item{
            position: relative;
Яков's avatar
Яков committed
984
            width: 100%;
Яков's avatar
Яков committed
985
986
987
988
989
990
991
            aspect-ratio: 16 / 9;
            background-color: #e8eaed;
            border-radius: 6px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            cursor: pointer;
Яков's avatar
Яков committed
992
993
            box-shadow: 0 0 0 2px transparent;
            transition: box-shadow 0.2s ease;
Яков's avatar
Яков committed
994
995
996
            overflow: hidden;

            &:hover{
Яков's avatar
Яков committed
997
                box-shadow: 0 0 0 2px #adb0b6;
Яков's avatar
Яков committed
998
999
1000
            }

            &.selected{
Яков's avatar
Яков committed
1001
                box-shadow: 0 0 0 2px #1790FF;
Яков's avatar
Яков committed
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017

                &::after{
                    content: '';
                    position: absolute;
                    top: 4px;
                    right: 4px;
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    background-color: #1790FF;
                    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%228%22%20height%3D%226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%203l2%202%204-4%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
                    background-repeat: no-repeat;
                    background-position: center;
                }
            }

Яков's avatar
Яков committed
1018
1019
1020
1021
1022
1023
1024
1025
            &.is-audio.selected{
                box-shadow: none;

                &::after{
                    display: none;
                }
            }

Яков's avatar
Яков committed
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
            &.is-audio{
                aspect-ratio: auto;
                width: 100%;
                height: auto;
                background-image: none !important;
                background-color: #F5F7FA;
                display: flex;
                align-items: center;
                padding: 6px 8px;
                gap: 8px;
                grid-column: 1 / -1;
                cursor: default;

                &:hover{
                    box-shadow: none;
                }
            }

Яков's avatar
Яков committed
1044
1045
            &.is-file{
                aspect-ratio: auto;
Яков's avatar
Яков committed
1046
                width: 100%;
Яков's avatar
Яков committed
1047
1048
1049
1050
1051
1052
1053
1054
1055
                height: auto;
                background-image: none !important;
                background-color: #F5F7FA;
                display: flex;
                align-items: center;
                padding: 8px 10px;
            }

            &.is-video{
Яков's avatar
Яков committed
1056
                width: 100%;
Яков's avatar
Яков committed
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
                aspect-ratio: 16 / 9;
                background-color: #000;
                background-image: none !important;
                cursor: default;

                &:hover{
                    box-shadow: 0 0 0 2px transparent;
                }

                &.selected{
                    box-shadow: 0 0 0 2px #1790FF;

                    &::after{
                        display: none;
                    }
                }
Яков's avatar
Яков committed
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
            }

            &-name{
                font-size: 11px;
                color: #434A53;
                display: none;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 100%;
            }

            &.is-audio &-name,
            &.is-file &-name{
                display: block;
            }
        }
Яков's avatar
Яков committed
1090

Яков's avatar
Яков committed
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
        &-video{
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        &-select-btn{
            position: absolute;
            top: 6px;
            right: 6px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.8);
            background-color: rgba(0,0,0,0.35);
            cursor: pointer;
            padding: 0;
            transition: background-color 0.15s, border-color 0.15s;
            z-index: 1;

            &:hover{
                background-color: rgba(0,0,0,0.55);
                border-color: #fff;
            }

            .selected &{
                background-color: #1790FF;
                border-color: #1790FF;
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%228%22%20height%3D%226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%203l2%202%204-4%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
Яков's avatar
Яков committed
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
                background-repeat: no-repeat;
                background-position: center;
            }
        }

        &-audio-btn{
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background-color: #1790FF;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.15s;

            &::after{
                content: '';
                display: block;
                // play triangle
                width: 0;
                height: 0;
                border-style: solid;
                border-width: 5px 0 5px 9px;
                border-color: transparent transparent transparent #fff;
                margin-left: 2px;
            }

            &.playing::after{
                // pause bars
                width: 9px;
                height: 10px;
                border: none;
                margin-left: 0;
                background: linear-gradient(to right, #fff 0, #fff 3px, transparent 3px, transparent 6px, #fff 6px, #fff 9px);
                border-radius: 1px;
            }

            &:hover{
                background-color: #0d7ee8;
            }
        }

        .is-audio &-select-btn{
            position: static;
            flex-shrink: 0;
            margin-left: auto;
            background-color: #CCD1D9;
            border-color: #fff;

            &.selected-mark{
                background-color: #1790FF;
                border-color: #1790FF;
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%228%22%20height%3D%226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%203l2%202%204-4%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
Яков's avatar
Яков committed
1178
1179
1180
1181
1182
                background-repeat: no-repeat;
                background-position: center;
            }
        }

Яков's avatar
Яков committed
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
        &-pagination{
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
        }

        &-page-btn{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid #CCD1D9;
            background: #fff;
            cursor: pointer;
            font-size: 14px;
            color: #434A53;
            transition: background 0.15s, border-color 0.15s;
            padding: 0;
            line-height: 1;

            &:hover:not(:disabled){
                background: #F5F7FA;
                border-color: #adb0b6;
            }

            &:disabled{
                opacity: 0.35;
                cursor: default;
            }
        }

        &-page-info{
            font-size: 13px;
            color: #656D77;
            min-width: 44px;
            text-align: center;
        }
Яков's avatar
Яков committed
1223
1224
    }

Рамис's avatar
Рамис committed
1225
1226
1227
1228
1229
1230
1231
    &-btn{
        font-size: 16px;
        -webkit-appearance: none;
        outline: none;
        border: none;
        background: none;
        padding: 16px 24px;
Рамис's avatar
Рамис committed
1232
        line-height: 16px;
Рамис's avatar
Рамис committed
1233
1234
1235
1236
1237
1238

        &:hover{
            cursor: pointer;
            opacity: 0.7;
        }

Рамис's avatar
Рамис committed
1239
1240
1241
1242
1243
1244
        &[disabled]{
            opacity: 0.3 !important;
            cursor: default !important;
        }


Рамис's avatar
Рамис committed
1245
1246
1247
1248
        &.atma-editor-complete{
            background-color: #1790FF;
            border-radius: 24px;
            color: #ffffff;
Sergey's avatar
Sergey committed
1249
1250
1251
1252
1253
1254
1255

            &-block {
                border-radius: 24px;
                background-color: #AAB2BD;
                cursor: not-allowed;
                color: #ffffff;
            }
Рамис's avatar
Рамис committed
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
        }

        &.atma-editor-cancel{

        }
    }

    &-soc-video{
        display: block;
        list-style: none;
        margin: 0 0 35px 0;
        padding: 0;
        text-align: left;

        li{
            display: inline-block;
            vertical-align: middle;
            background-position: center center;
            background-repeat: no-repeat;
            margin-right: 12px;

            &.youtube{
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2226%22%20height%3D%2218%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M24.776%202.966A3.17%203.17%200%200%200%2022.539.729C20.565.2%2012.652.2%2012.652.2S4.74.2%202.766.73A3.17%203.17%200%200%200%20.529%202.966C0%204.939%200%209.056%200%209.056s0%204.118.529%206.091a3.169%203.169%200%200%200%202.237%202.237c1.973.53%209.886.53%209.886.53s7.913%200%209.887-.53a3.169%203.169%200%200%200%202.237-2.237c.528-1.973.528-6.09.528-6.09s0-4.118-.528-6.091%22%20fill%3D%22%23FF0100%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFE%22%20d%3D%22m10.122%2012.852%206.574-3.795-6.574-3.796v7.591%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
                width: 26px;
                height: 18px;
            }
            &.vimeo{
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2216%22%20height%3D%2214%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.544%203.114c-.069%201.514-1.127%203.588-3.172%206.22-2.114%202.749-3.903%204.124-5.367%204.124-.906%200-1.673-.837-2.3-2.512L3.45%206.342C2.985%204.668%202.486%203.83%201.952%203.83c-.116%200-.524.245-1.221.733L0%203.62c.767-.674%201.524-1.35%202.269-2.025C3.293.71%204.061.245%204.574.198%205.784.082%206.529.91%206.809%202.68c.302%201.912.511%203.1.628%203.566.349%201.586.733%202.378%201.152%202.378.326%200%20.815-.515%201.467-1.543.651-1.03%201-1.812%201.047-2.35.093-.887-.256-1.332-1.047-1.332-.373%200-.757.085-1.151.255.764-2.504%202.224-3.721%204.38-3.652%201.598.047%202.351%201.084%202.259%203.11%22%20fill%3D%22%231AB7EA%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E');
                width: 16px;
                height: 18px;
            }
            &.vk{
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M8.392.151h7.3c6.663%200%208.24%201.578%208.24%208.24v7.301c0%206.663-1.577%208.24-8.24%208.24h-7.3c-6.663%200-8.241-1.577-8.241-8.24v-7.3C.151%201.729%201.729.15%208.391.15%22%20fill%3D%22%234680C2%22%2F%3E%3Cpath%20d%3D%22M19.62%208.341c.117-.369%200-.638-.52-.638h-1.73c-.436%200-.637.235-.755.487%200%200-.89%202.148-2.131%203.541-.403.403-.587.538-.806.538-.117%200-.268-.135-.268-.504v-3.44c0-.437-.134-.638-.504-.638h-2.719c-.268%200-.436.201-.436.403%200%20.42.621.52.688%201.695v2.55c0%20.555-.1.655-.319.655-.587%200-2.014-2.165-2.87-4.632-.167-.487-.335-.671-.772-.671H4.733c-.504%200-.588.235-.588.486%200%20.454.588%202.736%202.736%205.757%201.427%202.064%203.457%203.172%205.287%203.172%201.108%200%201.242-.252%201.242-.671V14.87c0-.504.1-.587.453-.587.252%200%20.705.134%201.729%201.124%201.174%201.175%201.376%201.712%202.03%201.712h1.729c.504%200%20.739-.252.604-.739-.15-.486-.721-1.191-1.46-2.03-.403-.47-1.007-.99-1.192-1.242-.251-.336-.184-.47%200-.772-.016%200%202.098-2.988%202.317-3.995%22%20fill%3D%22%23FFF%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
                width: 24px;
                height: 24px;
            }
            &.ok{
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M23.913%2012.054C23.913%2018.652%2018.565%2024%2011.967%2024S.021%2018.652.021%2012.054%205.369.108%2011.967.108s11.946%205.348%2011.946%2011.946%22%20fill%3D%22%23EE8208%22%2F%3E%3Cpath%20d%3D%22M12%207.194c.82%200%201.488.668%201.488%201.489A1.49%201.49%200%200%201%2012%2010.17a1.49%201.49%200%200%201-1.488-1.488c0-.821.668-1.489%201.488-1.489m0%205.082a3.598%203.598%200%200%200%203.594-3.593A3.598%203.598%200%200%200%2012%205.088a3.599%203.599%200%200%200-3.594%203.595A3.598%203.598%200%200%200%2012%2012.276M13.455%2015.205a6.724%206.724%200%200%200%202.09-.867c.492-.311.64-.963.33-1.456a1.052%201.052%200%200%200-1.454-.332%204.56%204.56%200%200%201-4.843%200%201.052%201.052%200%200%200-1.453.332%201.057%201.057%200%200%200%20.33%201.456c.65.409%201.357.7%202.09.867L8.532%2017.22a1.058%201.058%200%200%200%20.746%201.803c.27%200%20.54-.103.745-.31L12%2016.734l1.977%201.98c.41.413%201.078.413%201.49%200a1.056%201.056%200%200%200%200-1.493l-2.012-2.015%22%20fill%3D%22%23FFFFFE%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
                width: 24px;
                height: 24px;
            }
Рамис's avatar
fix bug    
Рамис committed
1297
1298
1299
1300
1301
1302
            &.rutube{
                background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20width%3D%2246%22%20height%3D%2221%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill-rule%3D%22nonzero%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M13.902%206H0v15h3.87v-4.88h7.414L14.667%2021H19l-3.73-4.902c1.158-.18%201.992-.608%202.502-1.282.51-.675.765-1.755.765-3.194v-1.124c0-.855-.093-1.53-.255-2.047a3.399%203.399%200%200%200-.834-1.372%203.799%203.799%200%200%200-1.437-.832C15.455%206.09%2014.76%206%2013.903%206zm-.625%206.814H3.87V9.306h9.407c.533%200%20.904.09%201.089.247.185.158.301.45.301.877v1.26c0%20.45-.116.742-.301.9-.185.157-.556.224-1.09.224zM24.758%2016.57V6H21v10.48c0%20.854.067%201.552.225%202.069.157.54.427.99.832%201.372.383.404.833.674%201.373.832.54.18%201.215.247%202.07.247h9c.833%200%201.508-.067%202.047-.247.54-.158.99-.428%201.396-.832.382-.383.652-.832.81-1.372.157-.517.247-1.215.247-2.07V6h-3.758v10.57c0%20.45-.112.742-.292.9-.18.157-.54.224-1.058.224h-7.785c-.54%200-.9-.067-1.08-.225-.18-.157-.27-.45-.27-.9z%22%20fill%3D%22%2314191E%22%2F%3E%3Cpath%20d%3D%22M42.682%205.252a2.623%202.623%200%200%200%202.619-2.626A2.623%202.623%200%200%200%2042.682%200a2.623%202.623%200%200%200-2.62%202.626%202.623%202.623%200%200%200%202.62%202.626z%22%20fill%3D%22%23F41240%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
                width: 32px;
                height: 24px;
                background-size: contain;
            }
Рамис's avatar
Рамис committed
1303
1304
1305
        }
    }

Рамис's avatar
Рамис committed
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
    //&-select-colors{
    //    ul.colors-list{
    //        display: block;
    //        margin: 0;
    //        padding: 0;
    //        max-width: 200px;
    //        letter-spacing: 0;
    //        font-size: 0;
    //        position: relative;
    //        left: -5px;
    //
    //        li{
    //            display: inline-block;
    //            vertical-align: top;
    //            height: 40px;
    //            width: 40px;
    //            margin: 10px;
    //            margin-left: 0;
    //            margin-bottom: 0;
    //            border-radius: 20px;
    //            list-style: none;
    //            letter-spacing: 0;
    //            font-size: 0;
    //
    //            &.active, &:hover{
    //                transform: scale(1.2);
    //                cursor: pointer;
    //            }
    //        }
    //    }
    //
    //    .colors-tabs{
    //        font-size: 21px;
    //        font-weight: bold;
    //        margin-bottom: 35px;
    //        text-align: left;
    //
    //        & > div{
    //            display: inline-block;
    //            margin-right: 20px;
    //            opacity: 0.3;
    //
    //            &:hover{
    //                opacity: 0.6;
    //                cursor: pointer;
    //            }
    //
    //            &.active{
    //                position: relative;
    //                opacity: 1;
    //                padding-bottom: 10px;
    //
    //                &:after{
    //                    content: "";
    //                    display: inline-block;
    //                    position: absolute;
    //                    bottom: 0;
    //                    height: 3px;
    //                    width: 100%;
    //                    left: 0;
    //                    background-color: #1790FF;
    //                }
    //            }
    //        }
    //
    //    }
    //}

Рамис's avatar
Рамис committed
1374

Рамис's avatar
Рамис committed
1375

Рамис's avatar
fix    
Рамис committed
1376
1377


Рамис's avatar
Рамис committed
1378
1379
1380
1381
1382
1383
1384
1385
1386
    .qcolors{
        display: inline-block;
        width: 20px;
        height: 20px;
        opacity: 1;

        &:hover{
            cursor: pointer;
        }
Рамис's avatar
Рамис committed
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403

        &.unset{
            position: relative;
            box-shadow: inset 0 0 1px 0 black;
            overflow: hidden;

            &:before{
                content: '';
                background-color: tomato;
                width: 120%;
                height: 2px;
                transform: rotate(-45deg);
                position: absolute;
                top: calc(50% - 1px);
                left: -1px;
            }
        }
Рамис's avatar
Рамис committed
1404
1405
    }

Яков's avatar
Яков committed
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
    .qfont-size-option{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 28px;
        border: none;
        border-radius: 6px;
        background: #f5f5f5;
        color: #1d1d1f;
        font-size: 13px;
        line-height: 1;
        padding: 0 8px;
        margin-right: 4px;

        &:hover{
            cursor: pointer;
            background: #e8e8e8;
        }

        &.active{
            background: #dcecff;
            color: #0050b3;
        }
    }

Nikita's avatar
Nikita committed
1432
1433
1434
1435
1436
    .closeBtn {
        position: relative;
        display: flex;
        justify-content: end;
        border-radius: 50%;
Яков's avatar
update    
Яков committed
1437
1438
1439
        border: 1px solid rgb(217, 217, 217);
        background-color: white;
        color: #ff4d4f;
Nikita's avatar
Nikita committed
1440
1441
        font-size: 0.5rem;
        padding: 4px 6px;
Яков's avatar
update    
Яков committed
1442
        top: 4px;
Nikita's avatar
Nikita committed
1443
        cursor: pointer;
Яков's avatar
update    
Яков committed
1444
        right: 4px;
yakoff94's avatar
yakoff94 committed
1445
        z-index: 9;
Nikita's avatar
Nikita committed
1446
1447
1448
1449
1450
1451
    }

    .customIframe {
        width:1280px;
        height:auto;
        aspect-ratio: 16 / 9;
yakoff94's avatar
yakoff94 committed
1452
        //min-height: 700px;
Nikita's avatar
Nikita committed
1453
    }
Рамис's avatar
Рамис committed
1454
}
yakoff94's avatar
yakoff94 committed
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
.image-resizer {
    display: inline-flex;
    position: relative;
    flex-grow: 0;
    .resize-trigger {
        position: absolute;
        right: -6px;
        bottom: -9px;
        opacity: 0;
        transition: opacity .3s ease;
        color: #3259a5;
    }
    &:hover .resize-trigger {
        opacity: 1;
    }
}
Яков's avatar
update    
Яков committed
1471
/* внутри редактора */
Яков's avatar
update    
Яков committed
1472
1473
1474
1475
1476
// Таблицы без границ оформляются в платформе (_content.scss).
// Вид сворачиваемого блока (.toggle-header, .toggle-button, .toggle-body,
// .toggle-body-wrapper) переехал в платформу — AtmaGuru/src/React/sass/_content.scss.
// Здесь остаётся только то, что существует во время правки: ручка перетаскивания,
// кнопка удаления и измеритель ширины заголовка.
Яков's avatar
update    
Яков committed
1477
.toggle-block {
Яков's avatar
Яков committed
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
    &:hover .toggle-block-delete {
        opacity: 1;
    }
}

.toggle-block-delete {
    flex-shrink: 0;
    margin-left: 8px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #ff4d4f;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
Яков's avatar
update    
Яков committed
1501
1502
1503
}
.toggle-header-wrapper {
    position: relative;
Яков's avatar
Яков committed
1504
1505
    display: inline-flex;
    align-items: center;
Яков's avatar
update    
Яков committed
1506
    margin-bottom: 10px;
Яков's avatar
update    
Яков committed
1507
1508
}

Яков's avatar
Яков committed
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
.toggle-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    margin-right: 4px;
    color: #bbb;
    cursor: grab;
    flex-shrink: 0;
    border-radius: 3px;
    transition: color 0.15s;

    &:active {
        cursor: grabbing;
    }

Яков's avatar
Яков committed
1526
1527
1528
1529
    body.toggle-dragging & {
        cursor: grabbing;
    }

Яков's avatar
Яков committed
1530
1531
1532
1533
1534
1535
    &:hover {
        color: #888;
        background: rgba(0,0,0,0.05);
    }
}

Яков's avatar
update    
Яков committed
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
.toggle-header-measurer {
    visibility: hidden;
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    font: inherit;
    padding: 0;
    border: 0;
}

Яков's avatar
update    
Яков committed
1547

Яков's avatar
update    
Яков committed
1548

Яков's avatar
update    
Яков committed
1549
1550
1551
.toggle-block {
    position: relative;
}
Яков's avatar
update    
Яков committed
1552

Яков's avatar
update    
Яков committed
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568

@media (max-width: 768px) {
    .ProseMirror,
    .atma-editor-content {
        // Ограничиваем враппер шириной контейнера, не трогая float и width
        div[data-image-wrapper] {
            max-width: 100% !important;
        }

        // Картинка масштабируется пропорционально внутри враппера
        div[data-image-wrapper] img {
            max-width: 100% !important;
            height: auto !important;
        }
    }
}
Яков's avatar
Яков committed
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678

.atma-editor-emoji-popover{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 344px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    z-index: 30;

    &-search{
        margin-bottom: 10px;
    }

    &-tabs{
        display: flex;
        align-items: center;
        gap: 4px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        overflow-x: auto;
    }

    &-title{
        font-size: 12px;
        line-height: 16px;
        color: #8c8c8c;
        margin-bottom: 8px;
    }
}

.atma-editor-emoji-search{
    width: 100%;
    height: 36px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;

    &:focus{
        border-color: #1790FF;
        box-shadow: 0 0 0 2px rgba(23, 144, 255, 0.12);
    }
}

.atma-editor-emoji-tab{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    flex: 0 0 auto;
    font-size: 17px;

    &:hover{
        cursor: pointer;
        background: #f5f5f5;
    }

    &.active{
        background: #edeef0;
    }
}

.atma-editor-emoji-grid{
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.atma-editor-emoji-item{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 24px;
    line-height: 1;

    &:hover{
        cursor: pointer;
        background: #f5f5f5;
    }
}

.atma-editor-emoji-empty{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    color: #8c8c8c;
    font-size: 13px;
}
Яков's avatar
Яков committed
1679
1680
1681
.atma-editor-field-select {
    width: 110px
}
Яков's avatar
Яков committed
1682
@media (max-width: 768px) {
Яков's avatar
Яков committed
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
    .atma-editor-button-link-form{
        min-width: 0;
    }

    .atma-editor-button-link-grid{
        grid-template-columns: 1fr 1fr;
    }

    .atma-editor-field-color{
        align-items: flex-start;
    }
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
    // ── Панель на телефоне ───────────────────────────────────────────────
    //
    // Кнопка вырастает до 44×44 — это требование к зоне нажатия, а не
    // к иконке: рисунок остаётся 20 px, увеличивается поле вокруг.
    //
    // Разделители не рисуются: на узкой панели они съедают место и всё равно
    // не читаются при переносе строк. Группы отбиваются двойным зазором.
    //
    // Горизонтальной прокрутки НЕТ намеренно. Скрытая справа кнопка на телефоне
    // не находится вообще: методист не знает, что там что-то есть, и не тянет.
    // Редкое уезжает в выпадающие списки, где у каждого пункта подпись словами.
Яков's avatar
fix i    
Яков committed
1705
1706
1707
1708
1709
1710
    .atma-editor-toolbar{
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
1711
1712
1713
1714
1715
1716
1717
        padding: 4px 6px;
        gap: 0;

        .qicon{
            width: 44px;
            height: 44px;
        }
Яков's avatar
fix i    
Яков committed
1718
1719
1720

        &-g{
            flex-wrap: wrap;
1721
            gap: 0;
Яков's avatar
fix i    
Яков committed
1722
1723
1724
1725

            &:after{
                display: none;
            }
1726
1727
1728
1729
1730
1731

            .qseparator{
                display: none;
            }
        }

Яков's avatar
fix i    
Яков committed
1732
        &-s{
1733
1734
1735
1736
1737
1738
            padding-right: 16px;

            &:before{
                right: 16px;
            }

Яков's avatar
fix i    
Яков committed
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
            &-opts{
                left: auto;
                right: 0;
                transform: none;
                width: max-content;
                max-width: calc(100vw - 24px);
                max-height: min(60vh, 360px);
                overflow-y: auto;
                z-index: 100001;
            }
        }
    }

    .atma-editor-toolbar-s-opts-item{
        max-width: 100%;

        span{
            white-space: normal;
            word-break: break-word;
        }
    }

Яков's avatar
Яков committed
1761
    .atma-editor-emoji-popover{
Яков's avatar
fix i    
Яков committed
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
        position: fixed;
        top: 56px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        max-height: min(70vh, 420px);
        z-index: 100002;
    }

    .atma-editor-emoji-grid{
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-height: min(52vh, 320px);
Яков's avatar
Яков committed
1775
1776
    }
}
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814

// ─────────────────────────────────────────────────────────────────────────────
//  Подсказка у кнопки панели.
//
//  Заменяет нативный browser title: у того задержка около секунды, серый
//  системный вид и невозможность показать вторую строку. Именно он давал
//  ощущение «панель из 2003 года».
// ─────────────────────────────────────────────────────────────────────────────
.atma-editor-tip {
    max-width: 280px;

    .ant-tooltip-inner {
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13px;
        line-height: 1.45;
    }
}

.atma-editor-tip-body {
    display: block;
}

.atma-editor-tip-title {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.atma-editor-tip-hint {
    display: block;
    opacity: 0.8;
}

// Кнопка панели должна быть доступна с клавиатуры: теперь у неё role="button"
// и tabIndex, значит нужен видимый фокус.
.qicon:focus-visible {
    outline: 2px solid #1790FF;
1815
1816
    outline-offset: 2px;
    border-radius: 8px;
1817
}