-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdataManager.element.scss
More file actions
254 lines (209 loc) · 5.86 KB
/
dataManager.element.scss
File metadata and controls
254 lines (209 loc) · 5.86 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
$buttonActiveTextColor: #fff !default;
.mb-element-data-manager {
padding-right: 7px;
.data-container {
margin-top: 1.5ex;
}
.loading-indicator {
text-align: right;
// move spinning icon content slightly left to prevent horizontal overflow and flickering scrollbar
padding-right: 0.25em;
opacity: 0; // hidden without affecting layout size
// Do not take up vertical layout space (we have margins to fall into)
height: 0;
overflow-y: visible;
}
color: #555;
font-size: 0.85rem;
table thead th {
white-space: nowrap;
}
.mapbender-element-result-table {
.dt-search {
&, .label, input {
width: 100%;
text-align: left;
margin-left: 0;
margin-right: 0;
}
}
.dt-info {
margin-top: 10px;
}
.btn-group {
white-space: nowrap;
> .btn {
// Bootstrap default float: left on .btn-group > .btn forces computed display: block, allowing horizontal
// collapse of the column and spreading the buttons over mulitple lines
// @see https://stackoverflow.com/questions/28482145/browsers-seem-to-be-ignoring-displayinline-block-and-rendering-as-block
// => disable float
float: none;
font-size: inherit;
padding: 0.28em; // ~3px on 11px font-size
}
}
td:last-child {
padding: 0.2rem 0.5rem;
}
}
// Right-align buttons even if columns have no (configured!) CSS width
td.interface {
text-align: right;
}
td:not(.no-clip) {
overflow-x: hidden;
text-overflow: ellipsis;
// Ellipsis requires a width property; see https://stackoverflow.com/a/11877033
max-width: 0;
}
// Enable tooltips on disabled buttons
.btn[disabled][title] {
pointer-events: auto;
cursor: not-allowed;
&:hover {
// Prevent any hover effects on disabled buttons while keeping tooltips
background-color: inherit !important;
border-color: inherit !important;
color: inherit !important;
}
}
}
// Pop-up dialogs
.popupContent.data-manager-edit-data {
overflow-y: auto;
overflow-x: clip;
color: #707070;
font-size: 11px;
textarea:required,
select:required ,
input:required,
.select2-required .select2-selection {
border: 2px solid #D5A99F;
border-radius: 4px;
transition: border-color 0.3s ease
}
> .ui-tabs .ui-tabs-panel, &.content-padding {
padding: 15px;
}
.ui-tabs {
// Prevent horizontal overflow when tabs are used in popup dialogs
box-sizing: border-box;
max-width: 100%;
> .ui-tabs-nav {
line-height: 2.5;
.ui-tabs-tab {
list-style: none;
float: left;
cursor: pointer;
&.ui-state-active {
background-color: $buttonFirstActiveColor;
}
a {
padding: 0 1em;
&, &:hover {
text-decoration: none;
}
}
&:focus, a:focus {
outline: none;
}
}
}
}
.input-group .colorpicker.dropdown-menu {
// .dropdown-menu: position: absolute; left: 0
left: initial;
right: 1%; // =width of .input-group-addon
}
.ui-tabs-nav {
padding: 0;
}
label, .form-control {
font-size: inherit;
}
.form-control {
border-radius: 0;
}
.file-group {
display: flex;
flex-direction: row;
> i, > a {
flex: 0 0 auto;
}
.fileinput-button {
flex: 0 1 auto;
}
> a {
margin: 0 0.5em;
}
> i.fa-spin {
// Keep icon centered by forcing line-height pixels equal to height pixels
line-height: 2;
height: 2em;
}
.fa-external-link-alt {
// Work around bad vertical glyph kerning (obvious mismatch vs trash can icon)
padding-top: 0.1em;
}
}
.fileinput-button {
position: relative;
input {
opacity: 0;
// Stretch to cover entire button (including padding)
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
}
max-width: 100%;
overflow-x: hidden;
text-overflow: ellipsis;
}
.row.reduce-gutters {
> :nth-child(1n+2) {
padding-left: 0;
}
}
hr {
border: none;
background: #ccc;
height: 1px;
margin-top: 10px;
margin-bottom: 10px;
}
.upload-button-text {
margin-left: 0.5em;
}
label + div.radio, label + div.checkbox {
margin-top: 0;
}
}
.data-manager-datepicker {
padding: 10px;
width: 14em;
.ui-datepicker-title {
margin-left: 0.5em;
margin-right: 0.5em;
}
}
// Mobile-specific dialog styling for edit dialogs
@media (max-width: 767px) {
.popup.mapbender-popup {
&:has(.popupContent.data-manager-edit-data),
&.data-manager-dialog,
&.digitizer-dialog {
width: 100% !important;
max-width: 100vw !important;
max-height: 60vh !important;
right: 0 !important;
margin: 0 !important;
.popupContent {
max-height: calc(60vh - 60px) !important; // Subtract header height
overflow-y: auto !important;
}
}
}
}