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
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_campaign_preview.scss
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
// Iframed preview of campaign page on project overview
|
2
|
+
.responsive-iframe-container {
|
3
|
+
width: 100%;
|
4
|
+
padding: 0;
|
5
|
+
overflow: hidden;
|
6
|
+
position: relative;
|
7
|
+
&:after {
|
8
|
+
content: '';
|
9
|
+
position: absolute;
|
10
|
+
z-index:1;
|
11
|
+
top:0;
|
12
|
+
left: 0;
|
13
|
+
right:0;
|
14
|
+
bottom: 0;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
.responsive-iframe {
|
18
|
+
min-height: 400px;
|
19
|
+
position: relative;
|
20
|
+
z-index: 0;
|
21
|
+
-moz-transform-origin: 0 0;
|
22
|
+
-o-transform-origin: 0 0;
|
23
|
+
-webkit-transform-origin: 0 0;
|
24
|
+
border: 0;
|
25
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
$questionnaire-h: 280px;
|
2
|
+
$questionnaire-vh: 30vh;
|
3
|
+
|
4
|
+
// Question List
|
5
|
+
#question_bank_list .btn { transition: background-color 0.3s ease-in-out !important; }
|
6
|
+
.question-bank-question {
|
7
|
+
background-color: $body-bg;
|
8
|
+
border-radius: $border-radius;
|
9
|
+
&.disabled .btn {
|
10
|
+
background-color: theme-color("secondary");
|
11
|
+
border-color: theme-color("secondary");
|
12
|
+
opacity: $btn-disabled-opacity;
|
13
|
+
cursor: not-allowed;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
.questionnaire-overflow {
|
17
|
+
position: relative;
|
18
|
+
&:before, &:after {
|
19
|
+
position: absolute;
|
20
|
+
left: 0;
|
21
|
+
right: $spacer;
|
22
|
+
content: '';
|
23
|
+
z-index: 20;
|
24
|
+
}
|
25
|
+
&:before {
|
26
|
+
top: 0;
|
27
|
+
height: ($spacer * .5);
|
28
|
+
@include gradient-y(transparentize($white, 0), transparentize($white, 1));
|
29
|
+
}
|
30
|
+
&:after {
|
31
|
+
bottom: 0;
|
32
|
+
height: $spacer;
|
33
|
+
@include gradient-y(transparentize($white, 1), transparentize($white, 0));
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.questionnaire-overflow-scroll {
|
37
|
+
position: relative;
|
38
|
+
min-height: $questionnaire-h;
|
39
|
+
min-height: $questionnaire-vh;
|
40
|
+
max-height: 50vh;
|
41
|
+
overflow-y: scroll;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Dropzone Section
|
45
|
+
#questionnaire_question_list {
|
46
|
+
min-height: $questionnaire-h;
|
47
|
+
min-height: $questionnaire-vh;
|
48
|
+
}
|
49
|
+
.dragging-over {
|
50
|
+
background-color: $gray-300;
|
51
|
+
transition: $transition-base;;
|
52
|
+
.dropzone, .dropzone-sm {
|
53
|
+
background-color: $gray-300;
|
54
|
+
border-color: $gray-800;
|
55
|
+
+ div[style*="height: 38px;"] { display: none; } // removes pesky spacing (provided by drag/drop plugin that calculates the height of the button) at bottom of dropzone
|
56
|
+
}
|
57
|
+
}
|
58
|
+
.dropzone {
|
59
|
+
min-height: $questionnaire-h;
|
60
|
+
min-height: $questionnaire-vh;
|
61
|
+
background-color: $body-bg;
|
62
|
+
border: $border-width dashed $gray-600;
|
63
|
+
border-radius: $border-radius;
|
64
|
+
transition: $transition-base;
|
65
|
+
&.dropzone-sm { min-height: 0; }
|
66
|
+
}
|
67
|
+
|
68
|
+
// Question Interactions
|
69
|
+
.questionnaire-question {
|
70
|
+
.form-group {
|
71
|
+
border: $border-width solid $white;
|
72
|
+
transition: $transition-base;
|
73
|
+
&:hover, &:focus {
|
74
|
+
background-color: theme-color("light");
|
75
|
+
border: $border-width dashed $gray-600;
|
76
|
+
cursor: move;
|
77
|
+
}
|
78
|
+
&[style*="position: fixed;"] {
|
79
|
+
background-color: theme-color("light");
|
80
|
+
border: $border-width dashed $gray-800;
|
81
|
+
box-shadow: $box-shadow;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
[data-describe='custom_receipt_language_for_body'],
|
2
|
+
[data-describe='custom_receipt_language_for_email_subject'],
|
3
|
+
.content-muted {
|
4
|
+
position: relative;
|
5
|
+
display: block;
|
6
|
+
padding: ($spacer * .25) ($spacer * .5);
|
7
|
+
border: dashed 2px $gray-200;
|
8
|
+
}
|
9
|
+
|
10
|
+
[data-describe='custom_receipt_language_for_body'] + hr { display: none; }
|
11
|
+
|
12
|
+
.content-muted {
|
13
|
+
color: $text-muted;
|
14
|
+
background-color: $body-bg;
|
15
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_email_preview.scss
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
// Wrap an email preview in .email-preview to overwrite the necessary bs4 css classes
|
2
|
+
// with the email's look and feel.
|
3
|
+
.email-preview {
|
4
|
+
color: black;
|
5
|
+
.spacer-tr { display: none; }
|
6
|
+
p {
|
7
|
+
line-height: 1.25;
|
8
|
+
color: black;
|
9
|
+
margin-bottom: 16px;
|
10
|
+
}
|
11
|
+
h3 {
|
12
|
+
font-size: 20px;
|
13
|
+
margin-bottom: 16px;
|
14
|
+
}
|
15
|
+
.order_details {
|
16
|
+
margin-bottom: 16px;
|
17
|
+
thead th[align],
|
18
|
+
thead th.amount {
|
19
|
+
font-size: 18px;
|
20
|
+
font-weight: bold;
|
21
|
+
}
|
22
|
+
.amount { text-align: right; }
|
23
|
+
}
|
24
|
+
}
|
@@ -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
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_overlay_blocker.scss
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
// Empty state blocker with blokk font-family replacement
|
2
|
+
|
3
|
+
// Import redacted-style "blokk" font for empty states
|
4
|
+
// Needs to be outside of the namespace for valid CSS output (particularly important for Internet Explorer)
|
5
|
+
@font-face {
|
6
|
+
font-family: 'BLOKK';
|
7
|
+
src: asset-url('admin/blokk/BLOKKNeue-Regular.eot');
|
8
|
+
src: asset-url('admin/blokk/BLOKKNeue-Regular.eot?#iefix') format('embedded-opentype'),
|
9
|
+
asset-url('admin/blokk/BLOKKNeue-Regular.woff2') format('woff2'),
|
10
|
+
asset-url('admin/blokk/BLOKKNeue-Regular.woff') format('woff'),
|
11
|
+
asset-url('admin/blokk/BLOKKNeue-Regular.otf') format('opentype'),
|
12
|
+
asset-url('admin/blokk/BLOKKNeue-Regular.ttf') format('truetype'),
|
13
|
+
asset-url('admin/blokk/BLOKKNeue-Regular.svg#BLOKKRegular') format('svg');
|
14
|
+
font-weight: normal;
|
15
|
+
font-style: normal;
|
16
|
+
}
|
17
|
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
18
|
+
@font-face {
|
19
|
+
font-family: 'BLOKK';
|
20
|
+
src: asset-url('admin/blokk/BLOKKNeue-Regular.svg') format('svg');
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
$redacted-font-family: "BLOKK";
|
25
|
+
|
26
|
+
// Overlay styles
|
27
|
+
.redacted-text {
|
28
|
+
font-family: $redacted-font-family !important;
|
29
|
+
letter-spacing: -3px;
|
30
|
+
word-spacing: -3px;
|
31
|
+
.card-img-overlay { background: none; }
|
32
|
+
}
|
33
|
+
.overlay-white {
|
34
|
+
position: absolute;
|
35
|
+
top: 0;
|
36
|
+
right: 0;
|
37
|
+
bottom: 0;
|
38
|
+
left: 0;
|
39
|
+
z-index: 30;
|
40
|
+
font-family: $font-family-base;
|
41
|
+
letter-spacing: 0;
|
42
|
+
word-spacing: 0;
|
43
|
+
background-color: rgba(255,255,255,0.9);
|
44
|
+
}
|
45
|
+
.overlay-blur {
|
46
|
+
transition: $transition-base;
|
47
|
+
filter: blur(0);
|
48
|
+
&.in { filter: blur(4px); }
|
49
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_product_icons.scss
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
// Product icons
|
2
|
+
|
3
|
+
@font-face {
|
4
|
+
font-family: 'IcoMoon-product-icons';
|
5
|
+
src: font-url('admin/nfg_product_icons/IcoMoon-product-icons.eot?b2y89i');
|
6
|
+
src: font-url('admin/nfg_product_icons/IcoMoon-product-icons.eot?b2y89i#iefix') format('embedded-opentype'),
|
7
|
+
font-url('admin/nfg_product_icons/IcoMoon-product-icons.ttf?b2y89i') format('truetype'),
|
8
|
+
font-url('admin/nfg_product_icons/IcoMoon-product-icons.woff?b2y89i') format('woff'),
|
9
|
+
font-url('admin/nfg_product_icons/IcoMoon-product-icons.svg?b2y89i#IcoMoon-product-icons') format('svg');
|
10
|
+
font-weight: normal;
|
11
|
+
font-style: normal;
|
12
|
+
}
|
13
|
+
|
14
|
+
[class^="icon-sso-"], [class*=" icon-sso-"] {
|
15
|
+
/* use !important to prevent issues with browser extensions that change fonts */
|
16
|
+
font-family: 'IcoMoon-product-icons' !important;
|
17
|
+
speak: none;
|
18
|
+
font-style: normal;
|
19
|
+
font-weight: normal;
|
20
|
+
font-variant: normal;
|
21
|
+
text-transform: none;
|
22
|
+
line-height: 1;
|
23
|
+
|
24
|
+
/* Better Font Rendering =========== */
|
25
|
+
-webkit-font-smoothing: antialiased;
|
26
|
+
-moz-osx-font-smoothing: grayscale;
|
27
|
+
}
|
28
|
+
|
29
|
+
.icon-sso-donatenow:before {
|
30
|
+
content: "\e900";
|
31
|
+
}
|
32
|
+
.icon-sso-donation-pages:before {
|
33
|
+
content: "\e683";
|
34
|
+
}
|
35
|
+
.icon-sso-dms:before {
|
36
|
+
content: "\e6ba";
|
37
|
+
}
|
38
|
+
.icon-product-fundraising-coach:before {
|
39
|
+
content: "\e199";
|
40
|
+
}
|
41
|
+
.icon-sso-disbursements:before {
|
42
|
+
content: "\e466";
|
43
|
+
}
|
44
|
+
|
45
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Redactor styles
|
2
|
+
.redactor-in-page {
|
3
|
+
.redactor-editor, .redactor-box, .redactor-box textarea { z-index: 0 !important; }
|
4
|
+
}
|
5
|
+
.redactor-box {
|
6
|
+
margin-bottom: 0 !important;
|
7
|
+
border: $border-width solid $border-color;
|
8
|
+
}
|
9
|
+
.redactor-toolbar {
|
10
|
+
background-color: $body-bg;
|
11
|
+
box-shadow: none;
|
12
|
+
border-bottom: $border-width solid $border-color;
|
13
|
+
}
|
14
|
+
.redactor-editor, .redactor-box, .redactor-box textarea { z-index: auto; }
|
15
|
+
.redactor-box .redactor-toolbar { z-index: $zindex-dropdown - 10 !important; }
|
16
|
+
|
17
|
+
body.modal-open {
|
18
|
+
.redactor-toolbar { z-index: $zindex-modal-backdrop - 1 !important; }
|
19
|
+
.modal .redactor-toolbar { z-index: $zindex-modal + 1 !important; }
|
20
|
+
}
|
21
|
+
.redactor-dropdown {
|
22
|
+
// z-index was upped from 999 to 1 more than the modal...
|
23
|
+
// in response to: https://jira.networkforgood.org/browse/PSTWO-9974
|
24
|
+
z-index: $zindex-modal + 1 !important;
|
25
|
+
}
|
data/app/assets/stylesheets/nfg_ui/network_for_good/admin/nfg_theme/custom/_share_dropdown.scss
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
#share_page_widget {
|
2
|
+
.dropdown-menu { width: 300px; }
|
3
|
+
|
4
|
+
// Social Icons
|
5
|
+
.list-group {
|
6
|
+
display: inline-block;
|
7
|
+
padding: 0;
|
8
|
+
margin-bottom: 0;
|
9
|
+
}
|
10
|
+
.btn-share { // formerly list-group-item
|
11
|
+
display: inline-block;
|
12
|
+
float: none;
|
13
|
+
padding: 0;
|
14
|
+
border-radius: 0;
|
15
|
+
border: none;
|
16
|
+
+ .btn-share { margin-left: ($spacer * .5); }
|
17
|
+
}
|
18
|
+
[class^='icon-'] {
|
19
|
+
display: inline-block;
|
20
|
+
font-family: "FontAwesome";
|
21
|
+
&:before { font-size: $h4-font-size; }
|
22
|
+
}
|
23
|
+
.icon-facebook {
|
24
|
+
&:before {
|
25
|
+
content: "\f082";
|
26
|
+
color: #3b5998;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
.icon-twitter {
|
30
|
+
&:before {
|
31
|
+
content: "\f081";
|
32
|
+
color: #1da1f2;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
.icon-linkedin {
|
36
|
+
&:before {
|
37
|
+
content: "\f08c";
|
38
|
+
color: #0077b5;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
.icon-googleplus {
|
42
|
+
&:before {
|
43
|
+
content: "\f0d4";
|
44
|
+
color: #dd4b39;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
.icon-envelope {
|
48
|
+
&:before {
|
49
|
+
content: "\f003";
|
50
|
+
color: #8c8c8c;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,113 @@
|
|
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
|
+
|
35
|
+
// Action Column
|
36
|
+
.slat-actions {
|
37
|
+
padding-left: ($grid-gutter-width * .5);
|
38
|
+
flex: 0 0 ($spacer * 1.5);
|
39
|
+
width: auto;
|
40
|
+
max-width: none;
|
41
|
+
text-align: right;
|
42
|
+
@include media-breakpoint-up(sm) { flex-basis: ($spacer * 6); }
|
43
|
+
|
44
|
+
|
45
|
+
// Sizing options
|
46
|
+
&.slat-actions-sm { flex-basis: ($spacer * 1.5); }
|
47
|
+
&.slat-actions-lg { flex-basis: ($spacer * 12); }
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
// Slat header
|
52
|
+
.slat-header {
|
53
|
+
padding-bottom: ($spacer * .5);
|
54
|
+
.slat-body { align-items: center; }
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
// Slat list layout
|
59
|
+
.slat-list {
|
60
|
+
border-top: $border-width solid $border-color;
|
61
|
+
.slat {
|
62
|
+
padding-top: $spacer;
|
63
|
+
padding-bottom: $spacer;
|
64
|
+
+ .slat { border-top: $border-width solid $border-color; }
|
65
|
+
|
66
|
+
|
67
|
+
// Various states
|
68
|
+
&.ui-sortable-placeholder {
|
69
|
+
visibility: visible !important;
|
70
|
+
background: theme-color("light");
|
71
|
+
border: $border-width dashed $border-color;
|
72
|
+
+ .slat { border-top: none; }
|
73
|
+
+ &.ui-sortable-helper {
|
74
|
+
border-top-style: dashed;
|
75
|
+
+ &.slat { border-top: none; }
|
76
|
+
}
|
77
|
+
}
|
78
|
+
&.ui-sortable-helper {
|
79
|
+
border-top: none;
|
80
|
+
opacity: .5;
|
81
|
+
border-top: none;
|
82
|
+
+ &.ui-sortable-placeholder { border-top: $border-width dashed $border-color; }
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
|
87
|
+
// Sizing options
|
88
|
+
&.slat-list-sm {
|
89
|
+
.slat {
|
90
|
+
padding-top: ($spacer * .5);
|
91
|
+
padding-bottom: ($spacer * .5);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
&.slat-list-lg {
|
95
|
+
.slat {
|
96
|
+
padding-top: ($spacer * 1.5);
|
97
|
+
padding-bottom: ($spacer * 1.5);
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
// Non-breaked version -- used when the goal is to have all slat-item columns on the same line in smaller screens
|
103
|
+
&:not(.slat-list-no-break) {
|
104
|
+
.slat-item {
|
105
|
+
&:first-child {
|
106
|
+
@include media-breakpoint-down(sm) {
|
107
|
+
flex-basis: 100%;
|
108
|
+
margin-bottom: $spacer;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
@@ -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
|
+
$google-plus: #dd4b39 !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
|
+
"google-plus": $google-plus
|
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
|