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,83 @@
|
|
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 { border-color: $form-feedback-invalid-color !important; }
|
68
|
+
|
69
|
+
|
70
|
+
// Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
|
71
|
+
.form-control,
|
72
|
+
.custom-select {
|
73
|
+
.was-validated &:valid {
|
74
|
+
border-color: $input-border-color;
|
75
|
+
&:focus { border-color: $input-focus-border-color; }
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.form-check-input {
|
80
|
+
.was-validated &:valid {
|
81
|
+
~ .form-check-label { color: inherit; }
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Flush list items
|
2
|
+
//
|
3
|
+
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
4
|
+
// useful within other components (e.g., cards).
|
5
|
+
|
6
|
+
.list-group-flush {
|
7
|
+
.list-group-item {
|
8
|
+
padding-right: 0;
|
9
|
+
padding-left: 0;
|
10
|
+
&:last-child { border-bottom: 0; }
|
11
|
+
}
|
12
|
+
}
|
@@ -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,81 @@
|
|
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
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
//
|
19
|
+
// Misc
|
20
|
+
//
|
21
|
+
.font-size-base { font-size: $font-size-base !important; }
|
22
|
+
.font-size-sm {
|
23
|
+
font-size: $font-size-sm !important;
|
24
|
+
line-height: 1.3;
|
25
|
+
}
|
26
|
+
.font-size-lg { font-size: $font-size-lg !important; }
|
27
|
+
.line-height-sm { line-height: $line-height-sm; }
|
28
|
+
.line-height { line-height: 1.5; }
|
29
|
+
.line-height-lg { line-height: $line-height-lg; }
|
30
|
+
|
31
|
+
strong, .strong, b, .b { font-weight: $font-weight-bold; }
|
32
|
+
|
33
|
+
a.no-link-color {
|
34
|
+
&, &:visited { color: $body-color !important; }
|
35
|
+
|
36
|
+
&:hover, &:active, &:focus {
|
37
|
+
color: $primary !important;
|
38
|
+
text-decoration: none;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Contextual colors
|
43
|
+
@each $color, $value in $colors {
|
44
|
+
@include text-emphasis-variant(".text-#{$color}", $value);
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
// Adds a background divider to word
|
49
|
+
.text-divider {
|
50
|
+
position: relative;
|
51
|
+
&:after {
|
52
|
+
position: absolute;
|
53
|
+
top: 50%;
|
54
|
+
left: 0;
|
55
|
+
width: 100%;
|
56
|
+
height: 0;
|
57
|
+
border-top: $border-width solid $border-color;
|
58
|
+
content: '';
|
59
|
+
z-index: 0;
|
60
|
+
}
|
61
|
+
.text-center, .btn-center { z-index: 10; }
|
62
|
+
.text-center {
|
63
|
+
position: relative;
|
64
|
+
text-align: center;
|
65
|
+
line-height: 1;
|
66
|
+
span {
|
67
|
+
display: inline-block;
|
68
|
+
padding: ($spacer * .25) ($spacer * .5);
|
69
|
+
background-color: $white;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
.btn-center {
|
73
|
+
position: absolute;
|
74
|
+
top: -18px;
|
75
|
+
left: 50%;
|
76
|
+
.btn {
|
77
|
+
position: relative;
|
78
|
+
left: -50%;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Remove styles and use bs4 structure and styles once update is final
|
2
|
+
|
3
|
+
.admin-bar {
|
4
|
+
position: relative;
|
5
|
+
z-index: 100;
|
6
|
+
font-weight: $font-weight-bold;
|
7
|
+
color: $text-muted;
|
8
|
+
text-transform: uppercase;
|
9
|
+
background-color: $black;
|
10
|
+
}
|
11
|
+
.admin-bar-descriptor {
|
12
|
+
display: inline-block;
|
13
|
+
padding: ($spacer * .5) 0;
|
14
|
+
}
|
15
|
+
.admin-bar-main-links a {
|
16
|
+
display: inline-block;
|
17
|
+
padding: ($spacer * .5);
|
18
|
+
color: $white;
|
19
|
+
&:hover, &:active { color: $text-muted; }
|
20
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Background variations for donation form and donation stat cards
|
2
|
+
.bg-dark {
|
3
|
+
@include media-breakpoint-down(md) {
|
4
|
+
&.jumbotron, &.card { background-color: $gray-800; }
|
5
|
+
}
|
6
|
+
h1, h2, h3, h4, h5, h6, p, label { color: $white; }
|
7
|
+
.progress { background-color: $gray-600; }
|
8
|
+
|
9
|
+
|
10
|
+
// Styles needed to override :valid success styles provided by bootstrap... this is for server side forms only
|
11
|
+
.was-validated .form-check-input:valid ~ .form-check-label { color: $white; }
|
12
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_default.scss
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
// Styles specific to the everyday default style
|
2
|
+
.everyday_default {
|
3
|
+
.jumbotron {
|
4
|
+
&::before {
|
5
|
+
width:100%;
|
6
|
+
height: 100%;
|
7
|
+
-ms-transform-style: preserve-3d;
|
8
|
+
-ms-transform: translate3d(0,0,0);
|
9
|
+
transform: translate3d(0,0,0);
|
10
|
+
position: fixed;
|
11
|
+
content: '';
|
12
|
+
background-repeat: no-repeat;
|
13
|
+
background-size: cover;
|
14
|
+
z-index: 0;
|
15
|
+
}
|
16
|
+
@include media-breakpoint-down(md) {
|
17
|
+
&::before { content: none; }
|
18
|
+
.card {
|
19
|
+
box-shadow: none;
|
20
|
+
border-radius: 0;
|
21
|
+
}
|
22
|
+
.card-body { padding: 0; }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
.progress-stats {
|
26
|
+
position: absolute;
|
27
|
+
top: ($spacer * .25);
|
28
|
+
left: $grid-gutter-width / 2;
|
29
|
+
width: 100%;
|
30
|
+
z-index: 1;
|
31
|
+
}
|
32
|
+
|
33
|
+
&.admin {
|
34
|
+
.jumbotron {
|
35
|
+
&::before { margin-top: 0; }
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
// positioning background image properly in iframe campaign preview
|
41
|
+
body.preview.everyday_default{
|
42
|
+
.jumbotron::before { position: absolute; }
|
43
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_everyday_story.scss
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
// Styles specific to the everyday story style
|
2
|
+
.everyday_story {
|
3
|
+
.jumbotron {
|
4
|
+
width: 100%;
|
5
|
+
height: 100%;
|
6
|
+
background-repeat: no-repeat;
|
7
|
+
background-size: cover;
|
8
|
+
@include media-breakpoint-down(md) {
|
9
|
+
background-image: none !important;
|
10
|
+
.card { box-shadow: none; }
|
11
|
+
.card-body { padding: 0; }
|
12
|
+
}
|
13
|
+
@include media-breakpoint-up(lg) { min-height: 500px; }
|
14
|
+
}
|
15
|
+
|
16
|
+
&.admin {
|
17
|
+
.jumbotron {
|
18
|
+
&::before { margin-top: 0; }
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
//
|
2
|
+
// Steps
|
3
|
+
//
|
4
|
+
.nav-steps {
|
5
|
+
.nav-item {
|
6
|
+
position: relative;
|
7
|
+
|
8
|
+
|
9
|
+
// Background connector bar between items
|
10
|
+
&::after {
|
11
|
+
position: absolute;
|
12
|
+
top: (($spacer * .5) - .1rem);
|
13
|
+
left: 50%;
|
14
|
+
width: 100%;
|
15
|
+
height: ($border-width + 1px);
|
16
|
+
background-color: $border-color;
|
17
|
+
content: '';
|
18
|
+
z-index: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
// Removes the background connector bar on the last item
|
23
|
+
&:last-child {
|
24
|
+
&::after { display: none; }
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
// Various states
|
29
|
+
&.visited, &.active {
|
30
|
+
.step-indicator {
|
31
|
+
color: $white;
|
32
|
+
background-color: $primary;
|
33
|
+
border-color: $primary;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
&.visited::after { background-color: $primary; }
|
37
|
+
&.disabled {
|
38
|
+
cursor: default;
|
39
|
+
pointer-events: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
// Nav-link overrides
|
44
|
+
.nav-link {
|
45
|
+
position: relative;
|
46
|
+
display: inline-block;
|
47
|
+
padding: 0 ($spacer * .25);
|
48
|
+
z-index: 10;
|
49
|
+
&[href] {
|
50
|
+
@include hover-focus {
|
51
|
+
.step-indicator::after { opacity: 1; }
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Circle step indicator uses either integeer or icon
|
58
|
+
.step-indicator {
|
59
|
+
display: flex;
|
60
|
+
align-items: center;
|
61
|
+
justify-content: center;
|
62
|
+
margin: 0 auto;
|
63
|
+
width: $spacer;
|
64
|
+
height: $spacer;
|
65
|
+
font-size: $font-size-sm;
|
66
|
+
font-weight: $font-weight-bold;
|
67
|
+
line-height: 100%;
|
68
|
+
color: $text-muted;
|
69
|
+
background-color: $white;
|
70
|
+
border: ($border-width + 1px) solid $border-color;
|
71
|
+
border-radius: 50%;
|
72
|
+
|
73
|
+
|
74
|
+
// Provides smooth transition for box-shadow
|
75
|
+
&::after {
|
76
|
+
position: absolute;
|
77
|
+
top: 0;
|
78
|
+
right: 0;
|
79
|
+
bottom: 0;
|
80
|
+
left: 0;
|
81
|
+
width: 100%;
|
82
|
+
height: 100%;
|
83
|
+
border-radius: 50%;
|
84
|
+
box-shadow: 0 0 0 ($spacer * .25) transparentize($primary, 0.5);
|
85
|
+
transition: $transition-fade;
|
86
|
+
opacity: 0;
|
87
|
+
content: '';
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
// Flex fix for equal width items
|
94
|
+
&.nav-fill .nav-item { flex-basis: 0; }
|
95
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
// Slat and its child elements
|
2
|
+
.slat {
|
3
|
+
display: flex;
|
4
|
+
flex-flow: row wrap;
|
5
|
+
}
|
6
|
+
|
7
|
+
|
8
|
+
// Body Column
|
9
|
+
.slat-body {
|
10
|
+
display: flex;
|
11
|
+
flex-flow: row wrap;
|
12
|
+
flex: 1 0 0;
|
13
|
+
margin-right: -($grid-gutter-width * .5);
|
14
|
+
margin-left: -($grid-gutter-width * .5);
|
15
|
+
width: 100%;
|
16
|
+
.slat-item {
|
17
|
+
flex: 1 0 0;
|
18
|
+
padding-right: ($grid-gutter-width * .5);
|
19
|
+
padding-left: ($grid-gutter-width * .5);
|
20
|
+
width: 100%;
|
21
|
+
max-width: 100%;
|
22
|
+
min-height: 1px;
|
23
|
+
&:first-child {
|
24
|
+
flex-grow: 2;
|
25
|
+
|
26
|
+
// Sizing options
|
27
|
+
&.slat-item-sm { flex-grow: 0; }
|
28
|
+
&.slat-item-lg { flex-grow: 6; }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
// Action Column
|
35
|
+
.slat-actions {
|
36
|
+
padding-left: ($grid-gutter-width * .5);
|
37
|
+
flex: 0 0 ($spacer * 1.5);
|
38
|
+
width: auto;
|
39
|
+
max-width: none;
|
40
|
+
text-align: right;
|
41
|
+
@include media-breakpoint-up(sm) { flex-basis: ($spacer * 6); }
|
42
|
+
|
43
|
+
|
44
|
+
// Sizing options
|
45
|
+
&.slat-actions-sm { flex-basis: ($spacer * 1.5); }
|
46
|
+
&.slat-actions-lg { flex-basis: ($spacer * 12); }
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
// Slat header
|
51
|
+
.slat-header {
|
52
|
+
padding-bottom: ($spacer * .5);
|
53
|
+
.slat-body { align-items: center; }
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Slat list layout
|
58
|
+
.slat-list {
|
59
|
+
.slat {
|
60
|
+
padding-top: ($spacer * .5);
|
61
|
+
padding-bottom: ($spacer * .5);
|
62
|
+
|
63
|
+
|
64
|
+
// Various states
|
65
|
+
&.ui-sortable-placeholder {
|
66
|
+
visibility: visible !important;
|
67
|
+
background: theme-color("light");
|
68
|
+
border: $border-width dashed $border-color;
|
69
|
+
+ .slat { border-top: none; }
|
70
|
+
+ &.ui-sortable-helper {
|
71
|
+
border-top-style: dashed;
|
72
|
+
+ &.slat { border-top: none; }
|
73
|
+
}
|
74
|
+
}
|
75
|
+
&.ui-sortable-helper {
|
76
|
+
border-top: none;
|
77
|
+
opacity: .5;
|
78
|
+
border-top: none;
|
79
|
+
+ &.ui-sortable-placeholder { border-top: $border-width dashed $border-color; }
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
// Sizing options
|
85
|
+
&.slat-list-sm {
|
86
|
+
.slat {
|
87
|
+
padding-top: ($spacer * .25);
|
88
|
+
padding-bottom: ($spacer * .25);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
&.slat-list-lg {
|
92
|
+
.slat {
|
93
|
+
padding-top: $spacer;
|
94
|
+
padding-bottom: $spacer;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
// Non-breaked version -- used when the goal is to have all slat-item columns on the same line in smaller screens
|
100
|
+
&:not(.slat-list-no-break) {
|
101
|
+
.slat-item {
|
102
|
+
&:first-child {
|
103
|
+
@include media-breakpoint-down(sm) {
|
104
|
+
flex-basis: 100%;
|
105
|
+
margin-bottom: $spacer;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/public/nfg_theme/custom/_social_share.scss
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
// Helper colors used for social media links, text, and backgrounds
|
2
|
+
|
3
|
+
$facebook: #3b5998 !default;
|
4
|
+
$twitter: #1da1f2 !default;
|
5
|
+
$linkedin: #0077b5 !default;
|
6
|
+
$pinterest: #bd081c !default;
|
7
|
+
|
8
|
+
$social-media-colors: () !default;
|
9
|
+
// stylelint-disable-next-line scss/dollar-variable-default
|
10
|
+
$social-media-colors: map-merge(
|
11
|
+
(
|
12
|
+
"facebook": $facebook,
|
13
|
+
"twitter": $twitter,
|
14
|
+
"linkedin": $linkedin,
|
15
|
+
"pinterest": $pinterest
|
16
|
+
),
|
17
|
+
$social-media-colors
|
18
|
+
);
|
19
|
+
|
20
|
+
|
21
|
+
// Buttons
|
22
|
+
@each $color, $value in $social-media-colors {
|
23
|
+
.btn-#{$color} {
|
24
|
+
@include button-variant($value, $value);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@each $color, $value in $social-media-colors {
|
29
|
+
.btn-outline-#{$color} {
|
30
|
+
@include button-outline-variant($value);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
// Text
|
36
|
+
@each $color, $value in $social-media-colors {
|
37
|
+
@include text-emphasis-variant(".text-#{$color}", $value);
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Backgrounds
|
42
|
+
@each $color, $value in $social-media-colors {
|
43
|
+
@include bg-variant(".bg-#{$color}", $value);
|
44
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
// Styles specific to the ticket experience
|
2
|
+
.ticket-guest {
|
3
|
+
padding: $spacer ($spacer * .5);
|
4
|
+
border-radius: $border-radius;
|
5
|
+
box-shadow: $box-shadow-sm;
|
6
|
+
@include transition(box-shadow .4s ease-in-out, padding .3s ease-in-out); // animation for active/inactive ticket guest rows
|
7
|
+
&.disabled {
|
8
|
+
opacity: .4;
|
9
|
+
pointer-events: none;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
.ticket-guest-row { @include transition(box-shadow .1s ease-in-out, padding .3s ease-in-out); } // corresponding animation for active/inactive ticket guest rows
|
@@ -0,0 +1,63 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
|
5
|
+
.tile {
|
6
|
+
display: block;
|
7
|
+
margin-right: auto;
|
8
|
+
margin-left: auto;
|
9
|
+
word-wrap: break-word;
|
10
|
+
background-color: $white;
|
11
|
+
border-radius: $border-radius;
|
12
|
+
box-shadow: $box-shadow-sm;
|
13
|
+
+ .tile { margin-top: $spacer; }
|
14
|
+
}
|
15
|
+
|
16
|
+
.tile-body {
|
17
|
+
padding: $grid-gutter-width;
|
18
|
+
@include media-breakpoint-up(sm) { padding: ($grid-gutter-width * 1.5); }
|
19
|
+
}
|
20
|
+
|
21
|
+
// Sections within a tile used to separate groups of content
|
22
|
+
.tile-section {
|
23
|
+
display: block;
|
24
|
+
margin-right: auto;
|
25
|
+
margin-left: auto;
|
26
|
+
@include media-breakpoint-down(sm) { padding-bottom: $grid-gutter-width; }
|
27
|
+
@include media-breakpoint-up(sm) { padding-bottom: ($grid-gutter-width * 1.5); }
|
28
|
+
&:last-child { padding-bottom: 0; }
|
29
|
+
+ .tile-section {
|
30
|
+
border-top: $border-width solid $border-color;
|
31
|
+
@include media-breakpoint-down(sm) { padding-top: $grid-gutter-width; }
|
32
|
+
@include media-breakpoint-up(sm) { padding-top: ($grid-gutter-width * 1.5); }
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
//
|
37
|
+
// Optional textual caps
|
38
|
+
//
|
39
|
+
|
40
|
+
.tile-header, .tile-footer {
|
41
|
+
padding: ($grid-gutter-width / 2) $grid-gutter-width;
|
42
|
+
background-color: $white;
|
43
|
+
@include media-breakpoint-up(sm) { padding: $grid-gutter-width; }
|
44
|
+
}
|
45
|
+
.tile-header {
|
46
|
+
+ .collapse,
|
47
|
+
+ .collapsing,
|
48
|
+
+ .tile-body,
|
49
|
+
+ .tile-footer { border-top: $border-width solid $border-color; }
|
50
|
+
}
|
51
|
+
.tile-body + .tile-footer { border-top: $border-width solid $border-color; }
|
52
|
+
|
53
|
+
//
|
54
|
+
// Header navs
|
55
|
+
//
|
56
|
+
|
57
|
+
.tile-header-tabs {
|
58
|
+
margin-right: -$grid-gutter-width;
|
59
|
+
margin-bottom: -($grid-gutter-width / 2);
|
60
|
+
margin-left: -$grid-gutter-width;
|
61
|
+
border-bottom: 0;
|
62
|
+
@include media-breakpoint-up(sm) { margin-bottom: -$grid-gutter-width; }
|
63
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Styles specific for the new user navbar on everyday_story and everyday_classic_style layouts
|
2
|
+
|
3
|
+
$navbar-logo-height: (($spacer * 4.5) - ($navbar-padding-y * 2));
|
4
|
+
|
5
|
+
.navbar-brand {
|
6
|
+
margin-right: 0;
|
7
|
+
padding: $navbar-padding-y 0;
|
8
|
+
max-width: ($spacer * 8);
|
9
|
+
height: $navbar-logo-height;
|
10
|
+
white-space: normal !important;
|
11
|
+
@include media-breakpoint-up(lg) { max-width: ($spacer * 12); }
|
12
|
+
img {
|
13
|
+
max-width: ($spacer * 8);
|
14
|
+
max-height: $navbar-logo-height;
|
15
|
+
@include media-breakpoint-up(lg) { max-width: ($spacer * 12); }
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.navbar-text {
|
19
|
+
margin-left: $navbar-padding-x;
|
20
|
+
padding-left: $navbar-padding-x;
|
21
|
+
border-left: $border-width solid $border-color;
|
22
|
+
}
|
23
|
+
.sticky-div {
|
24
|
+
box-shadow: $box-shadow-sm;
|
25
|
+
.btn-header-donate {
|
26
|
+
opacity: 0;
|
27
|
+
transition: $transition-base;
|
28
|
+
}
|
29
|
+
&.stuck {
|
30
|
+
box-shadow: $box-shadow;
|
31
|
+
.btn-header-donate { opacity: 1; }
|
32
|
+
}
|
33
|
+
}
|