administrate 1.0.0.beta1 → 1.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/administrate/application.css +609 -27
  3. data/app/assets/builds/administrate/application.css.map +1 -1
  4. data/app/assets/builds/administrate/application.js +16295 -2236
  5. data/app/assets/builds/administrate/application.js.map +4 -4
  6. data/app/assets/builds/administrate-internal/docs.css.map +1 -1
  7. data/app/assets/javascripts/administrate/application.js +4 -4
  8. data/app/assets/javascripts/administrate/controllers/application.js +9 -0
  9. data/app/assets/javascripts/administrate/controllers/index.js +7 -0
  10. data/app/assets/javascripts/administrate/controllers/select_controller.js +8 -0
  11. data/app/assets/javascripts/administrate/{components/table.js → controllers/table_controller.js} +9 -9
  12. data/app/assets/stylesheets/administrate/application.scss +1 -2
  13. data/app/assets/stylesheets/administrate/base/_layout.scss +5 -0
  14. data/app/assets/stylesheets/administrate/base/_typography.scss +12 -1
  15. data/app/assets/stylesheets/administrate/components/_buttons.scss +12 -10
  16. data/app/assets/stylesheets/administrate/components/_field-unit.scss +2 -3
  17. data/app/assets/stylesheets/administrate/reset/_normalize.scss +7 -1
  18. data/app/controllers/administrate/application_controller.rb +3 -2
  19. data/app/views/administrate/application/_collection.html.erb +1 -1
  20. data/app/views/administrate/application/_collection_item_actions.html.erb +3 -3
  21. data/app/views/administrate/application/_index_header.html.erb +4 -0
  22. data/app/views/administrate/application/_javascript.html.erb +1 -1
  23. data/app/views/administrate/application/edit.html.erb +15 -3
  24. data/app/views/administrate/application/index.html.erb +19 -11
  25. data/app/views/administrate/application/new.html.erb +15 -3
  26. data/app/views/administrate/application/show.html.erb +35 -23
  27. data/app/views/fields/belongs_to/_form.html.erb +3 -2
  28. data/app/views/fields/has_many/_form.html.erb +1 -1
  29. data/app/views/fields/polymorphic/_form.html.erb +1 -1
  30. data/app/views/fields/rich_text/_form.html.erb +6 -0
  31. data/app/views/fields/rich_text/_index.html.erb +18 -0
  32. data/app/views/fields/rich_text/_show.html.erb +18 -0
  33. data/app/views/fields/select/_form.html.erb +2 -1
  34. data/app/views/fields/text/_form.html.erb +1 -1
  35. data/app/views/layouts/administrate/application.html.erb +1 -2
  36. data/docs/customizing_dashboards.md +138 -4
  37. data/docs/customizing_page_views.md +25 -0
  38. data/lib/administrate/base_dashboard.rb +1 -0
  39. data/lib/administrate/engine.rb +6 -0
  40. data/lib/administrate/field/associative.rb +4 -0
  41. data/lib/administrate/field/base.rb +19 -1
  42. data/lib/administrate/field/belongs_to.rb +6 -1
  43. data/lib/administrate/field/deferred.rb +9 -1
  44. data/lib/administrate/field/has_one.rb +4 -0
  45. data/lib/administrate/field/rich_text.rb +21 -0
  46. data/lib/administrate/field/select.rb +4 -0
  47. data/lib/administrate/order.rb +25 -21
  48. data/lib/administrate/page/base.rb +1 -6
  49. data/lib/administrate/version.rb +1 -1
  50. data/lib/generators/administrate/dashboard/dashboard_generator.rb +5 -2
  51. data/lib/generators/administrate/views/index_generator.rb +1 -0
  52. data/lib/generators/administrate/views/layout_generator.rb +1 -1
  53. metadata +13 -12
  54. data/app/assets/javascripts/administrate/components/associative.js +0 -5
  55. data/app/assets/javascripts/administrate/components/select.js +0 -3
  56. data/app/assets/stylesheets/administrate/utilities/_text-color.scss +0 -3
  57. data/lib/generators/administrate/assets/assets_generator.rb +0 -12
  58. data/lib/generators/administrate/assets/javascripts_generator.rb +0 -17
  59. data/lib/generators/administrate/assets/stylesheets_generator.rb +0 -17
@@ -87,7 +87,11 @@ pre {
87
87
  * 1. Remove the gray background on active links in IE 10.
88
88
  * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
89
89
  */
90
- a {
90
+ a,
91
+ .link:is(button,
92
+ [type=button],
93
+ [type=reset],
94
+ [type=submit]) {
91
95
  background-color: transparent; /* 1 */
92
96
  -webkit-text-decoration-skip: objects; /* 2 */
93
97
  }
@@ -396,6 +400,554 @@ template {
396
400
  display: none;
397
401
  }
398
402
 
403
+ trix-editor {
404
+ border: 1px solid #bbb;
405
+ border-radius: 3px;
406
+ margin: 0;
407
+ padding: 0.4em 0.6em;
408
+ min-height: 5em;
409
+ outline: none;
410
+ }
411
+
412
+ trix-toolbar * {
413
+ box-sizing: border-box;
414
+ }
415
+
416
+ trix-toolbar .trix-button-row {
417
+ display: flex;
418
+ flex-wrap: nowrap;
419
+ justify-content: space-between;
420
+ overflow-x: auto;
421
+ }
422
+
423
+ trix-toolbar .trix-button-group {
424
+ display: flex;
425
+ margin-bottom: 10px;
426
+ border: 1px solid #bbb;
427
+ border-top-color: #ccc;
428
+ border-bottom-color: #888;
429
+ border-radius: 3px;
430
+ }
431
+
432
+ trix-toolbar .trix-button-group:not(:first-child) {
433
+ margin-left: 1.5vw;
434
+ }
435
+
436
+ @media (max-width: 768px) {
437
+ trix-toolbar .trix-button-group:not(:first-child) {
438
+ margin-left: 0;
439
+ }
440
+ }
441
+ trix-toolbar .trix-button-group-spacer {
442
+ flex-grow: 1;
443
+ }
444
+
445
+ @media (max-width: 768px) {
446
+ trix-toolbar .trix-button-group-spacer {
447
+ display: none;
448
+ }
449
+ }
450
+ trix-toolbar .trix-button {
451
+ position: relative;
452
+ float: left;
453
+ color: rgba(0, 0, 0, 0.6);
454
+ font-size: 0.75em;
455
+ font-weight: 600;
456
+ white-space: nowrap;
457
+ padding: 0 0.5em;
458
+ margin: 0;
459
+ outline: none;
460
+ border: none;
461
+ border-bottom: 1px solid #ddd;
462
+ border-radius: 0;
463
+ background: transparent;
464
+ }
465
+
466
+ trix-toolbar .trix-button:not(:first-child) {
467
+ border-left: 1px solid #ccc;
468
+ }
469
+
470
+ trix-toolbar .trix-button.trix-active {
471
+ background: #cbeefa;
472
+ color: black;
473
+ }
474
+
475
+ trix-toolbar .trix-button:not(:disabled) {
476
+ cursor: pointer;
477
+ }
478
+
479
+ trix-toolbar .trix-button:disabled {
480
+ color: rgba(0, 0, 0, 0.125);
481
+ }
482
+
483
+ @media (max-width: 768px) {
484
+ trix-toolbar .trix-button {
485
+ letter-spacing: -0.01em;
486
+ padding: 0 0.3em;
487
+ }
488
+ }
489
+ trix-toolbar .trix-button--icon {
490
+ font-size: inherit;
491
+ width: 2.6em;
492
+ height: 1.6em;
493
+ max-width: calc(0.8em + 4vw);
494
+ text-indent: -9999px;
495
+ }
496
+
497
+ @media (max-width: 768px) {
498
+ trix-toolbar .trix-button--icon {
499
+ height: 2em;
500
+ max-width: calc(0.8em + 3.5vw);
501
+ }
502
+ }
503
+ trix-toolbar .trix-button--icon::before {
504
+ display: inline-block;
505
+ position: absolute;
506
+ top: 0;
507
+ right: 0;
508
+ bottom: 0;
509
+ left: 0;
510
+ opacity: 0.6;
511
+ content: "";
512
+ background-position: center;
513
+ background-repeat: no-repeat;
514
+ background-size: contain;
515
+ }
516
+
517
+ @media (max-width: 768px) {
518
+ trix-toolbar .trix-button--icon::before {
519
+ right: 6%;
520
+ left: 6%;
521
+ }
522
+ }
523
+ trix-toolbar .trix-button--icon.trix-active::before {
524
+ opacity: 1;
525
+ }
526
+
527
+ trix-toolbar .trix-button--icon:disabled::before {
528
+ opacity: 0.125;
529
+ }
530
+
531
+ trix-toolbar .trix-button--icon-attach::before {
532
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
533
+ top: 8%;
534
+ bottom: 4%;
535
+ }
536
+
537
+ trix-toolbar .trix-button--icon-bold::before {
538
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
539
+ }
540
+
541
+ trix-toolbar .trix-button--icon-italic::before {
542
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
543
+ }
544
+
545
+ trix-toolbar .trix-button--icon-link::before {
546
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
547
+ }
548
+
549
+ trix-toolbar .trix-button--icon-strike::before {
550
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
551
+ }
552
+
553
+ trix-toolbar .trix-button--icon-quote::before {
554
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
555
+ }
556
+
557
+ trix-toolbar .trix-button--icon-heading-1::before {
558
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
559
+ }
560
+
561
+ trix-toolbar .trix-button--icon-code::before {
562
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
563
+ }
564
+
565
+ trix-toolbar .trix-button--icon-bullet-list::before {
566
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
567
+ }
568
+
569
+ trix-toolbar .trix-button--icon-number-list::before {
570
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
571
+ }
572
+
573
+ trix-toolbar .trix-button--icon-undo::before {
574
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
575
+ }
576
+
577
+ trix-toolbar .trix-button--icon-redo::before {
578
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
579
+ }
580
+
581
+ trix-toolbar .trix-button--icon-decrease-nesting-level::before {
582
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
583
+ }
584
+
585
+ trix-toolbar .trix-button--icon-increase-nesting-level::before {
586
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
587
+ }
588
+
589
+ trix-toolbar .trix-dialogs {
590
+ position: relative;
591
+ }
592
+
593
+ trix-toolbar .trix-dialog {
594
+ position: absolute;
595
+ top: 0;
596
+ left: 0;
597
+ right: 0;
598
+ font-size: 0.75em;
599
+ padding: 15px 10px;
600
+ background: #fff;
601
+ box-shadow: 0 0.3em 1em #ccc;
602
+ border-top: 2px solid #888;
603
+ border-radius: 5px;
604
+ z-index: 5;
605
+ }
606
+
607
+ trix-toolbar .trix-input--dialog {
608
+ font-size: inherit;
609
+ font-weight: normal;
610
+ padding: 0.5em 0.8em;
611
+ margin: 0 10px 0 0;
612
+ border-radius: 3px;
613
+ border: 1px solid #bbb;
614
+ background-color: #fff;
615
+ box-shadow: none;
616
+ outline: none;
617
+ -webkit-appearance: none;
618
+ -moz-appearance: none;
619
+ }
620
+
621
+ trix-toolbar .trix-input--dialog.validate:invalid {
622
+ box-shadow: #F00 0px 0px 1.5px 1px;
623
+ }
624
+
625
+ trix-toolbar .trix-button--dialog {
626
+ font-size: inherit;
627
+ padding: 0.5em;
628
+ border-bottom: none;
629
+ }
630
+
631
+ trix-toolbar .trix-dialog--link {
632
+ max-width: 600px;
633
+ }
634
+
635
+ trix-toolbar .trix-dialog__link-fields {
636
+ display: flex;
637
+ align-items: baseline;
638
+ }
639
+
640
+ trix-toolbar .trix-dialog__link-fields .trix-input {
641
+ flex: 1;
642
+ }
643
+
644
+ trix-toolbar .trix-dialog__link-fields .trix-button-group {
645
+ flex: 0 0 content;
646
+ margin: 0;
647
+ }
648
+
649
+ trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
650
+ -webkit-user-select: none;
651
+ -moz-user-select: none;
652
+ -ms-user-select: none;
653
+ user-select: none;
654
+ }
655
+
656
+ trix-editor [data-trix-mutable]::-moz-selection,
657
+ trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
658
+ background: none;
659
+ }
660
+
661
+ trix-editor [data-trix-mutable]::selection,
662
+ trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
663
+ background: none;
664
+ }
665
+
666
+ trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
667
+ background: highlight;
668
+ }
669
+
670
+ trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
671
+ background: highlight;
672
+ }
673
+
674
+ trix-editor [data-trix-mutable].attachment.attachment--file {
675
+ box-shadow: 0 0 0 2px highlight;
676
+ border-color: transparent;
677
+ }
678
+
679
+ trix-editor [data-trix-mutable].attachment img {
680
+ box-shadow: 0 0 0 2px highlight;
681
+ }
682
+
683
+ trix-editor .attachment {
684
+ position: relative;
685
+ }
686
+
687
+ trix-editor .attachment:hover {
688
+ cursor: default;
689
+ }
690
+
691
+ trix-editor .attachment--preview .attachment__caption:hover {
692
+ cursor: text;
693
+ }
694
+
695
+ trix-editor .attachment__progress {
696
+ position: absolute;
697
+ z-index: 1;
698
+ height: 20px;
699
+ top: calc(50% - 10px);
700
+ left: 5%;
701
+ width: 90%;
702
+ opacity: 0.9;
703
+ transition: opacity 200ms ease-in;
704
+ }
705
+
706
+ trix-editor .attachment__progress[value="100"] {
707
+ opacity: 0;
708
+ }
709
+
710
+ trix-editor .attachment__caption-editor {
711
+ display: inline-block;
712
+ width: 100%;
713
+ margin: 0;
714
+ padding: 0;
715
+ font-size: inherit;
716
+ font-family: inherit;
717
+ line-height: inherit;
718
+ color: inherit;
719
+ text-align: center;
720
+ vertical-align: top;
721
+ border: none;
722
+ outline: none;
723
+ -webkit-appearance: none;
724
+ -moz-appearance: none;
725
+ }
726
+
727
+ trix-editor .attachment__toolbar {
728
+ position: absolute;
729
+ z-index: 1;
730
+ top: -0.9em;
731
+ left: 0;
732
+ width: 100%;
733
+ text-align: center;
734
+ }
735
+
736
+ trix-editor .trix-button-group {
737
+ display: inline-flex;
738
+ }
739
+
740
+ trix-editor .trix-button {
741
+ position: relative;
742
+ float: left;
743
+ color: #666;
744
+ white-space: nowrap;
745
+ font-size: 80%;
746
+ padding: 0 0.8em;
747
+ margin: 0;
748
+ outline: none;
749
+ border: none;
750
+ border-radius: 0;
751
+ background: transparent;
752
+ }
753
+
754
+ trix-editor .trix-button:not(:first-child) {
755
+ border-left: 1px solid #ccc;
756
+ }
757
+
758
+ trix-editor .trix-button.trix-active {
759
+ background: #cbeefa;
760
+ }
761
+
762
+ trix-editor .trix-button:not(:disabled) {
763
+ cursor: pointer;
764
+ }
765
+
766
+ trix-editor .trix-button--remove {
767
+ text-indent: -9999px;
768
+ display: inline-block;
769
+ padding: 0;
770
+ outline: none;
771
+ width: 1.8em;
772
+ height: 1.8em;
773
+ line-height: 1.8em;
774
+ border-radius: 50%;
775
+ background-color: #fff;
776
+ border: 2px solid highlight;
777
+ box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);
778
+ }
779
+
780
+ trix-editor .trix-button--remove::before {
781
+ display: inline-block;
782
+ position: absolute;
783
+ top: 0;
784
+ right: 0;
785
+ bottom: 0;
786
+ left: 0;
787
+ opacity: 0.7;
788
+ content: "";
789
+ background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
790
+ background-position: center;
791
+ background-repeat: no-repeat;
792
+ background-size: 90%;
793
+ }
794
+
795
+ trix-editor .trix-button--remove:hover {
796
+ border-color: #333;
797
+ }
798
+
799
+ trix-editor .trix-button--remove:hover::before {
800
+ opacity: 1;
801
+ }
802
+
803
+ trix-editor .attachment__metadata-container {
804
+ position: relative;
805
+ }
806
+
807
+ trix-editor .attachment__metadata {
808
+ position: absolute;
809
+ left: 50%;
810
+ top: 2em;
811
+ transform: translate(-50%, 0);
812
+ max-width: 90%;
813
+ padding: 0.1em 0.6em;
814
+ font-size: 0.8em;
815
+ color: #fff;
816
+ background-color: rgba(0, 0, 0, 0.7);
817
+ border-radius: 3px;
818
+ }
819
+
820
+ trix-editor .attachment__metadata .attachment__name {
821
+ display: inline-block;
822
+ max-width: 100%;
823
+ vertical-align: bottom;
824
+ overflow: hidden;
825
+ text-overflow: ellipsis;
826
+ white-space: nowrap;
827
+ }
828
+
829
+ trix-editor .attachment__metadata .attachment__size {
830
+ margin-left: 0.2em;
831
+ white-space: nowrap;
832
+ }
833
+
834
+ .trix-content {
835
+ line-height: 1.5;
836
+ overflow-wrap: break-word;
837
+ word-break: break-word;
838
+ }
839
+
840
+ .trix-content * {
841
+ box-sizing: border-box;
842
+ margin: 0;
843
+ padding: 0;
844
+ }
845
+
846
+ .trix-content h1 {
847
+ font-size: 1.2em;
848
+ line-height: 1.2;
849
+ }
850
+
851
+ .trix-content blockquote {
852
+ border: 0 solid #ccc;
853
+ border-left-width: 0.3em;
854
+ margin-left: 0.3em;
855
+ padding-left: 0.6em;
856
+ }
857
+
858
+ .trix-content [dir=rtl] blockquote,
859
+ .trix-content blockquote[dir=rtl] {
860
+ border-width: 0;
861
+ border-right-width: 0.3em;
862
+ margin-right: 0.3em;
863
+ padding-right: 0.6em;
864
+ }
865
+
866
+ .trix-content li {
867
+ margin-left: 1em;
868
+ }
869
+
870
+ .trix-content [dir=rtl] li {
871
+ margin-right: 1em;
872
+ }
873
+
874
+ .trix-content pre {
875
+ display: inline-block;
876
+ width: 100%;
877
+ vertical-align: top;
878
+ font-family: monospace;
879
+ font-size: 0.9em;
880
+ padding: 0.5em;
881
+ white-space: pre;
882
+ background-color: #eee;
883
+ overflow-x: auto;
884
+ }
885
+
886
+ .trix-content img {
887
+ max-width: 100%;
888
+ height: auto;
889
+ }
890
+
891
+ .trix-content .attachment {
892
+ display: inline-block;
893
+ position: relative;
894
+ max-width: 100%;
895
+ }
896
+
897
+ .trix-content .attachment a {
898
+ color: inherit;
899
+ text-decoration: none;
900
+ }
901
+
902
+ .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
903
+ color: inherit;
904
+ }
905
+
906
+ .trix-content .attachment__caption {
907
+ text-align: center;
908
+ }
909
+
910
+ .trix-content .attachment__caption .attachment__name + .attachment__size::before {
911
+ content: " •";
912
+ }
913
+
914
+ .trix-content .attachment--preview {
915
+ width: 100%;
916
+ text-align: center;
917
+ }
918
+
919
+ .trix-content .attachment--preview .attachment__caption {
920
+ color: #666;
921
+ font-size: 0.9em;
922
+ line-height: 1.2;
923
+ }
924
+
925
+ .trix-content .attachment--file {
926
+ color: #333;
927
+ line-height: 1;
928
+ margin: 0 2px 2px 2px;
929
+ padding: 0.4em 1em;
930
+ border: 1px solid #bbb;
931
+ border-radius: 5px;
932
+ }
933
+
934
+ .trix-content .attachment-gallery {
935
+ display: flex;
936
+ flex-wrap: wrap;
937
+ position: relative;
938
+ }
939
+
940
+ .trix-content .attachment-gallery .attachment {
941
+ flex: 1 0 33%;
942
+ padding: 0 0.5em;
943
+ max-width: 33%;
944
+ }
945
+
946
+ .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
947
+ flex-basis: 50%;
948
+ max-width: 50%;
949
+ }
950
+
399
951
  /**
400
952
  * selectize.css (v0.12.6)
401
953
  * Copyright (c) 2013–2015 Brian Reavis & contributors
@@ -1438,6 +1990,11 @@ figure {
1438
1990
  margin: 0;
1439
1991
  }
1440
1992
 
1993
+ /* stylelint-disable selector-no-qualifying-type, selector-class-pattern */
1994
+ form.button_to {
1995
+ display: contents;
1996
+ }
1997
+
1441
1998
  img,
1442
1999
  picture {
1443
2000
  margin: 0;
@@ -1539,15 +2096,35 @@ p {
1539
2096
  margin: 0 0 0.75em;
1540
2097
  }
1541
2098
 
1542
- a {
2099
+ a,
2100
+ .link:is(button,
2101
+ [type=button],
2102
+ [type=reset],
2103
+ [type=submit]) {
1543
2104
  color: #1976d2;
1544
2105
  text-decoration-skip-ink: auto;
1545
2106
  transition: color 250ms ease-in-out;
2107
+ /* stylelint-disable selector-no-qualifying-type */
2108
+ }
2109
+ a.link--danger,
2110
+ .link:is(button,
2111
+ [type=button],
2112
+ [type=reset],
2113
+ [type=submit]).link--danger {
2114
+ color: #d32f2f;
1546
2115
  }
1547
- a:hover {
2116
+ a:hover,
2117
+ .link:is(button,
2118
+ [type=button],
2119
+ [type=reset],
2120
+ [type=submit]):hover {
1548
2121
  color: #13599e;
1549
2122
  }
1550
- a:focus {
2123
+ a:focus,
2124
+ .link:is(button,
2125
+ [type=button],
2126
+ [type=reset],
2127
+ [type=submit]):focus {
1551
2128
  outline: 3px solid rgba(25, 118, 210, 0.6);
1552
2129
  outline-offset: 1px;
1553
2130
  }
@@ -1604,7 +2181,9 @@ hr {
1604
2181
  }
1605
2182
 
1606
2183
  button,
1607
- input,
2184
+ [type=button],
2185
+ [type=reset],
2186
+ [type=submit],
1608
2187
  .button {
1609
2188
  appearance: none;
1610
2189
  background-color: #1976d2;
@@ -1625,27 +2204,35 @@ input,
1625
2204
  vertical-align: middle;
1626
2205
  white-space: nowrap;
1627
2206
  }
1628
- button:hover,
1629
- input:hover,
1630
- .button:hover {
2207
+ button:disabled,
2208
+ [type=button]:disabled,
2209
+ [type=reset]:disabled,
2210
+ [type=submit]:disabled,
2211
+ .button:disabled {
2212
+ cursor: not-allowed;
2213
+ opacity: 0.5;
2214
+ }
2215
+ button:not(.link):hover,
2216
+ [type=button]:not(.link):hover,
2217
+ [type=reset]:not(.link):hover,
2218
+ [type=submit]:not(.link):hover,
2219
+ .button:not(.link):hover {
1631
2220
  background-color: #145ea8;
1632
2221
  color: #ffffff;
1633
2222
  }
1634
- button:focus,
1635
- input:focus,
1636
- .button:focus {
2223
+ button:not(.link):focus,
2224
+ [type=button]:not(.link):focus,
2225
+ [type=reset]:not(.link):focus,
2226
+ [type=submit]:not(.link):focus,
2227
+ .button:not(.link):focus {
1637
2228
  outline: 3px solid rgba(25, 118, 210, 0.6);
1638
2229
  outline-offset: 1px;
1639
2230
  }
1640
- button:disabled,
1641
- input:disabled,
1642
- .button:disabled {
1643
- cursor: not-allowed;
1644
- opacity: 0.5;
1645
- }
1646
- button:disabled:hover,
1647
- input:disabled:hover,
1648
- .button:disabled:hover {
2231
+ button:not(.link):disabled:hover,
2232
+ [type=button]:not(.link):disabled:hover,
2233
+ [type=reset]:not(.link):disabled:hover,
2234
+ [type=submit]:not(.link):disabled:hover,
2235
+ .button:not(.link):disabled:hover {
1649
2236
  background-color: #1976d2;
1650
2237
  }
1651
2238
 
@@ -1732,10 +2319,9 @@ input:disabled:hover,
1732
2319
  }
1733
2320
 
1734
2321
  .field-unit__field {
2322
+ flex-grow: 1;
1735
2323
  float: left;
1736
2324
  margin-left: 2rem;
1737
- max-width: 50rem;
1738
- width: 100%;
1739
2325
  }
1740
2326
  .field-unit__field .optgroup-header {
1741
2327
  font-weight: 700;
@@ -1755,7 +2341,7 @@ input:disabled:hover,
1755
2341
  width: 100%;
1756
2342
  }
1757
2343
  .field-unit--nested .field-unit__field {
1758
- width: 100%;
2344
+ flex-grow: 1;
1759
2345
  }
1760
2346
  .field-unit--nested .field-unit__label {
1761
2347
  width: 10rem;
@@ -1953,8 +2539,4 @@ input:disabled:hover,
1953
2539
  fill: #1976d2;
1954
2540
  }
1955
2541
 
1956
- .text-color-red {
1957
- color: #d32f2f;
1958
- }
1959
-
1960
2542
  /*# sourceMappingURL=application.css.map */