inline_forms 8.0.3 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,491 +0,0 @@
1
- // inline_forms
2
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,400italic);
3
- @import 'inline_forms/foundation_icons';
4
- @import '../jquery_ui/themes/jquery.ui.sunny.css.scss';
5
- @import '../jquery_ui/jquery.ui.all.css.scss';
6
- @import 'foundation_and_overrides';
7
-
8
- // Foundation 6 makes `.row` a flex container (`display: flex`); a nested
9
- // `.row` is therefore a flex item and shrinks to its content's intrinsic
10
- // width unless we tell it otherwise. Foundation 5's float-based `.row`
11
- // was a block element that filled its parent's width by default. The
12
- // inline-edit UJS swap (`show.js.erb`) inserts `_show.html.erb`'s outer
13
- // `<div class="row">` directly inside the list's `<div class="row top-level">`,
14
- // so without this override the inline-edit panel collapses to ~340px wide
15
- // and right-aligns inside the gold band instead of filling the row.
16
- .row .row {
17
- flex: 1 1 100%;
18
- width: 100%;
19
- max-width: 100%;
20
- }
21
-
22
- .contain-to-grid {
23
- background-color: $body-background !important;
24
- }
25
-
26
- // Foundation 5 used to position .contain-to-grid.fixed at the top of the
27
- // viewport. Foundation 6 doesn't style that legacy class, so we reproduce
28
- // the stacking explicitly: the application top bar floats on top (z-index
29
- // 99, 45px tall) and the model top bar sits beneath it starting at top:0
30
- // with a 45px top-padding so its visible band runs 45..90px. Body content
31
- // is then positioned absolute at top:90px (see #outer_container).
32
- .contain-to-grid.fixed {
33
- position: fixed;
34
- top: 0;
35
- left: 0;
36
- right: 0;
37
- margin-left: auto;
38
- margin-right: auto;
39
- max-width: 62.5rem; // F5 $row-width (1000px); F6 $global-width is 1200px
40
- width: 100%;
41
- z-index: 99;
42
- }
43
-
44
- #inline_forms_model_top_bar_container.contain-to-grid.fixed {
45
- z-index: 9;
46
- }
47
-
48
- // Compact the Foundation 6 `.top-bar` (default uses flex + 0.5rem padding +
49
- // natural line-height on the inner <h1>, which produces an ~80px tall bar)
50
- // so the application top bar matches the original 45px row.
51
- #inline_forms_application_top_bar.top-bar {
52
- padding: 0;
53
- min-height: 0;
54
- height: 45px;
55
- .menu-text {
56
- padding: 0 1rem;
57
- }
58
- .menu-text h1 {
59
- margin: 0 !important;
60
- padding: 0;
61
- font-size: 1rem;
62
- line-height: 45px;
63
- font-weight: normal;
64
- }
65
- .menu > li > a {
66
- line-height: 45px;
67
- padding: 0 1rem;
68
- color: #FFFFFF;
69
- }
70
- // F6 dropdown-menu paints the `::after` triangle indicator with
71
- // `border-color: $primary-color transparent ...` (default blue). The
72
- // app top bar is dark red, so the blue arrow next to "More" / "Admin"
73
- // looks broken; force the triangle to white to match the link text.
74
- .is-dropdown-submenu-parent > a::after {
75
- border-top-color: #FFFFFF;
76
- border-color: #FFFFFF transparent transparent;
77
- }
78
- // F6 ships `.is-dropdown-submenu-parent > a { padding-right: 1.5rem }`
79
- // to reserve space for the `::after` triangle, but our `.menu > li > a`
80
- // override above clamps padding to `0 1rem` for ALL links and wins on
81
- // specificity (id + 4 classes/elements). That leaves the triangle
82
- // overlapping the text. Restore the extra right-padding for dropdown
83
- // parents so there is a clear gap (>= 3px) between "More"/"Admin"
84
- // and the triangle indicator.
85
- .menu > li.is-dropdown-submenu-parent > a {
86
- padding-right: 1.5rem;
87
- }
88
- }
89
-
90
- // Match: model top bar is the wider gold band (height 90px, padded so its
91
- // usable area is in the lower 45px). Override Foundation 6's default
92
- // `.top-bar { padding: 0.5rem }` so our 45/90px math holds.
93
- #inline_forms_model_top_bar.top-bar {
94
- padding: 45px 0 0 0;
95
- min-height: 0;
96
- .menu-text {
97
- padding: 0 1rem;
98
- }
99
- .menu-text,
100
- .menu-text h1,
101
- .menu-text h1 a {
102
- color: #FFFFFF;
103
- }
104
- .menu-text h1 {
105
- margin: 0 !important;
106
- padding: 0;
107
- font-size: 1rem;
108
- line-height: 45px;
109
- font-weight: normal;
110
- }
111
- .menu > li > a {
112
- line-height: 45px;
113
- padding: 0 1rem;
114
- }
115
- // F6's `.menu` is `display: flex` with default `align-items: stretch`,
116
- // which makes every <li> fill the bar's 45px content band. The search
117
- // form's <li> contains a `.row.collapse` whose columns/buttons/input
118
- // then sit at the top of the band, so the [x] / [zoek op naam...] /
119
- // [zoek] trio looks 5..7px higher than "Apartments" (line-height 45px,
120
- // centered) and the "+" new-record button (visually centered via its
121
- // own padding). Center every <li> vertically and let the search row
122
- // also center its column children, so the form chrome aligns with the
123
- // rest of the bar without resorting to per-element `top: Npx` shims.
124
- .top-bar-right > .menu {
125
- align-items: center;
126
- }
127
- .top-bar-right > .menu > li > .row,
128
- .top-bar-right > .menu > li form > .row {
129
- align-items: center;
130
- }
131
- }
132
-
133
- input {
134
- margin: 2px 0 !important;
135
- }
136
-
137
- select {
138
- background-color: #fff8e0 !important;
139
- border: 0 !important;
140
- margin: 2px 0 !important;
141
- padding: 0;
142
-
143
- }
144
- select:hover, select:focus {
145
- background-color: lighten(#fff8e0, 2%) !important;
146
- border: 0 !important;
147
- }
148
-
149
- #inline_forms_application_top_bar {
150
- background-color: #A3381E;
151
- color: #FFFFFF;
152
- &,
153
- .menu,
154
- .menu li,
155
- .menu a {
156
- background-color: #A3381E;
157
- color: #FFFFFF;
158
- }
159
- }
160
-
161
- #inline_forms_model_top_bar {
162
- background-color: #E1C150;
163
- padding-top: 45px;
164
- height: 90px;
165
- .top-bar-right,
166
- .menu,
167
- .menu li,
168
- .menu > li > a {
169
- background-color: #E1C150;
170
- }
171
- // F6 buttons (`.button`) and inputs (`input[type=text]`) ship with
172
- // different default heights -- buttons size to padding+line-height
173
- // (~30px), inputs to F6's `$input-height` (default 2.4375rem ≈ 39px).
174
- // In the search row that puts `[x]` and `[zoek]` shorter than the
175
- // `zoek op naam...` input. Pin all three to the same 32px box so they
176
- // line up like the F5 chrome did when `$topbar-height` was 45px.
177
- // The vertical centering is handled by `align-items: center` above, so
178
- // explicitly clear the legacy `top: 4px / 6px` shims that used to
179
- // approximate centering on the F5 float-based bar.
180
- .inline_forms_model_top_bar_buttons {
181
- top: 0 !important;
182
- height: 32px;
183
- line-height: 32px;
184
- padding: 0 0.5rem !important;
185
- margin: 0 !important;
186
- }
187
- #input_search {
188
- top: 0 !important;
189
- height: 32px;
190
- line-height: 32px;
191
- padding: 0 0.5rem;
192
- margin: 0 !important;
193
- }
194
- .new_button {
195
- background-color: #E1C150;
196
- color: #B94C32;
197
- font-size: 1.3rem;
198
- padding: 0 2rem 0 1rem;
199
- }
200
- .new_button:hover, .new_button:focus {
201
- color: white;
202
- -webkit-transition-property: color;
203
- transition-property: color;
204
- }
205
- input[type=text]:hover, input[type=text]:focus {
206
- background-color: lighten(#fff8e0, 5%);
207
- -webkit-transition-property: background-color;
208
- transition-property: background-color;
209
- }
210
- }
211
-
212
- #inline_forms_model_top_bar_container {
213
- z-index: 9;
214
- }
215
-
216
- #outer_container {
217
- width: 100%;
218
- position: absolute;
219
- top: 90px;
220
- }
221
-
222
- .top-level a {
223
- font-weight: bold;
224
- font-size: 110%;
225
- }
226
- // Custom elements default to `display: inline`, which collapses the row layout
227
- // of a top-level `<turbo-frame id="apartments_list">` inside `#outer_container`.
228
- turbo-frame {
229
- display: block;
230
- }
231
- #outer_container > turbo-frame.list_container {
232
- display: block;
233
- width: 100%;
234
- }
235
- .list_container {
236
- .row {
237
- font-size: 1.2rem;
238
- font-weight: normal;
239
- line-height: 2.2rem;
240
- margin: 0 auto !important;
241
- }
242
- .odd {
243
- background-color: #FBE38E;
244
- }
245
- .even {
246
- background-color: #FBEEC1;
247
- }
248
- }
249
-
250
- .inline_forms_list, .new_record {
251
- .row.odd, .row.even {
252
- font-size: 1rem !important;
253
- font-weight: normal !important;
254
- }
255
- .row.form_element_header {
256
- border-top: 1px solid #B94C32;
257
- background-color: rgb(239, 202, 75);
258
- font-weight: normal !important;
259
- font-size: 1.3rem !important;
260
- }
261
- }
262
-
263
- .new_record {
264
- .button {
265
- margin: 0;
266
- padding: 0.5rem;
267
- }
268
- }
269
-
270
- // Field edit cancel: outer <a> carries Turbo/UJS; inner input[type=button] matches ok height.
271
- .edit_form .row.collapse {
272
- input[type="submit"].postfix.button,
273
- a.inline_forms-field-cancel input[type="button"].postfix.button {
274
- margin: 2px 0 !important;
275
- }
276
- }
277
-
278
- .edit_form a.inline_forms-field-cancel {
279
- display: inline-block;
280
- padding: 0;
281
- border: 0;
282
- background: transparent;
283
- line-height: 0;
284
- vertical-align: top;
285
- text-decoration: none;
286
-
287
- input[type="button"] {
288
- pointer-events: none;
289
- cursor: pointer;
290
- width: auto;
291
- }
292
- }
293
-
294
- .object_presentation {
295
- background-color: #B94C32;
296
- color: white;
297
- .close_button {
298
- background-color: #B94C32;
299
- font-size: 1.3rem;
300
- padding: 0 1rem 0 1rem;
301
- margin: 0;
302
- }
303
- .close_button:hover, .close_button:focus {
304
- background-color: #B94C32;
305
- color: #FBEEC1;
306
- -webkit-transition-property: color;
307
- transition-property: color;
308
- }
309
- }
310
-
311
- .list_container {
312
- .row.odd, .row.even {
313
- font-size: 1rem !important;
314
- font-weight: normal !important;
315
- }
316
- .row.form_element_header {
317
- border-top: 1px solid #B94C32;
318
- background-color: rgb(239, 202, 75);
319
- font-weight: normal !important;
320
- font-size: 1.3rem !important;
321
- }
322
- }
323
-
324
-
325
-
326
- .associated_auto_header {
327
- border-top: 1px solid #B94C32;
328
- .new_button {
329
- background-color: rgb(239, 202, 75);
330
- font-size: 1.5rem;
331
- color: #B94C32;
332
- padding: 0 0.5rem 0 1rem;
333
- margin: 0;
334
- }
335
- .new_button:hover, .new_button:focus {
336
- background-color: rgb(239, 202, 75);
337
- color: white;
338
- -webkit-transition-property: color;
339
- transition-property: color;
340
- }
341
- .close_button {
342
- background-color: rgb(239, 202, 75);
343
- font-size: 1.5rem;
344
- color: #B94C32;
345
- padding: 0 0.5rem 0 1rem;
346
- margin: 0;
347
- }
348
- .close_button:hover, .new_button:focus {
349
- background-color: rgb(239, 202, 75);
350
- color: white;
351
- -webkit-transition-property: color;
352
- transition-property: color;
353
- }
354
- }
355
-
356
- .pagination {
357
- font-weight: normal;
358
- font-size: 0.9em;
359
- // Foundation 6's `_pagination.scss` (line 120) sets `.pagination a,
360
- // .pagination button { display: block }` because it expects the
361
- // canonical `<ul class="pagination"><li><a>...</a></li>...</ul>`
362
- // markup, where the `<li>` is `display: inline-block` and the inner
363
- // `<a>` fills it. will_paginate (used by `_list.html.erb` for nested
364
- // has_many lists) emits flat `<a>`/`<span>`/`<em>` directly under
365
- // `<div class="pagination">`, with no surrounding `<li>` to control
366
- // layout, so F6's `display: block` makes every page link stack
367
- // vertically -- in F5 (where the equivalent rule did not exist) they
368
- // sat horizontally. Force inline-block here to match the F5 visuals.
369
- a, span, em, button {
370
- display: inline-block;
371
- }
372
- a:hover {
373
- color: #B94C32;
374
- -webkit-transition-property: color;
375
- -webkit-transition-duration: 0.3s;
376
- transition-property: color;
377
- transition-duration: 0.3s;
378
- }
379
- em {
380
- color: #B94C32;
381
- font-weight: bold;
382
- font-style: normal;
383
- }
384
- span.disabled {
385
- color: #AAA;
386
- }
387
- }
388
-
389
- .record_footer {
390
- background-color: rgb(239, 202, 75);
391
- height: 0.2em;
392
- border-bottom: 1px solid #B94C32;
393
- margin-bottom: 1.5em;
394
- }
395
-
396
- .custom-combobox {
397
- position: relative;
398
- display: inline-block;
399
- }
400
- .custom-combobox-toggle {
401
- position: absolute;
402
- top: 0;
403
- bottom: 0;
404
- margin-left: -1px;
405
- padding: 0;
406
- /* support: IE7 */
407
- *height: 1.7em;
408
- *top: 0.1em;
409
- }
410
- .custom-combobox-input {
411
- margin: 0;
412
- padding: 0.3em;
413
- }
414
-
415
-
416
- .column {
417
- padding-right: 0 !important;
418
- }
419
-
420
- // Legacy F5 vertical-centering hack: `.top-bar` was 45px tall and floats
421
- // pushed inputs/buttons against the top, so this `top: 4px` shim nudged
422
- // them down. The F6 model top bar centers its menu items via flex
423
- // (`align-items: center` on `.top-bar-right > .menu`), so this rule is
424
- // no longer needed; we keep `top: 0` to defuse any other site CSS that
425
- // might still reach in with a `top` shift.
426
- .top-bar input, .top-bar .button {
427
- top: 0 !important;
428
- }
429
-
430
- #inline_forms_model_top_bar .top-bar-right,
431
- #inline_forms_application_top_bar .top-bar-right {
432
- padding-left: rem-calc(12) !important;
433
- padding-right: rem-calc(12) !important;
434
- }
435
-
436
- .first-bar {
437
- margin-bottom: 0 !important;
438
- }
439
- .second-bar {
440
- margin-top: 1px !important;
441
- margin-bottom: 0 !important;
442
- }
443
-
444
- .flash {
445
- padding: 0.3em;
446
- color: #A3381E;
447
- font-size: 130%;
448
- font-weight: bold;
449
- line-height: 120%;
450
- background-color: white;
451
- border-top: 0.3em solid #fade7a;
452
- }
453
-
454
- .error {
455
- color: #ffffff;
456
- font-weight: bold;
457
- background-color: #a70f0f;
458
- padding: 0.3em;
459
- margin-bottom: 0.5em;
460
- }
461
- .success {
462
- color: #ffffff;
463
- font-weight: bold;
464
- border-bottom: 1px solid #cccccc;
465
- background-color: #4f8d0d;
466
- padding: 0.3em;
467
- margin-bottom: 0.5em;
468
- }
469
-
470
- /* jQuery ui Slider 8 */
471
- .slider {
472
- width: 300px;
473
- float: left;
474
- }
475
- .slider_value {
476
- float: left;
477
- min-width: 60px;
478
- text-align: right;
479
- font-family: monospace;
480
- }
481
-
482
-
483
- /* LEFT */
484
-
485
- #category_id {
486
- margin-top: -2px !important;
487
- }
488
-
489
- #input_search {
490
- border: none !important;
491
- }