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
@@ -1,240 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Button groups
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Make the div behave like a button
|
6
|
-
.btn-group,
|
7
|
-
.btn-group-vertical {
|
8
|
-
position: relative;
|
9
|
-
display: inline-block;
|
10
|
-
vertical-align: middle; // match .btn alignment given font-size hack above
|
11
|
-
> .btn {
|
12
|
-
position: relative;
|
13
|
-
float: left;
|
14
|
-
// Bring the "active" button to the front
|
15
|
-
&:hover,
|
16
|
-
&:focus,
|
17
|
-
&:active,
|
18
|
-
&.active {
|
19
|
-
z-index: 2;
|
20
|
-
}
|
21
|
-
&:focus {
|
22
|
-
// Remove focus outline when dropdown JS adds it after closing the menu
|
23
|
-
outline: 0;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
// Prevent double borders when buttons are next to each other
|
29
|
-
.btn-group {
|
30
|
-
.btn + .btn,
|
31
|
-
.btn + .btn-group,
|
32
|
-
.btn-group + .btn,
|
33
|
-
.btn-group + .btn-group {
|
34
|
-
margin-left: -1px;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
// Optional: Group multiple button groups together for a toolbar
|
39
|
-
.btn-toolbar {
|
40
|
-
margin-left: -5px; // Offset the first child's margin
|
41
|
-
@include clearfix();
|
42
|
-
|
43
|
-
.btn-group,
|
44
|
-
.input-group {
|
45
|
-
float: left;
|
46
|
-
}
|
47
|
-
> .btn,
|
48
|
-
> .btn-group,
|
49
|
-
> .input-group {
|
50
|
-
margin-left: 5px;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
55
|
-
border-radius: 0;
|
56
|
-
}
|
57
|
-
|
58
|
-
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
59
|
-
.btn-group > .btn:first-child {
|
60
|
-
margin-left: 0;
|
61
|
-
&:not(:last-child):not(.dropdown-toggle) {
|
62
|
-
@include border-right-radius(0);
|
63
|
-
}
|
64
|
-
}
|
65
|
-
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
66
|
-
.btn-group > .btn:last-child:not(:first-child),
|
67
|
-
.btn-group > .dropdown-toggle:not(:first-child) {
|
68
|
-
@include border-left-radius(0);
|
69
|
-
}
|
70
|
-
|
71
|
-
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
72
|
-
.btn-group > .btn-group {
|
73
|
-
float: left;
|
74
|
-
}
|
75
|
-
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
76
|
-
border-radius: 0;
|
77
|
-
}
|
78
|
-
.btn-group > .btn-group:first-child {
|
79
|
-
> .btn:last-child,
|
80
|
-
> .dropdown-toggle {
|
81
|
-
@include border-right-radius(0);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
.btn-group > .btn-group:last-child > .btn:first-child {
|
85
|
-
@include border-left-radius(0);
|
86
|
-
}
|
87
|
-
|
88
|
-
// On active and open, don't show outline
|
89
|
-
.btn-group .dropdown-toggle:active,
|
90
|
-
.btn-group.open .dropdown-toggle {
|
91
|
-
outline: 0;
|
92
|
-
}
|
93
|
-
|
94
|
-
|
95
|
-
// Sizing
|
96
|
-
//
|
97
|
-
// Remix the default button sizing classes into new ones for easier manipulation.
|
98
|
-
|
99
|
-
.btn-group-xs > .btn { @extend .btn-xs; }
|
100
|
-
.btn-group-sm > .btn { @extend .btn-sm; }
|
101
|
-
.btn-group-lg > .btn { @extend .btn-lg; }
|
102
|
-
|
103
|
-
|
104
|
-
// Split button dropdowns
|
105
|
-
// ----------------------
|
106
|
-
|
107
|
-
// Give the line between buttons some depth
|
108
|
-
.btn-group > .btn + .dropdown-toggle {
|
109
|
-
padding-left: 8px;
|
110
|
-
padding-right: 8px;
|
111
|
-
}
|
112
|
-
.btn-group > .btn-lg + .dropdown-toggle {
|
113
|
-
padding-left: 12px;
|
114
|
-
padding-right: 12px;
|
115
|
-
}
|
116
|
-
|
117
|
-
// The clickable button for toggling the menu
|
118
|
-
// Remove the gradient and set the same inset shadow as the :active state
|
119
|
-
.btn-group.open .dropdown-toggle {
|
120
|
-
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
121
|
-
|
122
|
-
// Show no shadow for `.btn-link` since it has no other button styles.
|
123
|
-
&.btn-link {
|
124
|
-
@include box-shadow(none);
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
|
129
|
-
// Reposition the caret
|
130
|
-
.btn .caret {
|
131
|
-
margin-left: 0;
|
132
|
-
}
|
133
|
-
// Carets in other button sizes
|
134
|
-
.btn-lg .caret {
|
135
|
-
border-width: $caret-width-large $caret-width-large 0;
|
136
|
-
border-bottom-width: 0;
|
137
|
-
}
|
138
|
-
// Upside down carets for .dropup
|
139
|
-
.dropup .btn-lg .caret {
|
140
|
-
border-width: 0 $caret-width-large $caret-width-large;
|
141
|
-
}
|
142
|
-
|
143
|
-
|
144
|
-
// Vertical button groups
|
145
|
-
// ----------------------
|
146
|
-
|
147
|
-
.btn-group-vertical {
|
148
|
-
> .btn,
|
149
|
-
> .btn-group,
|
150
|
-
> .btn-group > .btn {
|
151
|
-
display: block;
|
152
|
-
float: none;
|
153
|
-
width: 100%;
|
154
|
-
max-width: 100%;
|
155
|
-
}
|
156
|
-
|
157
|
-
// Clear floats so dropdown menus can be properly placed
|
158
|
-
> .btn-group {
|
159
|
-
@include clearfix();
|
160
|
-
> .btn {
|
161
|
-
float: none;
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
> .btn + .btn,
|
166
|
-
> .btn + .btn-group,
|
167
|
-
> .btn-group + .btn,
|
168
|
-
> .btn-group + .btn-group {
|
169
|
-
margin-top: -1px;
|
170
|
-
margin-left: 0;
|
171
|
-
}
|
172
|
-
}
|
173
|
-
|
174
|
-
.btn-group-vertical > .btn {
|
175
|
-
&:not(:first-child):not(:last-child) {
|
176
|
-
border-radius: 0;
|
177
|
-
}
|
178
|
-
&:first-child:not(:last-child) {
|
179
|
-
border-top-right-radius: $border-radius-base;
|
180
|
-
@include border-bottom-radius(0);
|
181
|
-
}
|
182
|
-
&:last-child:not(:first-child) {
|
183
|
-
border-bottom-left-radius: $border-radius-base;
|
184
|
-
@include border-top-radius(0);
|
185
|
-
}
|
186
|
-
}
|
187
|
-
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
188
|
-
border-radius: 0;
|
189
|
-
}
|
190
|
-
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
191
|
-
> .btn:last-child,
|
192
|
-
> .dropdown-toggle {
|
193
|
-
@include border-bottom-radius(0);
|
194
|
-
}
|
195
|
-
}
|
196
|
-
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
197
|
-
@include border-top-radius(0);
|
198
|
-
}
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
// Justified button groups
|
203
|
-
// ----------------------
|
204
|
-
|
205
|
-
.btn-group-justified {
|
206
|
-
display: table;
|
207
|
-
width: 100%;
|
208
|
-
table-layout: fixed;
|
209
|
-
border-collapse: separate;
|
210
|
-
> .btn,
|
211
|
-
> .btn-group {
|
212
|
-
float: none;
|
213
|
-
display: table-cell;
|
214
|
-
width: 1%;
|
215
|
-
}
|
216
|
-
> .btn-group .btn {
|
217
|
-
width: 100%;
|
218
|
-
}
|
219
|
-
|
220
|
-
> .btn-group .dropdown-menu {
|
221
|
-
left: auto;
|
222
|
-
}
|
223
|
-
}
|
224
|
-
|
225
|
-
|
226
|
-
// Checkbox and radio options
|
227
|
-
//
|
228
|
-
// In order to support the browser's form validation feedback, powered by the
|
229
|
-
// `required` attribute, we have to "hide" the inputs via `opacity`. We cannot
|
230
|
-
// use `display: none;` or `visibility: hidden;` as that also hides the popover.
|
231
|
-
// This way, we ensure a DOM element is visible to position the popover from.
|
232
|
-
//
|
233
|
-
// See https://github.com/twbs/bootstrap/pull/12794 for more.
|
234
|
-
|
235
|
-
[data-toggle="buttons"] > .btn > input[type="radio"],
|
236
|
-
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
237
|
-
position: absolute;
|
238
|
-
z-index: -1;
|
239
|
-
@include opacity(0);
|
240
|
-
}
|
@@ -1,68 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Code (inline and block)
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Inline and block code styles
|
7
|
-
code,
|
8
|
-
kbd,
|
9
|
-
pre,
|
10
|
-
samp {
|
11
|
-
font-family: $font-family-monospace;
|
12
|
-
}
|
13
|
-
|
14
|
-
// Inline code
|
15
|
-
code {
|
16
|
-
padding: 2px 4px;
|
17
|
-
font-size: 90%;
|
18
|
-
color: $code-color;
|
19
|
-
background-color: $code-bg;
|
20
|
-
border-radius: $border-radius-base;
|
21
|
-
}
|
22
|
-
|
23
|
-
// User input typically entered via keyboard
|
24
|
-
kbd {
|
25
|
-
padding: 2px 4px;
|
26
|
-
font-size: 90%;
|
27
|
-
color: $kbd-color;
|
28
|
-
background-color: $kbd-bg;
|
29
|
-
border-radius: $border-radius-small;
|
30
|
-
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
|
31
|
-
|
32
|
-
kbd {
|
33
|
-
padding: 0;
|
34
|
-
font-size: 100%;
|
35
|
-
box-shadow: none;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
// Blocks of code
|
40
|
-
pre {
|
41
|
-
display: block;
|
42
|
-
padding: (($line-height-computed - 1) / 2);
|
43
|
-
margin: 0 0 ($line-height-computed / 2);
|
44
|
-
font-size: ($font-size-base - 1); // 14px to 13px
|
45
|
-
line-height: $line-height-base;
|
46
|
-
word-break: break-all;
|
47
|
-
word-wrap: break-word;
|
48
|
-
color: $pre-color;
|
49
|
-
background-color: $pre-bg;
|
50
|
-
border: 1px solid $pre-border-color;
|
51
|
-
border-radius: $border-radius-base;
|
52
|
-
|
53
|
-
// Account for some code outputs that place code tags in pre tags
|
54
|
-
code {
|
55
|
-
padding: 0;
|
56
|
-
font-size: inherit;
|
57
|
-
color: inherit;
|
58
|
-
white-space: pre-wrap;
|
59
|
-
background-color: transparent;
|
60
|
-
border-radius: 0;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
// Enable scrollable blocks of code
|
65
|
-
.pre-scrollable {
|
66
|
-
max-height: $pre-scrollable-max-height;
|
67
|
-
overflow-y: scroll;
|
68
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Component animations
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Heads up!
|
6
|
-
//
|
7
|
-
// We don't use the `.opacity()` mixin here since it causes a bug with text
|
8
|
-
// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
|
9
|
-
|
10
|
-
.fade {
|
11
|
-
opacity: 0;
|
12
|
-
@include transition(opacity .15s linear);
|
13
|
-
&.in {
|
14
|
-
opacity: 1;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
.collapse {
|
19
|
-
display: none;
|
20
|
-
|
21
|
-
&.in { display: block; }
|
22
|
-
// [converter] extracted tr&.in to tr.collapse.in
|
23
|
-
// [converter] extracted tbody&.in to tbody.collapse.in
|
24
|
-
}
|
25
|
-
|
26
|
-
tr.collapse.in { display: table-row; }
|
27
|
-
|
28
|
-
tbody.collapse.in { display: table-row-group; }
|
29
|
-
|
30
|
-
.collapsing {
|
31
|
-
position: relative;
|
32
|
-
height: 0;
|
33
|
-
overflow: hidden;
|
34
|
-
@include transition(height .35s ease);
|
35
|
-
}
|
@@ -1,215 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Dropdown menus
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Dropdown arrow/caret
|
7
|
-
.caret {
|
8
|
-
display: inline-block;
|
9
|
-
width: 0;
|
10
|
-
height: 0;
|
11
|
-
margin-left: 2px;
|
12
|
-
vertical-align: middle;
|
13
|
-
border-top: $caret-width-base solid;
|
14
|
-
border-right: $caret-width-base solid transparent;
|
15
|
-
border-left: $caret-width-base solid transparent;
|
16
|
-
}
|
17
|
-
|
18
|
-
// The dropdown wrapper (div)
|
19
|
-
.dropdown {
|
20
|
-
position: relative;
|
21
|
-
}
|
22
|
-
|
23
|
-
// Prevent the focus on the dropdown toggle when closing dropdowns
|
24
|
-
.dropdown-toggle:focus {
|
25
|
-
outline: 0;
|
26
|
-
}
|
27
|
-
|
28
|
-
// The dropdown menu (ul)
|
29
|
-
.dropdown-menu {
|
30
|
-
position: absolute;
|
31
|
-
top: 100%;
|
32
|
-
left: 0;
|
33
|
-
z-index: $zindex-dropdown;
|
34
|
-
display: none; // none by default, but block on "open" of the menu
|
35
|
-
float: left;
|
36
|
-
min-width: 160px;
|
37
|
-
padding: 5px 0;
|
38
|
-
margin: 2px 0 0; // override default ul
|
39
|
-
list-style: none;
|
40
|
-
font-size: $font-size-base;
|
41
|
-
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
42
|
-
background-color: $dropdown-bg;
|
43
|
-
border: 1px solid $dropdown-fallback-border; // IE8 fallback
|
44
|
-
border: 1px solid $dropdown-border;
|
45
|
-
border-radius: $border-radius-base;
|
46
|
-
@include box-shadow(0 6px 12px rgba(0,0,0,.175));
|
47
|
-
background-clip: padding-box;
|
48
|
-
|
49
|
-
// Aligns the dropdown menu to right
|
50
|
-
//
|
51
|
-
// Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
|
52
|
-
&.pull-right {
|
53
|
-
right: 0;
|
54
|
-
left: auto;
|
55
|
-
}
|
56
|
-
|
57
|
-
// Dividers (basically an hr) within the dropdown
|
58
|
-
.divider {
|
59
|
-
@include nav-divider($dropdown-divider-bg);
|
60
|
-
}
|
61
|
-
|
62
|
-
// Links within the dropdown menu
|
63
|
-
> li > a {
|
64
|
-
display: block;
|
65
|
-
padding: 3px 20px;
|
66
|
-
clear: both;
|
67
|
-
font-weight: normal;
|
68
|
-
line-height: $line-height-base;
|
69
|
-
color: $dropdown-link-color;
|
70
|
-
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
// Hover/Focus state
|
75
|
-
.dropdown-menu > li > a {
|
76
|
-
&:hover,
|
77
|
-
&:focus {
|
78
|
-
text-decoration: none;
|
79
|
-
color: $dropdown-link-hover-color;
|
80
|
-
background-color: $dropdown-link-hover-bg;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
// Active state
|
85
|
-
.dropdown-menu > .active > a {
|
86
|
-
&,
|
87
|
-
&:hover,
|
88
|
-
&:focus {
|
89
|
-
color: $dropdown-link-active-color;
|
90
|
-
text-decoration: none;
|
91
|
-
outline: 0;
|
92
|
-
background-color: $dropdown-link-active-bg;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
// Disabled state
|
97
|
-
//
|
98
|
-
// Gray out text and ensure the hover/focus state remains gray
|
99
|
-
|
100
|
-
.dropdown-menu > .disabled > a {
|
101
|
-
&,
|
102
|
-
&:hover,
|
103
|
-
&:focus {
|
104
|
-
color: $dropdown-link-disabled-color;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
// Nuke hover/focus effects
|
108
|
-
.dropdown-menu > .disabled > a {
|
109
|
-
&:hover,
|
110
|
-
&:focus {
|
111
|
-
text-decoration: none;
|
112
|
-
background-color: transparent;
|
113
|
-
background-image: none; // Remove CSS gradient
|
114
|
-
@include reset-filter();
|
115
|
-
cursor: not-allowed;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
// Open state for the dropdown
|
120
|
-
.open {
|
121
|
-
// Show the menu
|
122
|
-
> .dropdown-menu {
|
123
|
-
display: block;
|
124
|
-
}
|
125
|
-
|
126
|
-
// Remove the outline when :focus is triggered
|
127
|
-
> a {
|
128
|
-
outline: 0;
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
// Menu positioning
|
133
|
-
//
|
134
|
-
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
135
|
-
// menu with the parent.
|
136
|
-
.dropdown-menu-right {
|
137
|
-
left: auto; // Reset the default from `.dropdown-menu`
|
138
|
-
right: 0;
|
139
|
-
}
|
140
|
-
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
141
|
-
// aligned nav component. To enable the undoing of that, we provide an override
|
142
|
-
// to restore the default dropdown menu alignment.
|
143
|
-
//
|
144
|
-
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
145
|
-
// `.pull-right` nav component.
|
146
|
-
.dropdown-menu-left {
|
147
|
-
left: 0;
|
148
|
-
right: auto;
|
149
|
-
}
|
150
|
-
|
151
|
-
// Dropdown section headers
|
152
|
-
.dropdown-header {
|
153
|
-
display: block;
|
154
|
-
padding: 3px 20px;
|
155
|
-
font-size: $font-size-small;
|
156
|
-
line-height: $line-height-base;
|
157
|
-
color: $dropdown-header-color;
|
158
|
-
white-space: nowrap; // as with > li > a
|
159
|
-
}
|
160
|
-
|
161
|
-
// Backdrop to catch body clicks on mobile, etc.
|
162
|
-
.dropdown-backdrop {
|
163
|
-
position: fixed;
|
164
|
-
left: 0;
|
165
|
-
right: 0;
|
166
|
-
bottom: 0;
|
167
|
-
top: 0;
|
168
|
-
z-index: ($zindex-dropdown - 10);
|
169
|
-
}
|
170
|
-
|
171
|
-
// Right aligned dropdowns
|
172
|
-
.pull-right > .dropdown-menu {
|
173
|
-
right: 0;
|
174
|
-
left: auto;
|
175
|
-
}
|
176
|
-
|
177
|
-
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
178
|
-
//
|
179
|
-
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
180
|
-
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
181
|
-
|
182
|
-
.dropup,
|
183
|
-
.navbar-fixed-bottom .dropdown {
|
184
|
-
// Reverse the caret
|
185
|
-
.caret {
|
186
|
-
border-top: 0;
|
187
|
-
border-bottom: $caret-width-base solid;
|
188
|
-
content: "";
|
189
|
-
}
|
190
|
-
// Different positioning for bottom up menu
|
191
|
-
.dropdown-menu {
|
192
|
-
top: auto;
|
193
|
-
bottom: 100%;
|
194
|
-
margin-bottom: 1px;
|
195
|
-
}
|
196
|
-
}
|
197
|
-
|
198
|
-
|
199
|
-
// Component alignment
|
200
|
-
//
|
201
|
-
// Reiterate per navbar.less and the modified component alignment there.
|
202
|
-
|
203
|
-
@media (min-width: $grid-float-breakpoint) {
|
204
|
-
.navbar-right {
|
205
|
-
.dropdown-menu {
|
206
|
-
right: 0; left: auto;
|
207
|
-
}
|
208
|
-
// Necessary for overrides of the default right aligned menu.
|
209
|
-
// Will remove come v4 in all likelihood.
|
210
|
-
.dropdown-menu-left {
|
211
|
-
left: 0; right: auto;
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|