-
Notifications
You must be signed in to change notification settings - Fork 453
Expand file tree
/
Copy pathSQLInlineEditor.module.scss
More file actions
94 lines (80 loc) · 1.78 KB
/
Copy pathSQLInlineEditor.module.scss
File metadata and controls
94 lines (80 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.wrapper {
position: relative;
flex: 1 1 0%;
width: 100%;
min-width: 0;
}
.placeholder {
min-height: var(--editor-base-height, 36px);
width: 100%;
}
.paper {
background-color: var(--color-bg-field);
border: 1px solid var(--color-border);
display: flex;
flex-wrap: wrap;
align-items: center;
min-height: var(--editor-base-height, 36px);
box-shadow: none;
gap: 2px;
padding-top: 2px;
padding-bottom: 2px;
&.error {
border-color: var(--color-bg-danger);
}
&.expanded {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 100;
box-shadow: var(--mb-shadow, var(--mantine-shadow-xs));
border-bottom: 2px solid var(--color-bg-brand) !important;
}
&:not(.expanded) {
position: relative;
overflow: hidden;
}
/* When no chips, keep original single-line height cap */
&:not(.expanded, [data-has-chips]) {
max-height: var(--editor-base-height, 36px);
}
}
.label {
white-space: nowrap;
flex-shrink: 0;
}
.cmWrapper {
min-width: 100px;
flex: 1 1 auto;
font-size: var(--mantine-font-size-sm);
/* When expanded with chips, require enough space or wrap to next line */
.expanded[data-has-chips] > & {
min-width: min(100%, 300px);
}
&.sizeXs {
font-size: var(--mantine-font-size-xs);
}
&.collapsed {
overflow: hidden;
}
}
.languageSwitchWrapper {
display: flex;
align-items: center;
min-height: 100%;
}
/* Fade at the bottom when allowMultiline and collapsed (single-line) so text doesn't appear hard-cut */
.collapseFade::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 12px;
background: linear-gradient(to bottom, transparent, var(--color-bg-field));
pointer-events: none;
}
.expanded {
/* Expanded state: no fade, full height */
}