ui_bibz 2.5.3 → 3.0.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +2 -2
  3. data/.gitignore +3 -2
  4. data/.rubocop.yml +107 -1
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/Gemfile +1 -0
  8. data/Gemfile.lock +102 -111
  9. data/README.md +9 -52
  10. data/Rakefile +3 -2
  11. data/bin/test +7 -0
  12. data/config/initializers/will_paginate.rb +2 -1
  13. data/lib/ui_bibz.rb +17 -3
  14. data/lib/ui_bibz/concerns/models/searchable.rb +3 -3
  15. data/lib/ui_bibz/helpers/ui/core/boxes_helper.rb +9 -1
  16. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -1
  17. data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +10 -2
  18. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +1 -1
  19. data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +9 -5
  20. data/lib/ui_bibz/helpers/ui/ux_helper.rb +2 -6
  21. data/lib/ui_bibz/infos.rb +11 -5
  22. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +15 -2
  23. data/lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb +4 -7
  24. data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +6 -9
  25. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_checkbox_field_input.rb +5 -1
  26. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_field_input.rb +23 -0
  27. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +3 -3
  28. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_slider_field_input.rb +12 -0
  29. data/lib/ui_bibz/rails/engine.rb +1 -16
  30. data/lib/ui_bibz/railtie.rb +6 -0
  31. data/lib/ui_bibz/ui/concerns/card_itemable_concern.rb +67 -0
  32. data/lib/ui_bibz/ui/concerns/html_concern.rb +16 -0
  33. data/lib/ui_bibz/ui/core/boxes/card.rb +5 -50
  34. data/lib/ui_bibz/ui/core/boxes/card_accordion.rb +2 -0
  35. data/lib/ui_bibz/ui/core/boxes/card_column.rb +3 -1
  36. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +3 -1
  37. data/lib/ui_bibz/ui/core/boxes/card_grid.rb +60 -0
  38. data/lib/ui_bibz/ui/core/boxes/card_group.rb +3 -1
  39. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +0 -3
  40. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_subtitle.rb +47 -0
  41. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +0 -3
  42. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -4
  43. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +15 -0
  44. data/lib/ui_bibz/ui/core/boxes/components/card_col.rb +65 -0
  45. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +0 -3
  46. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +2 -4
  47. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -4
  48. data/lib/ui_bibz/ui/core/boxes/components/card_row.rb +65 -0
  49. data/lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb +0 -4
  50. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -4
  51. data/lib/ui_bibz/ui/core/component.rb +16 -9
  52. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +1 -1
  53. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +9 -11
  54. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +0 -3
  55. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +0 -3
  56. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_split_dropdown.rb +0 -3
  57. data/lib/ui_bibz/ui/core/forms/choices/box_switch_field.rb +7 -10
  58. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +14 -10
  59. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +22 -2
  60. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +24 -12
  61. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +11 -6
  62. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +1 -5
  63. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +12 -15
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_divider.rb +0 -1
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +0 -3
  66. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +19 -20
  67. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +7 -5
  68. data/lib/ui_bibz/ui/core/forms/files/file_field.rb +20 -10
  69. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +16 -8
  70. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +20 -3
  71. data/lib/ui_bibz/ui/core/forms/numbers/range_field.rb +33 -5
  72. data/lib/ui_bibz/ui/core/forms/numbers/slider_field.rb +132 -0
  73. data/lib/ui_bibz/ui/core/forms/numbers/slider_header.rb +71 -0
  74. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +0 -3
  75. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +41 -62
  76. data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +0 -3
  77. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +2 -5
  78. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -4
  79. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +0 -3
  80. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb +0 -3
  81. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +0 -3
  82. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -12
  83. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb +9 -4
  84. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +0 -3
  85. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb +9 -4
  86. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb +0 -3
  87. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -4
  88. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +4 -7
  89. data/lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb +2 -5
  90. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +0 -3
  91. data/lib/ui_bibz/ui/core/icons/components/glyph_counter.rb +0 -3
  92. data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +1 -4
  93. data/lib/ui_bibz/ui/core/icons/glyph.rb +1 -4
  94. data/lib/ui_bibz/ui/core/icons/star.rb +0 -3
  95. data/lib/ui_bibz/ui/core/layouts/col.rb +5 -42
  96. data/lib/ui_bibz/ui/core/layouts/container.rb +9 -6
  97. data/lib/ui_bibz/ui/core/layouts/row.rb +32 -2
  98. data/lib/ui_bibz/ui/core/lists/components/list.rb +6 -8
  99. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +0 -3
  100. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +0 -3
  101. data/lib/ui_bibz/ui/core/lists/list_group.rb +9 -6
  102. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +3 -2
  103. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +0 -3
  104. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +2 -5
  105. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +3 -1
  106. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +15 -6
  107. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +0 -4
  108. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -4
  109. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +0 -3
  110. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +0 -3
  111. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +4 -4
  112. data/lib/ui_bibz/ui/core/navigations/components/navbar_nav.rb +1 -4
  113. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +0 -3
  114. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +0 -3
  115. data/lib/ui_bibz/ui/core/navigations/components/toolbar_form.rb +3 -3
  116. data/lib/ui_bibz/ui/core/navigations/link.rb +0 -3
  117. data/lib/ui_bibz/ui/core/navigations/nav.rb +37 -10
  118. data/lib/ui_bibz/ui/core/navigations/navbar.rb +28 -7
  119. data/lib/ui_bibz/ui/core/navigations/pagination.rb +3 -1
  120. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +10 -5
  121. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +2 -0
  122. data/lib/ui_bibz/ui/core/notifications/alert.rb +2 -2
  123. data/lib/ui_bibz/ui/core/notifications/badge.rb +2 -5
  124. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +0 -3
  125. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +4 -10
  126. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +0 -3
  127. data/lib/ui_bibz/ui/core/notifications/components/toast_body.rb +0 -3
  128. data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +1 -6
  129. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +7 -5
  130. data/lib/ui_bibz/ui/core/notifications/spinner.rb +0 -3
  131. data/lib/ui_bibz/ui/core/notifications/toast.rb +14 -3
  132. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +0 -3
  133. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +0 -3
  134. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -7
  135. data/lib/ui_bibz/ui/core/windows/modal.rb +61 -14
  136. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +4 -2
  137. data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +9 -9
  138. data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +2 -2
  139. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +0 -3
  140. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +2 -0
  141. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +2 -0
  142. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +0 -3
  143. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +2 -0
  144. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +1 -4
  145. data/lib/ui_bibz/ui/ux/containers/components/panel_tab_group.rb +0 -4
  146. data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +0 -3
  147. data/lib/ui_bibz/ui/ux/containers/panel.rb +4 -2
  148. data/lib/ui_bibz/ui/ux/tables/components/thead.rb +0 -3
  149. data/lib/ui_bibz/ui/ux/tables/table.rb +2 -4
  150. data/lib/ui_bibz/ui/ux/tables/table_card.rb +4 -3
  151. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +5 -5
  152. data/lib/ui_bibz/utils/breakdown_class_name_generator.rb +74 -0
  153. data/lib/ui_bibz/utils/internationalization.rb +1 -1
  154. data/lib/ui_bibz/utils/screwdriver.rb +16 -10
  155. data/test/dummy/Rakefile +1 -1
  156. data/test/dummy/app/javascripts/packs/index.js +3 -0
  157. data/test/dummy/app/models/user.rb +1 -0
  158. data/test/dummy/app/views/layouts/application.html.erb +4 -1
  159. data/{app/ui/.keep → test/dummy/app/views/users/index.html.erb} +0 -0
  160. data/test/dummy/bin/setup +17 -13
  161. data/test/dummy/config.ru +2 -1
  162. data/test/dummy/config/application.rb +1 -0
  163. data/test/dummy/config/cable.yml +10 -0
  164. data/test/dummy/config/database.yml +1 -1
  165. data/test/dummy/config/environment.rb +1 -1
  166. data/test/dummy/config/environments/development.rb +33 -12
  167. data/test/dummy/config/environments/production.rb +52 -19
  168. data/test/dummy/config/environments/test.rb +18 -12
  169. data/test/dummy/config/initializers/application_controller_renderer.rb +9 -0
  170. data/test/dummy/config/initializers/assets.rb +4 -3
  171. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -1
  172. data/test/dummy/config/initializers/content_security_policy.rb +29 -0
  173. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  174. data/test/dummy/config/initializers/inflections.rb +0 -1
  175. data/test/dummy/config/initializers/mime_types.rb +0 -1
  176. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  177. data/test/dummy/config/puma.rb +40 -0
  178. data/test/dummy/config/routes.rb +3 -0
  179. data/test/dummy/config/spring.rb +8 -0
  180. data/test/dummy/config/storage.yml +34 -0
  181. data/test/dummy/db/migrate/20150123191805_create_users.rb +1 -1
  182. data/test/dummy/db/schema.rb +24 -24
  183. data/test/dummy/public/404.html +6 -6
  184. data/test/dummy/public/422.html +6 -6
  185. data/test/dummy/public/500.html +6 -6
  186. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  187. data/test/dummy/public/apple-touch-icon.png +0 -0
  188. data/test/dummy/storage/.keep +0 -0
  189. data/test/simple_form_test.rb +45 -44
  190. data/test/store_test.rb +5 -5
  191. data/test/test_helper.rb +18 -9
  192. data/test/ui/core/boxes/card_grid_test.rb +17 -0
  193. data/test/ui/core/boxes/card_test.rb +46 -12
  194. data/test/ui/core/boxes/jumbotron_test.rb +2 -2
  195. data/test/ui/core/component_test.rb +1 -1
  196. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  197. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  198. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  199. data/test/ui/core/forms/choices/checkbox_field_test.rb +8 -1
  200. data/test/ui/core/forms/choices/choice_group_test.rb +11 -9
  201. data/test/ui/core/forms/choices/radio_field_test.rb +1 -1
  202. data/test/ui/core/forms/dates/date_picker_field_test.rb +1 -1
  203. data/test/ui/core/forms/dropdowns/dropdown_test.rb +2 -2
  204. data/test/ui/core/forms/files/file_field_test.rb +12 -0
  205. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  206. data/test/ui/core/forms/numbers/range_field_test.rb +23 -2
  207. data/test/ui/core/forms/numbers/slider_field_test.rb +26 -0
  208. data/test/ui/core/forms/selects/multi_column_field_test.rb +1 -1
  209. data/test/ui/core/forms/selects/multi_select_field_test.rb +7 -7
  210. data/test/ui/core/forms/selects/select_field_test.rb +3 -3
  211. data/test/ui/core/forms/surrounds/surround_field_test.rb +15 -3
  212. data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +1 -1
  213. data/test/ui/core/forms/texts/auto_complete_field_test.rb +8 -8
  214. data/test/ui/core/forms/texts/text_field_test.rb +2 -2
  215. data/test/ui/core/layouts/col_test.rb +11 -2
  216. data/test/ui/core/layouts/container_test.rb +15 -1
  217. data/test/ui/core/layouts/row_test.rb +68 -3
  218. data/test/ui/core/lists/list_group_test.rb +1 -1
  219. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  220. data/test/ui/core/navigations/link_test.rb +1 -1
  221. data/test/ui/core/navigations/nav_test.rb +17 -5
  222. data/test/ui/core/navigations/navbar_test.rb +5 -4
  223. data/test/ui/core/navigations/tab_group_test.rb +4 -4
  224. data/test/ui/core/notifications/alert_test.rb +2 -2
  225. data/test/ui/core/notifications/badge_test.rb +3 -3
  226. data/test/ui/core/notifications/progress_bar_test.rb +1 -1
  227. data/test/ui/core/notifications/toast_test.rb +10 -1
  228. data/test/ui/core/windows/modal_test.rb +15 -1
  229. data/test/ui/utils/breakdown_class_name_generator_test.rb +60 -0
  230. data/test/ui/ux/containers/panel_test.rb +5 -5
  231. data/test/ui/ux/tables/table_test.rb +6 -6
  232. data/test/ui_bibz_test.rb +1 -1
  233. data/ui_bibz.gemspec +16 -16
  234. metadata +99 -109
  235. data/.rubocop_todo.yml +0 -25
  236. data/app/assets/javascripts/fix_bootstrap.coffee +0 -7
  237. data/app/assets/javascripts/form.coffee +0 -83
  238. data/app/assets/javascripts/formula.coffee +0 -69
  239. data/app/assets/javascripts/input-connected.coffee +0 -101
  240. data/app/assets/javascripts/interface.coffee +0 -55
  241. data/app/assets/javascripts/jquery.multi-select-extend.coffee +0 -38
  242. data/app/assets/javascripts/table.coffee +0 -36
  243. data/app/assets/javascripts/ui_bibz.coffee.erb +0 -75
  244. data/app/assets/stylesheets/_custom_variables.sass +0 -20
  245. data/app/assets/stylesheets/_panel.scss +0 -315
  246. data/app/assets/stylesheets/bootstrap-switch.sass +0 -159
  247. data/app/assets/stylesheets/boxes.sass +0 -5
  248. data/app/assets/stylesheets/containers.sass +0 -2
  249. data/app/assets/stylesheets/fix-bootstrap-4.sass +0 -19
  250. data/app/assets/stylesheets/fix_addon.sass +0 -216
  251. data/app/assets/stylesheets/forms.sass +0 -91
  252. data/app/assets/stylesheets/navigations.sass +0 -17
  253. data/app/assets/stylesheets/notifications.sass +0 -42
  254. data/app/assets/stylesheets/tables.sass +0 -66
  255. data/app/assets/stylesheets/ui_bibz.sass.erb +0 -55
  256. data/lib/generators/ui_bibz/install_generator.rb +0 -17
  257. data/lib/generators/ui_bibz/templates/ui_bibz_initializer.rb +0 -5
  258. data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +0 -125
  259. data/lib/ui_bibz/ui/core/icons/glyph_group.rb +0 -101
  260. data/test/dummy/bin/bundle +0 -5
  261. data/test/ui/core/forms/files/text_field_test.rb +0 -12
  262. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +0 -84
  263. 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