nfg_ui 0.9.8.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +431 -0
- data/Rakefile +23 -0
- data/app/assets/config/nfg_ui_manifest.js +3 -0
- data/app/assets/images/nfg_ui/app_icon/android-chrome-192x192.png +0 -0
- data/app/assets/images/nfg_ui/app_icon/android-chrome-384x384.png +0 -0
- data/app/assets/images/nfg_ui/app_icon/apple-touch-icon.png +0 -0
- data/app/assets/images/nfg_ui/app_icon/browserconfig.xml.erb +9 -0
- data/app/assets/images/nfg_ui/app_icon/favicon-16x16.png +0 -0
- data/app/assets/images/nfg_ui/app_icon/favicon-32x32.png +0 -0
- data/app/assets/images/nfg_ui/app_icon/favicon.ico +0 -0
- data/app/assets/images/nfg_ui/app_icon/mstile-150x150.png +0 -0
- data/app/assets/images/nfg_ui/app_icon/safari-pinned-tab.svg +38 -0
- data/app/assets/images/nfg_ui/app_icon/site.webmanifest.erb +19 -0
- data/app/assets/images/nfg_ui/email/icons/fa-caret-right.png +0 -0
- data/app/assets/images/nfg_ui/email/icons/fa-facebook.png +0 -0
- data/app/assets/images/nfg_ui/email/icons/fa-linkedin.png +0 -0
- data/app/assets/images/nfg_ui/email/icons/fa-twitter.png +0 -0
- data/app/assets/images/nfg_ui/email/icons/fa-youtube.png +0 -0
- data/app/assets/images/nfg_ui/email/nfg-logo.png +0 -0
- data/app/assets/javascripts/nfg_ui/application.coffee +16 -0
- data/app/assets/javascripts/nfg_ui/collapsible_toggle.coffee +47 -0
- data/app/assets/javascripts/nfg_ui/prevent_clickable_disabled_element.coffee +47 -0
- data/app/assets/javascripts/nfg_ui/vendor/select2.coffee +26 -0
- data/app/assets/javascripts/nfg_ui/vendor/tooltips.coffee +18 -0
- data/app/assets/stylesheets/nfg_ui/bootstrap/application.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/_variables.scss +1123 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/application.scss +23 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_alert.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_backgrounds.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_button-group.scss +8 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_buttons.scss +17 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_card.scss +20 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom.scss +20 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_custom_forms.scss +156 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_dropdown.scss +24 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_forms.scss +85 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_media.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_nav.scss +22 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_navbar.scss +132 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_progress.scss +3 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_reboot.scss +31 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_tables.scss +7 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_tooltip.scss +5 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/_type.scss +82 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_campaign_card.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_campaign_preview.scss +25 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_content_section_buttons.scss +11 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_custom_questions_questionnaire.scss +84 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_custom_receipt_language.scss +15 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_email_preview.scss +24 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_interaction.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_mobile.scss +4 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_nav_step.scss +95 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_overlay_blocker.scss +49 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_page_header.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_product_icons.scss +45 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_redactor.scss +25 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_share_dropdown.scss +53 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_slat.scss +113 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_social_share.scss +44 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_status_indicator.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_ticket.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_tile.scss +71 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/application.scss +38 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/foundation_emails/_alignment.scss +93 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/foundation_emails/_button.scss +345 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_backgrounds.scss +15 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_layout.scss +33 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_rainbow_bar.scss +47 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_spacers.scss +60 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/nfg_theme/_typography.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/email/settings/_settings.scss +148 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/_variables.scss +1124 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/application.scss +23 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/application.scss +19 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_badge.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_buttons.scss +43 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom.scss +3 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_custom_forms.scss +50 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_forms.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_functions.scss +29 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_navbar.scss +18 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_reboot.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_type.scss +16 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_utilities.scss +8 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/custom/_everyday_default.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/custom/_nav_step.scss +20 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/plugins/_select2.scss +16 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/_variables.scss +13 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/application.scss +35 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_breadcrumb.scss +4 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_button-group.scss +10 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_card.scss +45 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_carousel.scss +18 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_custom-forms.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_custom.scss +4 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_forms.scss +68 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_grid.scss +4 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_input-group.scss +25 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_list-group.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_media.scss +5 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_mixins.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_modal.scss +28 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_nav.scss +21 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_navbar.scss +54 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_pagination.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_progress.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/_utilities.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_everyday_giving.scss +8 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_nav_step.scss +13 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/custom/_slat.scss +66 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/mixins/_breakpoints.scss +123 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/mixins/_grid-framework.scss +30 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/mixins/_grid.scss +10 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/utilities/_display.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/nfg_theme/utilities/_flex.scss +49 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/plugins/_sticky_div.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_alert.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_buttons.scss +17 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_card.scss +6 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_carousel.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_custom_forms.scss +156 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_dropdown.scss +1 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_event.scss +19 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_forms.scss +83 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_list-group.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_progress.scss +9 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_reboot.scss +31 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_tooltip.scss +5 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/_type.scss +81 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_admin_bar.scss +20 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_background_variations.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_default.scss +43 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_story.scss +21 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_footer_links.scss +8 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_nav_step.scss +95 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_slat.scss +110 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_social_share.scss +44 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_ticket.scss +12 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_tile.scss +63 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_user_navbar.scss +33 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_datepicker.scss +2 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_select2.scss +216 -0
- data/app/assets/stylesheets/nfg_ui/network_for_good/public/plugins/_sticky_div.scss +11 -0
- data/app/controllers/nfg_ui/application_controller.rb +5 -0
- data/app/helpers/nfg_ui/application_helper.rb +27 -0
- data/app/helpers/nfg_ui/components/email_helpers.rb +8 -0
- data/app/helpers/nfg_ui/components/resource_themes_helper.rb +8 -0
- data/app/helpers/nfg_ui/components/tooltip_helper.rb +24 -0
- data/app/models/nfg_ui/application_record.rb +5 -0
- data/app/views/nfg_ui/app_icons/_icons.html.haml +10 -0
- data/app/views/nfg_ui/email/README.md +12 -0
- data/app/views/nfg_ui/email/_button.html.haml +12 -0
- data/app/views/nfg_ui/email/_email_signature.html.haml +4 -0
- data/app/views/nfg_ui/email/_footer.html.haml +16 -0
- data/app/views/nfg_ui/email/_header.html.haml +6 -0
- data/app/views/nfg_ui/email/_logo.html.haml +6 -0
- data/app/views/nfg_ui/email/_product_content_image.html.haml +7 -0
- data/app/views/nfg_ui/email/_rainbow_bar.html.haml +10 -0
- data/app/views/nfg_ui/email/_section_header.html.haml +8 -0
- data/app/views/nfg_ui/email/_social_network_link.html.haml +12 -0
- data/app/views/nfg_ui/email/_sub_footer.html.haml +9 -0
- data/app/views/nfg_ui/email/_table_row.html.haml +13 -0
- data/config/initializers/web_app_manifest.rb +3 -0
- data/config/locales/email.yml +34 -0
- data/config/locales/en.yml +63 -0
- data/config/routes.rb +2 -0
- data/config/spring.rb +1 -0
- data/lib/nfg_ui/bootstrap/components/alert.rb +52 -0
- data/lib/nfg_ui/bootstrap/components/badge.rb +39 -0
- data/lib/nfg_ui/bootstrap/components/base.rb +151 -0
- data/lib/nfg_ui/bootstrap/components/breadcrumb.rb +23 -0
- data/lib/nfg_ui/bootstrap/components/breadcrumb_item.rb +28 -0
- data/lib/nfg_ui/bootstrap/components/button.rb +74 -0
- data/lib/nfg_ui/bootstrap/components/button_group.rb +36 -0
- data/lib/nfg_ui/bootstrap/components/button_toolbar.rb +21 -0
- data/lib/nfg_ui/bootstrap/components/card.rb +81 -0
- data/lib/nfg_ui/bootstrap/components/card_body.rb +15 -0
- data/lib/nfg_ui/bootstrap/components/card_footer.rb +15 -0
- data/lib/nfg_ui/bootstrap/components/card_header.rb +35 -0
- data/lib/nfg_ui/bootstrap/components/card_image.rb +33 -0
- data/lib/nfg_ui/bootstrap/components/card_image_overlay.rb +46 -0
- data/lib/nfg_ui/bootstrap/components/carousel.rb +57 -0
- data/lib/nfg_ui/bootstrap/components/carousel_caption.rb +34 -0
- data/lib/nfg_ui/bootstrap/components/carousel_control.rb +73 -0
- data/lib/nfg_ui/bootstrap/components/carousel_indicators.rb +54 -0
- data/lib/nfg_ui/bootstrap/components/carousel_item.rb +49 -0
- data/lib/nfg_ui/bootstrap/components/collapse.rb +32 -0
- data/lib/nfg_ui/bootstrap/components/dropdown.rb +51 -0
- data/lib/nfg_ui/bootstrap/components/dropdown_divider.rb +19 -0
- data/lib/nfg_ui/bootstrap/components/dropdown_header.rb +23 -0
- data/lib/nfg_ui/bootstrap/components/dropdown_item.rb +41 -0
- data/lib/nfg_ui/bootstrap/components/dropdown_menu.rb +32 -0
- data/lib/nfg_ui/bootstrap/components/dropdown_toggle.rb +82 -0
- data/lib/nfg_ui/bootstrap/components/embed.rb +80 -0
- data/lib/nfg_ui/bootstrap/components/form.rb +13 -0
- data/lib/nfg_ui/bootstrap/components/input_group.rb +13 -0
- data/lib/nfg_ui/bootstrap/components/jumbotron.rb +13 -0
- data/lib/nfg_ui/bootstrap/components/list_group.rb +39 -0
- data/lib/nfg_ui/bootstrap/components/list_group_item.rb +69 -0
- data/lib/nfg_ui/bootstrap/components/media.rb +15 -0
- data/lib/nfg_ui/bootstrap/components/media_body.rb +15 -0
- data/lib/nfg_ui/bootstrap/components/media_object.rb +23 -0
- data/lib/nfg_ui/bootstrap/components/modal.rb +66 -0
- data/lib/nfg_ui/bootstrap/components/modal_body.rb +16 -0
- data/lib/nfg_ui/bootstrap/components/modal_footer.rb +16 -0
- data/lib/nfg_ui/bootstrap/components/modal_header.rb +37 -0
- data/lib/nfg_ui/bootstrap/components/nav.rb +71 -0
- data/lib/nfg_ui/bootstrap/components/nav_item.rb +103 -0
- data/lib/nfg_ui/bootstrap/components/nav_link.rb +62 -0
- data/lib/nfg_ui/bootstrap/components/navbar.rb +97 -0
- data/lib/nfg_ui/bootstrap/components/navbar_brand.rb +25 -0
- data/lib/nfg_ui/bootstrap/components/navbar_nav.rb +48 -0
- data/lib/nfg_ui/bootstrap/components/navbar_text.rb +21 -0
- data/lib/nfg_ui/bootstrap/components/navbar_toggler.rb +38 -0
- data/lib/nfg_ui/bootstrap/components/page_item.rb +66 -0
- data/lib/nfg_ui/bootstrap/components/pagination.rb +30 -0
- data/lib/nfg_ui/bootstrap/components/popover.rb +12 -0
- data/lib/nfg_ui/bootstrap/components/progress.rb +44 -0
- data/lib/nfg_ui/bootstrap/components/progress_bar.rb +51 -0
- data/lib/nfg_ui/bootstrap/components/tab_content.rb +15 -0
- data/lib/nfg_ui/bootstrap/components/tab_pane.rb +49 -0
- data/lib/nfg_ui/bootstrap/components/table.rb +17 -0
- data/lib/nfg_ui/bootstrap/readme.md +1 -0
- data/lib/nfg_ui/bootstrap/utilities/activatable.rb +32 -0
- data/lib/nfg_ui/bootstrap/utilities/alignable.rb +33 -0
- data/lib/nfg_ui/bootstrap/utilities/collapse_toggleable.rb +35 -0
- data/lib/nfg_ui/bootstrap/utilities/collapsible.rb +42 -0
- data/lib/nfg_ui/bootstrap/utilities/disableable.rb +49 -0
- data/lib/nfg_ui/bootstrap/utilities/dismissible.rb +24 -0
- data/lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb +40 -0
- data/lib/nfg_ui/bootstrap/utilities/headable.rb +20 -0
- data/lib/nfg_ui/bootstrap/utilities/modalable.rb +104 -0
- data/lib/nfg_ui/bootstrap/utilities/progressable.rb +42 -0
- data/lib/nfg_ui/bootstrap/utilities/remotable.rb +24 -0
- data/lib/nfg_ui/bootstrap/utilities/sizable.rb +40 -0
- data/lib/nfg_ui/bootstrap/utilities/themeable.rb +51 -0
- data/lib/nfg_ui/bootstrap/utilities/tooltipable.rb +95 -0
- data/lib/nfg_ui/bootstrap/utilities/wrappable.rb +48 -0
- data/lib/nfg_ui/components/base.rb +14 -0
- data/lib/nfg_ui/components/elements/activity.rb +10 -0
- data/lib/nfg_ui/components/elements/alert.rb +63 -0
- data/lib/nfg_ui/components/elements/badge.rb +32 -0
- data/lib/nfg_ui/components/elements/breadcrumb.rb +16 -0
- data/lib/nfg_ui/components/elements/breadcrumb_item.rb +16 -0
- data/lib/nfg_ui/components/elements/button.rb +97 -0
- data/lib/nfg_ui/components/elements/card_body.rb +15 -0
- data/lib/nfg_ui/components/elements/card_footer.rb +14 -0
- data/lib/nfg_ui/components/elements/card_header.rb +14 -0
- data/lib/nfg_ui/components/elements/card_image.rb +14 -0
- data/lib/nfg_ui/components/elements/card_image_overlay.rb +14 -0
- data/lib/nfg_ui/components/elements/carousel_caption.rb +14 -0
- data/lib/nfg_ui/components/elements/carousel_control.rb +14 -0
- data/lib/nfg_ui/components/elements/carousel_indicators.rb +23 -0
- data/lib/nfg_ui/components/elements/carousel_item.rb +16 -0
- data/lib/nfg_ui/components/elements/chart.rb +11 -0
- data/lib/nfg_ui/components/elements/dropdown_divider.rb +14 -0
- data/lib/nfg_ui/components/elements/dropdown_header.rb +14 -0
- data/lib/nfg_ui/components/elements/dropdown_item.rb +78 -0
- data/lib/nfg_ui/components/elements/dropdown_toggle.rb +37 -0
- data/lib/nfg_ui/components/elements/embed.rb +15 -0
- data/lib/nfg_ui/components/elements/form_control.rb +18 -0
- data/lib/nfg_ui/components/elements/input_group.rb +14 -0
- data/lib/nfg_ui/components/elements/key.rb +11 -0
- data/lib/nfg_ui/components/elements/list_group_item.rb +14 -0
- data/lib/nfg_ui/components/elements/loader.rb +11 -0
- data/lib/nfg_ui/components/elements/media_body.rb +14 -0
- data/lib/nfg_ui/components/elements/media_object.rb +12 -0
- data/lib/nfg_ui/components/elements/modal_body.rb +14 -0
- data/lib/nfg_ui/components/elements/modal_footer.rb +14 -0
- data/lib/nfg_ui/components/elements/modal_header.rb +14 -0
- data/lib/nfg_ui/components/elements/nav.rb +19 -0
- data/lib/nfg_ui/components/elements/nav_item.rb +39 -0
- data/lib/nfg_ui/components/elements/nav_link.rb +33 -0
- data/lib/nfg_ui/components/elements/navbar_brand.rb +15 -0
- data/lib/nfg_ui/components/elements/navbar_text.rb +14 -0
- data/lib/nfg_ui/components/elements/navbar_toggler.rb +14 -0
- data/lib/nfg_ui/components/elements/page_item.rb +14 -0
- data/lib/nfg_ui/components/elements/popover.rb +14 -0
- data/lib/nfg_ui/components/elements/progress_bar.rb +62 -0
- data/lib/nfg_ui/components/elements/slat_action.rb +14 -0
- data/lib/nfg_ui/components/elements/slat_body.rb +14 -0
- data/lib/nfg_ui/components/elements/slat_item.rb +62 -0
- data/lib/nfg_ui/components/elements/stat.rb +11 -0
- data/lib/nfg_ui/components/elements/step.rb +55 -0
- data/lib/nfg_ui/components/elements/step_indicator.rb +41 -0
- data/lib/nfg_ui/components/elements/tab_pane.rb +15 -0
- data/lib/nfg_ui/components/elements/table.rb +14 -0
- data/lib/nfg_ui/components/elements/task.rb +11 -0
- data/lib/nfg_ui/components/elements.rb +58 -0
- data/lib/nfg_ui/components/foundations/color.rb +11 -0
- data/lib/nfg_ui/components/foundations/grid.rb +11 -0
- data/lib/nfg_ui/components/foundations/icon.rb +82 -0
- data/lib/nfg_ui/components/foundations/image.rb +14 -0
- data/lib/nfg_ui/components/foundations/input.rb +11 -0
- data/lib/nfg_ui/components/foundations/typeface.rb +122 -0
- data/lib/nfg_ui/components/patterns/activity_feed.rb +11 -0
- data/lib/nfg_ui/components/patterns/button_group.rb +23 -0
- data/lib/nfg_ui/components/patterns/button_toolbar.rb +20 -0
- data/lib/nfg_ui/components/patterns/card.rb +39 -0
- data/lib/nfg_ui/components/patterns/carousel.rb +31 -0
- data/lib/nfg_ui/components/patterns/collapse.rb +31 -0
- data/lib/nfg_ui/components/patterns/dropdown.rb +27 -0
- data/lib/nfg_ui/components/patterns/dropdown_menu.rb +16 -0
- data/lib/nfg_ui/components/patterns/empty_state.rb +11 -0
- data/lib/nfg_ui/components/patterns/filter_bar.rb +11 -0
- data/lib/nfg_ui/components/patterns/form_group.rb +11 -0
- data/lib/nfg_ui/components/patterns/graph.rb +11 -0
- data/lib/nfg_ui/components/patterns/jumbotron.rb +14 -0
- data/lib/nfg_ui/components/patterns/list_group.rb +16 -0
- data/lib/nfg_ui/components/patterns/media.rb +14 -0
- data/lib/nfg_ui/components/patterns/modal.rb +15 -0
- data/lib/nfg_ui/components/patterns/navbar.rb +17 -0
- data/lib/nfg_ui/components/patterns/navbar_nav.rb +17 -0
- data/lib/nfg_ui/components/patterns/page_header.rb +85 -0
- data/lib/nfg_ui/components/patterns/pagination.rb +14 -0
- data/lib/nfg_ui/components/patterns/progress.rb +24 -0
- data/lib/nfg_ui/components/patterns/slat.rb +14 -0
- data/lib/nfg_ui/components/patterns/slat_actions.rb +115 -0
- data/lib/nfg_ui/components/patterns/slat_header.rb +23 -0
- data/lib/nfg_ui/components/patterns/slat_list.rb +18 -0
- data/lib/nfg_ui/components/patterns/slats.rb +14 -0
- data/lib/nfg_ui/components/patterns/steps.rb +27 -0
- data/lib/nfg_ui/components/patterns/tab_content.rb +14 -0
- data/lib/nfg_ui/components/patterns/task_list.rb +11 -0
- data/lib/nfg_ui/components/patterns/tile.rb +58 -0
- data/lib/nfg_ui/components/patterns/tile_body.rb +29 -0
- data/lib/nfg_ui/components/patterns/tile_header.rb +40 -0
- data/lib/nfg_ui/components/patterns/tile_section.rb +29 -0
- data/lib/nfg_ui/components/traits/active.rb +14 -0
- data/lib/nfg_ui/components/traits/alert.rb +36 -0
- data/lib/nfg_ui/components/traits/alignment.rb +26 -0
- data/lib/nfg_ui/components/traits/button.rb +47 -0
- data/lib/nfg_ui/components/traits/button_group.rb +22 -0
- data/lib/nfg_ui/components/traits/card.rb +14 -0
- data/lib/nfg_ui/components/traits/collapse.rb +29 -0
- data/lib/nfg_ui/components/traits/disable.rb +19 -0
- data/lib/nfg_ui/components/traits/disable_with.rb +14 -0
- data/lib/nfg_ui/components/traits/dismiss.rb +16 -0
- data/lib/nfg_ui/components/traits/dropdown_toggle.rb +14 -0
- data/lib/nfg_ui/components/traits/icon.rb +16 -0
- data/lib/nfg_ui/components/traits/list_group.rb +16 -0
- data/lib/nfg_ui/components/traits/muted.rb +16 -0
- data/lib/nfg_ui/components/traits/nav.rb +26 -0
- data/lib/nfg_ui/components/traits/nav_item.rb +16 -0
- data/lib/nfg_ui/components/traits/navbar.rb +18 -0
- data/lib/nfg_ui/components/traits/page_header.rb +16 -0
- data/lib/nfg_ui/components/traits/pill.rb +14 -0
- data/lib/nfg_ui/components/traits/progress_bar.rb +24 -0
- data/lib/nfg_ui/components/traits/remote.rb +14 -0
- data/lib/nfg_ui/components/traits/size.rb +18 -0
- data/lib/nfg_ui/components/traits/slat_item.rb +28 -0
- data/lib/nfg_ui/components/traits/step.rb +14 -0
- data/lib/nfg_ui/components/traits/theme.rb +57 -0
- data/lib/nfg_ui/components/traits/typeface.rb +53 -0
- data/lib/nfg_ui/components/traits/vertical.rb +16 -0
- data/lib/nfg_ui/components/traits.rb +43 -0
- data/lib/nfg_ui/components/utilities/browser_detectable.rb +16 -0
- data/lib/nfg_ui/components/utilities/confirmable.rb +24 -0
- data/lib/nfg_ui/components/utilities/describable.rb +22 -0
- data/lib/nfg_ui/components/utilities/disable_withable.rb +26 -0
- data/lib/nfg_ui/components/utilities/emailable.rb +44 -0
- data/lib/nfg_ui/components/utilities/iconable.rb +20 -0
- data/lib/nfg_ui/components/utilities/left_iconable.rb +22 -0
- data/lib/nfg_ui/components/utilities/methodable.rb +24 -0
- data/lib/nfg_ui/components/utilities/renderable.rb +24 -0
- data/lib/nfg_ui/components/utilities/resource_themeable.rb +49 -0
- data/lib/nfg_ui/components/utilities/titleable.rb +20 -0
- data/lib/nfg_ui/components/utilities/traitable.rb +32 -0
- data/lib/nfg_ui/components/utilities/vertically_alignable.rb +31 -0
- data/lib/nfg_ui/components/utilities.rb +22 -0
- data/lib/nfg_ui/engine.rb +45 -0
- data/lib/nfg_ui/ui/base.rb +35 -0
- data/lib/nfg_ui/ui/bootstrap.rb +44 -0
- data/lib/nfg_ui/ui/network_for_good.rb +54 -0
- data/lib/nfg_ui/ui/utilities/initializer.rb +88 -0
- data/lib/nfg_ui/ui/utilities.rb +10 -0
- data/lib/nfg_ui/version.rb +5 -0
- data/lib/nfg_ui.rb +174 -0
- data/lib/tasks/nfg_ui_tasks.rake +53 -0
- metadata +741 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
//** Public 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 'plugins/datepicker';
|
19
|
+
@import 'plugins/sticky_div';
|
20
|
+
@import 'plugins/select2';
|
21
|
+
|
22
|
+
// Legacy browser support
|
23
|
+
@import 'legacy_browser_support/application';
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//** Entity Branding Styles **//
|
2
|
+
|
3
|
+
// Our Variables
|
4
|
+
@import 'nfg_ui/network_for_good/public/variables';
|
5
|
+
|
6
|
+
// NFG Theme
|
7
|
+
@import 'nfg_theme/functions';
|
8
|
+
@import 'nfg_theme/reboot';
|
9
|
+
@import 'nfg_theme/type';
|
10
|
+
@import 'nfg_theme/forms';
|
11
|
+
@import 'nfg_theme/buttons';
|
12
|
+
@import 'nfg_theme/custom_forms';
|
13
|
+
@import 'nfg_theme/navbar';
|
14
|
+
@import 'nfg_theme/badge';
|
15
|
+
@import 'nfg_theme/utilities';
|
16
|
+
@import 'nfg_theme/custom';
|
17
|
+
|
18
|
+
// Plugins
|
19
|
+
@import 'plugins/select2';
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_buttons.scss
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
// Specific styles for entity branding
|
2
|
+
|
3
|
+
.btn-primary {
|
4
|
+
color: color-yiq($primary);
|
5
|
+
background-color: $primary;
|
6
|
+
border-color: $primary;
|
7
|
+
&:hover {
|
8
|
+
color: color-yiq(darken($primary, 10%));
|
9
|
+
background-color: darken($primary, 10%);
|
10
|
+
border-color: darken($primary, 10%);
|
11
|
+
}
|
12
|
+
&.disabled,
|
13
|
+
&:disabled,
|
14
|
+
&:not(:disabled):not(.disabled):active,
|
15
|
+
&:not(:disabled):not(.disabled).active,
|
16
|
+
.show > &.dropdown-toggle {
|
17
|
+
color: color-yiq($primary);
|
18
|
+
background-color: $primary;
|
19
|
+
border-color: $primary;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.btn-outline-secondary {
|
24
|
+
color: color-yiq($primary, $yiq-text-dark, $primary);
|
25
|
+
&:hover { color: color-yiq($primary, $yiq-text-dark, $primary); }
|
26
|
+
&:not(:disabled):not(.disabled):active,
|
27
|
+
&:not(:disabled):not(.disabled).active,
|
28
|
+
.show > &.dropdown-toggle { color: color-yiq($primary, $yiq-text-dark, $primary); }
|
29
|
+
}
|
30
|
+
|
31
|
+
.btn-link {
|
32
|
+
color: color-yiq($primary, $yiq-text-dark, $primary);
|
33
|
+
&:hover { color: color-yiq(darken($primary, 15%), $yiq-text-dark, darken($primary, 15%)); }
|
34
|
+
}
|
35
|
+
|
36
|
+
.bg-dark {
|
37
|
+
.btn-primary {
|
38
|
+
h1, h2, h3, h4, h5, h6, p, label { color: color-yiq($primary); }
|
39
|
+
}
|
40
|
+
.btn-outline-secondary {
|
41
|
+
h1, h2, h3, h4, h5, h6, p, label { color: color-yiq($primary, $yiq-text-dark, $primary); }
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Specific styles for entity branding
|
2
|
+
|
3
|
+
.custom-control {
|
4
|
+
.custom-control-input {
|
5
|
+
&:checked {
|
6
|
+
~ .custom-control-label, ~ .custom-control-label::before { border-color: $primary; }
|
7
|
+
~ .custom-control-label::before { background-color: $primary; }
|
8
|
+
}
|
9
|
+
&:not(:disabled):active ~ .custom-control-label::before {
|
10
|
+
background-color: lighten($primary, 35%);
|
11
|
+
border-color: lighten($primary, 35%);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.custom-select {
|
17
|
+
color: color-yiq($primary, $yiq-text-dark, $primary);
|
18
|
+
background-image: $custom-select-indicator;
|
19
|
+
&:focus {
|
20
|
+
border-color: $primary;
|
21
|
+
&::-ms-value { color: $primary; }
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.custom-file-input {
|
26
|
+
&:focus ~ .custom-file-label {
|
27
|
+
border-color: $primary;
|
28
|
+
&::after { border-color: $primary; }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.custom-switch {
|
33
|
+
.custom-control-input:checked ~ .custom-control-label {
|
34
|
+
&::after { border-color: $primary; }
|
35
|
+
&::before {
|
36
|
+
background-color: $primary;
|
37
|
+
border-color: $primary;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
// Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
|
44
|
+
.custom-control-input {
|
45
|
+
.was-validated &:valid {
|
46
|
+
&:checked {
|
47
|
+
~ .custom-control-label::before { background-color: $primary; }
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_forms.scss
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
// Specific styles for entity branding
|
2
|
+
|
3
|
+
.form-control:focus { border-color: $primary; }
|
4
|
+
|
5
|
+
|
6
|
+
// Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
|
7
|
+
.form-control,
|
8
|
+
.custom-select {
|
9
|
+
.was-validated &:valid {
|
10
|
+
&:focus { border-color: $primary; }
|
11
|
+
}
|
12
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_functions.scss
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
// Specific functions for entity branding
|
2
|
+
|
3
|
+
// Color contrast
|
4
|
+
@function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {
|
5
|
+
$r: red($color);
|
6
|
+
$g: green($color);
|
7
|
+
$b: blue($color);
|
8
|
+
|
9
|
+
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
10
|
+
|
11
|
+
@if ($yiq >= $yiq-contrasted-threshold) {
|
12
|
+
@return $dark;
|
13
|
+
} @else {
|
14
|
+
@return $light;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
// This function replaces the hex color code with proper URL-encoding for color in SVG paths
|
19
|
+
@function encodecolor($string) {
|
20
|
+
@if type-of($string) == 'color' {
|
21
|
+
$hex: str-slice(ie-hex-str($string), 4);
|
22
|
+
$string:unquote("#{$hex}");
|
23
|
+
}
|
24
|
+
$string: '%23' + $string;
|
25
|
+
@return $string;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Entity variable for custom select and select2 arrow icons
|
29
|
+
$custom-select-indicator: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='#{encodecolor($primary)}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_navbar.scss
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
// Specific styles for entity branding
|
2
|
+
|
3
|
+
.navbar-light {
|
4
|
+
.navbar-brand,
|
5
|
+
.navbar-toggler {
|
6
|
+
color: color-yiq($primary, $yiq-text-dark, $primary);
|
7
|
+
&:hover, &:focus { color: color-yiq($primary, $yiq-text-dark, $primary); }
|
8
|
+
}
|
9
|
+
.navbar-nav {
|
10
|
+
.nav-link {
|
11
|
+
&:hover, &:focus { color: color-yiq($primary, darken($primary, 10%), $primary); }
|
12
|
+
}
|
13
|
+
.open > .nav-link,
|
14
|
+
.active > .nav-link,
|
15
|
+
.nav-link.open,
|
16
|
+
.nav-link.active { color: color-yiq($primary, darken($primary, 10%), $primary); }
|
17
|
+
}
|
18
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/nfg_theme/_type.scss
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
// Specific styles for entity branding
|
2
|
+
|
3
|
+
a.no-link-color {
|
4
|
+
&:hover, &:active, &:focus { color: $primary !important; }
|
5
|
+
}
|
6
|
+
|
7
|
+
.text-primary { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
|
8
|
+
|
9
|
+
a.text-primary {
|
10
|
+
color: color-yiq($primary, darken($primary, 15%), $primary) !important;
|
11
|
+
&:hover, &:focus { color: darken($primary, 15%) !important; }
|
12
|
+
}
|
13
|
+
|
14
|
+
.bg-dark {
|
15
|
+
.text-primary { color: color-yiq($primary, $primary, $yiq-text-light) !important; }
|
16
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
//
|
2
|
+
// Steps
|
3
|
+
//
|
4
|
+
.nav-steps {
|
5
|
+
.nav-item {
|
6
|
+
|
7
|
+
&.visited, &.active {
|
8
|
+
.step-indicator {
|
9
|
+
color: color-yiq($primary);
|
10
|
+
background-color: $primary;
|
11
|
+
border-color: $primary;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
&.visited::after { background-color: $primary; }
|
15
|
+
|
16
|
+
.step-indicator {
|
17
|
+
&::after { box-shadow: 0 0 0 ($spacer * .25) transparentize($primary, 0.5); }
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/entity_branding/plugins/_select2.scss
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
// Specific styles for entity branding
|
2
|
+
|
3
|
+
.select2-container--default {
|
4
|
+
.select2-selection--single {
|
5
|
+
color: color-yiq($primary) !important;
|
6
|
+
background-image: $custom-select-indicator;
|
7
|
+
&,
|
8
|
+
.select2-selection__placeholder,
|
9
|
+
.select2-selection__choice__remove,
|
10
|
+
.select2-selection__rendered,
|
11
|
+
.select2-selection__rendered .select2-selection__choice { color: color-yiq($primary, $yiq-text-dark, $primary) !important; }
|
12
|
+
}
|
13
|
+
&.select2-container--focus .select2-selection--multiple,
|
14
|
+
&.select2-container--open .select2-selection--single { border-color: $primary !important; }
|
15
|
+
.select2-search--dropdown .select2-search__field:focus { border-color: $primary !important; }
|
16
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/_variables.scss
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// These variables are neeeded to ensure the grid and breakpoints work within the legacy_browser_support directory
|
2
|
+
$spacer: 2.4rem;
|
3
|
+
|
4
|
+
$grid-breakpoints: (
|
5
|
+
xs: 0,
|
6
|
+
sm: 576px,
|
7
|
+
md: 768px,
|
8
|
+
lg: 992px,
|
9
|
+
xl: 1200px
|
10
|
+
);
|
11
|
+
|
12
|
+
$grid-columns: 12;
|
13
|
+
$grid-gutter-width: $spacer;
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/legacy_browser_support/application.scss
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
//** Browser Compatibility Styles **//
|
2
|
+
|
3
|
+
// This document is powered by modernizr's detection of flexbox support
|
4
|
+
// Read more here: http://zomigi.com/blog/using-modernizr-with-flexbox/
|
5
|
+
|
6
|
+
// IE 10 & 11 Specific
|
7
|
+
// Flexbox Tweener (only) Supported:
|
8
|
+
html.flexboxtweener {
|
9
|
+
|
10
|
+
// Legacy browser support requreid variables
|
11
|
+
@import 'variables';
|
12
|
+
|
13
|
+
// NFG Theme
|
14
|
+
@import 'nfg_theme/mixins';
|
15
|
+
@import 'nfg_theme/grid';
|
16
|
+
@import 'nfg_theme/forms';
|
17
|
+
@import 'nfg_theme/button-group';
|
18
|
+
@import 'nfg_theme/input-group';
|
19
|
+
@import 'nfg_theme/custom-forms';
|
20
|
+
@import 'nfg_theme/nav';
|
21
|
+
@import 'nfg_theme/navbar';
|
22
|
+
@import 'nfg_theme/card';
|
23
|
+
@import 'nfg_theme/breadcrumb';
|
24
|
+
@import 'nfg_theme/pagination';
|
25
|
+
@import 'nfg_theme/progress';
|
26
|
+
@import 'nfg_theme/media';
|
27
|
+
@import 'nfg_theme/list-group';
|
28
|
+
@import 'nfg_theme/modal';
|
29
|
+
@import 'nfg_theme/carousel';
|
30
|
+
@import 'nfg_theme/utilities';
|
31
|
+
@import 'nfg_theme/custom';
|
32
|
+
|
33
|
+
// Plugins
|
34
|
+
@import 'plugins/sticky_div';
|
35
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
|
5
|
+
.card {
|
6
|
+
display: block; // using display block because "-ms-flex-direction: column;" doesn't work in IE10
|
7
|
+
// display: -ms-flexbox;
|
8
|
+
// -ms-flex-direction: column;
|
9
|
+
}
|
10
|
+
|
11
|
+
.card-body { -ms-flex: 1 1 auto; }
|
12
|
+
|
13
|
+
|
14
|
+
// Card deck
|
15
|
+
|
16
|
+
.card-deck {
|
17
|
+
display: -ms-flexbox;
|
18
|
+
-ms-flex-direction: column;
|
19
|
+
|
20
|
+
@include media-breakpoint-up(sm) {
|
21
|
+
-ms-flex-direction: row;
|
22
|
+
-ms-flex-wrap: wrap;
|
23
|
+
.card {
|
24
|
+
display: -ms-flexbox;
|
25
|
+
-ms-flex: 1 0 0%;
|
26
|
+
-ms-flex-direction: column;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
//
|
33
|
+
// Card groups
|
34
|
+
//
|
35
|
+
|
36
|
+
.card-group {
|
37
|
+
display: -ms-flexbox;
|
38
|
+
-ms-flex-direction: column;
|
39
|
+
|
40
|
+
@include media-breakpoint-up(sm) {
|
41
|
+
-ms-flex-direction: row;
|
42
|
+
-ms-flex-wrap: wrap;
|
43
|
+
> .card { -ms-flex: 1 0 0%; }
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.carousel-item { -ms-flex-align: center; }
|
2
|
+
|
3
|
+
// Left/right controls for nav
|
4
|
+
|
5
|
+
.carousel-control-prev,
|
6
|
+
.carousel-control-next {
|
7
|
+
display: -ms-flexbox;
|
8
|
+
-ms-flex-align: center;
|
9
|
+
-ms-flex-pack: center;
|
10
|
+
}
|
11
|
+
|
12
|
+
// Optional indicator pips
|
13
|
+
|
14
|
+
.carousel-indicators {
|
15
|
+
display: -ms-flexbox;
|
16
|
+
-ms-flex-pack: center;
|
17
|
+
li { -ms-flex: 0 1 auto; }
|
18
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
// IE10 only
|
2
|
+
&.no-flexbox {
|
3
|
+
select {
|
4
|
+
padding-right: 12px;
|
5
|
+
background: #FFFFFF !important;
|
6
|
+
&::-ms-expand { display: block !important; }
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
// Fixes padding issue on file inputs
|
11
|
+
input[type='file'] {
|
12
|
+
padding: 0;
|
13
|
+
border: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Form grid
|
17
|
+
//
|
18
|
+
// Special replacement for our grid system's `.row` for tighter form layouts.
|
19
|
+
|
20
|
+
.form-row {
|
21
|
+
display: -ms-flexbox;
|
22
|
+
-ms-flex-wrap: wrap;
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
// Checkboxes and radios
|
27
|
+
//
|
28
|
+
// Indent the labels to position radios/checkboxes as hanging controls.
|
29
|
+
|
30
|
+
.form-check-inline {
|
31
|
+
display: -ms-inline-flexbox;
|
32
|
+
-ms-flex-align: center;
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
// Inline forms
|
37
|
+
|
38
|
+
.form-inline {
|
39
|
+
display: -ms-flexbox;
|
40
|
+
-ms-flex-direction: row;
|
41
|
+
-ms-flex-wrap: wrap;
|
42
|
+
-ms-flex-align: center;
|
43
|
+
|
44
|
+
// Kick in the inline
|
45
|
+
@include media-breakpoint-up(sm) {
|
46
|
+
label {
|
47
|
+
display: -ms-flexbox;
|
48
|
+
-ms-flex-align: center;
|
49
|
+
-ms-flex-pack: center;
|
50
|
+
}
|
51
|
+
.form-group {
|
52
|
+
display: -ms-flexbox;
|
53
|
+
-ms-flex: 0 0 auto;
|
54
|
+
-ms-flex-direction: row;
|
55
|
+
-ms-flex-wrap: wrap;
|
56
|
+
-ms-flex-align: center;
|
57
|
+
}
|
58
|
+
.form-check {
|
59
|
+
display: -ms-flexbox;
|
60
|
+
-ms-flex-align: center;
|
61
|
+
-ms-flex-pack: center;
|
62
|
+
}
|
63
|
+
.custom-control {
|
64
|
+
-ms-flex-align: center;
|
65
|
+
-ms-flex-pack: center;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
.input-group {
|
5
|
+
display: -ms-flexbox;
|
6
|
+
-ms-flex-wrap: wrap;
|
7
|
+
-ms-flex-align: stretch;
|
8
|
+
> .form-control,
|
9
|
+
> .custom-select,
|
10
|
+
> .custom-file {
|
11
|
+
-ms-flex: 1 1 auto;
|
12
|
+
}
|
13
|
+
> .custom-file {
|
14
|
+
display: -ms-flexbox;
|
15
|
+
-ms-flex-align: center;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// Prepend and append
|
20
|
+
|
21
|
+
.input-group-prepend, .input-group-append { display: -ms-flexbox; }
|
22
|
+
|
23
|
+
// Textual addons
|
24
|
+
|
25
|
+
.input-group-text { display: -ms-flexbox; }
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.modal-dialog-centered {
|
2
|
+
display: -ms-flexbox;
|
3
|
+
-ms-flex-align: center;
|
4
|
+
}
|
5
|
+
|
6
|
+
// Actual modal
|
7
|
+
.modal-content {
|
8
|
+
display: block; // using display block because "-ms-flex-direction: column;" doesn't work in IE10
|
9
|
+
// display: -ms-flexbox;
|
10
|
+
// -ms-flex-direction: column;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Modal header
|
14
|
+
.modal-header {
|
15
|
+
display: -ms-flexbox;
|
16
|
+
-ms-flex-align: start;
|
17
|
+
-ms-flex-pack: justify;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Modal body
|
21
|
+
.modal-body { -ms-flex: 1 1 auto; }
|
22
|
+
|
23
|
+
// Footer (for actions)
|
24
|
+
.modal-footer {
|
25
|
+
display: -ms-flexbox;
|
26
|
+
-ms-flex-align: center;
|
27
|
+
-ms-flex-pack: end;
|
28
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Base class
|
2
|
+
|
3
|
+
.nav {
|
4
|
+
display: -ms-flexbox;
|
5
|
+
-ms-flex-wrap: wrap;
|
6
|
+
}
|
7
|
+
|
8
|
+
// Justified variants
|
9
|
+
|
10
|
+
.nav-fill {
|
11
|
+
.nav-item {
|
12
|
+
-ms-flex: 1 1 auto;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.nav-justified {
|
17
|
+
.nav-item {
|
18
|
+
-ms-flex-preferred-size: 0;
|
19
|
+
-ms-flex-positive: 1;
|
20
|
+
}
|
21
|
+
}
|