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,71 @@
|
|
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-top: $border-width solid $border-color;
|
12
|
+
border-bottom: $border-width solid $border-color;
|
13
|
+
@include media-breakpoint-down(sm) {
|
14
|
+
margin-right: -($grid-gutter-width / 2);
|
15
|
+
margin-left: -($grid-gutter-width / 2);
|
16
|
+
}
|
17
|
+
@include media-breakpoint-up(sm) {
|
18
|
+
border-right: $border-width solid $border-color;
|
19
|
+
border-left: $border-width solid $border-color;
|
20
|
+
}
|
21
|
+
+ .tile { margin-top: $spacer; }
|
22
|
+
}
|
23
|
+
|
24
|
+
.tile-body {
|
25
|
+
padding: $grid-gutter-width;
|
26
|
+
@include media-breakpoint-up(sm) { padding: ($grid-gutter-width * 1.5); }
|
27
|
+
}
|
28
|
+
|
29
|
+
// Sections within a tile used to separate groups of content
|
30
|
+
.tile-section {
|
31
|
+
display: block;
|
32
|
+
margin-right: auto;
|
33
|
+
margin-left: auto;
|
34
|
+
@include media-breakpoint-down(sm) { padding-bottom: $grid-gutter-width; }
|
35
|
+
@include media-breakpoint-up(sm) { padding-bottom: ($grid-gutter-width * 1.5); }
|
36
|
+
&:last-child { padding-bottom: 0; }
|
37
|
+
+ .tile-section {
|
38
|
+
border-top: $border-width solid $border-color;
|
39
|
+
@include media-breakpoint-down(sm) { padding-top: $grid-gutter-width; }
|
40
|
+
@include media-breakpoint-up(sm) { padding-top: ($grid-gutter-width * 1.5); }
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
//
|
45
|
+
// Optional textual caps
|
46
|
+
//
|
47
|
+
|
48
|
+
.tile-header, .tile-footer {
|
49
|
+
padding: ($grid-gutter-width / 2) $grid-gutter-width;
|
50
|
+
background-color: $white;
|
51
|
+
@include media-breakpoint-up(sm) { padding: $grid-gutter-width; }
|
52
|
+
}
|
53
|
+
.tile-header {
|
54
|
+
+ .collapse,
|
55
|
+
+ .collapsing,
|
56
|
+
+ .tile-body,
|
57
|
+
+ .tile-footer { border-top: $border-width solid $border-color; }
|
58
|
+
}
|
59
|
+
.tile-body + .tile-footer { border-top: $border-width solid $border-color; }
|
60
|
+
|
61
|
+
//
|
62
|
+
// Header navs
|
63
|
+
//
|
64
|
+
|
65
|
+
.tile-header-tabs {
|
66
|
+
margin-right: -$grid-gutter-width;
|
67
|
+
margin-bottom: -($grid-gutter-width / 2);
|
68
|
+
margin-left: -$grid-gutter-width;
|
69
|
+
border-bottom: 0;
|
70
|
+
@include media-breakpoint-up(sm) { margin-bottom: -$grid-gutter-width; }
|
71
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@import "settings/settings";
|
2
|
+
@import "foundation-emails";
|
3
|
+
@import "foundation_emails/alignment";
|
4
|
+
@import "foundation_emails/button";
|
5
|
+
|
6
|
+
// NFG Theme specific
|
7
|
+
@import "nfg_theme/spacers";
|
8
|
+
@import "nfg_theme/layout";
|
9
|
+
@import "nfg_theme/rainbow_bar";
|
10
|
+
@import "nfg_theme/typography";
|
11
|
+
@import "nfg_theme/backgrounds";
|
12
|
+
|
13
|
+
|
14
|
+
// App Utilities
|
15
|
+
// i18n translation missing visual to help find missing t('')s...
|
16
|
+
.translation_missing{
|
17
|
+
background-color: #ec5840;
|
18
|
+
display: inline-block;
|
19
|
+
border: solid 3px darken(#ec5840, 15%);
|
20
|
+
padding:10px;
|
21
|
+
color:#fff;
|
22
|
+
position: relative;
|
23
|
+
|
24
|
+
&:before{
|
25
|
+
content: "Translation Missing:";
|
26
|
+
position: absolute;
|
27
|
+
background-color: darken(#ec5840, 15%);
|
28
|
+
display: inline-block;
|
29
|
+
width: 110px;
|
30
|
+
left: 50%;
|
31
|
+
transform: translateX(-50%);
|
32
|
+
padding: 10px;
|
33
|
+
top: -30px;
|
34
|
+
font-size: 12px;
|
35
|
+
color:#fff;
|
36
|
+
font-weight: bold;
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
// Foundation for Emails by ZURB
|
2
|
+
// zurb.com/ink/
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group alignment
|
7
|
+
////
|
8
|
+
|
9
|
+
// table,
|
10
|
+
// th,
|
11
|
+
// td,
|
12
|
+
// h1,
|
13
|
+
// h2,
|
14
|
+
// h3,
|
15
|
+
// h4,
|
16
|
+
// h5,
|
17
|
+
// h6,
|
18
|
+
// p,
|
19
|
+
// span {
|
20
|
+
// &.text-center {
|
21
|
+
// text-align: center;
|
22
|
+
// }
|
23
|
+
|
24
|
+
// &.text-left {
|
25
|
+
// text-align: left;
|
26
|
+
// }
|
27
|
+
|
28
|
+
// &.text-right {
|
29
|
+
// text-align: right;
|
30
|
+
// }
|
31
|
+
// }
|
32
|
+
.text-center { text-align: center; }
|
33
|
+
.text-left { text-align: left; }
|
34
|
+
.text-right { text-align: right; }
|
35
|
+
|
36
|
+
// span.text-center {
|
37
|
+
// display: block;
|
38
|
+
// width: 100%;
|
39
|
+
// text-align: center;
|
40
|
+
// }
|
41
|
+
|
42
|
+
// @media only screen and (max-width: #{$global-breakpoint}) {
|
43
|
+
// .small-float-center {
|
44
|
+
// margin: 0 auto !important;
|
45
|
+
// float: none !important;
|
46
|
+
// text-align: center !important;
|
47
|
+
// }
|
48
|
+
|
49
|
+
// .small-text-center {
|
50
|
+
// text-align: center !important;
|
51
|
+
// }
|
52
|
+
|
53
|
+
// .small-text-left {
|
54
|
+
// text-align: left !important;
|
55
|
+
// }
|
56
|
+
|
57
|
+
// .small-text-right {
|
58
|
+
// text-align: right !important;
|
59
|
+
// }
|
60
|
+
// }
|
61
|
+
|
62
|
+
// img.float-left {
|
63
|
+
// float: left;
|
64
|
+
// text-align: left;
|
65
|
+
// }
|
66
|
+
|
67
|
+
// img.float-right {
|
68
|
+
// float: right;
|
69
|
+
// text-align: right;
|
70
|
+
// }
|
71
|
+
|
72
|
+
// img.float-center,
|
73
|
+
// img.text-center {
|
74
|
+
// margin: 0 auto;
|
75
|
+
// Margin: 0 auto;
|
76
|
+
// float: none;
|
77
|
+
// text-align: center;
|
78
|
+
// }
|
79
|
+
|
80
|
+
img.display-inline-block { display: inline-block; }
|
81
|
+
|
82
|
+
// table,
|
83
|
+
// td,
|
84
|
+
// th {
|
85
|
+
// &.float-center {
|
86
|
+
// margin: 0 auto;
|
87
|
+
// Margin: 0 auto;
|
88
|
+
// float: none;
|
89
|
+
// text-align: center;
|
90
|
+
// }
|
91
|
+
// }
|
92
|
+
|
93
|
+
|
@@ -0,0 +1,345 @@
|
|
1
|
+
// Foundation for Emails by ZURB
|
2
|
+
// zurb.com/ink/
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group button
|
7
|
+
////
|
8
|
+
|
9
|
+
// /// Padding inside buttons at various sizes.
|
10
|
+
// /// @type Map
|
11
|
+
// $button-padding: (
|
12
|
+
// tiny: 4px 8px 4px 8px,
|
13
|
+
// small: 5px 10px 5px 10px,
|
14
|
+
// default: 8px 16px 8px 16px,
|
15
|
+
// large: 10px 20px 10px 20px,
|
16
|
+
// ) !default;
|
17
|
+
|
18
|
+
// /// Font sizes of buttons at various sizes.
|
19
|
+
// /// @type Map
|
20
|
+
// $button-font-size: (
|
21
|
+
// tiny: 10px,
|
22
|
+
// small: 12px,
|
23
|
+
// default: 16px,
|
24
|
+
// large: 20px,
|
25
|
+
// ) !default;
|
26
|
+
|
27
|
+
// /// Text color of buttons.
|
28
|
+
// /// @type Color
|
29
|
+
// $button-color: $white !default;
|
30
|
+
|
31
|
+
// /// Text color of buttons with a light background.
|
32
|
+
// /// @type Color
|
33
|
+
// $button-color-alt: $medium-gray !default;
|
34
|
+
|
35
|
+
// /// Font weight of buttons.
|
36
|
+
// /// @type Weight
|
37
|
+
// $button-font-weight: bold !default;
|
38
|
+
|
39
|
+
// /// Margin around buttons.
|
40
|
+
// /// @type List
|
41
|
+
// $button-margin: 0 0 $global-margin 0 !default;
|
42
|
+
|
43
|
+
// /// Background color of buttons.
|
44
|
+
// /// @type Color
|
45
|
+
// $button-background: $primary-color !default;
|
46
|
+
|
47
|
+
// /// Border around buttons.
|
48
|
+
// /// @type Border
|
49
|
+
// $button-border: 2px solid $button-background !default;
|
50
|
+
|
51
|
+
// /// Border radius of buttons. Not supported by all email clients.
|
52
|
+
// /// @type Number
|
53
|
+
// $button-radius: $global-radius !default;
|
54
|
+
|
55
|
+
// /// Border radius of rounded buttons. Not supported by all email clients.
|
56
|
+
// /// @type Number
|
57
|
+
// $button-rounded: $global-rounded !default;
|
58
|
+
|
59
|
+
table.button {
|
60
|
+
// width: auto;
|
61
|
+
// margin: $button-margin;
|
62
|
+
// Margin: $button-margin;
|
63
|
+
|
64
|
+
table {
|
65
|
+
|
66
|
+
td {
|
67
|
+
// text-align: left;
|
68
|
+
// color: $button-color;
|
69
|
+
line-height: 1.2;
|
70
|
+
// background: $button-background;
|
71
|
+
// border: $button-border;
|
72
|
+
|
73
|
+
a {
|
74
|
+
// font-family: $body-font-family;
|
75
|
+
// font-size: map-get($button-font-size, default);
|
76
|
+
// font-weight: $button-font-weight;
|
77
|
+
line-height: 1.2;
|
78
|
+
// color: $button-color;
|
79
|
+
// text-decoration: none;
|
80
|
+
// text-align: left;
|
81
|
+
// display: inline-block;
|
82
|
+
// padding: map-get($button-padding, default);
|
83
|
+
// border: 0 solid $button-background;
|
84
|
+
// border-radius: $button-radius;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// &.radius table td {
|
90
|
+
// border-radius: $button-radius;
|
91
|
+
// border: none;
|
92
|
+
// }
|
93
|
+
|
94
|
+
// &.rounded table td {
|
95
|
+
// border-radius: $button-rounded;
|
96
|
+
// border: none;
|
97
|
+
// }
|
98
|
+
}
|
99
|
+
|
100
|
+
// table.button:hover table tr td a,
|
101
|
+
// table.button:active table tr td a,
|
102
|
+
// table.button table tr td a:visited,
|
103
|
+
// table.button.tiny:hover table tr td a,
|
104
|
+
// table.button.tiny:active table tr td a,
|
105
|
+
// table.button.tiny table tr td a:visited,
|
106
|
+
// table.button.small:hover table tr td a,
|
107
|
+
// table.button.small:active table tr td a,
|
108
|
+
// table.button.small table tr td a:visited,
|
109
|
+
// table.button.large:hover table tr td a,
|
110
|
+
// table.button.large:active table tr td a,
|
111
|
+
// table.button.large table tr td a:visited {
|
112
|
+
// color: $button-color;
|
113
|
+
// }
|
114
|
+
|
115
|
+
table.button {
|
116
|
+
table {
|
117
|
+
td,
|
118
|
+
a {
|
119
|
+
padding: map-get($button-padding, default);
|
120
|
+
font-size: map-get($button-font-size, default);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
table.button.tiny {
|
126
|
+
table {
|
127
|
+
td,
|
128
|
+
a {
|
129
|
+
padding: map-get($button-padding, tiny);
|
130
|
+
font-size: map-get($button-font-size, tiny);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
table.button.small {
|
136
|
+
table {
|
137
|
+
td,
|
138
|
+
a {
|
139
|
+
padding: map-get($button-padding, small);
|
140
|
+
font-size: map-get($button-font-size, small);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
table.button.large {
|
146
|
+
table {
|
147
|
+
td,
|
148
|
+
a {
|
149
|
+
padding: map-get($button-padding, large);
|
150
|
+
font-size: map-get($button-font-size, large);
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
table.button.inverse {
|
156
|
+
table {
|
157
|
+
td {
|
158
|
+
background: transparent;
|
159
|
+
color: $white;
|
160
|
+
border: 1px solid $white;
|
161
|
+
}
|
162
|
+
a {
|
163
|
+
color: $white;
|
164
|
+
// border: 0 solid $secondary-color;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
// table.button.expand,
|
170
|
+
// table.button.expanded {
|
171
|
+
// width: 100%;
|
172
|
+
|
173
|
+
// table {
|
174
|
+
// width: 100%;
|
175
|
+
|
176
|
+
// a {
|
177
|
+
// text-align: center;
|
178
|
+
// width: 100%;
|
179
|
+
// padding-left: 0;
|
180
|
+
// padding-right: 0;
|
181
|
+
// }
|
182
|
+
// }
|
183
|
+
|
184
|
+
// center {
|
185
|
+
// min-width: 0;
|
186
|
+
// }
|
187
|
+
// }
|
188
|
+
|
189
|
+
table.button:hover,
|
190
|
+
table.button:visited,
|
191
|
+
table.button:active {
|
192
|
+
table {
|
193
|
+
td {
|
194
|
+
background: lighten($button-background, 5%);
|
195
|
+
color: $button-color;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
table.button:hover,
|
201
|
+
table.button:visited,
|
202
|
+
table.button:active {
|
203
|
+
table {
|
204
|
+
a {
|
205
|
+
border: 0 solid lighten($button-background, 5%);
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
// table.button.secondary {
|
211
|
+
// table {
|
212
|
+
// td {
|
213
|
+
// background: $secondary-color;
|
214
|
+
// color: $button-color;
|
215
|
+
// border: 0px solid $secondary-color;
|
216
|
+
// }
|
217
|
+
|
218
|
+
// a {
|
219
|
+
// color: $button-color;
|
220
|
+
// border: 0 solid $secondary-color;
|
221
|
+
// }
|
222
|
+
// }
|
223
|
+
// }
|
224
|
+
|
225
|
+
// table.button.secondary:hover {
|
226
|
+
// table {
|
227
|
+
// td {
|
228
|
+
// background: lighten($secondary-color, 10%);
|
229
|
+
// color: $button-color;
|
230
|
+
// }
|
231
|
+
|
232
|
+
// a {
|
233
|
+
// border: 0 solid lighten($secondary-color, 10%);
|
234
|
+
// }
|
235
|
+
// }
|
236
|
+
// }
|
237
|
+
|
238
|
+
// table.button.secondary:hover {
|
239
|
+
// table {
|
240
|
+
// td a {
|
241
|
+
// color: $button-color;
|
242
|
+
// }
|
243
|
+
// }
|
244
|
+
// }
|
245
|
+
|
246
|
+
// table.button.secondary:active {
|
247
|
+
// table {
|
248
|
+
// td a {
|
249
|
+
// color: $button-color;
|
250
|
+
// }
|
251
|
+
// }
|
252
|
+
// }
|
253
|
+
|
254
|
+
// table.button.secondary {
|
255
|
+
// table {
|
256
|
+
// td a:visited {
|
257
|
+
// color: $button-color;
|
258
|
+
// }
|
259
|
+
// }
|
260
|
+
// }
|
261
|
+
|
262
|
+
// table.button.success {
|
263
|
+
// table {
|
264
|
+
// td {
|
265
|
+
// background: $success-color;
|
266
|
+
// border: 0px solid $success-color;
|
267
|
+
// }
|
268
|
+
|
269
|
+
// a {
|
270
|
+
// border: 0 solid $success-color;
|
271
|
+
// }
|
272
|
+
// }
|
273
|
+
// }
|
274
|
+
|
275
|
+
table.button.success:hover {
|
276
|
+
table {
|
277
|
+
td {
|
278
|
+
background: lighten($success-color, 5%);
|
279
|
+
}
|
280
|
+
|
281
|
+
a {
|
282
|
+
border: 0 solid lighten($success-color, 5%);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
// table.button.alert {
|
288
|
+
// table {
|
289
|
+
// td {
|
290
|
+
// background: $alert-color;
|
291
|
+
// border: 0px solid $alert-color;
|
292
|
+
// }
|
293
|
+
|
294
|
+
// a {
|
295
|
+
// border: 0 solid $alert-color;
|
296
|
+
// }
|
297
|
+
// }
|
298
|
+
// }
|
299
|
+
|
300
|
+
table.button.alert:hover {
|
301
|
+
table {
|
302
|
+
td {
|
303
|
+
background: lighten($alert-color, 5%);
|
304
|
+
}
|
305
|
+
|
306
|
+
a {
|
307
|
+
border: 0 solid lighten($alert-color, 5%);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
// table.button.warning {
|
313
|
+
// table {
|
314
|
+
// td {
|
315
|
+
// background: $warning-color;
|
316
|
+
// border: 0px solid $warning-color;
|
317
|
+
// }
|
318
|
+
|
319
|
+
// a {
|
320
|
+
// border: 0px solid $warning-color;
|
321
|
+
// }
|
322
|
+
// }
|
323
|
+
// }
|
324
|
+
|
325
|
+
table.button.warning:hover {
|
326
|
+
table {
|
327
|
+
td {
|
328
|
+
background: lighten($warning-color, 5%);
|
329
|
+
}
|
330
|
+
|
331
|
+
a {
|
332
|
+
border: 0px solid lighten($warning-color, 5%);
|
333
|
+
}
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
// Fix for Outlook Expanded Button
|
338
|
+
// Reference: https://github.com/zurb/foundation-emails/issues/415
|
339
|
+
.button {
|
340
|
+
&.expand, &.expanded {
|
341
|
+
td:not(.expander) {
|
342
|
+
width: 100% !important;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Colors
|
2
|
+
.bg-primary { background-color: $primary-color; }
|
3
|
+
.bg-success { background-color: $success-color; }
|
4
|
+
.bg-warning { background-color: $warning-color; }
|
5
|
+
.bg-alert { background-color: $alert-color; }
|
6
|
+
|
7
|
+
|
8
|
+
// Images
|
9
|
+
.bg-image {
|
10
|
+
background-repeat: no-repeat;
|
11
|
+
background-position: 50% 0%;
|
12
|
+
}
|
13
|
+
.bg-image-primary { background: $primary-color image-url('backgrounds/bg-image-primary.jpg'); }
|
14
|
+
.bg-image-success { background: $success-color image-url('backgrounds/bg-image-success.jpg'); }
|
15
|
+
.bg-image-warning { background: $warning-color image-url('backgrounds/bg-image-warning.jpg'); }
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Extra layout styles
|
2
|
+
|
3
|
+
|
4
|
+
// Inner wrapper styles that Foundation adds inside wrapper classes
|
5
|
+
.wrapper-inner {
|
6
|
+
padding: 24px;
|
7
|
+
@media only screen and (max-width: #{$global-breakpoint}) { padding: 24px 0px !important; }
|
8
|
+
}
|
9
|
+
.collapse {
|
10
|
+
.wrapper-inner {
|
11
|
+
@media only screen and (max-width: #{$global-breakpoint}) { padding: 24px !important; }
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// Table with borders separating rows
|
17
|
+
.border-item {
|
18
|
+
td.columns,
|
19
|
+
td.column,
|
20
|
+
th.columns,
|
21
|
+
th.column {
|
22
|
+
padding-top: 12px;
|
23
|
+
padding-bottom: 12px;
|
24
|
+
border-top: 1px solid $medium-gray;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
// Specific footer styles
|
30
|
+
.footer {
|
31
|
+
p { color: $secondary-color; }
|
32
|
+
a { color: $secondary-color !important; }
|
33
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Rainbow Color Bar
|
2
|
+
|
3
|
+
table.brand-colors {
|
4
|
+
width: 100%;
|
5
|
+
td {
|
6
|
+
font-size: 5px;
|
7
|
+
line-height: 5px;
|
8
|
+
height:5px;
|
9
|
+
&[class^='bar']{ height:5px; }
|
10
|
+
&.bar1 {
|
11
|
+
background-color: #2481c0;
|
12
|
+
width: 16% !important; // (Floor) Rounded Down: 197 / 1200
|
13
|
+
}
|
14
|
+
&.bar2 {
|
15
|
+
background-color: #59a5d6;
|
16
|
+
width: 7% !important; // (Floor) Rounded Down: 86 / 1200
|
17
|
+
}
|
18
|
+
&.bar3 {
|
19
|
+
background-color: #7fbb41;
|
20
|
+
width: 15% !important; // (Floor) Rounded Down: 187 / 1200
|
21
|
+
}
|
22
|
+
&.bar4 {
|
23
|
+
background-color: #31a644;
|
24
|
+
width: 10% !important; // Arbitrarily Updated to 10%
|
25
|
+
}
|
26
|
+
&.bar5 {
|
27
|
+
background-color: #2481c0;
|
28
|
+
width: 8% !important; // (Floor) Rounded Down: 100 / 1200
|
29
|
+
}
|
30
|
+
&.bar6 {
|
31
|
+
background-color: #fdb514;
|
32
|
+
width: 15% !important; // (Floor) Rounded Down: 189 / 1200
|
33
|
+
}
|
34
|
+
&.bar7 {
|
35
|
+
background-color: #f7901d;
|
36
|
+
width: 3% !important; // (Floor) Rounded Down: 45 / 1200
|
37
|
+
}
|
38
|
+
&.bar8 {
|
39
|
+
background-color: #ef3823;
|
40
|
+
width: 23% !important; // (Floor) Rounded Down: 287 / 1200
|
41
|
+
}
|
42
|
+
&.bar9 {
|
43
|
+
background-color: #9e1418;
|
44
|
+
width: 3% !important; // (Floor) Rounded Down: 44 / 1200
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
$spacer : 24px !default;
|
2
|
+
$spacer-x : $spacer !default;
|
3
|
+
$spacer-y : $spacer !default;
|
4
|
+
$spacers: (
|
5
|
+
0: (
|
6
|
+
x : 0,
|
7
|
+
y : 0
|
8
|
+
),
|
9
|
+
quarter: (
|
10
|
+
x : ($spacer-x * 0.25),
|
11
|
+
y : ($spacer-y * 0.25)
|
12
|
+
),
|
13
|
+
half: (
|
14
|
+
x : ($spacer-x * 0.5),
|
15
|
+
y : ($spacer-y * 0.5)
|
16
|
+
),
|
17
|
+
base: (
|
18
|
+
x : $spacer-x,
|
19
|
+
y : $spacer-y
|
20
|
+
),
|
21
|
+
base-half: (
|
22
|
+
x : $spacer-x * 1.5,
|
23
|
+
y : $spacer-y * 1.5
|
24
|
+
),
|
25
|
+
double: (
|
26
|
+
x : ($spacer-x * 2),
|
27
|
+
y : ($spacer-y * 2)
|
28
|
+
),
|
29
|
+
double-half: (
|
30
|
+
x : ($spacer-x * 2.5),
|
31
|
+
y : ($spacer-y * 2.5)
|
32
|
+
),
|
33
|
+
triple: (
|
34
|
+
x : ($spacer-x * 3),
|
35
|
+
y : ($spacer-y * 3)
|
36
|
+
)
|
37
|
+
);
|
38
|
+
|
39
|
+
@each $prop, $abbrev in (margin: m, padding: p) {
|
40
|
+
@each $size, $lengths in $spacers {
|
41
|
+
$length-x: map-get($lengths, x);
|
42
|
+
$length-y: map-get($lengths, y);
|
43
|
+
|
44
|
+
.#{$abbrev}-a-#{$size} { #{$prop}: $length-y $length-x !important; } // a = All sides
|
45
|
+
.#{$abbrev}-t-#{$size} { #{$prop}-top: $length-y !important; }
|
46
|
+
.#{$abbrev}-r-#{$size} { #{$prop}-right: $length-x !important; }
|
47
|
+
.#{$abbrev}-b-#{$size} { #{$prop}-bottom: $length-y !important; }
|
48
|
+
.#{$abbrev}-l-#{$size} { #{$prop}-left: $length-x !important; }
|
49
|
+
|
50
|
+
// Axes
|
51
|
+
.#{$abbrev}-x-#{$size} {
|
52
|
+
#{$prop}-right: $length-x !important;
|
53
|
+
#{$prop}-left: $length-x !important;
|
54
|
+
}
|
55
|
+
.#{$abbrev}-y-#{$size} {
|
56
|
+
#{$prop}-top: $length-y !important;
|
57
|
+
#{$prop}-bottom: $length-y !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|