|
1 | 1 | @use '~@gravity-ui/uikit/styles/mixins' as uikit; |
2 | 2 |
|
3 | | -.pm-h-folding-hidden { |
4 | | - display: none; |
5 | | -} |
| 3 | +.ProseMirror, |
| 4 | +.yfm.ProseMirror { |
| 5 | + .pm-h-folding-hidden { |
| 6 | + display: none; |
| 7 | + } |
6 | 8 |
|
7 | | -.pm-h-folding-content { |
8 | | - padding-left: 28px; |
9 | | -} |
| 9 | + .pm-h-folding-content { |
| 10 | + padding-left: 28px; |
| 11 | + } |
10 | 12 |
|
11 | | -.pm-h-folding-separator { |
12 | | - position: relative; |
| 13 | + .pm-h-folding-separator { |
| 14 | + position: relative; |
13 | 15 |
|
14 | | - &::before { |
15 | | - position: absolute; |
16 | | - z-index: 1; |
17 | | - bottom: -4px; |
18 | | - left: 0; |
| 16 | + &::before { |
| 17 | + position: absolute; |
| 18 | + z-index: 1; |
| 19 | + bottom: -4px; |
| 20 | + left: 0; |
19 | 21 |
|
20 | | - width: 12px; |
21 | | - height: 12px; |
| 22 | + width: 12px; |
| 23 | + height: 12px; |
22 | 24 |
|
23 | | - content: ''; |
| 25 | + content: ''; |
24 | 26 |
|
25 | | - background-color: var(--g-color-text-secondary); |
26 | | - mask-image: url('data:image/svg+xml;svg,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7.25a.75.75 0 0 0 0 1.5h5.69l-2.72 2.72a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 0 0-1.06 1.06l2.72 2.72zm7.47 4.22a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 1 0-1.06 1.06L12.94 8z" clip-rule="evenodd"/></svg>'); |
27 | | - mask-size: 12px; |
| 27 | + background-color: var(--g-color-text-secondary); |
| 28 | + mask-image: url('data:image/svg+xml;svg,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7.25a.75.75 0 0 0 0 1.5h5.69l-2.72 2.72a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 0 0-1.06 1.06l2.72 2.72zm7.47 4.22a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 1 0-1.06 1.06L12.94 8z" clip-rule="evenodd"/></svg>'); |
| 29 | + mask-size: 12px; |
28 | 30 |
|
29 | | - transform: translateY(80%); |
30 | | - } |
| 31 | + transform: translateY(80%); |
| 32 | + } |
31 | 33 |
|
32 | | - &::after { |
33 | | - position: absolute; |
34 | | - z-index: 1; |
35 | | - bottom: -8px; |
36 | | - left: 16px; |
| 34 | + &::after { |
| 35 | + position: absolute; |
| 36 | + z-index: 1; |
| 37 | + bottom: -8px; |
| 38 | + left: 16px; |
37 | 39 |
|
38 | | - display: block; |
| 40 | + display: block; |
39 | 41 |
|
40 | | - width: calc(100% - 16px - 56px - 6px); // left icon + right label + right offset of label |
| 42 | + // left icon + right label + right offset of label |
| 43 | + width: calc(100% - 16px - 56px - 6px); |
41 | 44 |
|
42 | | - content: ''; |
| 45 | + content: ''; |
43 | 46 |
|
44 | | - border-top: 1px dashed var(--g-color-line-generic); |
| 47 | + border-top: 1px dashed var(--g-color-line-generic); |
| 48 | + } |
45 | 49 | } |
46 | | -} |
47 | 50 |
|
48 | | -.pm-h-folding-label { |
49 | | - &::after { |
50 | | - position: absolute; |
51 | | - z-index: 1; |
52 | | - right: 2px; |
53 | | - bottom: -6px; |
| 51 | + .pm-h-folding-label { |
| 52 | + &::after { |
| 53 | + position: absolute; |
| 54 | + z-index: 1; |
| 55 | + right: 2px; |
| 56 | + bottom: -6px; |
54 | 57 |
|
55 | | - display: block; |
| 58 | + display: block; |
56 | 59 |
|
57 | | - padding: 0 8px; |
| 60 | + padding: 0 8px; |
58 | 61 |
|
59 | | - content: attr(data-value); |
| 62 | + content: attr(data-value); |
60 | 63 |
|
61 | | - color: var(--g-color-text-misc); |
62 | | - border-radius: 4px; |
63 | | - background-color: var(--g-color-base-misc-medium-hover); |
| 64 | + color: var(--g-color-text-misc); |
| 65 | + border-radius: 4px; |
| 66 | + background-color: var(--g-color-base-misc-medium-hover); |
64 | 67 |
|
65 | | - transform: translate(0, 50%); |
| 68 | + transform: translate(0, 50%); |
66 | 69 |
|
67 | | - @include uikit.text-body-1(); |
| 70 | + @include uikit.text-body-1(); |
| 71 | + } |
68 | 72 | } |
69 | 73 | } |
0 commit comments