-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathstyle.css
More file actions
231 lines (202 loc) · 5.57 KB
/
style.css
File metadata and controls
231 lines (202 loc) · 5.57 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/* This overwrite the default react-sortable-tree css to display events list */
/**
* Remove the outline visible on the events sheet (contrary to most
* controls on screen, we don't want a visible focus there).
*/
.gd-events-sheet:focus { outline: none; }
/**
* Draggable handle on the left of an event
*/
.gd-events-sheet .move-handle {
width: 10px;
margin: 0.5px;
flex-grow: 0;
flex-shrink: 0;
cursor: move;
}
@media only screen and (max-width: 750px) {
/**
* Slightly reduce the size of the handle on small screens
* and phones (where drag'n'drop is not supported anyway).
*/
.gd-events-sheet .move-handle {
width: 4px;
}
}
.gd-events-sheet .events-tree {
height: 100%;
}
/**
* Container of an event line (including the scaffolding lines and the event).
*/
.gd-events-sheet .rst__node {
display: flex;
}
.gd-events-sheet .rst__nodeContent {
/* Ensure the event take all the space after the scaffolding lines */
flex: 1;
right: 0;
min-width: 0; /* But don't shrink scaffolding lines */
margin-bottom: 2px; /* Margin after an event */
}
.gd-events-sheet .rst__row {
/* The "landing pad" highlight box is done with position: absolute.
* Ensure it will cover all the event row but not the scaffolding lines.
*/
position: relative;
}
/**
* Container of the content of an event
*/
.gd-events-sheet .rst__rowContents {
display: flex;
border: none;
box-shadow: none;
border-radius: 0;
padding: 0;
flex: 1;
/*
* Align the renderered event to the top, so that it does not move
* if the container is too large and resized down (for exemple, when deleting
* an action or a condition.
*/
align-items: flex-start;
}
.gd-events-sheet .rst__rowWrapper {
padding: 0;
}
.gd-events-sheet .rst__rowLabel {
padding: 0;
flex: 1;
min-width: 0;
}
.gd-events-sheet .rst__rowTitle {
font-weight: normal;
}
/**
* Unset font family of Material UI textfields (for comment and group events)
* so that they get the same font family as the rest of the event sheet.
*/
.gd-events-sheet .rst__rowTitle .MuiInputBase-root {
font-family: unset;
}
/**
* Ensure group and comment event text fields match the display text style
*/
.gd-events-sheet .rst__rowTitle .MuiInputBase-input,
.gd-events-sheet .rst__rowTitle .MuiInput-input {
padding: 0 !important;
padding-bottom: 0 !important;
line-height: 1.5em;
font-size: inherit;
height: auto;
}
/**
* Add transparent border around Material UI textfields (for comment and group events)
* to avoid a slight shift due to the border added by the class "selectable" applied
* to those events.
*/
.gd-events-sheet .rst__rowTitle .MuiInputBase-root{
box-sizing: border-box;
border: 1px solid transparent;
}
/**
* Expand/collapse buttons
*/
.gd-events-sheet .rst__collapseButton,
.gd-events-sheet .rst__expandButton {
border-radius: 0;
border: none;
box-shadow: none;
background-repeat: no-repeat;
background-color: transparent;
height: var(--icon-size); /*Keep the height of a single-line event, more-or-less*/
width: 16px; /*Leave space for the line to be visible between the button and the handle*/
background-color: var(--event-sheet-event-tree-background-color);
border-radius: 4px;
}
.gd-events-sheet .rst__collapseButton:hover:not(:active), .rst__expandButton:hover:not(:active) {
background-size: initial !important; /*Avoid buttons size to change*/
height: var(--icon-size) !important; /*Avoid buttons size to change*/
width: 16px !important; /*Avoid buttons size to change*/
}
.gd-events-sheet .rst__expandButton {
background-image: url('./Chevron-right.svg');
}
.gd-events-sheet .light-theme .rst__expandButton {
background-image: url('./Chevron-right_black.svg');
}
.gd-events-sheet .rst__collapseButton {
background-image: url('./Chevron-down.svg');
}
.gd-events-sheet .light-theme .rst__collapseButton {
background-image: url('./Chevron-down_black.svg');
}
/**
* Lines between events
*/
.gd-events-sheet .rst__lineHalfHorizontalRight::before, .rst__lineFullVertical::after, .rst__lineHalfVerticalTop::after, .rst__lineHalfVerticalBottom::after {
opacity: 0.3;
}
/**
* Links to add a condition or an action
*/
.gd-events-sheet .add-link {
background:none!important;
color:inherit;
border:none;
padding:0!important;
font: inherit;
cursor: pointer;
opacity: 0.6;
/** Ensure the links are not growing outside of their parents on small screens. */
text-align: left;
white-space: normal;
overflow-wrap: break-word;
}
.gd-events-sheet .add-link:hover {
opacity: 0.9;
}
/**
* Selectable area (instructions)
*/
.gd-events-sheet .selectable {
box-sizing: border-box;
border: 1px solid transparent;
}
/**
* Large selectable area (events)
*/
.gd-events-sheet .large-selectable {
box-sizing: border-box;
border: 1px solid transparent;
}
/**
* Disabled text
*/
.gd-events-sheet .disabled-text {
text-decoration: line-through;
opacity: 0.6;
}
/**
* Icon (variable, object icon...)
*/
.gd-events-sheet .icon {
vertical-align: sub;
object-fit: contain;
width: var(--icon-size);
height: var(--icon-size);
}
.gd-events-sheet .rst__nodeContent .MuiIconButton-root {
font-size: inherit;
}
/**
* Container having an icon next to the associated name.
* No rules to be set, we used to have a nowrap but it creates issues
* with overflowing long object/variable names (that can contain expressions).
*/
/*
.gd-events-sheet .name-and-icon-container {
white-space: nowrap;
}
*/