ui_bibz 2.5.6 → 3.0.0.alpha8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -2
- data/.rubocop.yml +78 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +92 -104
- data/README.md +9 -52
- data/Rakefile +3 -2
- data/bin/test +7 -0
- data/config/initializers/will_paginate.rb +2 -1
- data/lib/ui_bibz.rb +17 -3
- data/lib/ui_bibz/concerns/models/searchable.rb +3 -3
- data/lib/ui_bibz/helpers/ui/core/boxes_helper.rb +9 -1
- data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -1
- data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +10 -2
- data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +1 -1
- data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +9 -5
- data/lib/ui_bibz/helpers/ui/ux_helper.rb +2 -6
- data/lib/ui_bibz/infos.rb +11 -5
- data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +15 -2
- data/lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb +4 -7
- data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +6 -9
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_checkbox_field_input.rb +5 -1
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_field_input.rb +23 -0
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +3 -3
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_slider_field_input.rb +12 -0
- data/lib/ui_bibz/rails/engine.rb +1 -16
- data/lib/ui_bibz/railtie.rb +6 -0
- data/lib/ui_bibz/ui/concerns/card_itemable_concern.rb +67 -0
- data/lib/ui_bibz/ui/concerns/html_concern.rb +16 -0
- data/lib/ui_bibz/ui/core/boxes/card.rb +5 -50
- data/lib/ui_bibz/ui/core/boxes/card_accordion.rb +2 -0
- data/lib/ui_bibz/ui/core/boxes/card_column.rb +3 -1
- data/lib/ui_bibz/ui/core/boxes/card_deck.rb +3 -1
- data/lib/ui_bibz/ui/core/boxes/card_grid.rb +60 -0
- data/lib/ui_bibz/ui/core/boxes/card_group.rb +3 -1
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +0 -3
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_subtitle.rb +47 -0
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +0 -3
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -4
- data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +15 -0
- data/lib/ui_bibz/ui/core/boxes/components/card_col.rb +65 -0
- data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +0 -3
- data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +2 -4
- data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -4
- data/lib/ui_bibz/ui/core/boxes/components/card_row.rb +65 -0
- data/lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb +0 -4
- data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -4
- data/lib/ui_bibz/ui/core/component.rb +16 -9
- data/lib/ui_bibz/ui/core/forms/buttons/button.rb +2 -2
- data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +9 -11
- data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_split_dropdown.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/choices/box_switch_field.rb +7 -10
- data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +20 -10
- data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +22 -2
- data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +24 -12
- data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +17 -6
- data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +5 -5
- data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +12 -15
- data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_divider.rb +0 -1
- data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +19 -20
- data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +7 -5
- data/lib/ui_bibz/ui/core/forms/files/file_field.rb +20 -10
- data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +18 -8
- data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +20 -3
- data/lib/ui_bibz/ui/core/forms/numbers/range_field.rb +51 -5
- data/lib/ui_bibz/ui/core/forms/numbers/slider_field.rb +144 -0
- data/lib/ui_bibz/ui/core/forms/numbers/slider_header.rb +71 -0
- data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +41 -62
- data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +2 -5
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -4
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +1 -6
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +1 -6
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -12
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb +9 -4
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb +9 -4
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb +0 -3
- data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +4 -12
- data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +4 -7
- data/lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb +2 -5
- data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +0 -3
- data/lib/ui_bibz/ui/core/icons/components/glyph_counter.rb +0 -3
- data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +1 -4
- data/lib/ui_bibz/ui/core/icons/glyph.rb +1 -4
- data/lib/ui_bibz/ui/core/icons/star.rb +0 -3
- data/lib/ui_bibz/ui/core/layouts/col.rb +5 -42
- data/lib/ui_bibz/ui/core/layouts/container.rb +9 -6
- data/lib/ui_bibz/ui/core/layouts/row.rb +32 -2
- data/lib/ui_bibz/ui/core/lists/components/list.rb +6 -8
- data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +0 -3
- data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +0 -3
- data/lib/ui_bibz/ui/core/lists/list_group.rb +9 -6
- data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +3 -2
- data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +0 -3
- data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +2 -5
- data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +3 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +15 -6
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +0 -4
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -4
- data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +0 -3
- data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +0 -3
- data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +4 -4
- data/lib/ui_bibz/ui/core/navigations/components/navbar_nav.rb +1 -4
- data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +0 -3
- data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +0 -3
- data/lib/ui_bibz/ui/core/navigations/components/toolbar_form.rb +3 -3
- data/lib/ui_bibz/ui/core/navigations/link.rb +0 -3
- data/lib/ui_bibz/ui/core/navigations/nav.rb +37 -10
- data/lib/ui_bibz/ui/core/navigations/navbar.rb +31 -8
- data/lib/ui_bibz/ui/core/navigations/pagination.rb +3 -1
- data/lib/ui_bibz/ui/core/navigations/tab_group.rb +10 -5
- data/lib/ui_bibz/ui/core/navigations/toolbar.rb +2 -0
- data/lib/ui_bibz/ui/core/notifications/alert.rb +2 -2
- data/lib/ui_bibz/ui/core/notifications/badge.rb +2 -5
- data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +0 -3
- data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +4 -10
- data/lib/ui_bibz/ui/core/notifications/components/bar.rb +0 -3
- data/lib/ui_bibz/ui/core/notifications/components/toast_body.rb +0 -3
- data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +1 -6
- data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +7 -5
- data/lib/ui_bibz/ui/core/notifications/spinner.rb +0 -3
- data/lib/ui_bibz/ui/core/notifications/toast.rb +14 -3
- data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +0 -3
- data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +0 -3
- data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -7
- data/lib/ui_bibz/ui/core/windows/modal.rb +65 -14
- data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +6 -2
- data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +9 -9
- data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +2 -2
- data/lib/ui_bibz/ui/extensions/core/forms/surround_extension.rb +1 -1
- data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +0 -3
- data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +2 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +2 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +0 -3
- data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +2 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +4 -6
- data/lib/ui_bibz/ui/ux/containers/components/panel_header_title.rb +47 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_tab_group.rb +0 -4
- data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +0 -3
- data/lib/ui_bibz/ui/ux/containers/panel.rb +4 -2
- data/lib/ui_bibz/ui/ux/tables/components/thead.rb +0 -3
- data/lib/ui_bibz/ui/ux/tables/table.rb +2 -4
- data/lib/ui_bibz/ui/ux/tables/table_card.rb +4 -3
- data/lib/ui_bibz/ui/ux/tables/table_pagination_per_page.rb +3 -3
- data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +8 -8
- data/lib/ui_bibz/utils/breakdown_class_name_generator.rb +82 -0
- data/lib/ui_bibz/utils/internationalization.rb +2 -2
- data/lib/ui_bibz/utils/screwdriver.rb +16 -10
- data/test/dummy/Rakefile +1 -1
- data/test/dummy/app/javascripts/packs/index.js +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +4 -1
- data/{app/ui/.keep → test/dummy/app/views/users/index.html.erb} +0 -0
- data/test/dummy/bin/setup +17 -13
- data/test/dummy/config.ru +2 -1
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/database.yml +1 -1
- data/test/dummy/config/environment.rb +1 -1
- data/test/dummy/config/environments/development.rb +33 -12
- data/test/dummy/config/environments/production.rb +52 -19
- data/test/dummy/config/environments/test.rb +18 -12
- data/test/dummy/config/initializers/application_controller_renderer.rb +9 -0
- data/test/dummy/config/initializers/assets.rb +4 -3
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -1
- data/test/dummy/config/initializers/content_security_policy.rb +29 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/test/dummy/config/initializers/inflections.rb +0 -1
- data/test/dummy/config/initializers/mime_types.rb +0 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
- data/test/dummy/config/puma.rb +40 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config/spring.rb +8 -0
- data/test/dummy/config/storage.yml +34 -0
- data/test/dummy/db/migrate/20150123191805_create_users.rb +1 -1
- data/test/dummy/db/schema.rb +24 -24
- data/test/dummy/public/404.html +6 -6
- data/test/dummy/public/422.html +6 -6
- data/test/dummy/public/500.html +6 -6
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/storage/.keep +0 -0
- data/test/simple_form_test.rb +45 -44
- data/test/store_test.rb +5 -5
- data/test/test_helper.rb +18 -9
- data/test/ui/core/boxes/card_grid_test.rb +17 -0
- data/test/ui/core/boxes/card_test.rb +46 -12
- data/test/ui/core/boxes/jumbotron_test.rb +2 -2
- data/test/ui/core/component_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_test.rb +2 -2
- data/test/ui/core/forms/choices/checkbox_field_test.rb +9 -2
- data/test/ui/core/forms/choices/choice_group_test.rb +11 -9
- data/test/ui/core/forms/choices/radio_field_test.rb +1 -1
- data/test/ui/core/forms/dates/date_picker_field_test.rb +1 -1
- data/test/ui/core/forms/dropdowns/dropdown_test.rb +2 -2
- data/test/ui/core/forms/files/file_field_test.rb +12 -0
- data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
- data/test/ui/core/forms/numbers/range_field_test.rb +37 -2
- data/test/ui/core/forms/numbers/slider_field_test.rb +26 -0
- data/test/ui/core/forms/selects/multi_column_field_test.rb +1 -1
- data/test/ui/core/forms/selects/multi_select_field_test.rb +7 -7
- data/test/ui/core/forms/selects/select_field_test.rb +3 -3
- data/test/ui/core/forms/surrounds/surround_field_test.rb +40 -4
- data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +1 -1
- data/test/ui/core/forms/texts/auto_complete_field_test.rb +8 -8
- data/test/ui/core/forms/texts/text_field_test.rb +2 -2
- data/test/ui/core/layouts/col_test.rb +11 -2
- data/test/ui/core/layouts/container_test.rb +15 -1
- data/test/ui/core/layouts/row_test.rb +68 -3
- data/test/ui/core/lists/list_group_test.rb +1 -1
- data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
- data/test/ui/core/navigations/link_test.rb +1 -1
- data/test/ui/core/navigations/nav_test.rb +17 -5
- data/test/ui/core/navigations/navbar_test.rb +7 -8
- data/test/ui/core/navigations/tab_group_test.rb +4 -4
- data/test/ui/core/notifications/alert_test.rb +2 -2
- data/test/ui/core/notifications/badge_test.rb +3 -3
- data/test/ui/core/notifications/progress_bar_test.rb +1 -1
- data/test/ui/core/notifications/toast_test.rb +10 -1
- data/test/ui/core/windows/modal_test.rb +15 -1
- data/test/ui/utils/breakdown_class_name_generator_test.rb +74 -0
- data/test/ui/ux/containers/panel_test.rb +5 -5
- data/test/ui/ux/tables/table_test.rb +6 -6
- data/test/ui_bibz_test.rb +1 -1
- data/ui_bibz.gemspec +16 -16
- metadata +100 -108
- data/app/assets/javascripts/fix_bootstrap.coffee +0 -7
- data/app/assets/javascripts/form.coffee +0 -83
- data/app/assets/javascripts/formula.coffee +0 -69
- data/app/assets/javascripts/input-connected.coffee +0 -101
- data/app/assets/javascripts/interface.coffee +0 -55
- data/app/assets/javascripts/jquery.multi-select-extend.coffee +0 -38
- data/app/assets/javascripts/table.coffee +0 -36
- data/app/assets/javascripts/ui_bibz.coffee.erb +0 -75
- data/app/assets/stylesheets/_custom_variables.sass +0 -20
- data/app/assets/stylesheets/_panel.scss +0 -315
- data/app/assets/stylesheets/bootstrap-switch.sass +0 -159
- data/app/assets/stylesheets/boxes.sass +0 -5
- data/app/assets/stylesheets/containers.sass +0 -2
- data/app/assets/stylesheets/fix-bootstrap-4.sass +0 -19
- data/app/assets/stylesheets/fix_addon.sass +0 -216
- data/app/assets/stylesheets/forms.sass +0 -91
- data/app/assets/stylesheets/navigations.sass +0 -17
- data/app/assets/stylesheets/notifications.sass +0 -42
- data/app/assets/stylesheets/tables.sass +0 -66
- data/app/assets/stylesheets/ui_bibz.sass.erb +0 -55
- data/lib/generators/ui_bibz/install_generator.rb +0 -17
- data/lib/generators/ui_bibz/templates/ui_bibz_initializer.rb +0 -5
- data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +0 -125
- data/lib/ui_bibz/ui/core/icons/glyph_group.rb +0 -101
- data/test/dummy/bin/bundle +0 -5
- data/test/ui/core/forms/files/text_field_test.rb +0 -12
- data/test/ui/core/forms/selects/dropdown_select_field_test.rb +0 -84
- data/test/ui/core/icons/glyph_group_test.rb +0 -37
@@ -1,20 +0,0 @@
|
|
1
|
-
// Panel
|
2
|
-
|
3
|
-
$panel-spacer: .75rem !default
|
4
|
-
$panel-spacer-y: .75rem !default
|
5
|
-
$panel-spacer-x: 1.25rem !default
|
6
|
-
$panel-border-width: $border-width !default
|
7
|
-
$panel-border-radius: $border-radius !default
|
8
|
-
$panel-border-color: $card-border-color
|
9
|
-
$panel-inner-border-radius: calc(#{$panel-border-radius} - #{$panel-border-width}) !default
|
10
|
-
$panel-cap-bg: $card-cap-bg
|
11
|
-
$panel-bg: $card-bg
|
12
|
-
|
13
|
-
$panel-img-overlay-padding: 1.25rem !default
|
14
|
-
|
15
|
-
$panel-group-margin: $panel-spacer/2 !default
|
16
|
-
$panel-deck-margin: $panel-group-margin !default
|
17
|
-
|
18
|
-
$panel-columns-count: 3 !default
|
19
|
-
$panel-columns-gap: 1.25rem !default
|
20
|
-
$panel-columns-margin: $panel-spacer-y !default
|
@@ -1,315 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Base styles
|
3
|
-
//
|
4
|
-
|
5
|
-
.panel {
|
6
|
-
margin: 0;
|
7
|
-
padding: 0;
|
8
|
-
position: relative;
|
9
|
-
display: flex;
|
10
|
-
flex-direction: column;
|
11
|
-
min-width: 0;
|
12
|
-
word-wrap: break-word;
|
13
|
-
background-color: $panel-bg;
|
14
|
-
background-clip: border-box;
|
15
|
-
border: $panel-border-width solid $panel-border-color;
|
16
|
-
@include border-radius($panel-border-radius);
|
17
|
-
|
18
|
-
> hr {
|
19
|
-
margin-right: 0;
|
20
|
-
margin-left: 0;
|
21
|
-
}
|
22
|
-
|
23
|
-
> .list-group:first-child {
|
24
|
-
.list-group-item:first-child {
|
25
|
-
@include border-top-radius($panel-border-radius);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
> .list-group:last-child {
|
30
|
-
.list-group-item:last-child {
|
31
|
-
@include border-bottom-radius($panel-border-radius);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
// Select all panel toolbar except the first
|
36
|
-
> .panel-toolbar ~ .panel-toolbar {
|
37
|
-
border-top: $panel-border-width solid $panel-border-color;
|
38
|
-
border-bottom: $panel-border-width solid $panel-border-color;
|
39
|
-
}
|
40
|
-
|
41
|
-
// Select first panel-toolbar
|
42
|
-
> .panel-toolbar {
|
43
|
-
border-top: none;
|
44
|
-
padding: $panel-spacer;
|
45
|
-
background-color: $panel-cap-bg;
|
46
|
-
border-bottom: $panel-border-width solid $panel-border-color;
|
47
|
-
}
|
48
|
-
|
49
|
-
> .panel-toolbar ~ .panel-toolbar {
|
50
|
-
border-bottom: none !important;
|
51
|
-
}
|
52
|
-
// Select last panel-toolbar
|
53
|
-
|
54
|
-
}
|
55
|
-
|
56
|
-
.panel-body {
|
57
|
-
// Enable `flex-grow: 1` for decks and groups so that panel blocks take up
|
58
|
-
// as much space as possible, ensuring footers are aligned to the bottom.
|
59
|
-
flex: 1 1 auto;
|
60
|
-
padding: $panel-spacer;
|
61
|
-
}
|
62
|
-
|
63
|
-
.panel-title {
|
64
|
-
margin-bottom: $panel-spacer-y;
|
65
|
-
}
|
66
|
-
|
67
|
-
.panel-subtitle {
|
68
|
-
margin-top: -($panel-spacer-y / 2);
|
69
|
-
margin-bottom: 0;
|
70
|
-
}
|
71
|
-
|
72
|
-
.panel-text:last-child {
|
73
|
-
margin-bottom: 0;
|
74
|
-
}
|
75
|
-
|
76
|
-
.panel-link {
|
77
|
-
@include hover {
|
78
|
-
text-decoration: none;
|
79
|
-
}
|
80
|
-
|
81
|
-
+ .panel-link {
|
82
|
-
margin-left: $panel-spacer-x;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
//
|
87
|
-
// Optional textual caps
|
88
|
-
//
|
89
|
-
|
90
|
-
.panel-header {
|
91
|
-
padding: $panel-spacer;
|
92
|
-
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
93
|
-
background-color: $panel-cap-bg;
|
94
|
-
border-bottom: $panel-border-width solid $panel-border-color;
|
95
|
-
display: flex;
|
96
|
-
|
97
|
-
> div:not(.dropdown) {
|
98
|
-
position: relative;
|
99
|
-
display: inline-flex;
|
100
|
-
vertical-align: middle;
|
101
|
-
}
|
102
|
-
|
103
|
-
&:first-child {
|
104
|
-
@include border-radius($panel-inner-border-radius $panel-inner-border-radius 0 0);
|
105
|
-
}
|
106
|
-
|
107
|
-
+ .list-group {
|
108
|
-
.list-group-item:first-child {
|
109
|
-
border-top: 0;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
.panel-title {
|
114
|
-
padding: 0;
|
115
|
-
margin: 0;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
|
120
|
-
.panel-footer {
|
121
|
-
padding: $panel-spacer-y;
|
122
|
-
background-color: $panel-cap-bg;
|
123
|
-
border-top: $panel-border-width solid $panel-border-color;
|
124
|
-
|
125
|
-
&:last-child {
|
126
|
-
@include border-radius(0 0 $panel-inner-border-radius $panel-inner-border-radius);
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
.panel-toolbar .btn-toolbar{
|
131
|
-
margin: 0;
|
132
|
-
}
|
133
|
-
|
134
|
-
//
|
135
|
-
// Header navs
|
136
|
-
//
|
137
|
-
|
138
|
-
.panel-header-tabs {
|
139
|
-
margin-right: -($panel-spacer-x / 2);
|
140
|
-
margin-bottom: -$panel-spacer-y;
|
141
|
-
margin-left: 0;
|
142
|
-
border-bottom: 0;
|
143
|
-
}
|
144
|
-
|
145
|
-
.panel-header-pills {
|
146
|
-
margin-right: -($panel-spacer-x / 2);
|
147
|
-
margin-left: -($panel-spacer-x / 2);
|
148
|
-
}
|
149
|
-
|
150
|
-
// panel image
|
151
|
-
.panel-img-overlay {
|
152
|
-
position: absolute;
|
153
|
-
top: 0;
|
154
|
-
right: 0;
|
155
|
-
bottom: 0;
|
156
|
-
left: 0;
|
157
|
-
padding: $panel-img-overlay-padding;
|
158
|
-
}
|
159
|
-
|
160
|
-
.panel-img {
|
161
|
-
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
162
|
-
@include border-radius($panel-inner-border-radius);
|
163
|
-
}
|
164
|
-
|
165
|
-
// panel image caps
|
166
|
-
.panel-img-top {
|
167
|
-
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
168
|
-
@include border-top-radius($panel-inner-border-radius);
|
169
|
-
}
|
170
|
-
|
171
|
-
.panel-img-bottom {
|
172
|
-
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
173
|
-
@include border-bottom-radius($panel-inner-border-radius);
|
174
|
-
}
|
175
|
-
|
176
|
-
|
177
|
-
// panel deck
|
178
|
-
|
179
|
-
.panel-deck {
|
180
|
-
display: flex;
|
181
|
-
padding: $panel-spacer;
|
182
|
-
flex-direction: column;
|
183
|
-
|
184
|
-
& > .panel {
|
185
|
-
margin-bottom: $panel-deck-margin;
|
186
|
-
}
|
187
|
-
|
188
|
-
@include media-breakpoint-up(sm) {
|
189
|
-
flex-flow: row wrap;
|
190
|
-
margin-right: -$panel-deck-margin;
|
191
|
-
margin-left: -$panel-deck-margin;
|
192
|
-
|
193
|
-
& > .panel {
|
194
|
-
display: flex;
|
195
|
-
// Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
|
196
|
-
flex: 1 0 0%;
|
197
|
-
flex-direction: column;
|
198
|
-
margin-right: $panel-deck-margin;
|
199
|
-
margin-bottom: 0; // Override the default
|
200
|
-
margin-left: $panel-deck-margin;
|
201
|
-
}
|
202
|
-
}
|
203
|
-
}
|
204
|
-
|
205
|
-
|
206
|
-
//
|
207
|
-
// panel groups
|
208
|
-
//
|
209
|
-
|
210
|
-
.panel-group {
|
211
|
-
display: flex;
|
212
|
-
flex-direction: column;
|
213
|
-
|
214
|
-
.panel {
|
215
|
-
border-radius: 0;
|
216
|
-
border: none;
|
217
|
-
border-right: $panel-border-width solid $panel-border-color;
|
218
|
-
margin-bottom: $panel-group-margin;
|
219
|
-
}
|
220
|
-
|
221
|
-
.panel:last-child {
|
222
|
-
border-right: none;
|
223
|
-
}
|
224
|
-
|
225
|
-
@include media-breakpoint-up(sm) {
|
226
|
-
flex-flow: row wrap;
|
227
|
-
|
228
|
-
.panel {
|
229
|
-
// Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
|
230
|
-
flex: 1 0 0%;
|
231
|
-
margin-bottom: 0;
|
232
|
-
|
233
|
-
+ .panel {
|
234
|
-
margin-left: 0;
|
235
|
-
border-left: 0;
|
236
|
-
}
|
237
|
-
|
238
|
-
|
239
|
-
// Handle rounded corners
|
240
|
-
@if $enable-rounded {
|
241
|
-
&:first-child {
|
242
|
-
@include border-right-radius(0);
|
243
|
-
|
244
|
-
.panel-img-top,
|
245
|
-
.panel-header {
|
246
|
-
border-top-right-radius: 0;
|
247
|
-
}
|
248
|
-
.panel-img-bottom,
|
249
|
-
.panel-footer {
|
250
|
-
border-bottom-right-radius: 0;
|
251
|
-
}
|
252
|
-
}
|
253
|
-
|
254
|
-
&:last-child {
|
255
|
-
@include border-left-radius(0);
|
256
|
-
|
257
|
-
.panel-img-top,
|
258
|
-
.panel-header {
|
259
|
-
border-top-left-radius: 0;
|
260
|
-
}
|
261
|
-
.panel-img-bottom,
|
262
|
-
.panel-footer {
|
263
|
-
border-bottom-left-radius: 0;
|
264
|
-
}
|
265
|
-
}
|
266
|
-
|
267
|
-
&:only-child {
|
268
|
-
@include border-radius($panel-border-radius);
|
269
|
-
|
270
|
-
.panel-img-top,
|
271
|
-
.panel-header {
|
272
|
-
@include border-top-radius($panel-border-radius);
|
273
|
-
}
|
274
|
-
.panel-img-bottom,
|
275
|
-
.panel-footer {
|
276
|
-
@include border-bottom-radius($panel-border-radius);
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
&:not(:first-child):not(:last-child):not(:only-child) {
|
281
|
-
@include border-radius(0);
|
282
|
-
|
283
|
-
.panel-img-top,
|
284
|
-
.panel-img-bottom,
|
285
|
-
.panel-header,
|
286
|
-
.panel-footer {
|
287
|
-
@include border-radius(0);
|
288
|
-
}
|
289
|
-
}
|
290
|
-
}
|
291
|
-
}
|
292
|
-
}
|
293
|
-
}
|
294
|
-
|
295
|
-
|
296
|
-
//
|
297
|
-
// Columns
|
298
|
-
//
|
299
|
-
|
300
|
-
.panel-columns {
|
301
|
-
padding: $panel-spacer;
|
302
|
-
.panel {
|
303
|
-
margin-bottom: $panel-columns-margin;
|
304
|
-
}
|
305
|
-
|
306
|
-
@include media-breakpoint-up(sm) {
|
307
|
-
column-count: $panel-columns-count;
|
308
|
-
column-gap: $panel-columns-gap;
|
309
|
-
|
310
|
-
.panel {
|
311
|
-
display: inline-block; // Don't let them vertically span multiple columns
|
312
|
-
width: 100%; // Don't let their width change
|
313
|
-
}
|
314
|
-
}
|
315
|
-
}
|
@@ -1,159 +0,0 @@
|
|
1
|
-
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.3.2
|
3
|
-
* http://www.bootstrap-switch.org
|
4
|
-
* ========================================================================
|
5
|
-
* Copyright 2012-2013 Mattia Larentis
|
6
|
-
*
|
7
|
-
* ========================================================================
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the License);
|
9
|
-
* you may not use this file except in compliance with the License.
|
10
|
-
* You may obtain a copy of the License at
|
11
|
-
*
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
*
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
15
|
-
* distributed under the License is distributed on an AS IS BASIS,
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
* See the License for the specific language governing permissions and
|
18
|
-
* limitations under the License.
|
19
|
-
* ========================================================================
|
20
|
-
*/
|
21
|
-
|
22
|
-
.bootstrap-switch
|
23
|
-
display: inline-block
|
24
|
-
direction: ltr
|
25
|
-
cursor: pointer
|
26
|
-
border-radius: 5px
|
27
|
-
border: 1px solid #ccc
|
28
|
-
position: relative
|
29
|
-
text-align: left
|
30
|
-
overflow: hidden
|
31
|
-
line-height: 8px
|
32
|
-
z-index: 0
|
33
|
-
-webkit-user-select: none
|
34
|
-
-moz-user-select: none
|
35
|
-
-ms-user-select: none
|
36
|
-
user-select: none
|
37
|
-
vertical-align: middle
|
38
|
-
-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
|
39
|
-
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
|
40
|
-
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
|
41
|
-
.bootstrap-switch-container
|
42
|
-
display: inline-block
|
43
|
-
top: 0
|
44
|
-
border-radius: 4px
|
45
|
-
-webkit-transform: translate3d(0, 0, 0)
|
46
|
-
transform: translate3d(0, 0, 0)
|
47
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
48
|
-
-webkit-box-sizing: border-box
|
49
|
-
-moz-box-sizing: border-box
|
50
|
-
box-sizing: border-box
|
51
|
-
cursor: pointer
|
52
|
-
display: inline-block !important
|
53
|
-
padding: 6px 12px
|
54
|
-
font-size: 14px
|
55
|
-
line-height: 20px
|
56
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on
|
57
|
-
text-align: center
|
58
|
-
z-index: 1
|
59
|
-
.bootstrap-switch-handle-off.bootstrap-switch-primary, .bootstrap-switch-handle-on.bootstrap-switch-primary
|
60
|
-
color: #fff
|
61
|
-
background: theme-color(primary)
|
62
|
-
.bootstrap-switch-handle-off.bootstrap-switch-info, .bootstrap-switch-handle-on.bootstrap-switch-info
|
63
|
-
color: #fff
|
64
|
-
background: theme-color(info)
|
65
|
-
.bootstrap-switch-handle-off.bootstrap-switch-success, .bootstrap-switch-handle-on.bootstrap-switch-success
|
66
|
-
color: #fff
|
67
|
-
background: theme-color(success)
|
68
|
-
.bootstrap-switch-handle-off.bootstrap-switch-warning, .bootstrap-switch-handle-on.bootstrap-switch-warning
|
69
|
-
background: theme-color(warning)
|
70
|
-
color: #fff
|
71
|
-
.bootstrap-switch-handle-off.bootstrap-switch-danger, .bootstrap-switch-handle-on.bootstrap-switch-danger
|
72
|
-
color: #fff
|
73
|
-
background: theme-color(danger)
|
74
|
-
.bootstrap-switch-handle-off.bootstrap-switch-default, .bootstrap-switch-handle-on.bootstrap-switch-default
|
75
|
-
color: #000
|
76
|
-
background: theme-color(secondary)
|
77
|
-
.bootstrap-switch-label
|
78
|
-
text-align: center
|
79
|
-
margin-top: -1px
|
80
|
-
margin-bottom: -1px
|
81
|
-
z-index: 100
|
82
|
-
color: #333
|
83
|
-
background: #fff
|
84
|
-
.bootstrap-switch-handle-on
|
85
|
-
border-bottom-left-radius: 3px
|
86
|
-
border-top-left-radius: 3px
|
87
|
-
.bootstrap-switch-handle-off
|
88
|
-
border-bottom-right-radius: 3px
|
89
|
-
border-top-right-radius: 3px
|
90
|
-
input
|
91
|
-
&[type=radio], &[type=checkbox]
|
92
|
-
position: absolute !important
|
93
|
-
top: 0
|
94
|
-
left: 0
|
95
|
-
margin: 0
|
96
|
-
z-index: -1
|
97
|
-
opacity: 0
|
98
|
-
filter: alpha(opacity = 0)
|
99
|
-
&.bootstrap-switch-mini
|
100
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
101
|
-
padding: 1px 5px
|
102
|
-
font-size: 12px
|
103
|
-
line-height: 1.5
|
104
|
-
&.bootstrap-switch-small
|
105
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
106
|
-
padding: 5px 10px
|
107
|
-
font-size: 12px
|
108
|
-
line-height: 1.5
|
109
|
-
&.bootstrap-switch-large
|
110
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
111
|
-
padding: 6px 16px
|
112
|
-
font-size: 18px
|
113
|
-
line-height: 1.3333333
|
114
|
-
&.bootstrap-switch-disabled, &.bootstrap-switch-indeterminate, &.bootstrap-switch-readonly
|
115
|
-
cursor: default !important
|
116
|
-
&.bootstrap-switch-disabled
|
117
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
118
|
-
opacity: .5
|
119
|
-
filter: alpha(opacity = 50)
|
120
|
-
cursor: default !important
|
121
|
-
&.bootstrap-switch-indeterminate
|
122
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
123
|
-
opacity: .5
|
124
|
-
filter: alpha(opacity = 50)
|
125
|
-
cursor: default !important
|
126
|
-
&.bootstrap-switch-readonly
|
127
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on, .bootstrap-switch-label
|
128
|
-
opacity: .5
|
129
|
-
filter: alpha(opacity = 50)
|
130
|
-
cursor: default !important
|
131
|
-
&.bootstrap-switch-animate .bootstrap-switch-container
|
132
|
-
-webkit-transition: margin-left .5s
|
133
|
-
-o-transition: margin-left .5s
|
134
|
-
transition: margin-left .5s
|
135
|
-
&.bootstrap-switch-inverse
|
136
|
-
.bootstrap-switch-handle-on
|
137
|
-
border-radius: 0 3px 3px 0
|
138
|
-
.bootstrap-switch-handle-off
|
139
|
-
border-radius: 3px 0 0 3px
|
140
|
-
&.bootstrap-switch-focused
|
141
|
-
//border-color: #66afe9
|
142
|
-
outline: 0
|
143
|
-
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6)
|
144
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6)
|
145
|
-
&.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label, &.bootstrap-switch-on .bootstrap-switch-label
|
146
|
-
border-bottom-right-radius: 3px
|
147
|
-
border-top-right-radius: 3px
|
148
|
-
&.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label, &.bootstrap-switch-off .bootstrap-switch-label
|
149
|
-
border-bottom-left-radius: 3px
|
150
|
-
border-top-left-radius: 3px
|
151
|
-
|
152
|
-
.bootstrap-switch-handle-off
|
153
|
-
color: white !important
|
154
|
-
|
155
|
-
.switch-field-container.btn-group
|
156
|
-
display: inline
|
157
|
-
|
158
|
-
.bootstrap-switch-handle-off, .bootstrap-switch-handle-on
|
159
|
-
word-wrap: normal
|