index.scss 71.1 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

Яков's avatar
update    
Яков committed
126
127
128
129
130
131
132
    // Окно записи 16:9, а камера отдаёт что угодно — чаще 4:3, на ноутбуках
    // бывает и вертикальный кадр. При height:auto такое видео вылезало за
    // контейнер, а overflow: hidden срезал ему низ ВМЕСТЕ с панелью
    // проигрывания: «после записанного видео не видно нижнее меню».
    //
    // contain вписывает кадр целиком: по бокам появляются поля, зато видно
    // и запись, и её органы управления.
133
    &-video {
Яков's avatar
Яков committed
134
        width: 100%;
Яков's avatar
update    
Яков committed
135
136
        height: 100%;
        object-fit: contain;
Яков's avatar
Яков committed
137
        border-radius: 12px;
138
139
140
141
142
143
    }

    &-start-border {
        border: 3px solid white;
        border-radius: 100px;
        position: absolute;
Яков's avatar
Яков committed
144
        bottom: 24px;
145
146
147
148
149
150
151
152
153
154
155
156
        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
157
158
159
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
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
        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
189
190
        width: 100%;
        aspect-ratio: 16 / 9;
191
192
193
194
195
        background-color: black;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
Яков's avatar
Яков committed
196
197
        overflow: hidden;
        position: relative;
Sergey's avatar
Sergey committed
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
//.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
245
246
247
248
@keyframes atma-spin {
    to { transform: rotate(360deg); }
}

Рамис's avatar
Рамис committed
249
250
.atma-editor {
    position: relative;
Рамис's avatar
Рамис committed
251
252
253
    border-radius: 8px;
    display: flex;
    flex-direction: column;
Рамис's avatar
Рамис committed
254
255

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

Рамис's avatar
Рамис committed
258
259
260
261
262
        *{
            box-sizing: border-box;
        }
    }

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

264
265
    // ── Панель ───────────────────────────────────────────────────────────
    //
266
267
268
269
270
271
272
273
    // Геометрия из макета: кнопка 32×32, зазор внутри группы 2, поля панели 4/9.
    //
    // Отбивка между группами взята 6 + разделитель 1 + 6 вместо макетных 8+1+8.
    // Причина в ширине: макет рисовался на панель 1600 px, а в админке она 1080
    // (рамка редактора ограничена 1100). На такой ширине лишние 4 px у каждого
    // из шести разделителей — это второй ряд кнопок целиком. Один ряд важнее
    // четырёх пикселей воздуха; при желании расширить рамку редактора отбивка
    // вернётся к макетной.
Рамис's avatar
Рамис committed
274
275
    &-toolbar{
        display: flex;
276
        flex-wrap: wrap;
277
        justify-content: left;
Рамис's avatar
Рамис committed
278
279
280
        position: sticky;
        top: 0;
        flex-direction: row;
281
282
283
        align-items: center;
        border-radius: 8px 8px 0 0;
        border: 1px solid #E3E7EC;
Рамис's avatar
Рамис committed
284
        background-color: #ffffff;
Рамис's avatar
Рамис committed
285
        box-shadow: 0 -3px 0 3px #ffffff;
286
        padding: 4px 6px;
Яков's avatar
Яков committed
287
        z-index: var(--atma-toolbar-z-index, 10);
288
        gap: 2px;
Рамис's avatar
Рамис committed
289

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

Рамис's avatar
Рамис committed
296
297
298
        &-g{
            display: flex;
            flex-direction: row;
Яков's avatar
Яков committed
299
            align-items: center;
300
301
302
303
304
305
306
307
308
309
310
311
            gap: 2px;

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

Яков's avatar
update    
Яков committed
312
313
314
315
316
317
318
319
            // Подпись видна ВСЕГДА, в том числе на 1080 — целевой ширине поля
            // редактора на старых экранах.
            //
            // Здесь стояло `display: none` с показом от @container 1200px.
            // Это значило, что на экране, под который панель и делается,
            // подписи не видел никто, а вся затея с обведённой группой
            // теряла смысл. Место под подпись найдено в самом наборе кнопок
            // (см. LESSON в ToolBar.js), а не отложено до большого монитора.
320
            &-label{
Яков's avatar
update    
Яков committed
321
                display: inline;
322
323
324
325
326
327
                font-size: 10px;
                font-weight: 600;
                letter-spacing: 0.06em;
                text-transform: uppercase;
                color: #6B7280;
                white-space: nowrap;
Яков's avatar
update    
Яков committed
328
                padding: 0 6px 0 4px;
329
            }
Рамис's avatar
Рамис committed
330

Яков's avatar
Яков committed
331
332
            .qseparator{
                width: 1px;
333
334
                height: 20px;
                background-color: #E3E7EC;
335
                margin: 0 6px;
Яков's avatar
Яков committed
336
                flex-shrink: 0;
Рамис's avatar
Рамис committed
337
            }
Рамис's avatar
fix bug    
Рамис committed
338
        }
Яков's avatar
Яков committed
339

Яков's avatar
Яков committed
340
341
342
343
344
345
346
347
348
349
350
351
        &-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
352
353
354
355
            background: none;
            border: none;
            cursor: pointer;
            outline: none;
Яков's avatar
Яков committed
356
357
358
359
360
            &:hover{
                color: #1790FF;
            }
        }

361
362
363
        // Кнопка со списком: сама выполняет главное действие группы,
        // каретка открывает остальное. Каретка отбита от иконки волосяной
        // линией и полем 4 — так сразу видно, что кнопка составная.
Рамис's avatar
bug fix    
Рамис committed
364
365
366
        &-s{
            $this: &;
            position: relative;
367
368
369
            display: flex;
            align-items: center;
            padding-right: 14px;
Яков's avatar
Яков committed
370
            margin-right: 0;
371
372
373
374
375
376
377
378
379
380
            border-radius: 8px;
            cursor: pointer;

            &:hover{
                background-color: #EDF1F6;

                .qicon:not(.active){
                    background-color: transparent;
                }
            }
Рамис's avatar
bug fix    
Рамис committed
381
382
383
384
385
386

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

Яков's avatar
update    
Яков committed
387
388
389
390
391
392
393
394
395
396
            // ── Список открывается ПОД кнопкой ───────────────────────────
            //
            // Здесь не было `top`, и абсолютно позиционированный список
            // вставал в своё «статическое» место — то есть по вертикальному
            // центру кнопки, потому что группа выровнена `align-items: center`.
            // У короткого списка сдвиг незаметен, а список таблицы из
            // одиннадцати пунктов уезжал НАД панелью и накрывал текст модуля.
            //
            // `max-height` со прокруткой — на случай длинного списка внизу
            // экрана: лучше прокрутить, чем показать половину за краем окна.
Рамис's avatar
bug fix    
Рамис committed
397
398
            &-opts{
                position: absolute;
Яков's avatar
update    
Яков committed
399
400
                top: calc(100% + 6px);
                display: none;
401
                width: 260px;
Яков's avatar
update    
Яков committed
402
403
                max-height: min(60vh, 420px);
                overflow-y: auto;
404
405
406
                border: 1px solid #E3E7EC;
                border-radius: 12px;
                box-shadow: 0 12px 32px 0 rgba(15, 20, 25, 0.12);
Рамис's avatar
bug fix    
Рамис committed
407
                background-color: #fff;
408
                padding: 6px;
Рамис's avatar
bug fix    
Рамис committed
409
410
                right: 42%;
                transform: translateX(50%);
Яков's avatar
update    
Яков committed
411
                z-index: 10;
Рамис's avatar
bug fix    
Рамис committed
412

413
414
415
                // Пункт: иконка 20 и подпись словами. Высота 34 —
                // достаточно, чтобы попасть мышью, и не превращает список
                // из одиннадцати пунктов в простыню.
Рамис's avatar
bug fix    
Рамис committed
416
417
418
                &-item{
                    display: flex;
                    align-items: center;
419
420
421
422
423
                    gap: 10px;
                    height: 34px;
                    padding: 0 10px;
                    border-radius: 8px;
                    color: #0F1419;
Рамис's avatar
bug fix    
Рамис committed
424
                    cursor: pointer;
425
426
427
428
429

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

                    &:hover{
432
                        background-color: #EDF1F6;
Рамис's avatar
bug fix    
Рамис committed
433
434
435
                    }

                    span{
436
437
                        font-size: 13.5px;
                        line-height: 1.3;
Рамис's avatar
bug fix    
Рамис committed
438
                        white-space: nowrap;
439
440
                        overflow: hidden;
                        text-overflow: ellipsis;
Рамис's avatar
bug fix    
Рамис committed
441
                    }
Рамис's avatar
Рамис committed
442
443

                    &.active{
444
445
446
447
448
449
                        background-color: #1790FF;
                        color: #FFFFFF;

                        .qicon-svg{
                            color: #FFFFFF;
                        }
Рамис's avatar
Рамис committed
450
                    }
Рамис's avatar
Рамис committed
451
452

                    &.disabled{
453
                        color: #B7BFC9;
Рамис's avatar
Рамис committed
454
                        cursor: default;
455
456
457
458
459
460
461
462

                        .qicon-svg{
                            color: #B7BFC9;
                        }

                        &:hover{
                            background-color: transparent;
                        }
Рамис's avatar
Рамис committed
463
                    }
Рамис's avatar
Рамис committed
464
465
466
467
468
469
470
471
472
473
474
475

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

Яков's avatar
update    
Яков committed
476
477
478
479
                    // В списке уровень показан САМИМ размером подписи — это
                    // нагляднее любой пометки. Поэтому и значок, и буквенная
                    // подпись здесь лишние: «H2» рядом с крупным «Заголовок
                    // раздела» повторяет то, что уже видно.
Рамис's avatar
Рамис committed
480
481
482
483
                    &[data-type="h2"], &[data-type="h3"], &[data-type="h4"]{
                        font-weight: 500;
                        padding: 8px;

Яков's avatar
update    
Яков committed
484
485
                        .qicon,
                        .qicon-text{
Рамис's avatar
Рамис committed
486
487
488
489
490
491
                            display: none;
                        }
                    }
                    &[data-type="paragraph"]{
                        padding: 8px;

Яков's avatar
update    
Яков committed
492
493
                        .qicon,
                        .qicon-text{
Рамис's avatar
Рамис committed
494
495
496
                            display: none;
                        }
                    }
Рамис's avatar
bug fix    
Рамис committed
497
498
499
                }
            }

500
501
502
503
504
505
506
507
508
509
510
511
512
            // Каретка 10×6 и волосяная линия слева от неё: кнопка составная,
            // и это должно быть видно, а не угадываться.
            &:before{
                content: '';
                position: absolute;
                right: 14px;
                top: 50%;
                width: 1px;
                height: 16px;
                margin-top: -8px;
                background-color: #E3E7EC;
            }

Рамис's avatar
Рамис committed
513
514
515
            &:after{
                content: '';
                display: inline-block;
516
517
                width: 10px;
                height: 6px;
Рамис's avatar
Рамис committed
518
519
                position: absolute;
                top: 50%;
520
521
522
523
524
                right: 2px;
                margin-top: -3px;
                background-color: #6B7280;
                clip-path: polygon(0 0, 100% 0, 50% 100%);
                transition: transform .12s ease;
Рамис's avatar
Рамис committed
525
526
            }

Рамис's avatar
bug fix    
Рамис committed
527
            &.show{
Яков's avatar
update    
Яков committed
528
529
530
                // Было `clip: rect(0,0,0,0)` / `clip: auto`. Свойство устарело
                // и, главное, не уживается с прокруткой внутри списка:
                // обрезка считается от исходной коробки, а не от прокрученной.
Рамис's avatar
bug fix    
Рамис committed
531
                #{$this}-opts{
Яков's avatar
update    
Яков committed
532
                    display: block;
Рамис's avatar
bug fix    
Рамис committed
533
534
                }

Рамис's avatar
Рамис committed
535
536
537
538
                &:after{
                    transform: rotate(180deg);
                }
            }
Рамис's avatar
bug fix    
Рамис committed
539
        }
Рамис's avatar
Рамис committed
540

541
542
543
544
545
546
547
548
549
550
551
552
553
554
        // ── Кнопка панели ────────────────────────────────────────────────
        //
        // Шесть состояний из макета. Ключевая правка: наведение больше
        // не гасит иконку прозрачностью — под ней появляется подложка,
        // а сама иконка остаётся чёрной. Тускнеющая иконка читается как
        // «кнопка выключилась», а не «сюда можно нажать».
        //
        // Цветом управляет `color`: иконка — дочерний <svg> со stroke
        // currentColor (см. src/icons.js). С прежними background-image
        // это было невозможно, поэтому активное состояние и было серым.
        //
        // Размер один на все кнопки — 32×32. Раньше блок кода имел
        // width: 46px, а PPTX margin-top: 4px, потому что их картинки были
        // разной пропорции; теперь все на сетке 24×24.
Рамис's avatar
Рамис committed
555
        .qicon{
556
557
558
559
560
561
562
563
564
565
            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
566

567
568
569
            .qicon-svg{
                display: block;
                pointer-events: none;
Рамис's avatar
Рамис committed
570
571
            }

Яков's avatar
update    
Яков committed
572
573
574
575
576
577
578
579
580
581
582
583
584
            // Буквенная подпись уровня текста: T, H2, H3, H4.
            // Цвет НЕ задаётся — наследуется от кнопки, как и у svg-иконок,
            // поэтому все шесть состояний работают тем же правилом.
            .qicon-text{
                display: block;
                pointer-events: none;
                font-weight: 700;
                font-size: 13px;
                line-height: 1;
                letter-spacing: -0.02em;
                font-variant-numeric: tabular-nums;
            }

585
586
587
588
            &:hover{
                cursor: pointer;
                background-color: #EDF1F6;
            }
yakoff94's avatar
yakoff94 committed
589

590
591
592
593
594
595
596
597
598
599
600
601
            &:active{
                background-color: #E2E7EE;
            }

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

                &:hover{
                    background-color: #1790FF;
yakoff94's avatar
yakoff94 committed
602
603
604
                }
            }

605
606
607
608
609
610
611
612
            &.disabled{
                color: #B7BFC9;
                background-color: transparent;
                cursor: default !important;

                &:hover{
                    background-color: transparent;
                }
Рамис's avatar
Рамис committed
613
            }
Рамис's avatar
Рамис committed
614
        }
615

Яков's avatar
Яков committed
616
617
618
619
        &-emoji{
            position: relative;
        }

620
621
622
        &:hover{
            z-index: 100000;
        }
Рамис's avatar
Рамис committed
623
624
625
    }


Яков's avatar
update    
Яков committed
626
627
628
629
630
631
632
633
634
635
    // Поверхность редактирования: ТОЛЬКО рамка поля ввода и служебное для ProseMirror.
    //
    // Типографика контента отсюда УБРАНА и живёт в платформе —
    // AtmaGuru/src/React/sass/_content.scss. Причина: пакет диктовал вид вывода,
    // а платформа его отменяла (класс .fix-editor существовал только ради этого).
    // Теперь автор в редакторе и учащийся в уроке берут оформление из одного файла,
    // и WYSIWYG становится настоящим.
    //
    // Оформление контента сюда НЕ ВОЗВРАЩАТЬ. Граница описана в
    // docs/Редактор уроков и рендер контента — ТЗ.md, §3.2.
Рамис's avatar
Рамис committed
636
637
638
639
    &-content{
        border: 1px solid #ccc;
        border-top: 0;
        padding: 12px 15px;
Рамис's avatar
bug fix    
Рамис committed
640
        padding-bottom: 0;
Рамис's avatar
Рамис committed
641

Яков's avatar
update    
Яков committed
642
        // ── Поле набора урока выглядит листом ────────────────────────────────
Яков's avatar
update    
Яков committed
643
        //
Яков's avatar
update    
Яков committed
644
645
646
647
648
        // Лист — белый прямоугольник шириной ровно с колонку контента
        // (`--atma-bleed` из платформы) на светлой подложке. Ширину колонки
        // задаёт платформа, здесь она не зашита: с 01.09.2026 это 1000 px
        // и на текст, и на медиа (решение владельца), а до того колонка была
        // уже поля — и пустые поля по бокам читались как сбой, отсюда лист.
Яков's avatar
update    
Яков committed
649
650
651
652
653
654
655
        //
        // Только урок: в узких карточках (комментарий наставника, глоссарий)
        // лист шире содержимого не бывает, и подложка там ни к чему.
        &.atma-content--lesson {
            background: #F5F7FA;
            padding-bottom: 12px;

Яков's avatar
update    
Яков committed
656
657
658
659
660
661
662
663
664
665
666
667
668
            // ── Поля листа ───────────────────────────────────────────────────
            //
            // Пока колонка была уже поля ввода (832 против 1080), пустота
            // по краям сама читалась как поля страницы, и лист рисовался без
            // padding — так проще было держать ширину колонки ровно равной
            // выводу. С колонкой в 1000 px эта пустота исчезла, и текст
            // упёрся в края листа: «не хватает отступов по бокам» — жалоба
            // тестировщика 02.09.2026.
            //
            // Поля добавлены СНАРУЖИ колонки: `padding` при `box-sizing:
            // border-box` съел бы ширину текста, и колонка стала бы 952 —
            // то есть у автора и читателя снова разные переносы строк.
            // Поэтому предел ширины увеличен ровно на поля.
Яков's avatar
update    
Яков committed
669
670
671
672
            > .ProseMirror {
                background: #ffffff;
                border-radius: 4px;
                box-shadow: 0 0 0 1px #E3E7EC;
Яков's avatar
update    
Яков committed
673
674
675
676
                // Ширину полей объявляем переменной: применяет её платформа —
                // там же, где задан предел ширины колонки, иначе padding
                // и max-width жили бы в разных файлах и разъехались бы.
                --atma-sheet-padding: 24px;
Яков's avatar
update    
Яков committed
677
678
679
680
681
682
683
684
685
686
687
688
689
690

                // Лист обязан СОДЕРЖАТЬ обтекаемую картинку по высоте.
                //
                // Картинка с обтеканием — это float, а float не увеличивает
                // высоту родителя. Если такая картинка стоит последней,
                // текста под ней нет, и лист заканчивался по последней СТРОКЕ:
                // картинка наполовину висела ниже белого поля, поверх подложки
                // («блок для ввода подтягивается вверх, изображение не попадает
                // в блок» — п.1 разбора тестировщика).
                //
                // flow-root, а не clearfix-псевдоэлемент: у ProseMirror ::after
                // занят служебной разметкой, а новый блочный потомок сбивает
                // расчёт позиций каретки.
                display: flow-root;
Яков's avatar
update    
Яков committed
691
692
693
            }
        }

Яков's avatar
update    
Яков committed
694
695
696
697
698
699
        // Пустой абзац в ProseMirror схлопывается без этого — курсор некуда поставить.
        // Правило редактирования, не оформления.
        p:after {
            content:"";
            display:inline-block;
            width:0;
Рамис's avatar
Рамис committed
700
701
        }

Яков's avatar
update    
Яков committed
702
703
704
705
706
707
708
709
710
711
712
        // ── Служебное для 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
713
714
        }

Яков's avatar
update    
Яков committed
715
716
717
718
719
720
721
722
        .column-resize-handle{
            position: absolute;
            right: -2px;
            top: 0;
            bottom: -2px;
            width: 4px;
            background-color: #adf;
            pointer-events: none;
Рамис's avatar
Рамис committed
723
        }
Рамис's avatar
Рамис committed
724

Рамис's avatar
Рамис committed
725
726
        .resize-cursor{
            cursor: col-resize;
Рамис's avatar
fix bug    
Рамис committed
727
        }
728

Яков's avatar
Яков committed
729
730
731
732
733
734
735
736
        a[data-button-link="true"]{
            cursor: pointer;
        }

        .ProseMirror-selectednode[data-button-link="true"]{
            outline: 2px solid #1790FF;
            outline-offset: 2px;
        }
Рамис's avatar
Рамис committed
737
738
739
740
741
742
743
    }
    &-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
744
        padding: 8px;
Рамис's avatar
Рамис committed
745
746

        .qicon{
Рамис's avatar
Рамис committed
747
            width: 25px;
Рамис's avatar
Рамис committed
748
749
750
751
752
753
754
755
756
757
            height: 28px;
            background-repeat: no-repeat;
            background-position: center;
            margin-right: 2px;
            //background-color: tomato;

            &.active{
                opacity: 0.5;
            }

yakoff94's avatar
yakoff94 committed
758
759
760
761
762
763
764
765
766
            &.disabled{
                opacity: 0.5;
                cursor: not-allowed !important;

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

Рамис's avatar
Рамис committed
767
768
769
770
            &:hover{
                cursor: pointer;
                opacity: 0.8;
            }
771
        }
Рамис's avatar
Рамис committed
772
    }
Рамис's avatar
Рамис committed
773

Рамис's avatar
Рамис committed
774
775
776
777
778
779
780
781
782
783
    &-modal{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
784
        z-index: 100001;
785
        background-color: rgba(0, 0, 0, 0.2);
Рамис's avatar
Рамис committed
786
787
788
789
790
791
792
793
794

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

Яков's avatar
update    
Яков committed
802
803
804
805
806
807
808
809
810
811
812
            @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
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
            &-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
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
    &-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
907
908
909
    &-uploader{
        &-drop{
            display: flex;
Яков's avatar
Яков committed
910
            width: 550px;
Рамис's avatar
Рамис committed
911
912
913
914
915
916
917
            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
918
919
920
921
922
            cursor: pointer;

            &:hover{
                border-color: #adb0b6;
            }
Яков's avatar
update    
Яков committed
923
924
925
926
927

            @media (max-width: 600px) {
                width: 100%;
                height: 120px;
            }
Рамис's avatar
Рамис committed
928
929
930
931
932
933
        }
        &-placeholder{
            display: inline-block;
            color: #656D77;
        }

Яков's avatar
update    
Яков committed
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
        // Отказ загрузки или разбора файла. Раньше показать его было негде,
        // и «перенести текст из PDF» на сервере без распознавания выглядело
        // как вечное «подождите…».
        &-error{
            margin-bottom: 16px;
            padding: 8px 12px;
            border: 1px solid #FFA39E;
            border-radius: 6px;
            background: #FFF1F0;
            color: #A8071A;
            font-size: 13px;
            text-align: left;
        }

        &-processing{
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            font-size: 13px;
            color: #6B7280;
            text-align: left;
        }

        &-processing-spinner{
            width: 14px;
            height: 14px;
            border: 2px solid #D9D9D9;
            border-top-color: #1790FF;
            border-radius: 50%;
            animation: atma-uploader-spin 0.8s linear infinite;
        }

Рамис's avatar
Рамис committed
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
        &-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
983
984
985
986
987
988
989
990
991
992
993
994
995
996

                &.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
997
998
999
            }

            &-del{
Рамис's avatar
Рамис committed
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
                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
1017
1018
            }

Рамис's avatar
Рамис committed
1019
1020


Рамис's avatar
Рамис committed
1021
1022
        }

Яков's avatar
Яков committed
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
        &-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
1047
        &-progress{
Рамис's avatar
Рамис committed
1048
            display: flex;
Рамис's avatar
Рамис committed
1049
            position: relative;
Рамис's avatar
Рамис committed
1050
1051
            width: 46px;
            height: 46px;
Рамис's avatar
Рамис committed
1052
            background-color: #ffffff;
Рамис's avatar
Рамис committed
1053
1054
1055
1056
1057
            border-radius: 23px;
            color: #1790FF;
            font-size: 13px;
            justify-content: center;
            align-items: center;
Рамис's avatar
Рамис committed
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071

            &-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
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
            //& > div{
            //    position: absolute;
            //    top: 0;
            //    left: 0;
            //    height: 100%;
            //    background-color: #1790FF;
            //    border-radius: 4px;
            //    overflow: hidden;
            //
            //
            //}
Рамис's avatar
Рамис committed
1083
1084
1085
        }
    }

Яков's avatar
Яков committed
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
    &-suggest{
        margin-bottom: 20px;

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

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

Яков's avatar
update    
Яков committed
1101
1102
1103
1104
1105
1106
1107
1108
        // Выделение файла рисуется рамкой СНАРУЖИ плитки (`box-shadow` без
        // inset), а список прокручиваемый. `overflow-y: auto` по стандарту
        // делает `auto` и по второй оси — значит рамка у крайних плиток
        // обрезалась: сверху, снизу и по бокам. На снимке автора это видно
        // как «выделение подрезано».
        //
        // Отступ в 3 px даёт рамке место со всех сторон. Справа больше:
        // там ещё полоса прокрутки.
Яков's avatar
Яков committed
1109
        &-list{
Яков's avatar
Яков committed
1110
1111
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
Яков's avatar
Яков committed
1112
            gap: 10px;
Яков's avatar
Яков committed
1113
            max-height: min(280px, calc(90dvh - 440px));
Яков's avatar
Яков committed
1114
            overflow-y: auto;
Яков's avatar
update    
Яков committed
1115
            padding: 3px 7px 3px 3px;
Яков's avatar
Яков committed
1116
1117
1118
1119
1120

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

        &-item{
            position: relative;
Яков's avatar
Яков committed
1125
            width: 100%;
Яков's avatar
Яков committed
1126
1127
1128
1129
1130
1131
1132
            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
1133
1134
            box-shadow: 0 0 0 2px transparent;
            transition: box-shadow 0.2s ease;
Яков's avatar
Яков committed
1135
1136
1137
            overflow: hidden;

            &:hover{
Яков's avatar
Яков committed
1138
                box-shadow: 0 0 0 2px #adb0b6;
Яков's avatar
Яков committed
1139
1140
1141
            }

            &.selected{
Яков's avatar
Яков committed
1142
                box-shadow: 0 0 0 2px #1790FF;
Яков's avatar
Яков committed
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158

                &::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
1159
1160
1161
1162
1163
1164
1165
1166
            &.is-audio.selected{
                box-shadow: none;

                &::after{
                    display: none;
                }
            }

Яков's avatar
Яков committed
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
            &.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
1185
1186
            &.is-file{
                aspect-ratio: auto;
Яков's avatar
Яков committed
1187
                width: 100%;
Яков's avatar
Яков committed
1188
1189
1190
1191
1192
1193
1194
1195
1196
                height: auto;
                background-image: none !important;
                background-color: #F5F7FA;
                display: flex;
                align-items: center;
                padding: 8px 10px;
            }

            &.is-video{
Яков's avatar
Яков committed
1197
                width: 100%;
Яков's avatar
Яков committed
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
                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
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
            }

            &-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
1231

Яков's avatar
Яков committed
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
        &-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
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
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
                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
1319
1320
1321
1322
1323
                background-repeat: no-repeat;
                background-position: center;
            }
        }

Яков's avatar
Яков committed
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
        &-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
1364
1365
    }

Рамис's avatar
Рамис committed
1366
1367
1368
1369
1370
1371
1372
    &-btn{
        font-size: 16px;
        -webkit-appearance: none;
        outline: none;
        border: none;
        background: none;
        padding: 16px 24px;
Рамис's avatar
Рамис committed
1373
        line-height: 16px;
Рамис's avatar
Рамис committed
1374
1375
1376
1377
1378
1379

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

Рамис's avatar
Рамис committed
1380
1381
1382
1383
1384
1385
        &[disabled]{
            opacity: 0.3 !important;
            cursor: default !important;
        }


Рамис's avatar
Рамис committed
1386
1387
1388
1389
        &.atma-editor-complete{
            background-color: #1790FF;
            border-radius: 24px;
            color: #ffffff;
Sergey's avatar
Sergey committed
1390
1391
1392
1393
1394
1395
1396

            &-block {
                border-radius: 24px;
                background-color: #AAB2BD;
                cursor: not-allowed;
                color: #ffffff;
            }
Рамис's avatar
Рамис committed
1397
1398
1399
1400
1401
1402
1403
1404
1405
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
1432
1433
1434
1435
1436
1437
        }

        &.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
1438
1439
1440
1441
1442
1443
            &.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
1444
1445
1446
        }
    }

Рамис's avatar
Рамис committed
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
    //&-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
1515

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

Рамис's avatar
fix    
Рамис committed
1517
1518


Яков's avatar
update    
Яков committed
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
    // ── Образец цвета ────────────────────────────────────────────────────────
    //
    // Внутри образца стоит буква «А» — и это не украшение.
    //
    // Цвета выделения по замыслу пастельные (текст поверх них обязан читаться),
    // и шесть бледных плашек подряд выглядели как отключённые кнопки: «палитра
    // задизейблена» — дословная жалоба тестировщика 01.09.2026, при том что
    // палитра работала. Рядом палитра цвета ТЕКСТА из насыщенных цветов, и на
    // её фоне разница читалась как поломка.
    //
    // Буква показывает, что образец делает: у цвета текста она окрашена сама,
    // у выделения — стоит на цветной подложке. Обе палитры при этом выглядят
    // одинаково живыми.
Рамис's avatar
Рамис committed
1532
    .qcolors{
Яков's avatar
update    
Яков committed
1533
1534
1535
        display: inline-flex;
        align-items: center;
        justify-content: center;
Рамис's avatar
Рамис committed
1536
1537
1538
        width: 20px;
        height: 20px;
        opacity: 1;
Яков's avatar
update    
Яков committed
1539
1540
1541
1542
1543
1544
1545
        border: 1px solid rgba(15, 20, 25, 0.15);
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        color: #0F1419;
        user-select: none;
Рамис's avatar
Рамис committed
1546
1547
1548

        &:hover{
            cursor: pointer;
Яков's avatar
update    
Яков committed
1549
            border-color: rgba(15, 20, 25, 0.45);
Рамис's avatar
Рамис committed
1550
        }
Рамис's avatar
Рамис committed
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567

        &.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
1568
1569
    }

Яков's avatar
Яков committed
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
    .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
1596
1597
1598
1599
1600
    .closeBtn {
        position: relative;
        display: flex;
        justify-content: end;
        border-radius: 50%;
Яков's avatar
update    
Яков committed
1601
1602
1603
        border: 1px solid rgb(217, 217, 217);
        background-color: white;
        color: #ff4d4f;
Nikita's avatar
Nikita committed
1604
1605
        font-size: 0.5rem;
        padding: 4px 6px;
Яков's avatar
update    
Яков committed
1606
        top: 4px;
Nikita's avatar
Nikita committed
1607
        cursor: pointer;
Яков's avatar
update    
Яков committed
1608
        right: 4px;
yakoff94's avatar
yakoff94 committed
1609
        z-index: 9;
Nikita's avatar
Nikita committed
1610
1611
1612
1613
1614
1615
    }

    .customIframe {
        width:1280px;
        height:auto;
        aspect-ratio: 16 / 9;
yakoff94's avatar
yakoff94 committed
1616
        //min-height: 700px;
Nikita's avatar
Nikita committed
1617
    }
Рамис's avatar
Рамис committed
1618
}
yakoff94's avatar
yakoff94 committed
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
.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
1635
/* внутри редактора */
Яков's avatar
update    
Яков committed
1636
1637
1638
1639
1640
// Таблицы без границ оформляются в платформе (_content.scss).
// Вид сворачиваемого блока (.toggle-header, .toggle-button, .toggle-body,
// .toggle-body-wrapper) переехал в платформу — AtmaGuru/src/React/sass/_content.scss.
// Здесь остаётся только то, что существует во время правки: ручка перетаскивания,
// кнопка удаления и измеритель ширины заголовка.
Яков's avatar
update    
Яков committed
1641
.toggle-block {
Яков's avatar
Яков committed
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
    &: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
1665
1666
1667
}
.toggle-header-wrapper {
    position: relative;
Яков's avatar
Яков committed
1668
1669
    display: inline-flex;
    align-items: center;
Яков's avatar
update    
Яков committed
1670
    margin-bottom: 10px;
Яков's avatar
update    
Яков committed
1671
1672
}

Яков's avatar
Яков committed
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
.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
1690
1691
1692
1693
    body.toggle-dragging & {
        cursor: grabbing;
    }

Яков's avatar
Яков committed
1694
1695
1696
1697
1698
1699
    &:hover {
        color: #888;
        background: rgba(0,0,0,0.05);
    }
}

Яков's avatar
update    
Яков committed
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
.toggle-header-measurer {
    visibility: hidden;
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    font: inherit;
    padding: 0;
    border: 0;
}

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

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

Яков's avatar
update    
Яков committed
1713
1714
1715
.toggle-block {
    position: relative;
}
Яков's avatar
update    
Яков committed
1716

Яков's avatar
update    
Яков committed
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732

@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
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
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
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842

.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
1843
1844
1845
.atma-editor-field-select {
    width: 110px
}
Яков's avatar
Яков committed
1846
@media (max-width: 768px) {
Яков's avatar
Яков committed
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
    .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;
    }
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
    // ── Панель на телефоне ───────────────────────────────────────────────
    //
    // Кнопка вырастает до 44×44 — это требование к зоне нажатия, а не
    // к иконке: рисунок остаётся 20 px, увеличивается поле вокруг.
    //
    // Разделители не рисуются: на узкой панели они съедают место и всё равно
    // не читаются при переносе строк. Группы отбиваются двойным зазором.
    //
    // Горизонтальной прокрутки НЕТ намеренно. Скрытая справа кнопка на телефоне
    // не находится вообще: методист не знает, что там что-то есть, и не тянет.
    // Редкое уезжает в выпадающие списки, где у каждого пункта подпись словами.
Яков's avatar
fix i    
Яков committed
1869
1870
1871
1872
1873
1874
    .atma-editor-toolbar{
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
1875
1876
1877
1878
1879
1880
1881
        padding: 4px 6px;
        gap: 0;

        .qicon{
            width: 44px;
            height: 44px;
        }
Яков's avatar
fix i    
Яков committed
1882
1883
1884

        &-g{
            flex-wrap: wrap;
1885
            gap: 0;
Яков's avatar
fix i    
Яков committed
1886
1887
1888
1889

            &:after{
                display: none;
            }
1890
1891
1892
1893
1894
1895

            .qseparator{
                display: none;
            }
        }

Яков's avatar
fix i    
Яков committed
1896
        &-s{
1897
1898
1899
1900
1901
1902
            padding-right: 16px;

            &:before{
                right: 16px;
            }

Яков's avatar
fix i    
Яков committed
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
            &-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
1925
    .atma-editor-emoji-popover{
Яков's avatar
fix i    
Яков committed
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
        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
1939
1940
    }
}
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978

// ─────────────────────────────────────────────────────────────────────────────
//  Подсказка у кнопки панели.
//
//  Заменяет нативный 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;
1979
1980
    outline-offset: 2px;
    border-radius: 8px;
1981
}
Яков's avatar
update    
Яков committed
1982
1983
1984
1985

@keyframes atma-uploader-spin {
    to { transform: rotate(360deg); }
}