rails_admin 3.0.0.beta2 → 3.0.0.rc

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails_admin might be problematic. Click here for more details.

Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/Rakefile +11 -0
  4. data/app/assets/javascripts/rails_admin.js +4 -4
  5. data/app/assets/stylesheets/rails_admin.scss +31 -0
  6. data/app/controllers/rails_admin/application_controller.rb +1 -1
  7. data/app/controllers/rails_admin/main_controller.rb +10 -18
  8. data/app/helpers/rails_admin/application_helper.rb +12 -13
  9. data/app/helpers/rails_admin/form_builder.rb +3 -3
  10. data/app/helpers/rails_admin/main_helper.rb +1 -1
  11. data/app/views/kaminari/ra-twitter-bootstrap/_gap.html.erb +2 -2
  12. data/app/views/kaminari/ra-twitter-bootstrap/_next_page.html.erb +4 -4
  13. data/app/views/kaminari/ra-twitter-bootstrap/_page.html.erb +4 -4
  14. data/app/views/kaminari/ra-twitter-bootstrap/_paginator.html.erb +12 -10
  15. data/app/views/kaminari/ra-twitter-bootstrap/_prev_page.html.erb +4 -4
  16. data/app/views/kaminari/ra-twitter-bootstrap/without_count/_next_page.html.erb +4 -4
  17. data/app/views/kaminari/ra-twitter-bootstrap/without_count/_paginator.html.erb +6 -4
  18. data/app/views/kaminari/ra-twitter-bootstrap/without_count/_prev_page.html.erb +4 -4
  19. data/app/views/layouts/rails_admin/_navigation.html.erb +12 -16
  20. data/app/views/layouts/rails_admin/_secondary_navigation.html.erb +8 -8
  21. data/app/views/layouts/rails_admin/_sidebar_navigation.html.erb +1 -5
  22. data/app/views/layouts/rails_admin/application.html.erb +4 -7
  23. data/app/views/layouts/rails_admin/{pjax.html.erb → content.html.erb} +7 -5
  24. data/app/views/layouts/rails_admin/modal.js.erb +1 -1
  25. data/app/views/rails_admin/main/_dashboard_history.html.erb +1 -1
  26. data/app/views/rails_admin/main/_delete_notice.html.erb +2 -2
  27. data/app/views/rails_admin/main/_form_boolean.html.erb +6 -8
  28. data/app/views/rails_admin/main/_form_colorpicker.html.erb +5 -1
  29. data/app/views/rails_admin/main/_form_datetime.html.erb +8 -7
  30. data/app/views/rails_admin/main/_form_enumeration.html.erb +5 -1
  31. data/app/views/rails_admin/main/_form_file_upload.html.erb +1 -1
  32. data/app/views/rails_admin/main/_form_filtering_multiselect.html.erb +14 -14
  33. data/app/views/rails_admin/main/_form_filtering_select.html.erb +16 -21
  34. data/app/views/rails_admin/main/_form_multiple_file_upload.html.erb +1 -1
  35. data/app/views/rails_admin/main/_form_nested_many.html.erb +4 -4
  36. data/app/views/rails_admin/main/_form_nested_one.html.erb +4 -4
  37. data/app/views/rails_admin/main/_form_polymorphic_association.html.erb +11 -6
  38. data/app/views/rails_admin/main/_submit_buttons.html.erb +8 -8
  39. data/app/views/rails_admin/main/bulk_delete.html.erb +1 -1
  40. data/app/views/rails_admin/main/dashboard.html.erb +4 -4
  41. data/app/views/rails_admin/main/delete.html.erb +1 -1
  42. data/app/views/rails_admin/main/edit.html.erb +1 -1
  43. data/app/views/rails_admin/main/export.html.erb +35 -32
  44. data/app/views/rails_admin/main/history.html.erb +16 -14
  45. data/app/views/rails_admin/main/index.html.erb +38 -35
  46. data/app/views/rails_admin/main/new.html.erb +1 -1
  47. data/config/locales/rails_admin.en.yml +0 -1
  48. data/lib/generators/rails_admin/install_generator.rb +0 -1
  49. data/lib/generators/rails_admin/templates/webpack.config.js +0 -3
  50. data/lib/rails_admin/adapters/active_record/object_extension.rb +1 -1
  51. data/lib/rails_admin/adapters/active_record/property.rb +1 -1
  52. data/lib/rails_admin/adapters/active_record.rb +7 -3
  53. data/lib/rails_admin/adapters/mongoid/property.rb +3 -3
  54. data/lib/rails_admin/adapters/mongoid.rb +2 -2
  55. data/lib/rails_admin/config/actions/base.rb +1 -6
  56. data/lib/rails_admin/config/actions/dashboard.rb +13 -9
  57. data/lib/rails_admin/config/actions/delete.rb +4 -0
  58. data/lib/rails_admin/config/actions/edit.rb +4 -0
  59. data/lib/rails_admin/config/actions/new.rb +5 -0
  60. data/lib/rails_admin/config/actions/show_in_app.rb +0 -4
  61. data/lib/rails_admin/config/fields/association.rb +6 -1
  62. data/lib/rails_admin/config/fields/base.rb +1 -1
  63. data/lib/rails_admin/config/fields/types/action_text.rb +1 -1
  64. data/lib/rails_admin/config/fields/types/date.rb +7 -0
  65. data/lib/rails_admin/config/fields/types/datetime.rb +9 -4
  66. data/lib/rails_admin/config/fields/types/has_many_association.rb +4 -0
  67. data/lib/rails_admin/config/fields/types/has_one_association.rb +4 -0
  68. data/lib/rails_admin/config/fields/types/time.rb +9 -0
  69. data/lib/rails_admin/config/has_fields.rb +4 -0
  70. data/lib/rails_admin/config/model.rb +8 -0
  71. data/lib/rails_admin/config/sections/list.rb +4 -4
  72. data/lib/rails_admin/config.rb +4 -1
  73. data/lib/rails_admin/engine.rb +2 -5
  74. data/lib/rails_admin/support/datetime.rb +50 -53
  75. data/lib/rails_admin/support/esmodule_preprocessor.rb +2 -1
  76. data/lib/rails_admin/version.rb +1 -1
  77. data/package.json +7 -5
  78. data/src/rails_admin/base.js +3 -6
  79. data/src/rails_admin/filter-box.js +36 -37
  80. data/src/rails_admin/filtering-select.js +3 -6
  81. data/src/rails_admin/i18n.js +0 -3
  82. data/src/rails_admin/nested-form-hooks.js +16 -8
  83. data/src/rails_admin/remote-form.js +18 -15
  84. data/src/rails_admin/styles/base/theming.scss +80 -155
  85. data/src/rails_admin/styles/base/variables.scss +2 -0
  86. data/src/rails_admin/styles/base.scss +8 -45
  87. data/src/rails_admin/styles/filtering-multiselect.scss +2 -2
  88. data/src/rails_admin/styles/filtering-select.scss +1 -1
  89. data/src/rails_admin/styles/widgets.scss +1 -10
  90. data/src/rails_admin/ui.js +4 -54
  91. data/src/rails_admin/widgets.js +38 -48
  92. data/vendor/assets/javascripts/rails_admin/bootstrap.js +5046 -0
  93. data/vendor/assets/javascripts/rails_admin/flatpickr-with-locales.js +10683 -0
  94. data/vendor/assets/javascripts/rails_admin/popper.js +1974 -0
  95. data/vendor/assets/stylesheets/rails_admin/bootstrap/_accordion.scss +118 -0
  96. data/vendor/assets/stylesheets/rails_admin/bootstrap/_alert.scss +57 -0
  97. data/vendor/assets/stylesheets/rails_admin/bootstrap/_badge.scss +29 -0
  98. data/vendor/assets/stylesheets/rails_admin/bootstrap/_breadcrumb.scss +28 -0
  99. data/vendor/assets/stylesheets/rails_admin/bootstrap/_button-group.scss +139 -0
  100. data/vendor/assets/stylesheets/rails_admin/bootstrap/_buttons.scss +64 -110
  101. data/vendor/assets/stylesheets/rails_admin/bootstrap/_card.scss +216 -0
  102. data/vendor/assets/stylesheets/rails_admin/bootstrap/_carousel.scss +162 -176
  103. data/vendor/assets/stylesheets/rails_admin/bootstrap/_close.scss +31 -26
  104. data/vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss +41 -0
  105. data/vendor/assets/stylesheets/rails_admin/bootstrap/_dropdown.scss +240 -0
  106. data/vendor/assets/stylesheets/rails_admin/bootstrap/_forms.scss +9 -538
  107. data/vendor/assets/stylesheets/rails_admin/bootstrap/_functions.scss +302 -0
  108. data/vendor/assets/stylesheets/rails_admin/bootstrap/_grid.scss +18 -69
  109. data/vendor/assets/stylesheets/rails_admin/bootstrap/_helpers.scss +9 -0
  110. data/vendor/assets/stylesheets/rails_admin/bootstrap/_images.scss +42 -0
  111. data/vendor/assets/stylesheets/rails_admin/bootstrap/_list-group.scss +127 -84
  112. data/vendor/assets/stylesheets/rails_admin/bootstrap/_mixins.scss +26 -22
  113. data/vendor/assets/stylesheets/rails_admin/bootstrap/_modal.scss +209 -0
  114. data/vendor/assets/stylesheets/rails_admin/bootstrap/_nav.scss +139 -0
  115. data/vendor/assets/stylesheets/rails_admin/bootstrap/_navbar.scss +218 -542
  116. data/vendor/assets/stylesheets/rails_admin/bootstrap/_offcanvas.scss +83 -0
  117. data/vendor/assets/stylesheets/rails_admin/bootstrap/_pagination.scss +46 -70
  118. data/vendor/assets/stylesheets/rails_admin/bootstrap/_placeholders.scss +51 -0
  119. data/vendor/assets/stylesheets/rails_admin/bootstrap/_popover.scss +158 -0
  120. data/vendor/assets/stylesheets/rails_admin/bootstrap/_progress.scss +48 -0
  121. data/vendor/assets/stylesheets/rails_admin/bootstrap/_reboot.scss +625 -0
  122. data/vendor/assets/stylesheets/rails_admin/bootstrap/_root.scss +54 -0
  123. data/vendor/assets/stylesheets/rails_admin/bootstrap/_spinners.scss +69 -0
  124. data/vendor/assets/stylesheets/rails_admin/bootstrap/_tables.scss +100 -178
  125. data/vendor/assets/stylesheets/rails_admin/bootstrap/_toasts.scss +51 -0
  126. data/vendor/assets/stylesheets/rails_admin/bootstrap/_tooltip.scss +97 -77
  127. data/vendor/assets/stylesheets/rails_admin/bootstrap/_transitions.scss +27 -0
  128. data/vendor/assets/stylesheets/rails_admin/bootstrap/_type.scss +54 -254
  129. data/vendor/assets/stylesheets/rails_admin/bootstrap/_utilities.scss +628 -55
  130. data/vendor/assets/stylesheets/rails_admin/bootstrap/_variables.scss +1572 -781
  131. data/vendor/assets/stylesheets/rails_admin/bootstrap/bootstrap.scss +38 -35
  132. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_floating-labels.scss +63 -0
  133. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-check.scss +152 -0
  134. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-control.scss +219 -0
  135. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-range.scss +91 -0
  136. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-select.scss +72 -0
  137. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-text.scss +11 -0
  138. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_input-group.scss +121 -0
  139. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_labels.scss +36 -0
  140. data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_validation.scss +12 -0
  141. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_clearfix.scss +3 -0
  142. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_colored-links.scss +12 -0
  143. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_position.scss +30 -0
  144. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_ratio.scss +26 -0
  145. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_stacks.scss +15 -0
  146. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_stretched-link.scss +15 -0
  147. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_text-truncation.scss +7 -0
  148. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_visually-hidden.scss +8 -0
  149. data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_vr.scss +8 -0
  150. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_alert.scss +11 -0
  151. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_backdrop.scss +14 -0
  152. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_border-radius.scss +72 -12
  153. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_box-shadow.scss +18 -0
  154. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_breakpoints.scss +127 -0
  155. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss +113 -30
  156. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_caret.scss +64 -0
  157. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_clearfix.scss +5 -18
  158. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_color-scheme.scss +7 -0
  159. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_container.scss +9 -0
  160. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_deprecate.scss +10 -0
  161. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_forms.scss +130 -70
  162. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_gradients.scss +27 -38
  163. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_grid.scss +127 -98
  164. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_image.scss +6 -24
  165. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_list-group.scss +13 -20
  166. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_lists.scss +7 -0
  167. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_pagination.scss +24 -16
  168. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-text.scss +17 -0
  169. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_resize.scss +1 -1
  170. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_table-variants.scss +21 -0
  171. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
  172. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_transition.scss +26 -0
  173. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_utilities.scss +89 -0
  174. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_visually-hidden.scss +29 -0
  175. data/vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss +47 -0
  176. data/vendor/assets/stylesheets/rails_admin/bootstrap/vendor/_rfs.scss +354 -0
  177. data/vendor/assets/stylesheets/rails_admin/flatpickr.css +791 -0
  178. metadata +80 -91
  179. data/app/assets/stylesheets/rails_admin.scss.erb +0 -76
  180. data/lib/generators/rails_admin/templates/environment.js +0 -6
  181. data/src/rails_admin/styles/themes/cerulean/mixins.scss +0 -0
  182. data/src/rails_admin/styles/themes/cerulean/theming.scss +0 -135
  183. data/src/rails_admin/styles/themes/cerulean/variables.scss +0 -830
  184. data/src/rails_admin/styles/themes/default/mixins.scss +0 -8
  185. data/src/rails_admin/styles/themes/default/theming.scss +0 -11
  186. data/src/rails_admin/styles/themes/default/variables.scss +0 -12
  187. data/src/rails_admin/vendor/jquery.pjax.js +0 -899
  188. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-affix.js +0 -164
  189. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-alert.js +0 -95
  190. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-button.js +0 -125
  191. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-carousel.js +0 -246
  192. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-collapse.js +0 -212
  193. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-dropdown.js +0 -165
  194. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-modal.js +0 -358
  195. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-popover.js +0 -123
  196. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-scrollspy.js +0 -172
  197. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-tab.js +0 -155
  198. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-tooltip.js +0 -677
  199. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-transition.js +0 -59
  200. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-typeahead.js +0 -1782
  201. data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap.js +0 -13
  202. data/vendor/assets/javascripts/rails_admin/bootstrap-datetimepicker.js +0 -2611
  203. data/vendor/assets/javascripts/rails_admin/jquery.pjax.js +0 -898
  204. data/vendor/assets/javascripts/rails_admin/moment-with-locales.js +0 -18085
  205. data/vendor/assets/stylesheets/rails_admin/_bootstrap-datetimepicker.scss +0 -343
  206. data/vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss +0 -68
  207. data/vendor/assets/stylesheets/rails_admin/bootstrap/_badges.scss +0 -57
  208. data/vendor/assets/stylesheets/rails_admin/bootstrap/_breadcrumbs.scss +0 -26
  209. data/vendor/assets/stylesheets/rails_admin/bootstrap/_button-groups.scss +0 -240
  210. data/vendor/assets/stylesheets/rails_admin/bootstrap/_code.scss +0 -68
  211. data/vendor/assets/stylesheets/rails_admin/bootstrap/_component-animations.scss +0 -35
  212. data/vendor/assets/stylesheets/rails_admin/bootstrap/_dropdowns.scss +0 -215
  213. data/vendor/assets/stylesheets/rails_admin/bootstrap/_glyphicons.scss +0 -237
  214. data/vendor/assets/stylesheets/rails_admin/bootstrap/_input-groups.scss +0 -166
  215. data/vendor/assets/stylesheets/rails_admin/bootstrap/_jumbotron.scss +0 -48
  216. data/vendor/assets/stylesheets/rails_admin/bootstrap/_labels.scss +0 -66
  217. data/vendor/assets/stylesheets/rails_admin/bootstrap/_media.scss +0 -56
  218. data/vendor/assets/stylesheets/rails_admin/bootstrap/_modals.scss +0 -150
  219. data/vendor/assets/stylesheets/rails_admin/bootstrap/_navs.scss +0 -242
  220. data/vendor/assets/stylesheets/rails_admin/bootstrap/_normalize.scss +0 -425
  221. data/vendor/assets/stylesheets/rails_admin/bootstrap/_pager.scss +0 -55
  222. data/vendor/assets/stylesheets/rails_admin/bootstrap/_panels.scss +0 -243
  223. data/vendor/assets/stylesheets/rails_admin/bootstrap/_popovers.scss +0 -133
  224. data/vendor/assets/stylesheets/rails_admin/bootstrap/_print.scss +0 -101
  225. data/vendor/assets/stylesheets/rails_admin/bootstrap/_progress-bars.scss +0 -105
  226. data/vendor/assets/stylesheets/rails_admin/bootstrap/_responsive-embed.scss +0 -34
  227. data/vendor/assets/stylesheets/rails_admin/bootstrap/_responsive-utilities.scss +0 -174
  228. data/vendor/assets/stylesheets/rails_admin/bootstrap/_scaffolding.scss +0 -150
  229. data/vendor/assets/stylesheets/rails_admin/bootstrap/_theme.scss +0 -258
  230. data/vendor/assets/stylesheets/rails_admin/bootstrap/_thumbnails.scss +0 -38
  231. data/vendor/assets/stylesheets/rails_admin/bootstrap/_wells.scss +0 -29
  232. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_alerts.scss +0 -14
  233. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_background-variant.scss +0 -11
  234. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_center-block.scss +0 -7
  235. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_grid-framework.scss +0 -81
  236. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_hide-text.scss +0 -21
  237. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_labels.scss +0 -12
  238. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-divider.scss +0 -10
  239. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  240. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_opacity.scss +0 -8
  241. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_panels.scss +0 -24
  242. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_progress-bar.scss +0 -10
  243. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-filter.scss +0 -8
  244. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_responsive-visibility.scss +0 -21
  245. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_size.scss +0 -10
  246. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_tab-focus.scss +0 -9
  247. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_table-row.scss +0 -28
  248. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_text-emphasis.scss +0 -11
  249. data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_vendor-prefixes.scss +0 -219
  250. data/vendor/assets/stylesheets/rails_admin/bootstrap-datetimepicker-build.scss +0 -16
@@ -10,8 +10,8 @@ body.rails_admin {
10
10
  display: inline-block;
11
11
  }
12
12
 
13
- /* room for upper navbar */
14
- padding-top: $navbar-height;
13
+ /* Top navigation */
14
+ padding-top: $nav-link-height + $navbar-padding-y * 2;
15
15
 
16
16
  .navbar {
17
17
  .edit_user_root_link {
@@ -25,30 +25,22 @@ body.rails_admin {
25
25
  margin-left: ($avatar-size + 5px);
26
26
  }
27
27
  }
28
-
29
- > span {
30
- color: $navbar-default-link-color;
31
- line-height: $navbar-height;
32
- padding-left: $navbar-padding-horizontal;
33
- padding-right: $navbar-padding-horizontal;
34
- }
35
28
  }
36
29
  }
37
30
 
38
- .sidebar-nav {
31
+ /* Sidebar navigation */
32
+ .btn-toggle-nav {
39
33
  padding: 0;
40
- background-color: $navbar-default-bg;
41
34
 
42
35
  .dropdown-header {
43
36
  padding: ($grid-gutter-width / 2) ($grid-gutter-width / 2) 3px;
44
37
  font-weight: bold;
45
- color: $gray;
38
+ color: $gray-700;
46
39
  text-transform: uppercase;
47
40
  }
48
41
 
49
- > .nav-stacked > li > a {
50
- padding: $padding-base-vertical ($grid-gutter-width / 2);
51
- border-radius: 0;
42
+ > li > a {
43
+ padding: ($navbar-padding-y / 2) ($grid-gutter-width / 2);
52
44
 
53
45
  &.nav-level-1 {
54
46
  padding-left: $grid-gutter-width;
@@ -64,88 +56,17 @@ body.rails_admin {
64
56
  }
65
57
  }
66
58
 
67
- label.input-group-addon {
68
- cursor: pointer;
69
- }
70
-
71
- /* fat labels in forms */
72
- .label.form-label {
73
- padding: 7px 7px 8px 7px;
74
- }
75
-
76
- /* new/edit/export forms */
77
- .form-horizontal {
59
+ /* Main form */
60
+ form.main {
78
61
  /* hide hidden fields controls by default */
79
62
  .control-group .hidden_type {
80
63
  display: none;
81
64
  }
82
65
 
83
- .control-group {
84
- .img-thumbnail {
85
- margin-bottom: 10px;
86
- }
87
-
88
- .btn-remove-image {
89
- &.btn-info {
90
- margin-top: 10px;
91
- }
92
- }
93
- }
94
-
95
- legend {
96
- cursor: pointer;
97
- i {
98
- vertical-align: inherit !important;
99
- }
100
- }
101
-
102
- &.denser {
103
- margin-top: 30px;
104
- .controls .nav {
105
- margin: 30px 0 0;
106
- }
107
- .remove_nested_fields,
108
- .remove_nested_one_fields {
109
- position: absolute;
110
- }
111
- p {
112
- font-size: 12px;
113
- line-height: 16px;
114
- }
115
- .help-block {
116
- // margin-top: 0px;
117
- }
118
- .input-prepend,
119
- .input-append {
120
- margin-bottom: 0px;
121
- label {
122
- margin-bottom: 0px;
123
- }
124
- }
125
- legend {
126
- margin-bottom: 30px;
127
- }
128
- }
129
-
130
- /* We want input size to be used, unfixate input width */
131
- input,
132
- textarea {
133
- width: revert;
134
- }
135
- .help-block {
136
- clear: left;
137
- }
138
- input[type="file"] {
139
- display: block;
140
- }
141
-
142
66
  /* nested forms */
143
67
  .tab-content {
144
- clear: both;
145
-
146
68
  .tab-pane {
147
- @include clearfix;
148
- border-left: 5px solid #049cdb;
69
+ border-left: 5px solid map-get($theme-colors, primary);
149
70
  position: relative;
150
71
 
151
72
  fieldset {
@@ -164,7 +85,6 @@ body.rails_admin {
164
85
  position: absolute;
165
86
  top: 0px;
166
87
  left: 5px;
167
- -webkit-transition: opacity 0.15s ease;
168
88
  transition: opacity 0.15s ease;
169
89
  }
170
90
  &:hover > .remove_nested_fields,
@@ -177,7 +97,7 @@ body.rails_admin {
177
97
 
178
98
  /* double nesting, guys. Easy. */
179
99
  .tab-content .tab-content .tab-pane {
180
- border-color: lighten(#049cdb, 20%);
100
+ border-color: lighten(map-get($theme-colors, info), 20%);
181
101
  margin-left: 10px;
182
102
 
183
103
  .form-group {
@@ -187,7 +107,7 @@ body.rails_admin {
187
107
 
188
108
  /* triple nesting!*/
189
109
  .tab-content .tab-content .tab-content .tab-pane {
190
- border-color: lighten(#049cdb, 30%);
110
+ border-color: lighten(map-get($theme-colors, warning), 30%);
191
111
  margin-left: 20px;
192
112
 
193
113
  .form-group {
@@ -197,7 +117,7 @@ body.rails_admin {
197
117
 
198
118
  /* totally awesome! nesting on 4 levels! */
199
119
  .tab-content .tab-content .tab-content .tab-content .tab-pane {
200
- border-color: lighten(#049cdb, 40%);
120
+ border-color: lighten(map-get($theme-colors, success), 40%);
201
121
  margin-left: 30px;
202
122
 
203
123
  .form-group {
@@ -206,43 +126,21 @@ body.rails_admin {
206
126
  }
207
127
  }
208
128
 
209
- // .modal {
210
- // width: 750px;
211
- // margin-left: -375px;
212
- // }
213
-
214
- /* nested nav */
215
- .nav {
216
- .nav-level-1 {
217
- padding-left: 30px;
218
- }
219
- .nav-level-2 {
220
- padding-left: 60px;
221
- }
222
- .nav-level-3 {
223
- padding-left: 90px;
224
- }
225
- }
226
-
227
- /* tab links should match icon color */
129
+ /* Action tabs */
228
130
  .nav.nav-tabs {
229
- margin-bottom: 20px;
230
-
231
- li.icon a {
232
- color: #000;
131
+ li.nav-item.icon + li.nav-item.dropdown {
132
+ margin-left: auto;
233
133
  }
234
- }
235
-
236
- #sidescroll {
237
- margin-bottom: 20px;
238
- overflow-x: auto;
239
- .table {
240
- margin-bottom: 0;
134
+ /* To silence Popper's warning: 'CSS "margin" styles cannot be used...' */
135
+ .dropdown-menu {
136
+ margin: 0;
241
137
  }
242
138
  }
243
139
 
244
140
  /* Table cells behaviour */
245
141
  .table {
142
+ height: 100%;
143
+
246
144
  // Cells
247
145
  > thead,
248
146
  > tbody,
@@ -271,14 +169,14 @@ body.rails_admin {
271
169
  margin-right: -16px;
272
170
  border-width: 0 4px 4px;
273
171
  border-style: solid;
274
- border-color: #000 transparent;
172
+ border-color: $dark transparent;
275
173
  visibility: hidden;
276
174
  }
277
175
  }
278
176
  .headerSortUp,
279
177
  .headerSortDown {
280
- background-color: rgba(141, 192, 219, 0.25);
281
- text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
178
+ background-color: rgba($info, 0.25);
179
+ text-shadow: 0 1px 1px rgba($light, 0.75);
282
180
  }
283
181
  .header:hover {
284
182
  &:after {
@@ -289,7 +187,7 @@ body.rails_admin {
289
187
  .headerSortDown:hover {
290
188
  &:after {
291
189
  visibility: visible;
292
- @include opacity(60);
190
+ opacity: 60;
293
191
  }
294
192
  }
295
193
  .headerSortUp {
@@ -297,10 +195,10 @@ body.rails_admin {
297
195
  border-bottom: none;
298
196
  border-left: 4px solid transparent;
299
197
  border-right: 4px solid transparent;
300
- border-top: 4px solid #000;
198
+ border-top: 4px solid $dark;
301
199
  visibility: visible;
302
200
  @include box-shadow(none);
303
- @include opacity(60);
201
+ opacity: 60;
304
202
  }
305
203
  }
306
204
 
@@ -335,9 +233,13 @@ body.rails_admin {
335
233
  td.links {
336
234
  max-width: none;
337
235
  .list-inline {
338
- margin: 0px;
236
+ margin-bottom: 0;
339
237
  li {
340
238
  display: inline-block;
239
+ padding: 0 3px;
240
+ .nav-link {
241
+ padding: 0 0.1em;
242
+ }
341
243
  }
342
244
  }
343
245
  }
@@ -360,41 +262,64 @@ body.rails_admin {
360
262
  }
361
263
  }
362
264
 
363
- // Remove transparency on sticky cells.
364
- $table-bg-default: if(
365
- $table-bg == transparent,
366
- if($body-bg == transparent, #fff, $body-bg),
367
- $table-bg
368
- ) !default;
369
- .table-striped > tbody > tr:nth-child(even) > td,
370
- .table-striped > thead > tr > th {
371
- background-color: $table-bg-default;
265
+ /* Dashboard */
266
+ .table {
267
+ .progress {
268
+ height: 100%;
269
+ }
372
270
  }
373
- $table-bg-header-sort: #e2eff6 !default;
374
- .table .sticky,
375
- .table .last {
376
- &.headerSortUp,
377
- &.headerSortDown {
378
- background-color: $table-bg-header-sort;
271
+
272
+ /* Index */
273
+ #filters_box {
274
+ .form-control {
275
+ display: inline-block;
276
+ vertical-align: middle;
277
+ width: auto;
379
278
  }
380
279
  }
381
- }
280
+ #sidescroll {
281
+ margin-bottom: 20px;
282
+ overflow-x: auto;
283
+ .table {
284
+ margin-bottom: 0;
285
+ }
382
286
 
383
- @media screen and (min-width: $grid-float-breakpoint) {
384
- body.rails_admin {
385
- .navbar {
386
- .edit_user_root_link {
387
- img {
388
- top: (($navbar-height - $avatar-size) / 2);
389
- }
287
+ // Remove transparency on sticky cells.
288
+ $table-bg-default: if(
289
+ $table-bg == transparent,
290
+ if($body-bg == transparent, #fff, $body-bg),
291
+ $table-bg
292
+ ) !default;
293
+ .table-striped > tbody > tr > td,
294
+ .table-striped > thead > tr > th {
295
+ background-color: $table-bg-default;
296
+ }
297
+ $table-bg-header-sort: #e2eff6 !default;
298
+ .table .sticky,
299
+ .table .last {
300
+ &.headerSortUp,
301
+ &.headerSortDown {
302
+ background-color: $table-bg-header-sort;
390
303
  }
391
304
  }
305
+ }
306
+ }
392
307
 
393
- .sidebar-nav {
308
+ @media screen and (min-width: map-get($grid-breakpoints, "sm")) {
309
+ body.rails_admin {
310
+ .btn-toggle-nav {
394
311
  position: fixed;
395
- top: $navbar-height;
312
+ top: $nav-link-height + $navbar-padding-y * 2;
396
313
  bottom: 0;
397
314
  overflow-y: auto;
398
315
  }
399
316
  }
400
317
  }
318
+
319
+ @media screen and (max-width: map-get($grid-breakpoints, "sm")) {
320
+ body.rails_admin {
321
+ .container {
322
+ padding: 0;
323
+ }
324
+ }
325
+ }
@@ -1 +1,3 @@
1
1
  /* RailsAdmin SASS variables */
2
+
3
+ $font-size-base: 0.85rem !default;
@@ -1,23 +1,13 @@
1
1
  @charset "UTF-8";
2
2
 
3
- /*** Variables ***/
3
+ /*** Variables & mixins ***/
4
4
 
5
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/_variables";
6
5
  @import "base/variables";
7
- @import "themes/default/variables";
8
-
9
- /*** Mixins ***/
10
-
11
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/mixins";
12
6
  @import "base/mixins";
13
- @import "themes/default/mixins";
14
7
 
15
8
  /*** Libraries ***/
16
9
 
17
- @import "~eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build";
18
- @import "./filtering-select";
19
- @import "./filtering-multiselect";
20
- @import "./widgets";
10
+ @import "~flatpickr/dist/flatpickr";
21
11
 
22
12
  /*** Font-awesome ***/
23
13
 
@@ -25,40 +15,13 @@ $fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
25
15
  @import "~@fortawesome/fontawesome-free/scss/solid";
26
16
  @import "~@fortawesome/fontawesome-free/scss/fontawesome";
27
17
 
28
- /*** Bootstrap Theming ***/
18
+ /*** Bootstrap ***/
29
19
 
30
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/normalize";
31
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/scaffolding";
32
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/grid";
33
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/type";
34
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/forms";
35
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/tables";
36
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/dropdowns";
37
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/wells";
38
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/component-animations";
39
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/close";
40
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/buttons";
41
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/button-groups";
42
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/input-groups";
43
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/alerts";
44
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/navs";
45
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/navbar";
46
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/breadcrumbs";
47
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/pagination";
48
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/pager";
49
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/modals";
50
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/tooltip";
51
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/popovers";
52
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/thumbnails";
53
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/labels";
54
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/panels";
55
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/badges";
56
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/progress-bars";
57
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/carousel";
58
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/utilities";
59
- @import "~bootstrap-sass/assets/stylesheets/bootstrap/responsive-utilities";
20
+ @import "~bootstrap/scss/bootstrap";
60
21
 
61
- /*** RailsAdmin Theming ***/
22
+ /*** RailsAdmin ***/
62
23
 
63
24
  @import "base/theming";
64
- @import "themes/default/theming";
25
+ @import "filtering-select";
26
+ @import "filtering-multiselect";
27
+ @import "widgets";
@@ -41,13 +41,13 @@
41
41
 
42
42
  span.fas,
43
43
  a.fas {
44
- color: #aaa;
44
+ color: $gray-400;
45
45
  font-size: 16px;
46
46
  margin-right: 4px;
47
47
  text-decoration: none;
48
48
 
49
49
  &:hover {
50
- color: $gray;
50
+ color: $gray-700;
51
51
  }
52
52
  }
53
53
  }
@@ -60,7 +60,7 @@
60
60
  .ui-autocomplete {
61
61
  position: absolute;
62
62
  cursor: default;
63
- z-index: 1051 !important;
63
+ z-index: 1056 !important;
64
64
  border-radius: 0;
65
65
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
66
66
  }
@@ -21,15 +21,6 @@ iframe.wysihtml5-sandbox,
21
21
  display: none;
22
22
  }
23
23
 
24
- .form-group.boolean_type {
25
- .success.active {
26
- @extend .btn-success;
27
- }
28
- .danger.active {
29
- @extend .btn-danger;
30
- }
31
- }
32
-
33
24
  .links .inline.list-inline .disabled span {
34
- color: $gray-light;
25
+ color: $gray-600;
35
26
  }
@@ -7,49 +7,7 @@ import I18n from "./i18n";
7
7
  $("#list [name='bulk_ids[]']").prop("checked", $(this).is(":checked"));
8
8
  });
9
9
 
10
- $(document).on("click", ".pjax", function (event) {
11
- if (event.which > 1 || event.metaKey || event.ctrlKey) {
12
- return;
13
- }
14
-
15
- if ($.support.pjax) {
16
- event.preventDefault();
17
- $.pjax({
18
- container: $(this).data("pjax-container") || "[data-pjax-container]",
19
- url: $(this).data("href") || $(this).attr("href"),
20
- timeout: 2000,
21
- });
22
- return;
23
- }
24
-
25
- if ($(this).data("href")) {
26
- window.location = $(this).data("href");
27
- }
28
- });
29
-
30
- $(document).on("submit", ".pjax-form", function (event) {
31
- if ($.support.pjax) {
32
- event.preventDefault();
33
- $.pjax({
34
- container: $(this).data("pjax-container") || "[data-pjax-container]",
35
- url:
36
- this.action +
37
- (this.action.indexOf("?") !== -1 ? "&" : "?") +
38
- $(this).serialize(),
39
- timeout: 2000,
40
- });
41
- }
42
- });
43
-
44
- $(document)
45
- .on("pjax:start", function () {
46
- return $("#loading").show();
47
- })
48
- .on("pjax:end", function () {
49
- return $("#loading").hide();
50
- });
51
-
52
- $(document).on("click", "[data-target]", function () {
10
+ $(document).on("click", "[data-bs-target]", function () {
53
11
  if (!$(this).hasClass("disabled")) {
54
12
  if ($(this).has("i.fa-chevron-down").length) {
55
13
  $(this)
@@ -69,7 +27,7 @@ import I18n from "./i18n";
69
27
  }
70
28
  });
71
29
 
72
- $(document).on("click", ".form-horizontal legend", function () {
30
+ $(document).on("click", "form legend", function () {
73
31
  if ($(this).has("i.fa-chevron-down").length) {
74
32
  $(this).siblings(".control-group:visible").hide("slow");
75
33
  $(this).children("i").toggleClass("fa-chevron-down fa-chevron-right");
@@ -93,18 +51,13 @@ import I18n from "./i18n";
93
51
  }
94
52
  );
95
53
 
96
- $(document).ready(function () {
54
+ document.addEventListener("turbo:load", function () {
97
55
  I18n.init($("html").attr("lang"), $("#admin-js").data("i18nOptions"));
98
56
 
99
57
  const event = new CustomEvent("rails_admin.dom_ready");
100
58
  document.dispatchEvent(event);
101
59
  });
102
60
 
103
- $(document).on("pjax:end", function () {
104
- const event = new CustomEvent("rails_admin.dom_ready");
105
- document.dispatchEvent(event);
106
- });
107
-
108
61
  document.addEventListener("rails_admin.dom_ready", function () {
109
62
  $(".nav.nav-pills li.active").removeClass("active");
110
63
  $(
@@ -122,14 +75,11 @@ import I18n from "./i18n";
122
75
  "easeOutQuad"
123
76
  );
124
77
  });
125
- $(".form-horizontal legend")
78
+ $("form.main legend")
126
79
  .has("i.fa-chevron-right")
127
80
  .each(function () {
128
81
  $(this).siblings(".control-group").hide();
129
82
  });
130
- $(".table").tooltip({
131
- selector: "th[rel=tooltip]",
132
- });
133
83
  $("[formnovalidate]").on("click", function () {
134
84
  $(this).closest("form").attr("novalidate", true);
135
85
  });