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.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/Rakefile +11 -0
- data/app/assets/javascripts/rails_admin.js +4 -4
- data/app/assets/stylesheets/rails_admin.scss +31 -0
- data/app/controllers/rails_admin/application_controller.rb +1 -1
- data/app/controllers/rails_admin/main_controller.rb +10 -18
- data/app/helpers/rails_admin/application_helper.rb +12 -13
- data/app/helpers/rails_admin/form_builder.rb +3 -3
- data/app/helpers/rails_admin/main_helper.rb +1 -1
- data/app/views/kaminari/ra-twitter-bootstrap/_gap.html.erb +2 -2
- data/app/views/kaminari/ra-twitter-bootstrap/_next_page.html.erb +4 -4
- data/app/views/kaminari/ra-twitter-bootstrap/_page.html.erb +4 -4
- data/app/views/kaminari/ra-twitter-bootstrap/_paginator.html.erb +12 -10
- data/app/views/kaminari/ra-twitter-bootstrap/_prev_page.html.erb +4 -4
- data/app/views/kaminari/ra-twitter-bootstrap/without_count/_next_page.html.erb +4 -4
- data/app/views/kaminari/ra-twitter-bootstrap/without_count/_paginator.html.erb +6 -4
- data/app/views/kaminari/ra-twitter-bootstrap/without_count/_prev_page.html.erb +4 -4
- data/app/views/layouts/rails_admin/_navigation.html.erb +12 -16
- data/app/views/layouts/rails_admin/_secondary_navigation.html.erb +8 -8
- data/app/views/layouts/rails_admin/_sidebar_navigation.html.erb +1 -5
- data/app/views/layouts/rails_admin/application.html.erb +4 -7
- data/app/views/layouts/rails_admin/{pjax.html.erb → content.html.erb} +7 -5
- data/app/views/layouts/rails_admin/modal.js.erb +1 -1
- data/app/views/rails_admin/main/_dashboard_history.html.erb +1 -1
- data/app/views/rails_admin/main/_delete_notice.html.erb +2 -2
- data/app/views/rails_admin/main/_form_boolean.html.erb +6 -8
- data/app/views/rails_admin/main/_form_colorpicker.html.erb +5 -1
- data/app/views/rails_admin/main/_form_datetime.html.erb +8 -7
- data/app/views/rails_admin/main/_form_enumeration.html.erb +5 -1
- data/app/views/rails_admin/main/_form_file_upload.html.erb +1 -1
- data/app/views/rails_admin/main/_form_filtering_multiselect.html.erb +14 -14
- data/app/views/rails_admin/main/_form_filtering_select.html.erb +16 -21
- data/app/views/rails_admin/main/_form_multiple_file_upload.html.erb +1 -1
- data/app/views/rails_admin/main/_form_nested_many.html.erb +4 -4
- data/app/views/rails_admin/main/_form_nested_one.html.erb +4 -4
- data/app/views/rails_admin/main/_form_polymorphic_association.html.erb +11 -6
- data/app/views/rails_admin/main/_submit_buttons.html.erb +8 -8
- data/app/views/rails_admin/main/bulk_delete.html.erb +1 -1
- data/app/views/rails_admin/main/dashboard.html.erb +4 -4
- data/app/views/rails_admin/main/delete.html.erb +1 -1
- data/app/views/rails_admin/main/edit.html.erb +1 -1
- data/app/views/rails_admin/main/export.html.erb +35 -32
- data/app/views/rails_admin/main/history.html.erb +16 -14
- data/app/views/rails_admin/main/index.html.erb +38 -35
- data/app/views/rails_admin/main/new.html.erb +1 -1
- data/config/locales/rails_admin.en.yml +0 -1
- data/lib/generators/rails_admin/install_generator.rb +0 -1
- data/lib/generators/rails_admin/templates/webpack.config.js +0 -3
- data/lib/rails_admin/adapters/active_record/object_extension.rb +1 -1
- data/lib/rails_admin/adapters/active_record/property.rb +1 -1
- data/lib/rails_admin/adapters/active_record.rb +7 -3
- data/lib/rails_admin/adapters/mongoid/property.rb +3 -3
- data/lib/rails_admin/adapters/mongoid.rb +2 -2
- data/lib/rails_admin/config/actions/base.rb +1 -6
- data/lib/rails_admin/config/actions/dashboard.rb +13 -9
- data/lib/rails_admin/config/actions/delete.rb +4 -0
- data/lib/rails_admin/config/actions/edit.rb +4 -0
- data/lib/rails_admin/config/actions/new.rb +5 -0
- data/lib/rails_admin/config/actions/show_in_app.rb +0 -4
- data/lib/rails_admin/config/fields/association.rb +6 -1
- data/lib/rails_admin/config/fields/base.rb +1 -1
- data/lib/rails_admin/config/fields/types/action_text.rb +1 -1
- data/lib/rails_admin/config/fields/types/date.rb +7 -0
- data/lib/rails_admin/config/fields/types/datetime.rb +9 -4
- data/lib/rails_admin/config/fields/types/has_many_association.rb +4 -0
- data/lib/rails_admin/config/fields/types/has_one_association.rb +4 -0
- data/lib/rails_admin/config/fields/types/time.rb +9 -0
- data/lib/rails_admin/config/has_fields.rb +4 -0
- data/lib/rails_admin/config/model.rb +8 -0
- data/lib/rails_admin/config/sections/list.rb +4 -4
- data/lib/rails_admin/config.rb +4 -1
- data/lib/rails_admin/engine.rb +2 -5
- data/lib/rails_admin/support/datetime.rb +50 -53
- data/lib/rails_admin/support/esmodule_preprocessor.rb +2 -1
- data/lib/rails_admin/version.rb +1 -1
- data/package.json +7 -5
- data/src/rails_admin/base.js +3 -6
- data/src/rails_admin/filter-box.js +36 -37
- data/src/rails_admin/filtering-select.js +3 -6
- data/src/rails_admin/i18n.js +0 -3
- data/src/rails_admin/nested-form-hooks.js +16 -8
- data/src/rails_admin/remote-form.js +18 -15
- data/src/rails_admin/styles/base/theming.scss +80 -155
- data/src/rails_admin/styles/base/variables.scss +2 -0
- data/src/rails_admin/styles/base.scss +8 -45
- data/src/rails_admin/styles/filtering-multiselect.scss +2 -2
- data/src/rails_admin/styles/filtering-select.scss +1 -1
- data/src/rails_admin/styles/widgets.scss +1 -10
- data/src/rails_admin/ui.js +4 -54
- data/src/rails_admin/widgets.js +38 -48
- data/vendor/assets/javascripts/rails_admin/bootstrap.js +5046 -0
- data/vendor/assets/javascripts/rails_admin/flatpickr-with-locales.js +10683 -0
- data/vendor/assets/javascripts/rails_admin/popper.js +1974 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_accordion.scss +118 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_alert.scss +57 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_badge.scss +29 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_breadcrumb.scss +28 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_button-group.scss +139 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_buttons.scss +64 -110
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_card.scss +216 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_carousel.scss +162 -176
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_close.scss +31 -26
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss +41 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_dropdown.scss +240 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_forms.scss +9 -538
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_functions.scss +302 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_grid.scss +18 -69
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_helpers.scss +9 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_images.scss +42 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_list-group.scss +127 -84
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_mixins.scss +26 -22
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_modal.scss +209 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_nav.scss +139 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_navbar.scss +218 -542
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_offcanvas.scss +83 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_pagination.scss +46 -70
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_placeholders.scss +51 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_popover.scss +158 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_progress.scss +48 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_reboot.scss +625 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_root.scss +54 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_spinners.scss +69 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_tables.scss +100 -178
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_toasts.scss +51 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_tooltip.scss +97 -77
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_transitions.scss +27 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_type.scss +54 -254
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_utilities.scss +628 -55
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_variables.scss +1572 -781
- data/vendor/assets/stylesheets/rails_admin/bootstrap/bootstrap.scss +38 -35
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_floating-labels.scss +63 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-check.scss +152 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-control.scss +219 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-range.scss +91 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-select.scss +72 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-text.scss +11 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_input-group.scss +121 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_labels.scss +36 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_validation.scss +12 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_clearfix.scss +3 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_colored-links.scss +12 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_position.scss +30 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_ratio.scss +26 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_stacks.scss +15 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_stretched-link.scss +15 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_text-truncation.scss +7 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_vr.scss +8 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_alert.scss +11 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_backdrop.scss +14 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_border-radius.scss +72 -12
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_box-shadow.scss +18 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_breakpoints.scss +127 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss +113 -30
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_caret.scss +64 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_clearfix.scss +5 -18
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_color-scheme.scss +7 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_container.scss +9 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_deprecate.scss +10 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_forms.scss +130 -70
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_gradients.scss +27 -38
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_grid.scss +127 -98
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_image.scss +6 -24
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_list-group.scss +13 -20
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_lists.scss +7 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_pagination.scss +24 -16
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-text.scss +17 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_resize.scss +1 -1
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_table-variants.scss +21 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_transition.scss +26 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_utilities.scss +89 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_visually-hidden.scss +29 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss +47 -0
- data/vendor/assets/stylesheets/rails_admin/bootstrap/vendor/_rfs.scss +354 -0
- data/vendor/assets/stylesheets/rails_admin/flatpickr.css +791 -0
- metadata +80 -91
- data/app/assets/stylesheets/rails_admin.scss.erb +0 -76
- data/lib/generators/rails_admin/templates/environment.js +0 -6
- data/src/rails_admin/styles/themes/cerulean/mixins.scss +0 -0
- data/src/rails_admin/styles/themes/cerulean/theming.scss +0 -135
- data/src/rails_admin/styles/themes/cerulean/variables.scss +0 -830
- data/src/rails_admin/styles/themes/default/mixins.scss +0 -8
- data/src/rails_admin/styles/themes/default/theming.scss +0 -11
- data/src/rails_admin/styles/themes/default/variables.scss +0 -12
- data/src/rails_admin/vendor/jquery.pjax.js +0 -899
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-affix.js +0 -164
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-alert.js +0 -95
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-button.js +0 -125
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-carousel.js +0 -246
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-collapse.js +0 -212
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-dropdown.js +0 -165
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-modal.js +0 -358
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-popover.js +0 -123
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-scrollspy.js +0 -172
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-tab.js +0 -155
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-tooltip.js +0 -677
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-transition.js +0 -59
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap-typeahead.js +0 -1782
- data/vendor/assets/javascripts/rails_admin/bootstrap/bootstrap.js +0 -13
- data/vendor/assets/javascripts/rails_admin/bootstrap-datetimepicker.js +0 -2611
- data/vendor/assets/javascripts/rails_admin/jquery.pjax.js +0 -898
- data/vendor/assets/javascripts/rails_admin/moment-with-locales.js +0 -18085
- data/vendor/assets/stylesheets/rails_admin/_bootstrap-datetimepicker.scss +0 -343
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_alerts.scss +0 -68
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_badges.scss +0 -57
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_breadcrumbs.scss +0 -26
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_button-groups.scss +0 -240
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_code.scss +0 -68
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_component-animations.scss +0 -35
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_dropdowns.scss +0 -215
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_glyphicons.scss +0 -237
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_input-groups.scss +0 -166
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_jumbotron.scss +0 -48
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_labels.scss +0 -66
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_media.scss +0 -56
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_modals.scss +0 -150
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_navs.scss +0 -242
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_normalize.scss +0 -425
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_pager.scss +0 -55
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_panels.scss +0 -243
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_popovers.scss +0 -133
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_print.scss +0 -101
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_progress-bars.scss +0 -105
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_responsive-embed.scss +0 -34
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_responsive-utilities.scss +0 -174
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_scaffolding.scss +0 -150
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_theme.scss +0 -258
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_thumbnails.scss +0 -38
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_wells.scss +0 -29
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_alerts.scss +0 -14
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_background-variant.scss +0 -11
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_center-block.scss +0 -7
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_grid-framework.scss +0 -81
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_hide-text.scss +0 -21
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_labels.scss +0 -12
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-divider.scss +0 -10
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_opacity.scss +0 -8
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_panels.scss +0 -24
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_progress-bar.scss +0 -10
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-filter.scss +0 -8
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_size.scss +0 -10
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_tab-focus.scss +0 -9
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_table-row.scss +0 -28
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_text-emphasis.scss +0 -11
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_vendor-prefixes.scss +0 -219
- 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
|
-
/*
|
14
|
-
padding-top: $navbar-
|
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
|
-
|
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
|
-
>
|
50
|
-
padding: $padding-
|
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
|
-
|
68
|
-
|
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
|
-
|
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(
|
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(
|
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(
|
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
|
-
|
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
|
-
|
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
|
-
|
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:
|
172
|
+
border-color: $dark transparent;
|
275
173
|
visibility: hidden;
|
276
174
|
}
|
277
175
|
}
|
278
176
|
.headerSortUp,
|
279
177
|
.headerSortDown {
|
280
|
-
background-color: rgba(
|
281
|
-
text-shadow: 0 1px 1px rgba(
|
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
|
-
|
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
|
198
|
+
border-top: 4px solid $dark;
|
301
199
|
visibility: visible;
|
302
200
|
@include box-shadow(none);
|
303
|
-
|
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:
|
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
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
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
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
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
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
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
|
-
|
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-
|
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,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 "~
|
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
|
18
|
+
/*** Bootstrap ***/
|
29
19
|
|
30
|
-
@import "~bootstrap
|
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
|
22
|
+
/*** RailsAdmin ***/
|
62
23
|
|
63
24
|
@import "base/theming";
|
64
|
-
@import "
|
25
|
+
@import "filtering-select";
|
26
|
+
@import "filtering-multiselect";
|
27
|
+
@import "widgets";
|
@@ -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-
|
25
|
+
color: $gray-600;
|
35
26
|
}
|
data/src/rails_admin/ui.js
CHANGED
@@ -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", "
|
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", "
|
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
|
-
|
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
|
-
$(".
|
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
|
});
|