Skip to content

Commit de7a072

Browse files
committed
fix: added z-index to mode help tooltip and z-index system (fixed lint)
1 parent b320856 commit de7a072

File tree

15 files changed

+44
-44
lines changed

15 files changed

+44
-44
lines changed

src/bundle/settings/index.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use '../../styles/mixins.scss';
2+
23
@import '~@gravity-ui/uikit/styles/mixins';
34

45
.g-md-editor-settings {
@@ -14,11 +15,11 @@
1415
}
1516

1617
&__separator {
17-
@include mixins.z-index('default');
18-
1918
margin: 6px 4px;
2019

2120
border-left: 1px solid var(--g-color-line-generic);
21+
22+
@include mixins.z-index('default');
2223
}
2324
}
2425

src/bundle/sticky/sticky.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ $block: 'g-md-editor-sticky';
1313
}
1414

1515
&_sticky-active:not(.#{$block}_clear) {
16-
@include mixins.z-index('sticky-toolbar');
17-
1816
padding: var(--g-md-toolbar-sticky-padding);
1917

18+
@include mixins.z-index('sticky-toolbar');
19+
2020
&::before {
2121
position: absolute;
2222
inset: var(--g-md-toolbar-sticky-inset, -4px);

src/extensions/additional/FoldingHeading/plugins/folding.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@use 'node_modules/@gravity-ui/uikit/styles/mixins.scss' as uikit;
22
@use '../../../../styles/mixins.scss';
33

4-
54
.pm-h-folding-hidden {
65
display: none;
76
}
@@ -14,8 +13,6 @@
1413
position: relative;
1514

1615
&::before {
17-
@include mixins.z-index('forefront');
18-
1916
position: absolute;
2017
bottom: -4px;
2118
left: 0;
@@ -30,11 +27,11 @@
3027
mask-size: 12px;
3128

3229
transform: translateY(80%);
30+
31+
@include mixins.z-index('forefront');
3332
}
3433

3534
&::after {
36-
@include mixins.z-index('forefront');
37-
3835
position: absolute;
3936
bottom: -8px;
4037
left: 16px;
@@ -46,13 +43,13 @@
4643
content: '';
4744

4845
border-top: 1px dashed var(--g-color-line-generic);
46+
47+
@include mixins.z-index('forefront');
4948
}
5049
}
5150

5251
.pm-h-folding-label {
5352
&::after {
54-
@include mixins.z-index('forefront');
55-
5653
position: absolute;
5754
right: 2px;
5855
bottom: -6px;
@@ -70,5 +67,7 @@
7067
transform: translate(0, 50%);
7168

7269
@include uikit.text-body-1();
70+
71+
@include mixins.z-index('forefront');
7372
}
7473
}

src/extensions/additional/Math/view-and-edit.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
}
4848

4949
&::before {
50-
@include mixins.z-index('background');
51-
5250
position: absolute;
5351
inset: -2px;
5452

@@ -58,6 +56,8 @@
5856
background-color: var(--g-md-math-back-color);
5957

6058
transition: background-color 0.15s linear;
59+
60+
@include mixins.z-index('background');
6161
}
6262

6363
&:hover {

src/extensions/additional/Mermaid/MermaidNodeView/Mermaid.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
}
3535

3636
&__EditorPopover {
37-
@include mixins.z-index('forefront');
38-
3937
float: right;
38+
39+
@include mixins.z-index('forefront');
4040
}
4141

4242
&__Controls {

src/extensions/additional/YfmHtmlBlock/YfmHtmlBlockNodeView/YfmHtmlBlock.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
}
6868

6969
&__editor-popover {
70-
@include mixins.z-index('forefront');
71-
7270
float: right;
71+
72+
@include mixins.z-index('forefront');
7373
}
7474

7575
&__controls {

src/extensions/behavior/Cursor/gapcursor.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
}
3030

3131
&::before {
32-
@include mixins.z-index('forefront');
33-
3432
position: relative;
3533

3634
display: inline-block;
@@ -41,6 +39,8 @@
4139
caret-color: transparent;
4240

4341
border-right: 1px solid transparent;
42+
43+
@include mixins.z-index('forefront');
4444
}
4545

4646
.ProseMirror-focused &::before {

src/extensions/behavior/Placeholder/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929

3030
.ProseMirror-focused &_focus {
3131
.g-md-placeholder__cursor {
32-
@include mixins.z-index('forefront');
33-
3432
position: relative;
3533

3634
margin-right: -1px;
@@ -40,6 +38,8 @@
4038

4139
animation: placeholder_blink 1s;
4240
animation-iteration-count: infinite;
41+
42+
@include mixins.z-index('forefront');
4343
}
4444
}
4545
}

src/extensions/behavior/Resizable/Resizable.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ body :has(.g-md-resizable_resizing) {
99

1010
&_resizing &__resizer-wrapper,
1111
&_hover &__resizer-wrapper {
12-
@include mixins.z-index('forefront');
13-
1412
position: absolute;
1513
top: 0;
1614

@@ -24,6 +22,8 @@ body :has(.g-md-resizable_resizing) {
2422
cursor: col-resize;
2523
pointer-events: auto;
2624

25+
@include mixins.z-index('forefront');
26+
2727
&_left {
2828
left: 0;
2929
}

src/extensions/markdown/Code/code.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
}
2020

2121
.ProseMirror-focused .fake-cursor {
22-
@include mixins.z-index('forefront');
23-
2422
position: relative;
2523

2624
margin-right: -1px;
@@ -30,4 +28,6 @@
3028

3129
animation: code_fake_blink 1s;
3230
animation-iteration-count: infinite;
31+
32+
@include mixins.z-index('forefront');
3333
}

0 commit comments

Comments
 (0)