nfg_ui 0.9.8.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (384) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +431 -0
  4. data/Rakefile +23 -0
  5. data/app/assets/config/nfg_ui_manifest.js +3 -0
  6. data/app/assets/images/nfg_ui/app_icon/android-chrome-192x192.png +0 -0
  7. data/app/assets/images/nfg_ui/app_icon/android-chrome-384x384.png +0 -0
  8. data/app/assets/images/nfg_ui/app_icon/apple-touch-icon.png +0 -0
  9. data/app/assets/images/nfg_ui/app_icon/browserconfig.xml.erb +9 -0
  10. data/app/assets/images/nfg_ui/app_icon/favicon-16x16.png +0 -0
  11. data/app/assets/images/nfg_ui/app_icon/favicon-32x32.png +0 -0
  12. data/app/assets/images/nfg_ui/app_icon/favicon.ico +0 -0
  13. data/app/assets/images/nfg_ui/app_icon/mstile-150x150.png +0 -0
  14. data/app/assets/images/nfg_ui/app_icon/safari-pinned-tab.svg +38 -0
  15. data/app/assets/images/nfg_ui/app_icon/site.webmanifest.erb +19 -0
  16. data/app/assets/images/nfg_ui/email/icons/fa-caret-right.png +0 -0
  17. data/app/assets/images/nfg_ui/email/icons/fa-facebook.png +0 -0
  18. data/app/assets/images/nfg_ui/email/icons/fa-linkedin.png +0 -0
  19. data/app/assets/images/nfg_ui/email/icons/fa-twitter.png +0 -0
  20. data/app/assets/images/nfg_ui/email/icons/fa-youtube.png +0 -0
  21. data/app/assets/images/nfg_ui/email/nfg-logo.png +0 -0
  22. data/app/assets/javascripts/nfg_ui/application.coffee +16 -0
  23. data/app/assets/javascripts/nfg_ui/collapsible_toggle.coffee +47 -0
  24. data/app/assets/javascripts/nfg_ui/prevent_clickable_disabled_element.coffee +47 -0
  25. data/app/assets/javascripts/nfg_ui/vendor/select2.coffee +26 -0
  26. data/app/assets/javascripts/nfg_ui/vendor/tooltips.coffee +18 -0
  27. data/app/assets/stylesheets/nfg_ui/bootstrap/application.scss +2 -0
  28. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/_variables.scss +1123 -0
  29. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/application.scss +23 -0
  30. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_alert.scss +2 -0
  31. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_backgrounds.scss +9 -0
  32. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_button-group.scss +8 -0
  33. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_buttons.scss +17 -0
  34. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_card.scss +20 -0
  35. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom.scss +20 -0
  36. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom_forms.scss +156 -0
  37. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_dropdown.scss +24 -0
  38. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_forms.scss +85 -0
  39. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_media.scss +2 -0
  40. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_nav.scss +22 -0
  41. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_navbar.scss +132 -0
  42. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_progress.scss +3 -0
  43. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_reboot.scss +31 -0
  44. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_tables.scss +7 -0
  45. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_tooltip.scss +5 -0
  46. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_type.scss +82 -0
  47. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_campaign_card.scss +6 -0
  48. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_campaign_preview.scss +25 -0
  49. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_content_section_buttons.scss +11 -0
  50. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_custom_questions_questionnaire.scss +84 -0
  51. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_custom_receipt_language.scss +15 -0
  52. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_email_preview.scss +24 -0
  53. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_interaction.scss +2 -0
  54. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_mobile.scss +4 -0
  55. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_nav_step.scss +95 -0
  56. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_overlay_blocker.scss +49 -0
  57. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_page_header.scss +9 -0
  58. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_product_icons.scss +45 -0
  59. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_redactor.scss +25 -0
  60. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_share_dropdown.scss +53 -0
  61. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_slat.scss +113 -0
  62. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_social_share.scss +44 -0
  63. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_status_indicator.scss +9 -0
  64. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_ticket.scss +12 -0
  65. data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_tile.scss +71 -0
  66. data/app/assets/stylesheets/nfg_ui/network_for_good/email/application.scss +38 -0
  67. data/app/assets/stylesheets/nfg_ui/network_for_good/email/foundation_emails/_alignment.scss +93 -0
  68. data/app/assets/stylesheets/nfg_ui/network_for_good/email/foundation_emails/_button.scss +345 -0
  69. data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_backgrounds.scss +15 -0
  70. data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_layout.scss +33 -0
  71. data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_rainbow_bar.scss +47 -0
  72. data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_spacers.scss +60 -0
  73. data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_typography.scss +6 -0
  74. data/app/assets/stylesheets/nfg_ui/network_for_good/email/settings/_settings.scss +148 -0
  75. data/app/assets/stylesheets/nfg_ui/network_for_good/public/_variables.scss +1124 -0
  76. data/app/assets/stylesheets/nfg_ui/network_for_good/public/application.scss +23 -0
  77. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/application.scss +19 -0
  78. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_badge.scss +6 -0
  79. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_buttons.scss +43 -0
  80. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom.scss +3 -0
  81. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom_forms.scss +50 -0
  82. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_forms.scss +12 -0
  83. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_functions.scss +29 -0
  84. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_navbar.scss +18 -0
  85. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_reboot.scss +6 -0
  86. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_type.scss +16 -0
  87. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_utilities.scss +8 -0
  88. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/custom/_everyday_default.scss +6 -0
  89. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/custom/_nav_step.scss +20 -0
  90. data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/plugins/_select2.scss +16 -0
  91. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/_variables.scss +13 -0
  92. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/application.scss +35 -0
  93. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_breadcrumb.scss +4 -0
  94. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_button-group.scss +10 -0
  95. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_card.scss +45 -0
  96. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_carousel.scss +18 -0
  97. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_custom-forms.scss +12 -0
  98. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_custom.scss +4 -0
  99. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_forms.scss +68 -0
  100. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_grid.scss +4 -0
  101. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_input-group.scss +25 -0
  102. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_list-group.scss +9 -0
  103. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_media.scss +5 -0
  104. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_mixins.scss +6 -0
  105. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_modal.scss +28 -0
  106. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_nav.scss +21 -0
  107. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_navbar.scss +54 -0
  108. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_pagination.scss +1 -0
  109. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_progress.scss +6 -0
  110. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_utilities.scss +2 -0
  111. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_everyday_giving.scss +8 -0
  112. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_nav_step.scss +13 -0
  113. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_slat.scss +66 -0
  114. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/mixins/_breakpoints.scss +123 -0
  115. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/mixins/_grid-framework.scss +30 -0
  116. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/mixins/_grid.scss +10 -0
  117. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/utilities/_display.scss +9 -0
  118. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/utilities/_flex.scss +49 -0
  119. data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/plugins/_sticky_div.scss +9 -0
  120. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_alert.scss +2 -0
  121. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_buttons.scss +17 -0
  122. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_card.scss +6 -0
  123. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_carousel.scss +9 -0
  124. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom.scss +12 -0
  125. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom_forms.scss +156 -0
  126. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_dropdown.scss +1 -0
  127. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_event.scss +19 -0
  128. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_forms.scss +83 -0
  129. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_list-group.scss +12 -0
  130. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_progress.scss +9 -0
  131. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_reboot.scss +31 -0
  132. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_tooltip.scss +5 -0
  133. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_type.scss +81 -0
  134. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_admin_bar.scss +20 -0
  135. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_background_variations.scss +12 -0
  136. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_default.scss +43 -0
  137. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_story.scss +21 -0
  138. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_footer_links.scss +8 -0
  139. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_nav_step.scss +95 -0
  140. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_slat.scss +110 -0
  141. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_social_share.scss +44 -0
  142. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_ticket.scss +12 -0
  143. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_tile.scss +63 -0
  144. data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_user_navbar.scss +33 -0
  145. data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_datepicker.scss +2 -0
  146. data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_select2.scss +216 -0
  147. data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_sticky_div.scss +11 -0
  148. data/app/controllers/nfg_ui/application_controller.rb +5 -0
  149. data/app/helpers/nfg_ui/application_helper.rb +27 -0
  150. data/app/helpers/nfg_ui/components/email_helpers.rb +8 -0
  151. data/app/helpers/nfg_ui/components/resource_themes_helper.rb +8 -0
  152. data/app/helpers/nfg_ui/components/tooltip_helper.rb +24 -0
  153. data/app/models/nfg_ui/application_record.rb +5 -0
  154. data/app/views/nfg_ui/app_icons/_icons.html.haml +10 -0
  155. data/app/views/nfg_ui/email/README.md +12 -0
  156. data/app/views/nfg_ui/email/_button.html.haml +12 -0
  157. data/app/views/nfg_ui/email/_email_signature.html.haml +4 -0
  158. data/app/views/nfg_ui/email/_footer.html.haml +16 -0
  159. data/app/views/nfg_ui/email/_header.html.haml +6 -0
  160. data/app/views/nfg_ui/email/_logo.html.haml +6 -0
  161. data/app/views/nfg_ui/email/_product_content_image.html.haml +7 -0
  162. data/app/views/nfg_ui/email/_rainbow_bar.html.haml +10 -0
  163. data/app/views/nfg_ui/email/_section_header.html.haml +8 -0
  164. data/app/views/nfg_ui/email/_social_network_link.html.haml +12 -0
  165. data/app/views/nfg_ui/email/_sub_footer.html.haml +9 -0
  166. data/app/views/nfg_ui/email/_table_row.html.haml +13 -0
  167. data/config/initializers/web_app_manifest.rb +3 -0
  168. data/config/locales/email.yml +34 -0
  169. data/config/locales/en.yml +63 -0
  170. data/config/routes.rb +2 -0
  171. data/config/spring.rb +1 -0
  172. data/lib/nfg_ui/bootstrap/components/alert.rb +52 -0
  173. data/lib/nfg_ui/bootstrap/components/badge.rb +39 -0
  174. data/lib/nfg_ui/bootstrap/components/base.rb +151 -0
  175. data/lib/nfg_ui/bootstrap/components/breadcrumb.rb +23 -0
  176. data/lib/nfg_ui/bootstrap/components/breadcrumb_item.rb +28 -0
  177. data/lib/nfg_ui/bootstrap/components/button.rb +74 -0
  178. data/lib/nfg_ui/bootstrap/components/button_group.rb +36 -0
  179. data/lib/nfg_ui/bootstrap/components/button_toolbar.rb +21 -0
  180. data/lib/nfg_ui/bootstrap/components/card.rb +81 -0
  181. data/lib/nfg_ui/bootstrap/components/card_body.rb +15 -0
  182. data/lib/nfg_ui/bootstrap/components/card_footer.rb +15 -0
  183. data/lib/nfg_ui/bootstrap/components/card_header.rb +35 -0
  184. data/lib/nfg_ui/bootstrap/components/card_image.rb +33 -0
  185. data/lib/nfg_ui/bootstrap/components/card_image_overlay.rb +46 -0
  186. data/lib/nfg_ui/bootstrap/components/carousel.rb +57 -0
  187. data/lib/nfg_ui/bootstrap/components/carousel_caption.rb +34 -0
  188. data/lib/nfg_ui/bootstrap/components/carousel_control.rb +73 -0
  189. data/lib/nfg_ui/bootstrap/components/carousel_indicators.rb +54 -0
  190. data/lib/nfg_ui/bootstrap/components/carousel_item.rb +49 -0
  191. data/lib/nfg_ui/bootstrap/components/collapse.rb +32 -0
  192. data/lib/nfg_ui/bootstrap/components/dropdown.rb +51 -0
  193. data/lib/nfg_ui/bootstrap/components/dropdown_divider.rb +19 -0
  194. data/lib/nfg_ui/bootstrap/components/dropdown_header.rb +23 -0
  195. data/lib/nfg_ui/bootstrap/components/dropdown_item.rb +41 -0
  196. data/lib/nfg_ui/bootstrap/components/dropdown_menu.rb +32 -0
  197. data/lib/nfg_ui/bootstrap/components/dropdown_toggle.rb +82 -0
  198. data/lib/nfg_ui/bootstrap/components/embed.rb +80 -0
  199. data/lib/nfg_ui/bootstrap/components/form.rb +13 -0
  200. data/lib/nfg_ui/bootstrap/components/input_group.rb +13 -0
  201. data/lib/nfg_ui/bootstrap/components/jumbotron.rb +13 -0
  202. data/lib/nfg_ui/bootstrap/components/list_group.rb +39 -0
  203. data/lib/nfg_ui/bootstrap/components/list_group_item.rb +69 -0
  204. data/lib/nfg_ui/bootstrap/components/media.rb +15 -0
  205. data/lib/nfg_ui/bootstrap/components/media_body.rb +15 -0
  206. data/lib/nfg_ui/bootstrap/components/media_object.rb +23 -0
  207. data/lib/nfg_ui/bootstrap/components/modal.rb +66 -0
  208. data/lib/nfg_ui/bootstrap/components/modal_body.rb +16 -0
  209. data/lib/nfg_ui/bootstrap/components/modal_footer.rb +16 -0
  210. data/lib/nfg_ui/bootstrap/components/modal_header.rb +37 -0
  211. data/lib/nfg_ui/bootstrap/components/nav.rb +71 -0
  212. data/lib/nfg_ui/bootstrap/components/nav_item.rb +103 -0
  213. data/lib/nfg_ui/bootstrap/components/nav_link.rb +62 -0
  214. data/lib/nfg_ui/bootstrap/components/navbar.rb +97 -0
  215. data/lib/nfg_ui/bootstrap/components/navbar_brand.rb +25 -0
  216. data/lib/nfg_ui/bootstrap/components/navbar_nav.rb +48 -0
  217. data/lib/nfg_ui/bootstrap/components/navbar_text.rb +21 -0
  218. data/lib/nfg_ui/bootstrap/components/navbar_toggler.rb +38 -0
  219. data/lib/nfg_ui/bootstrap/components/page_item.rb +66 -0
  220. data/lib/nfg_ui/bootstrap/components/pagination.rb +30 -0
  221. data/lib/nfg_ui/bootstrap/components/popover.rb +12 -0
  222. data/lib/nfg_ui/bootstrap/components/progress.rb +44 -0
  223. data/lib/nfg_ui/bootstrap/components/progress_bar.rb +51 -0
  224. data/lib/nfg_ui/bootstrap/components/tab_content.rb +15 -0
  225. data/lib/nfg_ui/bootstrap/components/tab_pane.rb +49 -0
  226. data/lib/nfg_ui/bootstrap/components/table.rb +17 -0
  227. data/lib/nfg_ui/bootstrap/readme.md +1 -0
  228. data/lib/nfg_ui/bootstrap/utilities/activatable.rb +32 -0
  229. data/lib/nfg_ui/bootstrap/utilities/alignable.rb +33 -0
  230. data/lib/nfg_ui/bootstrap/utilities/collapse_toggleable.rb +35 -0
  231. data/lib/nfg_ui/bootstrap/utilities/collapsible.rb +42 -0
  232. data/lib/nfg_ui/bootstrap/utilities/disableable.rb +49 -0
  233. data/lib/nfg_ui/bootstrap/utilities/dismissible.rb +24 -0
  234. data/lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb +40 -0
  235. data/lib/nfg_ui/bootstrap/utilities/headable.rb +20 -0
  236. data/lib/nfg_ui/bootstrap/utilities/modalable.rb +104 -0
  237. data/lib/nfg_ui/bootstrap/utilities/progressable.rb +42 -0
  238. data/lib/nfg_ui/bootstrap/utilities/remotable.rb +24 -0
  239. data/lib/nfg_ui/bootstrap/utilities/sizable.rb +40 -0
  240. data/lib/nfg_ui/bootstrap/utilities/themeable.rb +51 -0
  241. data/lib/nfg_ui/bootstrap/utilities/tooltipable.rb +95 -0
  242. data/lib/nfg_ui/bootstrap/utilities/wrappable.rb +48 -0
  243. data/lib/nfg_ui/components/base.rb +14 -0
  244. data/lib/nfg_ui/components/elements/activity.rb +10 -0
  245. data/lib/nfg_ui/components/elements/alert.rb +63 -0
  246. data/lib/nfg_ui/components/elements/badge.rb +32 -0
  247. data/lib/nfg_ui/components/elements/breadcrumb.rb +16 -0
  248. data/lib/nfg_ui/components/elements/breadcrumb_item.rb +16 -0
  249. data/lib/nfg_ui/components/elements/button.rb +97 -0
  250. data/lib/nfg_ui/components/elements/card_body.rb +15 -0
  251. data/lib/nfg_ui/components/elements/card_footer.rb +14 -0
  252. data/lib/nfg_ui/components/elements/card_header.rb +14 -0
  253. data/lib/nfg_ui/components/elements/card_image.rb +14 -0
  254. data/lib/nfg_ui/components/elements/card_image_overlay.rb +14 -0
  255. data/lib/nfg_ui/components/elements/carousel_caption.rb +14 -0
  256. data/lib/nfg_ui/components/elements/carousel_control.rb +14 -0
  257. data/lib/nfg_ui/components/elements/carousel_indicators.rb +23 -0
  258. data/lib/nfg_ui/components/elements/carousel_item.rb +16 -0
  259. data/lib/nfg_ui/components/elements/chart.rb +11 -0
  260. data/lib/nfg_ui/components/elements/dropdown_divider.rb +14 -0
  261. data/lib/nfg_ui/components/elements/dropdown_header.rb +14 -0
  262. data/lib/nfg_ui/components/elements/dropdown_item.rb +78 -0
  263. data/lib/nfg_ui/components/elements/dropdown_toggle.rb +37 -0
  264. data/lib/nfg_ui/components/elements/embed.rb +15 -0
  265. data/lib/nfg_ui/components/elements/form_control.rb +18 -0
  266. data/lib/nfg_ui/components/elements/input_group.rb +14 -0
  267. data/lib/nfg_ui/components/elements/key.rb +11 -0
  268. data/lib/nfg_ui/components/elements/list_group_item.rb +14 -0
  269. data/lib/nfg_ui/components/elements/loader.rb +11 -0
  270. data/lib/nfg_ui/components/elements/media_body.rb +14 -0
  271. data/lib/nfg_ui/components/elements/media_object.rb +12 -0
  272. data/lib/nfg_ui/components/elements/modal_body.rb +14 -0
  273. data/lib/nfg_ui/components/elements/modal_footer.rb +14 -0
  274. data/lib/nfg_ui/components/elements/modal_header.rb +14 -0
  275. data/lib/nfg_ui/components/elements/nav.rb +19 -0
  276. data/lib/nfg_ui/components/elements/nav_item.rb +39 -0
  277. data/lib/nfg_ui/components/elements/nav_link.rb +33 -0
  278. data/lib/nfg_ui/components/elements/navbar_brand.rb +15 -0
  279. data/lib/nfg_ui/components/elements/navbar_text.rb +14 -0
  280. data/lib/nfg_ui/components/elements/navbar_toggler.rb +14 -0
  281. data/lib/nfg_ui/components/elements/page_item.rb +14 -0
  282. data/lib/nfg_ui/components/elements/popover.rb +14 -0
  283. data/lib/nfg_ui/components/elements/progress_bar.rb +62 -0
  284. data/lib/nfg_ui/components/elements/slat_action.rb +14 -0
  285. data/lib/nfg_ui/components/elements/slat_body.rb +14 -0
  286. data/lib/nfg_ui/components/elements/slat_item.rb +62 -0
  287. data/lib/nfg_ui/components/elements/stat.rb +11 -0
  288. data/lib/nfg_ui/components/elements/step.rb +55 -0
  289. data/lib/nfg_ui/components/elements/step_indicator.rb +41 -0
  290. data/lib/nfg_ui/components/elements/tab_pane.rb +15 -0
  291. data/lib/nfg_ui/components/elements/table.rb +14 -0
  292. data/lib/nfg_ui/components/elements/task.rb +11 -0
  293. data/lib/nfg_ui/components/elements.rb +58 -0
  294. data/lib/nfg_ui/components/foundations/color.rb +11 -0
  295. data/lib/nfg_ui/components/foundations/grid.rb +11 -0
  296. data/lib/nfg_ui/components/foundations/icon.rb +82 -0
  297. data/lib/nfg_ui/components/foundations/image.rb +14 -0
  298. data/lib/nfg_ui/components/foundations/input.rb +11 -0
  299. data/lib/nfg_ui/components/foundations/typeface.rb +122 -0
  300. data/lib/nfg_ui/components/patterns/activity_feed.rb +11 -0
  301. data/lib/nfg_ui/components/patterns/button_group.rb +23 -0
  302. data/lib/nfg_ui/components/patterns/button_toolbar.rb +20 -0
  303. data/lib/nfg_ui/components/patterns/card.rb +39 -0
  304. data/lib/nfg_ui/components/patterns/carousel.rb +31 -0
  305. data/lib/nfg_ui/components/patterns/collapse.rb +31 -0
  306. data/lib/nfg_ui/components/patterns/dropdown.rb +27 -0
  307. data/lib/nfg_ui/components/patterns/dropdown_menu.rb +16 -0
  308. data/lib/nfg_ui/components/patterns/empty_state.rb +11 -0
  309. data/lib/nfg_ui/components/patterns/filter_bar.rb +11 -0
  310. data/lib/nfg_ui/components/patterns/form_group.rb +11 -0
  311. data/lib/nfg_ui/components/patterns/graph.rb +11 -0
  312. data/lib/nfg_ui/components/patterns/jumbotron.rb +14 -0
  313. data/lib/nfg_ui/components/patterns/list_group.rb +16 -0
  314. data/lib/nfg_ui/components/patterns/media.rb +14 -0
  315. data/lib/nfg_ui/components/patterns/modal.rb +15 -0
  316. data/lib/nfg_ui/components/patterns/navbar.rb +17 -0
  317. data/lib/nfg_ui/components/patterns/navbar_nav.rb +17 -0
  318. data/lib/nfg_ui/components/patterns/page_header.rb +85 -0
  319. data/lib/nfg_ui/components/patterns/pagination.rb +14 -0
  320. data/lib/nfg_ui/components/patterns/progress.rb +24 -0
  321. data/lib/nfg_ui/components/patterns/slat.rb +14 -0
  322. data/lib/nfg_ui/components/patterns/slat_actions.rb +115 -0
  323. data/lib/nfg_ui/components/patterns/slat_header.rb +23 -0
  324. data/lib/nfg_ui/components/patterns/slat_list.rb +18 -0
  325. data/lib/nfg_ui/components/patterns/slats.rb +14 -0
  326. data/lib/nfg_ui/components/patterns/steps.rb +27 -0
  327. data/lib/nfg_ui/components/patterns/tab_content.rb +14 -0
  328. data/lib/nfg_ui/components/patterns/task_list.rb +11 -0
  329. data/lib/nfg_ui/components/patterns/tile.rb +58 -0
  330. data/lib/nfg_ui/components/patterns/tile_body.rb +29 -0
  331. data/lib/nfg_ui/components/patterns/tile_header.rb +40 -0
  332. data/lib/nfg_ui/components/patterns/tile_section.rb +29 -0
  333. data/lib/nfg_ui/components/traits/active.rb +14 -0
  334. data/lib/nfg_ui/components/traits/alert.rb +36 -0
  335. data/lib/nfg_ui/components/traits/alignment.rb +26 -0
  336. data/lib/nfg_ui/components/traits/button.rb +47 -0
  337. data/lib/nfg_ui/components/traits/button_group.rb +22 -0
  338. data/lib/nfg_ui/components/traits/card.rb +14 -0
  339. data/lib/nfg_ui/components/traits/collapse.rb +29 -0
  340. data/lib/nfg_ui/components/traits/disable.rb +19 -0
  341. data/lib/nfg_ui/components/traits/disable_with.rb +14 -0
  342. data/lib/nfg_ui/components/traits/dismiss.rb +16 -0
  343. data/lib/nfg_ui/components/traits/dropdown_toggle.rb +14 -0
  344. data/lib/nfg_ui/components/traits/icon.rb +16 -0
  345. data/lib/nfg_ui/components/traits/list_group.rb +16 -0
  346. data/lib/nfg_ui/components/traits/muted.rb +16 -0
  347. data/lib/nfg_ui/components/traits/nav.rb +26 -0
  348. data/lib/nfg_ui/components/traits/nav_item.rb +16 -0
  349. data/lib/nfg_ui/components/traits/navbar.rb +18 -0
  350. data/lib/nfg_ui/components/traits/page_header.rb +16 -0
  351. data/lib/nfg_ui/components/traits/pill.rb +14 -0
  352. data/lib/nfg_ui/components/traits/progress_bar.rb +24 -0
  353. data/lib/nfg_ui/components/traits/remote.rb +14 -0
  354. data/lib/nfg_ui/components/traits/size.rb +18 -0
  355. data/lib/nfg_ui/components/traits/slat_item.rb +28 -0
  356. data/lib/nfg_ui/components/traits/step.rb +14 -0
  357. data/lib/nfg_ui/components/traits/theme.rb +57 -0
  358. data/lib/nfg_ui/components/traits/typeface.rb +53 -0
  359. data/lib/nfg_ui/components/traits/vertical.rb +16 -0
  360. data/lib/nfg_ui/components/traits.rb +43 -0
  361. data/lib/nfg_ui/components/utilities/browser_detectable.rb +16 -0
  362. data/lib/nfg_ui/components/utilities/confirmable.rb +24 -0
  363. data/lib/nfg_ui/components/utilities/describable.rb +22 -0
  364. data/lib/nfg_ui/components/utilities/disable_withable.rb +26 -0
  365. data/lib/nfg_ui/components/utilities/emailable.rb +44 -0
  366. data/lib/nfg_ui/components/utilities/iconable.rb +20 -0
  367. data/lib/nfg_ui/components/utilities/left_iconable.rb +22 -0
  368. data/lib/nfg_ui/components/utilities/methodable.rb +24 -0
  369. data/lib/nfg_ui/components/utilities/renderable.rb +24 -0
  370. data/lib/nfg_ui/components/utilities/resource_themeable.rb +49 -0
  371. data/lib/nfg_ui/components/utilities/titleable.rb +20 -0
  372. data/lib/nfg_ui/components/utilities/traitable.rb +32 -0
  373. data/lib/nfg_ui/components/utilities/vertically_alignable.rb +31 -0
  374. data/lib/nfg_ui/components/utilities.rb +22 -0
  375. data/lib/nfg_ui/engine.rb +45 -0
  376. data/lib/nfg_ui/ui/base.rb +35 -0
  377. data/lib/nfg_ui/ui/bootstrap.rb +44 -0
  378. data/lib/nfg_ui/ui/network_for_good.rb +54 -0
  379. data/lib/nfg_ui/ui/utilities/initializer.rb +88 -0
  380. data/lib/nfg_ui/ui/utilities.rb +10 -0
  381. data/lib/nfg_ui/version.rb +5 -0
  382. data/lib/nfg_ui.rb +174 -0
  383. data/lib/tasks/nfg_ui_tasks.rake +53 -0
  384. metadata +741 -0
@@ -0,0 +1,23 @@
1
+ //** Admin Styles **//
2
+
3
+ // App Vendors
4
+ @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700);
5
+ @import 'font-awesome';
6
+ @import 'select2';
7
+
8
+ // Our Variables
9
+ @import 'variables';
10
+
11
+ // Bootstrap Vendor Base
12
+ @import 'bootstrap';
13
+
14
+ // NFG Theme
15
+ @import 'nfg_theme/*';
16
+
17
+ // Plugins
18
+ @import 'nfg_ui/network_for_good/public/plugins/datepicker';
19
+ @import 'nfg_ui/network_for_good/public/plugins/sticky_div';
20
+ @import 'nfg_ui/network_for_good/public/plugins/select2';
21
+
22
+ // Legacy browser support
23
+ @import 'nfg_ui/network_for_good/public/legacy_browser_support/application';
@@ -0,0 +1,2 @@
1
+ // Custom type color
2
+ .alert { color: $body-color; }
@@ -0,0 +1,9 @@
1
+ // Clouds
2
+ .bg-clouds {
3
+ padding-bottom: 20%;
4
+ background-position: 50% 100%;
5
+ background-repeat: no-repeat;
6
+ background-size: 100% auto;
7
+ &.blue { background-image: image-url("onboarding/clouds-blue.png"); }
8
+ &.green { background-image: image-url("onboarding/clouds-green.png"); }
9
+ }
@@ -0,0 +1,8 @@
1
+ // Add visual separator for btn-primary buttons that are in a button group
2
+ .btn-group {
3
+ > .btn-primary:not(:first-child),
4
+ > .btn-group:not(:first-child) > .btn-primary {
5
+ margin-left: 0;
6
+ border-left-color: rgba(0,0,0,.15);
7
+ }
8
+ }
@@ -0,0 +1,17 @@
1
+ // Custom secondary button usage
2
+ .btn-outline-secondary {
3
+ color: theme-color("primary");
4
+ background-color: $white;
5
+ border-color: $border-color;
6
+ &:hover {
7
+ color: $body-color;
8
+ background-color: $body-bg;
9
+ }
10
+ &:not(:disabled):not(.disabled):active,
11
+ &:not(:disabled):not(.disabled).active,
12
+ .show > &.dropdown-toggle {
13
+ color: $body-color;
14
+ background-color: $body-bg;
15
+ }
16
+ }
17
+ .btn-link { font-weight: $btn-font-weight; }
@@ -0,0 +1,20 @@
1
+ //
2
+ // Base styles
3
+ //
4
+ .card {
5
+ box-shadow: 0;
6
+ transition: $transition-base;
7
+ &:hover { box-shadow: $box-shadow-sm; }
8
+ }
9
+ .card-subtitle { margin-top: 0; }
10
+
11
+
12
+ //
13
+ // Optional textual caps
14
+ //
15
+ .card-footer { border-top: none; }
16
+
17
+ // Card image
18
+ .card-img-overlay { @include gradient-y(transparentize($black, 1), transparentize($black, .5)); }
19
+
20
+ .card-img { @include border-radius(0); }
@@ -0,0 +1,20 @@
1
+ // Our custom styles
2
+ @import 'custom/campaign_card';
3
+ @import 'custom/campaign_preview';
4
+ @import 'custom/content_section_buttons';
5
+ @import 'custom/custom_questions_questionnaire';
6
+ @import 'custom/custom_receipt_language';
7
+ @import 'custom/email_preview';
8
+ @import 'custom/interaction';
9
+ @import 'custom/mobile';
10
+ @import 'custom/nav_step';
11
+ @import 'custom/overlay_blocker';
12
+ @import 'custom/page_header';
13
+ @import 'custom/product_icons';
14
+ @import 'custom/redactor';
15
+ @import 'custom/share_dropdown';
16
+ @import 'custom/social_share';
17
+ @import 'custom/slat';
18
+ @import 'custom/status_indicator';
19
+ @import 'custom/ticket';
20
+ @import 'custom/tile';
@@ -0,0 +1,156 @@
1
+ // Checkboxes and radios
2
+ //
3
+ // Base class takes care of all the key behavioral aspects.
4
+
5
+ .custom-control {
6
+ .custom-control-input {
7
+ &:checked {
8
+ ~ .custom-control-label,
9
+ ~ .custom-control-label::before { border-color: $input-focus-border-color; }
10
+ }
11
+ &:focus:not(:checked) ~ .custom-control-label::before { border-color: $input-border-color; }
12
+ }
13
+ }
14
+
15
+ // Custom control indicators
16
+ //
17
+ // Build the custom controls out of pseudo-elements.
18
+
19
+ .custom-control-label {
20
+ font-weight: $font-weight-normal;
21
+
22
+ // Background-color and icon
23
+ &::before, &::after { top: .3rem; }
24
+ &::before { border: $border-width solid $border-color; }
25
+ &::after { cursor: pointer; }
26
+ }
27
+
28
+ // Radios
29
+ //
30
+ // Tweak just a few things for radios.
31
+
32
+ .custom-radio {
33
+ .custom-control-label::after { background-size: 45% 45%; }
34
+ }
35
+
36
+ // Select
37
+ //
38
+ // Replaces the browser default select with a custom one, mostly pulled from
39
+ // https://primer.github.io/.
40
+ //
41
+
42
+ .custom-select {
43
+ font-weight: $btn-font-weight;
44
+ cursor: pointer;
45
+ box-shadow: none;
46
+ }
47
+
48
+ // File
49
+ //
50
+ // Custom file input.
51
+
52
+ .custom-file-label {
53
+ font-weight: $font-weight-normal;
54
+ cursor: pointer;
55
+ border-radius: 0 $btn-border-radius $btn-border-radius 0;
56
+ overflow: hidden;
57
+ &::after {
58
+ font-weight: $btn-font-weight;
59
+ border-radius: 0 $btn-border-radius $btn-border-radius 0;
60
+ }
61
+ }
62
+
63
+ // Block
64
+ //
65
+ // Custom control block (ex: for images)
66
+ .custom-control-block {
67
+ padding: 0;
68
+ .custom-control-label {
69
+ margin-bottom: 0;
70
+ padding: ($spacer * .5) ($spacer * .5) ($spacer * 1.5);
71
+ border: $border-width solid $border-color;
72
+ border-radius: $border-radius;
73
+ cursor: pointer;
74
+ transition: $transition-base;
75
+ &:hover { border-color: $gray-600; }
76
+ &::before, &::after {
77
+ top: auto;
78
+ left: 50%;
79
+ bottom: ($spacer * .5);
80
+ margin-left: -9px;
81
+ }
82
+ }
83
+ }
84
+
85
+ // Without radio or checkbox indicator
86
+ .custom-control-block:not(.custom-radio):not(.custom-checkbox) {
87
+ .custom-control-label {
88
+ padding: ($spacer * .5);
89
+ &::before, &::after { display: none; }
90
+ }
91
+ }
92
+
93
+
94
+ // switches
95
+ //
96
+ // Tweak a few things for switches
97
+
98
+ .custom-switch {
99
+ .custom-control-label {
100
+ &::before {
101
+ padding-left: 28px;
102
+ font-size: 12px;
103
+ line-height: 16px;
104
+ color: $text-muted;
105
+ font-family: "FontAwesome";
106
+ content: "\f00d";
107
+ background-color: $body-bg;
108
+ }
109
+ &::after {
110
+ top: 0;
111
+ left: -($custom-switch-width + $custom-control-gutter);
112
+ background-color: $white;
113
+ border: $border-width solid $border-color;
114
+ border-radius: 50%;
115
+ @include transition(transform .15s ease-in-out, $custom-forms-transition);
116
+ }
117
+ }
118
+
119
+ .custom-control-input:checked ~ .custom-control-label {
120
+ &::after {
121
+ border-color: $input-focus-border-color;
122
+ transform: translateX($custom-switch-width - $custom-switch-indicator-size);
123
+ }
124
+ &::before {
125
+ content: "";
126
+ background-repeat: no-repeat;
127
+ background-size: 30%;
128
+ background-position: 6px 1px;
129
+ background-image: $custom-checkbox-indicator-icon-checked;
130
+ background-color: $custom-control-indicator-checked-bg;
131
+ border-color: $input-focus-border-color;
132
+ }
133
+ }
134
+ }
135
+
136
+
137
+ // Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
138
+ .custom-control-input {
139
+ .was-validated &:valid {
140
+ ~ .custom-control-label {
141
+ color: inherit;
142
+ &::before { background-color: inherit; }
143
+ }
144
+ &:checked {
145
+ ~ .custom-control-label::before {
146
+ background-color: $custom-control-indicator-checked-bg;
147
+ }
148
+ }
149
+ }
150
+ }
151
+
152
+ .custom-file-input {
153
+ .was-validated &:valid {
154
+ ~ .custom-file-label { border-color: $custom-file-border-color; }
155
+ }
156
+ }
@@ -0,0 +1,24 @@
1
+ .dropdown-toggle::after { content: none; }
2
+
3
+
4
+ // Links, buttons, and more within the dropdown menu
5
+ .dropdown-item {
6
+ + .dropdown-item { border-top: $border-width solid $border-color; }
7
+ &.disabled, &:disabled {
8
+ background-color: $body-bg;
9
+ cursor: default;
10
+ pointer-events: none;
11
+ }
12
+ }
13
+
14
+
15
+ // Dropdown section headers
16
+ .dropdown-header {
17
+ padding-top: ($spacer * .5);
18
+ padding-bottom: ($spacer * .5);
19
+ + .dropdown-item { border-top: $border-width solid $border-color; }
20
+ }
21
+
22
+
23
+ // Sizing
24
+ .dropdown-menu-md { min-width: ($spacer * 12); }
@@ -0,0 +1,85 @@
1
+ // Required styles
2
+ label {
3
+ font-weight: $font-weight-bold;
4
+ &.required {
5
+ padding-left: ($spacer * .5);
6
+ &::before{
7
+ content: '*';
8
+ color: theme-color("danger");
9
+ margin-left: -($spacer * .5);
10
+ padding-right: ($spacer * .25);
11
+ }
12
+ }
13
+ }
14
+
15
+ // Form groups
16
+ //
17
+ // Designed to help with the organization and spacing of vertical forms. For
18
+ // horizontal forms, use the predefined grid classes.
19
+
20
+ .form-text {
21
+ font-size: $font-size-sm;
22
+ line-height: 1.3;
23
+ }
24
+
25
+ // Checkboxes and radios
26
+ //
27
+ // Indent the labels to position radios/checkboxes as hanging controls.
28
+
29
+ .form-check-label { font-weight: $font-weight-normal; }
30
+ .form-check-inline { display: inline-block; } // override inline-flex display for better line-height
31
+
32
+
33
+ // Form validation
34
+ //
35
+ // Provide feedback to users when form field values are valid or invalid. Works
36
+ // primarily for client-side validation via scoped `:invalid` and `:valid`
37
+ // pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
38
+ // server side validation.
39
+
40
+ .valid-feedback,
41
+ .invalid-feedback {
42
+ line-height: 1.3;
43
+ }
44
+ .valid-tooltip,
45
+ .invalid-tooltip {
46
+ padding: $tooltip-padding-y $tooltip-padding-x;
47
+ font-size: $tooltip-font-size;
48
+ font-weight: $font-weight-bold;
49
+ line-height: 1.3;
50
+ border-radius: $tooltip-border-radius;
51
+ }
52
+
53
+
54
+ // Inline checkbox/radio validation is a sibling of the form element instead of a child
55
+ .form-group {
56
+ &.is-valid, &.is-invalid {
57
+ .form-check, .custom-control {
58
+ ~ .valid-feedback, ~ .invalid-feedback { display: block; }
59
+ }
60
+ }
61
+ }
62
+
63
+
64
+ // Sometimes rails likes to say a form control is valid even when it isn't... this helps ensure that
65
+ // When simple_form (accurately) detects an error on the field...
66
+ // that the invalid version wins ... avoiding false readings
67
+ .is-invalid {
68
+ &, .custom-select{ border-color: $form-feedback-invalid-color !important; }
69
+ }
70
+
71
+
72
+ // Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
73
+ .form-control,
74
+ .custom-select {
75
+ .was-validated &:valid {
76
+ border-color: $input-border-color;
77
+ &:focus { border-color: $input-focus-border-color; }
78
+ }
79
+ }
80
+
81
+ .form-check-input {
82
+ .was-validated &:valid {
83
+ ~ .form-check-label { color: inherit; }
84
+ }
85
+ }
@@ -0,0 +1,2 @@
1
+ // Allows for text-truncate to work inside a media-body container
2
+ .media-body { min-width: 0; }
@@ -0,0 +1,22 @@
1
+ //
2
+ // Tabs
3
+ //
4
+ .nav-tabs {
5
+ border-width: $border-width;
6
+
7
+ .nav-item {
8
+ margin-bottom: -$border-width;
9
+ font-weight: $font-weight-bold;
10
+ font-size: $font-size-base;
11
+ }
12
+
13
+ .nav-link {
14
+ color: $text-muted;
15
+ border: none;
16
+ border-bottom: $nav-tabs-border-width solid transparent;
17
+ @include hover-focus {
18
+ color: $nav-tabs-link-active-color;
19
+ border-color: $nav-tabs-link-hover-border-color;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,132 @@
1
+ // Styles that replicate the legacy top navs
2
+ #admin-nav {
3
+ background-color: #444444;
4
+ .navbar {
5
+ background: transparent !important;
6
+ .navbar-nav {
7
+ .nav-item {
8
+ @include media-breakpoint-up(lg) {
9
+ + .nav-item { border-left: $border-width solid #4d4d4d; }
10
+ }
11
+ > .nav-link {
12
+ padding: $spacer ($spacer * .5);
13
+ font-size: $font-size-sm;
14
+ font-weight: $font-weight-bold;
15
+ &:hover {
16
+ color: $navbar-dark-hover-color;
17
+ background-color: #414141;
18
+ }
19
+ > .fa {
20
+ color: #626262;
21
+ &:first-child { margin-right: ($spacer * .25); }
22
+ }
23
+ }
24
+ &.active {
25
+ > .nav-link {
26
+ color: $navbar-dark-active-color;
27
+ background-color: #4b4b4b;
28
+ > .fa { color: $navbar-dark-active-color; }
29
+ }
30
+ }
31
+ }
32
+ .dropdown-menu {
33
+ margin-top: 0;
34
+ border-radius: 0 0 $border-radius $border-radius;
35
+ background-color: #525252;
36
+ .dropdown-item {
37
+ padding: 0;
38
+ + .dropdown-item { border-top: none; }
39
+ &.active {
40
+ background-color: transparent;
41
+ .nav-link {
42
+ color: #cccccc;
43
+ border-left-color: $teal;
44
+ }
45
+ }
46
+ }
47
+ .nav-link {
48
+ padding: ($spacer * .5);
49
+ color: #989797;
50
+ border-left: 5px solid transparent;
51
+ &:hover {
52
+ color: #cccccc;
53
+ background-color: #575757;
54
+ border-left-color: #616161;
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ #admin-toolbar {
63
+ padding-top: 2px;
64
+ font-size: 12px;
65
+ font-weight: $font-weight-bold;
66
+ line-height: 1;
67
+ background-color: #2b2b2b;
68
+ &:before {
69
+ position: fixed;
70
+ top: 0;
71
+ left: 0;
72
+ width: 100%;
73
+ height: 2px;
74
+ background-color: $teal;
75
+ z-index: 5;
76
+ content: '';
77
+ }
78
+ .navbar { background: transparent !important; }
79
+ .navbar-brand {
80
+ font-size: 11px;
81
+ font-weight: $font-weight-bold;
82
+ line-height: 1;
83
+ text-transform: uppercase;
84
+ }
85
+ .nav-item {
86
+ > .nav-link {
87
+ padding: ($spacer * .5);
88
+ text-transform: uppercase;
89
+ color: $teal;
90
+ transition: $transition-base;
91
+ &:hover { background-color: #515151; }
92
+ @include media-breakpoint-down(sm) { font-size: 14px; }
93
+ }
94
+ &.show {
95
+ > .nav-link {
96
+ background-color: #fff;
97
+ color: $teal;
98
+ }
99
+ }
100
+ .dropdown-menu {
101
+ margin-top: 0;
102
+ border-radius: 0 0 $border-radius $border-radius;
103
+ .dropdown-item, .nav-link { color: $teal; }
104
+ .nav-link { padding: 0; }
105
+ }
106
+ }
107
+ }
108
+
109
+ #cross_product_nav {
110
+ > .dropdown-menu {
111
+ > .dropdown-item {
112
+ transition: $transition-base;
113
+ position: relative;
114
+ [class^="icon-sso"] { font-size: 40px; }
115
+ .media-body { width: 240px; }
116
+ }
117
+ }
118
+ }
119
+
120
+ #p2p-nav {
121
+ background-color: $gray-800;
122
+ .navbar-nav {
123
+ .nav-link {
124
+ padding-right: ($nav-link-padding-x * .5);
125
+ padding-left: ($nav-link-padding-x * .5);
126
+ color: $teal;
127
+ &:hover {
128
+ background-color: $gray-900;
129
+ }
130
+ }
131
+ }
132
+ }
@@ -0,0 +1,3 @@
1
+ // Sizing options
2
+ .progress-sm { height: ($spacer * .5); }
3
+ .progress-lg { height: ($spacer * 1.5); }
@@ -0,0 +1,31 @@
1
+ html { font-size: 62.5%; }
2
+ body {
3
+ -ms-overflow-style: scrollbar !important;
4
+ font-smooth: always;
5
+ -webkit-font-smoothing: antialiased;
6
+ -moz-font-smoothing: antialiased;
7
+ font-smoothing: antialiased;
8
+ text-rendering: optimizeLegibility;
9
+ font-size: $font-size-base;
10
+ @include media-breakpoint-down(md) {
11
+ overflow-x: hidden;
12
+ -webkit-overflow-scrolling: auto;
13
+ }
14
+ }
15
+
16
+ div { position: relative; } // setting this as a base to avoid improper absolute positioning elements
17
+
18
+ ol,
19
+ ul,
20
+ dl {
21
+ margin-bottom: $paragraph-margin-bottom;
22
+ }
23
+
24
+ img { max-width: 100%; }
25
+
26
+ // Ensure that .disabled and [disabled] really aren't clickable
27
+ .disabled:not([data-toggle='tooltip']),
28
+ [disabled] {
29
+ pointer-events: none !important;
30
+ cursor: not-allowed !important;
31
+ }
@@ -0,0 +1,7 @@
1
+ //
2
+ // Basic Bootstrap table
3
+ //
4
+ .table {
5
+ thead th { border-bottom-width: $table-border-width; }
6
+ tbody + tbody { border-top-width: $table-border-width; }
7
+ }
@@ -0,0 +1,5 @@
1
+ // Setting line-height
2
+ .tooltip {
3
+ font-weight: $font-weight-bold;
4
+ line-height: 1.3;
5
+ }
@@ -0,0 +1,82 @@
1
+ //
2
+ // Headings
3
+ //
4
+ h1, .h1 { line-height: 1; }
5
+ h2, .h2 { line-height: 1.15; }
6
+ h3, .h3 { line-height: 1.1; }
7
+ h4, .h4 { line-height: 1; }
8
+ h5, .h5 { line-height: 1.2; }
9
+ h6, .h6 { line-height: 1.5; }
10
+
11
+ // Type display classes
12
+ .display-4 {
13
+ line-height: 1.3;
14
+ color: $text-muted;
15
+ text-transform: uppercase;
16
+ }
17
+
18
+
19
+ //
20
+ // Misc
21
+ //
22
+ .font-size-base { font-size: $font-size-base !important; }
23
+ .font-size-sm {
24
+ font-size: $font-size-sm !important;
25
+ line-height: 1.3;
26
+ }
27
+ .font-size-lg { font-size: $font-size-lg !important; }
28
+ .line-height-sm { line-height: $line-height-sm; }
29
+ .line-height { line-height: 1.5; }
30
+ .line-height-lg { line-height: $line-height-lg; }
31
+
32
+ strong, .strong, b, .b { font-weight: $font-weight-bold; }
33
+
34
+ a.no-link-color {
35
+ &, &:visited { color: $body-color !important; }
36
+
37
+ &:hover, &:active, &:focus {
38
+ color: theme-color("primary") !important;
39
+ text-decoration: none;
40
+ }
41
+ }
42
+
43
+ // Contextual colors
44
+ @each $color, $value in $colors {
45
+ @include text-emphasis-variant(".text-#{$color}", $value);
46
+ }
47
+
48
+
49
+ // Adds a background divider to word
50
+ .text-divider {
51
+ position: relative;
52
+ &:after {
53
+ position: absolute;
54
+ top: 50%;
55
+ left: 0;
56
+ width: 100%;
57
+ height: 0;
58
+ border-top: $border-width solid $border-color;
59
+ content: '';
60
+ z-index: 0;
61
+ }
62
+ .text-center, .btn-center { z-index: 10; }
63
+ .text-center {
64
+ position: relative;
65
+ text-align: center;
66
+ line-height: 1;
67
+ span {
68
+ display: inline-block;
69
+ padding: ($spacer * .25) ($spacer * .5);
70
+ background-color: $white;
71
+ }
72
+ }
73
+ .btn-center {
74
+ position: absolute;
75
+ top: -18px;
76
+ left: 50%;
77
+ .btn {
78
+ position: relative;
79
+ left: -50%;
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,6 @@
1
+ // Campaign card specific styles to ensure same height images
2
+ #campaign_image {
3
+ height: ($spacer * 8);
4
+ overflow: hidden;
5
+ .card-img { min-height: 100%; }
6
+ }