ui_bibz 2.5.5 → 3.0.0.alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -2
  3. data/.rubocop.yml +89 -1
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +96 -108
  8. data/README.md +9 -52
  9. data/Rakefile +3 -2
  10. data/bin/test +7 -0
  11. data/config/initializers/will_paginate.rb +2 -1
  12. data/lib/ui_bibz.rb +17 -3
  13. data/lib/ui_bibz/concerns/models/searchable.rb +3 -3
  14. data/lib/ui_bibz/helpers/ui/core/boxes_helper.rb +9 -1
  15. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +20 -1
  16. data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +10 -2
  17. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +1 -1
  18. data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +9 -5
  19. data/lib/ui_bibz/helpers/ui/ux_helper.rb +2 -6
  20. data/lib/ui_bibz/infos.rb +11 -5
  21. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +15 -2
  22. data/lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb +4 -7
  23. data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +6 -9
  24. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_checkbox_field_input.rb +5 -1
  25. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_field_input.rb +23 -0
  26. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +3 -3
  27. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_slider_field_input.rb +12 -0
  28. data/lib/ui_bibz/rails/engine.rb +1 -16
  29. data/lib/ui_bibz/railtie.rb +6 -0
  30. data/lib/ui_bibz/ui/concerns/card_itemable_concern.rb +67 -0
  31. data/lib/ui_bibz/ui/concerns/html_concern.rb +16 -0
  32. data/lib/ui_bibz/ui/core/boxes/card.rb +5 -50
  33. data/lib/ui_bibz/ui/core/boxes/card_accordion.rb +2 -0
  34. data/lib/ui_bibz/ui/core/boxes/card_column.rb +3 -1
  35. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +3 -1
  36. data/lib/ui_bibz/ui/core/boxes/card_grid.rb +60 -0
  37. data/lib/ui_bibz/ui/core/boxes/card_group.rb +3 -1
  38. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +0 -3
  39. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_subtitle.rb +47 -0
  40. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +0 -3
  41. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -4
  42. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +15 -0
  43. data/lib/ui_bibz/ui/core/boxes/components/card_col.rb +65 -0
  44. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +0 -3
  45. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +2 -4
  46. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -4
  47. data/lib/ui_bibz/ui/core/boxes/components/card_row.rb +65 -0
  48. data/lib/ui_bibz/ui/core/boxes/components/card_tab_group.rb +0 -4
  49. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -4
  50. data/lib/ui_bibz/ui/core/component.rb +16 -9
  51. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +2 -2
  52. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +9 -11
  53. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +0 -3
  54. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_dropdown.rb +0 -3
  55. data/lib/ui_bibz/ui/core/forms/buttons/components/button_group_split_dropdown.rb +0 -3
  56. data/lib/ui_bibz/ui/core/forms/choices/box_switch_field.rb +7 -10
  57. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +20 -10
  58. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +22 -2
  59. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +24 -12
  60. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +17 -6
  61. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +5 -5
  62. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +12 -15
  63. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_divider.rb +0 -1
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +0 -3
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +19 -20
  66. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +7 -5
  67. data/lib/ui_bibz/ui/core/forms/files/file_field.rb +20 -10
  68. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +16 -8
  69. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +20 -3
  70. data/lib/ui_bibz/ui/core/forms/numbers/range_field.rb +51 -5
  71. data/lib/ui_bibz/ui/core/forms/numbers/slider_field.rb +144 -0
  72. data/lib/ui_bibz/ui/core/forms/numbers/slider_header.rb +71 -0
  73. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +0 -3
  74. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +41 -62
  75. data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +0 -3
  76. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +2 -5
  77. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -4
  78. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +0 -3
  79. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb +0 -3
  80. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +0 -3
  81. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -12
  82. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb +9 -4
  83. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +0 -3
  84. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb +9 -4
  85. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb +0 -3
  86. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +4 -12
  87. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +4 -7
  88. data/lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb +2 -5
  89. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +0 -3
  90. data/lib/ui_bibz/ui/core/icons/components/glyph_counter.rb +0 -3
  91. data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +1 -4
  92. data/lib/ui_bibz/ui/core/icons/glyph.rb +1 -4
  93. data/lib/ui_bibz/ui/core/icons/star.rb +0 -3
  94. data/lib/ui_bibz/ui/core/layouts/col.rb +5 -42
  95. data/lib/ui_bibz/ui/core/layouts/container.rb +9 -6
  96. data/lib/ui_bibz/ui/core/layouts/row.rb +32 -2
  97. data/lib/ui_bibz/ui/core/lists/components/list.rb +6 -8
  98. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +0 -3
  99. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +0 -3
  100. data/lib/ui_bibz/ui/core/lists/list_group.rb +9 -6
  101. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +3 -2
  102. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +0 -3
  103. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +2 -5
  104. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +3 -1
  105. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +15 -6
  106. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +0 -4
  107. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -4
  108. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +0 -3
  109. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +0 -3
  110. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +4 -4
  111. data/lib/ui_bibz/ui/core/navigations/components/navbar_nav.rb +1 -4
  112. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +0 -3
  113. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +0 -3
  114. data/lib/ui_bibz/ui/core/navigations/components/toolbar_form.rb +3 -3
  115. data/lib/ui_bibz/ui/core/navigations/link.rb +0 -3
  116. data/lib/ui_bibz/ui/core/navigations/nav.rb +37 -10
  117. data/lib/ui_bibz/ui/core/navigations/navbar.rb +28 -7
  118. data/lib/ui_bibz/ui/core/navigations/pagination.rb +3 -1
  119. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +10 -5
  120. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +2 -0
  121. data/lib/ui_bibz/ui/core/notifications/alert.rb +2 -2
  122. data/lib/ui_bibz/ui/core/notifications/badge.rb +2 -5
  123. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +0 -3
  124. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +4 -10
  125. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +0 -3
  126. data/lib/ui_bibz/ui/core/notifications/components/toast_body.rb +0 -3
  127. data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +1 -6
  128. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +7 -5
  129. data/lib/ui_bibz/ui/core/notifications/spinner.rb +0 -3
  130. data/lib/ui_bibz/ui/core/notifications/toast.rb +14 -3
  131. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +0 -3
  132. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +0 -3
  133. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -7
  134. data/lib/ui_bibz/ui/core/windows/modal.rb +65 -14
  135. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +6 -2
  136. data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +9 -9
  137. data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +2 -2
  138. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +0 -3
  139. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +2 -0
  140. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +2 -0
  141. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +0 -3
  142. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +2 -0
  143. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +4 -6
  144. data/lib/ui_bibz/ui/ux/containers/components/panel_header_title.rb +47 -0
  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 +82 -0
  153. data/lib/ui_bibz/utils/internationalization.rb +2 -2
  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/views/layouts/application.html.erb +4 -1
  158. data/{app/ui/.keep → test/dummy/app/views/users/index.html.erb} +0 -0
  159. data/test/dummy/bin/setup +17 -13
  160. data/test/dummy/config.ru +2 -1
  161. data/test/dummy/config/application.rb +1 -0
  162. data/test/dummy/config/cable.yml +10 -0
  163. data/test/dummy/config/database.yml +1 -1
  164. data/test/dummy/config/environment.rb +1 -1
  165. data/test/dummy/config/environments/development.rb +33 -12
  166. data/test/dummy/config/environments/production.rb +52 -19
  167. data/test/dummy/config/environments/test.rb +18 -12
  168. data/test/dummy/config/initializers/application_controller_renderer.rb +9 -0
  169. data/test/dummy/config/initializers/assets.rb +4 -3
  170. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -1
  171. data/test/dummy/config/initializers/content_security_policy.rb +29 -0
  172. data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
  173. data/test/dummy/config/initializers/inflections.rb +0 -1
  174. data/test/dummy/config/initializers/mime_types.rb +0 -1
  175. data/test/dummy/config/initializers/wrap_parameters.rb +2 -2
  176. data/test/dummy/config/puma.rb +40 -0
  177. data/test/dummy/config/routes.rb +3 -0
  178. data/test/dummy/config/spring.rb +8 -0
  179. data/test/dummy/config/storage.yml +34 -0
  180. data/test/dummy/db/migrate/20150123191805_create_users.rb +1 -1
  181. data/test/dummy/db/schema.rb +24 -24
  182. data/test/dummy/public/404.html +6 -6
  183. data/test/dummy/public/422.html +6 -6
  184. data/test/dummy/public/500.html +6 -6
  185. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  186. data/test/dummy/public/apple-touch-icon.png +0 -0
  187. data/test/dummy/storage/.keep +0 -0
  188. data/test/simple_form_test.rb +45 -44
  189. data/test/store_test.rb +5 -5
  190. data/test/test_helper.rb +18 -9
  191. data/test/ui/core/boxes/card_grid_test.rb +17 -0
  192. data/test/ui/core/boxes/card_test.rb +46 -12
  193. data/test/ui/core/boxes/jumbotron_test.rb +2 -2
  194. data/test/ui/core/component_test.rb +1 -1
  195. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  196. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  197. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  198. data/test/ui/core/forms/choices/checkbox_field_test.rb +9 -2
  199. data/test/ui/core/forms/choices/choice_group_test.rb +11 -9
  200. data/test/ui/core/forms/choices/radio_field_test.rb +1 -1
  201. data/test/ui/core/forms/dates/date_picker_field_test.rb +1 -1
  202. data/test/ui/core/forms/dropdowns/dropdown_test.rb +2 -2
  203. data/test/ui/core/forms/files/file_field_test.rb +12 -0
  204. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  205. data/test/ui/core/forms/numbers/range_field_test.rb +37 -2
  206. data/test/ui/core/forms/numbers/slider_field_test.rb +26 -0
  207. data/test/ui/core/forms/selects/multi_column_field_test.rb +1 -1
  208. data/test/ui/core/forms/selects/multi_select_field_test.rb +7 -7
  209. data/test/ui/core/forms/selects/select_field_test.rb +3 -3
  210. data/test/ui/core/forms/surrounds/surround_field_test.rb +39 -3
  211. data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +1 -1
  212. data/test/ui/core/forms/texts/auto_complete_field_test.rb +8 -8
  213. data/test/ui/core/forms/texts/text_field_test.rb +2 -2
  214. data/test/ui/core/layouts/col_test.rb +11 -2
  215. data/test/ui/core/layouts/container_test.rb +15 -1
  216. data/test/ui/core/layouts/row_test.rb +68 -3
  217. data/test/ui/core/lists/list_group_test.rb +1 -1
  218. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  219. data/test/ui/core/navigations/link_test.rb +1 -1
  220. data/test/ui/core/navigations/nav_test.rb +17 -5
  221. data/test/ui/core/navigations/navbar_test.rb +7 -8
  222. data/test/ui/core/navigations/tab_group_test.rb +4 -4
  223. data/test/ui/core/notifications/alert_test.rb +2 -2
  224. data/test/ui/core/notifications/badge_test.rb +3 -3
  225. data/test/ui/core/notifications/progress_bar_test.rb +1 -1
  226. data/test/ui/core/notifications/toast_test.rb +10 -1
  227. data/test/ui/core/windows/modal_test.rb +15 -1
  228. data/test/ui/utils/breakdown_class_name_generator_test.rb +74 -0
  229. data/test/ui/ux/containers/panel_test.rb +5 -5
  230. data/test/ui/ux/tables/table_test.rb +6 -6
  231. data/test/ui_bibz_test.rb +1 -1
  232. data/ui_bibz.gemspec +16 -16
  233. metadata +100 -109
  234. data/.rubocop_todo.yml +0 -25
  235. data/app/assets/javascripts/fix_bootstrap.coffee +0 -7
  236. data/app/assets/javascripts/form.coffee +0 -83
  237. data/app/assets/javascripts/formula.coffee +0 -69
  238. data/app/assets/javascripts/input-connected.coffee +0 -101
  239. data/app/assets/javascripts/interface.coffee +0 -55
  240. data/app/assets/javascripts/jquery.multi-select-extend.coffee +0 -38
  241. data/app/assets/javascripts/table.coffee +0 -36
  242. data/app/assets/javascripts/ui_bibz.coffee.erb +0 -75
  243. data/app/assets/stylesheets/_custom_variables.sass +0 -20
  244. data/app/assets/stylesheets/_panel.scss +0 -315
  245. data/app/assets/stylesheets/bootstrap-switch.sass +0 -159
  246. data/app/assets/stylesheets/boxes.sass +0 -5
  247. data/app/assets/stylesheets/containers.sass +0 -2
  248. data/app/assets/stylesheets/fix-bootstrap-4.sass +0 -19
  249. data/app/assets/stylesheets/fix_addon.sass +0 -216
  250. data/app/assets/stylesheets/forms.sass +0 -91
  251. data/app/assets/stylesheets/navigations.sass +0 -17
  252. data/app/assets/stylesheets/notifications.sass +0 -42
  253. data/app/assets/stylesheets/tables.sass +0 -66
  254. data/app/assets/stylesheets/ui_bibz.sass.erb +0 -55
  255. data/lib/generators/ui_bibz/install_generator.rb +0 -17
  256. data/lib/generators/ui_bibz/templates/ui_bibz_initializer.rb +0 -5
  257. data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +0 -125
  258. data/lib/ui_bibz/ui/core/icons/glyph_group.rb +0 -101
  259. data/test/dummy/bin/bundle +0 -5
  260. data/test/ui/core/forms/files/text_field_test.rb +0 -12
  261. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +0 -84
  262. data/test/ui/core/icons/glyph_group_test.rb +0 -37
@@ -1,5 +0,0 @@
1
- // Custom css
2
- @each $key, $value in $states_colors
3
- .card-#{$key}
4
- .card-header
5
- background-color: $value
@@ -1,2 +0,0 @@
1
- @import _panel
2
-
@@ -1,19 +0,0 @@
1
- //.btn-group > .dropdown-menu
2
- //margin: 32px 3px 0px 0px !important
3
-
4
- // fix form states
5
- @each $key, $value in $states_colors
6
- .has-#{$key}
7
- .form-control
8
- border-color: $value !important
9
- label, span.help-block
10
- color: $value
11
-
12
-
13
- // Fix bootstrap-select
14
- // .bootstrap-select.btn-group .dropdown-toggle .filter-option
15
- // display: inline-grid !important
16
-
17
- .dropdown-item
18
- svg
19
- float: left
@@ -1,216 +0,0 @@
1
- $input-group-btn-border-color: $input-border-color
2
-
3
- .input-group-addon
4
- @if $enable-flex
5
- // do nothing
6
- @else
7
- display: table-cell
8
-
9
- &:not(:first-child):not(:last-child)
10
- @include border-radius(0)
11
-
12
-
13
- .input-group-addon
14
- @if $enable-flex
15
- // do nothing
16
- @else
17
- width: 1%
18
-
19
- white-space: nowrap
20
- vertical-align: middle
21
-
22
-
23
- //
24
- // Base styles
25
- //
26
-
27
- .input-group
28
- position: relative
29
- display: flex
30
- width: 100%
31
-
32
- .form-control
33
- // Ensure that the input is always above the *appended* addon button for
34
- // proper border colors.
35
- position: relative
36
- z-index: 2
37
- flex: 1 1 auto
38
- // Add width 1% and flex-basis auto to ensure that button will not wrap out
39
- // the column. Applies to IE Edge+ and Firefox. Chrome does not require this.
40
- width: 1%
41
- margin-bottom: 0
42
-
43
- // Bring the "active" form control to the front
44
- @include hover-focus-active
45
- z-index: 3
46
-
47
- .input-group-addon,
48
- .input-group-btn,
49
- .input-group .form-control
50
- &:not(:first-child):not(:last-child)
51
- @include border-radius(0)
52
-
53
- .input-group-addon,
54
- .input-group-btn
55
- white-space: nowrap
56
-
57
-
58
- // Sizing options
59
- //
60
- // Remix the default form control sizing classes into new ones for easier
61
- // manipulation.
62
-
63
- .input-group-lg > .form-control,
64
- .input-group-lg > .input-group-addon,
65
- .input-group-lg > .input-group-btn > .btn
66
- @extend .form-control-lg
67
-
68
- .input-group-sm > .form-control,
69
- .input-group-sm > .input-group-addon,
70
- .input-group-sm > .input-group-btn > .btn
71
- @extend .form-control-sm
72
-
73
- .input-group > .form-control,
74
- .input-group > .input-group-addon,
75
- .input-group > .input-group-btn > .btn
76
- padding: $input-btn-padding-y $input-btn-padding-x
77
- @include border-radius($input-border-radius)
78
-
79
- svg
80
- //font-size: 1.4em
81
- margin-top: 0.1rem
82
-
83
-
84
- //
85
- // Text input groups
86
- //
87
-
88
- .input-group-addon
89
- padding: $input-btn-padding-y $input-btn-padding-x
90
- margin-bottom: 0 // Allow use of <label> elements by overriding our default margin-bottom
91
- font-size: $font-size-base // Match inputs
92
- font-weight: $font-weight-normal
93
- line-height: $input-btn-line-height
94
- color: $input-group-addon-color
95
- text-align: center
96
- background-color: $input-group-addon-bg
97
- background-clip: padding-box
98
- border: $input-btn-border-width solid $input-group-addon-border-color
99
- @include border-radius($input-border-radius)
100
-
101
- // Sizing
102
- &.form-control-sm
103
- padding: $input-btn-padding-y-sm $input-btn-padding-x-sm
104
- font-size: $font-size-sm
105
- @include border-radius($input-border-radius-sm)
106
-
107
- svg
108
- font-size: 1rem
109
- margin-top: 0.1rem
110
- i.glyph
111
- font-size: 1rem
112
-
113
-
114
- &.form-control-lg
115
- padding: $input-btn-padding-y-lg $input-btn-padding-x-lg
116
- font-size: $font-size-lg
117
- @include border-radius($input-border-radius-lg)
118
-
119
- svg
120
- font-size: 1.5rem
121
- margin-top: 0.1rem
122
- i.glyph
123
- font-size: 1.5rem
124
-
125
- svg, i.glyph
126
- font-size: 1.3rem
127
- margin-top: 0.1rem
128
-
129
- i.glyph
130
- font-size: 1.3rem
131
-
132
-
133
- // scss-lint:disable QualifyingElement
134
- // Nuke default margins from checkboxes and radios to vertically center within.
135
- input[type="radio"],
136
- input[type="checkbox"]
137
- margin-top: 0
138
-
139
- // scss-lint:enable QualifyingElement
140
-
141
-
142
-
143
- //
144
- // Reset rounded corners
145
- //
146
-
147
- //.input-group .form-control:not(:last-child),
148
- .input-group-addon:not(:last-child),
149
- .input-group-btn:not(:last-child) > .btn,
150
- .input-group-btn:not(:last-child) > .btn-group > .btn,
151
- .input-group-btn:not(:last-child) > .dropdown-toggle,
152
- .input-group .bootstrap-select:not(:last-child) > .dropdown-toggle,
153
- .input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle),
154
- .input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn
155
- @include border-right-radius(0)
156
-
157
- .input-group-addon:not(:last-child)
158
- border-right: 0
159
-
160
- //.input-group .form-control:not(:first-child),
161
- .input-group-addon:not(:first-child),
162
- .input-group-btn:not(:first-child) > .btn,
163
- .input-group-btn:not(:first-child) > .btn-group > .btn,
164
- .input-group-btn:not(:first-child) > .dropdown-toggle,
165
- .input-group .bootstrap-select:not(:first-child) > .dropdown-toggle,
166
- .input-group-btn:not(:last-child) > .btn:not(:first-child),
167
- .input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn
168
- @include border-left-radius(0)
169
-
170
- .form-control + .input-group-addon:not(:first-child)
171
- border-left: 0
172
-
173
-
174
- //
175
- // Button input groups
176
- //
177
-
178
- .input-group-btn
179
- position: relative
180
- // Jankily prevent input button groups from wrapping with `white-space` and
181
- // `font-size` in combination with `inline-block` on buttons.
182
- font-size: 0
183
- white-space: nowrap
184
-
185
- // Negative margin for spacing, position for bringing hovered/focused/actived
186
- // element above the siblings.
187
- > .btn
188
- position: relative
189
- background-clip: padding-box
190
- border: $input-btn-border-width solid $input-group-btn-border-color
191
-
192
- + .btn
193
- margin-left: (-$input-btn-border-width)
194
-
195
-
196
- // Bring the "active" button to the front
197
- @include hover-focus-active
198
- z-index: 3
199
-
200
-
201
-
202
- // Negative margin to only have a single, shared border between the two
203
- &:not(:last-child)
204
- > .btn,
205
- > .btn-group
206
- margin-right: (-$input-btn-border-width)
207
-
208
-
209
- &:not(:first-child)
210
- > .btn,
211
- > .btn-group
212
- z-index: 2
213
- margin-left: (-$input-btn-border-width)
214
- // Because specificity
215
- @include hover-focus-active
216
- z-index: 3
@@ -1,91 +0,0 @@
1
- .multiselect-container
2
- .filter
3
- margin: 5px
4
-
5
- .formula_field
6
- input
7
- border-bottom-right-radius: 0.25rem !important
8
- border-top-right-radius: 0.25rem !important
9
- .fix-border-right
10
- border-bottom-right-radius: 0 !important
11
- border-top-right-radius: 0 !important
12
- width: 100%
13
- .form-control[readonly]
14
- background-color: darken($body-bg, 2%)
15
- .formula-field_alert, .formula-field-result, .formula-field-sign
16
- display: none
17
- .formula-field:first-child
18
- flex-grow: 3
19
-
20
- .formula-field-alert
21
- padding-top: 10px
22
-
23
- .select-field-refresh
24
- .btn
25
- padding: 10px 16px
26
-
27
- // .input-group-addon.abc-checkbox label, .input-group-addon.abc-radio label
28
- // margin-bottom: 0
29
-
30
- .checkbox-inline, .radio-inline
31
- display: inline-block
32
- margin-right: 10px
33
-
34
- .input-refresh-button
35
- border-width: 0px !important
36
- min-height: 40px
37
- svg
38
- margin: 0.28rem 0.25rem !important
39
- //padding: 10px 16px
40
-
41
- .input-group-btn
42
- label.btn
43
- margin: 0
44
-
45
- .fix-label
46
- margin-right: -11px
47
-
48
- .date_picker
49
- min-width: 104px
50
-
51
- .ui_surround_field
52
- .custom-control
53
- .custom-control-label
54
- margin-left: 0px !important
55
- padding-right: 10px
56
- margin-right: 0
57
- .custom-control-label:after, .custom-control-label:before
58
- right: 0
59
- left: 0
60
-
61
- flex-wrap: nowrap
62
- .mr-sm-2
63
- margin-right: 0px !important
64
- input:not(:first-child):not(:last-child)
65
- border-radius: 0px
66
- input
67
- margin-left: 0.5rem
68
- select:not(:first-child):not(:last-child)
69
- border-radius: 0px
70
-
71
- //.btn.without-text
72
- padding-right: 3px
73
-
74
- .multiselect-container
75
- padding: 10px
76
- .multiselect-container > li > a > label
77
- padding: 3px 20px 3px 10px
78
- > input[type=checkbox]
79
- margin-bottom: 0px
80
-
81
- .without-caret
82
- .dropdown-toggle::after
83
- content: none
84
-
85
- // fix button bug
86
-
87
- .bootstrap-select button
88
- min-height: 40px
89
-
90
- .bootstrap-select .dropdown-menu li a
91
- min-height: 32px
@@ -1,17 +0,0 @@
1
- .navbar
2
- .simple_form
3
- input
4
- width: auto
5
- .form-control
6
- width: auto
7
- .form-group
8
- display: inline-block
9
-
10
- .progress-bar-line
11
- height: 1px
12
-
13
- .nav-tabs .nav-link
14
- cursor: pointer
15
-
16
- .btn-toolbar form
17
- display: inline-flex
@@ -1,42 +0,0 @@
1
- .stars-notation
2
- white-space: nowrap
3
-
4
- // Glyph section
5
- @each $key, $value in $states_colors
6
- .glyph-#{$key}
7
- color: $value
8
-
9
- //.alert .glyph
10
- padding: .25rem 0
11
-
12
- .glyph
13
- vertical-align: middle
14
-
15
- .btn
16
- svg
17
- margin: 0.25rem 0.25rem
18
- i.glyph
19
- margin: 0.4rem 0.25rem
20
- .input-group-btn button svg
21
- margin: 0.4rem 0.25rem
22
-
23
- .dropdown-item
24
- .glyph
25
- margin-right: 1rem
26
-
27
- .fa,
28
- .fas,
29
- .far,
30
- .fal,
31
- .fab
32
- line-height: 0 !important
33
-
34
- span:not(.input-group-addon, .btn) svg
35
- margin-top: -0.1rem
36
-
37
- // .input-group-btn span svg
38
- // margin: 0.25rem
39
-
40
- .toast .toast-header img
41
- width: 20px
42
- height: 20px
@@ -1,66 +0,0 @@
1
- // Table section
2
- .table-card
3
- form
4
- margin: 0
5
- table
6
- th
7
- border-top: none
8
-
9
- .progress
10
- margin: 5px 0px 0px 0px
11
- border: 1px solid $gray-200
12
- border-radius: $border-radius
13
-
14
- .card-header
15
- //background-color: $table-bg-active
16
- .title
17
- float: left
18
- font-size: 20px
19
- .glyph
20
- margin-right: 10px
21
- .has-value
22
- width: 400px !important
23
- .input-group
24
- width: 300px
25
- transition: width .5s ease-in-out
26
- float: right
27
- .card-table, .card-body
28
- overflow-x: auto
29
- min-height: 200px
30
-
31
- .card-footer
32
- //background-color: $table-bg-active
33
- padding: 10px 10px
34
- .pagination
35
- margin: 0
36
- li
37
- display: inline
38
- float: left
39
- .table-pagination-per-page
40
- float: right
41
- select
42
- height: 38px
43
- width: 75px
44
- display: inline-block
45
-
46
- .table>tbody>tr:hover
47
- td:last-child .dropdown-action
48
- display: inherit
49
-
50
- .table>tbody>tr
51
- td:last-child
52
- .dropdown-action
53
- display: none
54
-
55
- .table-search-field
56
- .clear-search-btn
57
- cursor: pointer
58
- .glyph
59
- margin: 0
60
-
61
- .table
62
- .action
63
- width: 135px
64
- .dropdown_select
65
- margin-bottom: 0px !important
66
-