undercase 0.2.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +70 -0
- data/Rakefile +21 -0
- data/app/assets/fonts/FontAwesome/FontAwesome.otf +0 -0
- data/app/assets/fonts/FontAwesome/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/FontAwesome/fontawesome-webfont.svg +414 -0
- data/app/assets/fonts/FontAwesome/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/FontAwesome/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.svg +914 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.svg +812 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.svg +955 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.svg +831 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.svg +905 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.svg +828 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.svg +843 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +904 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.svg +830 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +978 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.svg +968 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.woff +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.eot +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.svg +838 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.ttf +0 -0
- data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.woff +0 -0
- data/app/assets/fonts/Undercase-Icons/Undercase-Icons.eot +0 -0
- data/app/assets/fonts/Undercase-Icons/Undercase-Icons.svg +72 -0
- data/app/assets/fonts/Undercase-Icons/Undercase-Icons.ttf +0 -0
- data/app/assets/fonts/Undercase-Icons/Undercase-Icons.woff +0 -0
- data/app/assets/images/avatar_male_small.png +0 -0
- data/app/assets/images/backgrounds/checkerboard_tile.png +0 -0
- data/app/assets/images/icons/calendar_datepicker.svg +18 -0
- data/app/assets/images/icons/checkbox-selected.svg +17 -0
- data/app/assets/images/icons/checkbox-unselected.svg +12 -0
- data/app/assets/images/icons/double-arrow-left.svg +13 -0
- data/app/assets/images/icons/double-arrow-right.svg +13 -0
- data/app/assets/images/icons/focus-child.svg +14 -0
- data/app/assets/images/icons/master-profile.svg +11 -0
- data/app/assets/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/app/assets/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/app/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/ui-bg_flat_100_b8b8b8_40x100.png +0 -0
- data/app/assets/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/app/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/app/assets/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/app/assets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/app/assets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/app/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/app/assets/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- data/app/assets/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/ui-icons_228ef1_256x240.png +0 -0
- data/app/assets/images/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/images/ui-icons_ef8c08_256x240.png +0 -0
- data/app/assets/images/ui-icons_ffd27a_256x240.png +0 -0
- data/app/assets/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/images/undercase/undercase_gem_logo.png +0 -0
- data/app/assets/javascripts/undercase/index.js +19 -0
- data/app/assets/javascripts/undercase/lib/BreakpointTell.js +9 -0
- data/app/assets/javascripts/undercase/lib/timezone.js +28 -0
- data/app/assets/javascripts/undercase/patterns/Filter.js +75 -0
- data/app/assets/javascripts/undercase/patterns/FlexibleSearchMenu.js +64 -0
- data/app/assets/javascripts/undercase/patterns/ToggleNavigationSearch.js +60 -0
- data/app/assets/javascripts/undercase/patterns/datepicker.js +36 -0
- data/app/assets/javascripts/undercase/patterns/expando.js +39 -0
- data/app/assets/javascripts/undercase/patterns/modal.js +60 -0
- data/app/assets/javascripts/undercase/patterns/tabs.js +26 -0
- data/app/assets/javascripts/undercase/patterns/timepicker.js +5 -0
- data/app/assets/javascripts/undercase/popover.js +26 -0
- data/app/assets/javascripts/undercase/presenter.js +55 -0
- data/app/assets/javascripts/undercase/show_code.js +35 -0
- data/app/assets/javascripts/undercase/vendor/date.js +879 -0
- data/app/assets/javascripts/undercase/vendor/jquery-extensions/jquery.calendrical.js +517 -0
- data/app/assets/javascripts/undercase/vendor/jquery-ui-1.10.3.js +14972 -0
- data/app/assets/javascripts/undercase/vendor/modernizr.custom.14960.js +764 -0
- data/app/assets/javascripts/undercase/vendor/underscore.js +1189 -0
- data/app/assets/stylesheets/undercase/libraries/_all.scss +38 -0
- data/app/assets/stylesheets/undercase/libraries/_borders.scss +20 -0
- data/app/assets/stylesheets/undercase/libraries/_colors.scss +41 -0
- data/app/assets/stylesheets/undercase/libraries/_constants.scss +76 -0
- data/app/assets/stylesheets/undercase/libraries/_groundwork_settings.scss +351 -0
- data/app/assets/stylesheets/undercase/libraries/_icon_codes.scss +369 -0
- data/app/assets/stylesheets/undercase/libraries/_mixins.scss +49 -0
- data/app/assets/stylesheets/undercase/libraries/mixins/_button.scss +124 -0
- data/app/assets/stylesheets/undercase/libraries/mixins/_forms.scss +33 -0
- data/app/assets/stylesheets/undercase/libraries/mixins/_layout.scss +23 -0
- data/app/assets/stylesheets/undercase/libraries/mixins/_typography.scss +99 -0
- data/app/assets/stylesheets/undercase/patterns/_all.scss +32 -0
- data/app/assets/stylesheets/undercase/patterns/_borders.scss +89 -0
- data/app/assets/stylesheets/undercase/patterns/_box_helpers.scss +39 -0
- data/app/assets/stylesheets/undercase/patterns/_buttons.scss +110 -0
- data/app/assets/stylesheets/undercase/patterns/_cards.scss +36 -0
- data/app/assets/stylesheets/undercase/patterns/_chevrons.scss +98 -0
- data/app/assets/stylesheets/undercase/patterns/_colors.scss +34 -0
- data/app/assets/stylesheets/undercase/patterns/_content_with_toolbar.scss +23 -0
- data/app/assets/stylesheets/undercase/patterns/_dropdowns.scss +49 -0
- data/app/assets/stylesheets/undercase/patterns/_filters.scss +121 -0
- data/app/assets/stylesheets/undercase/patterns/_font_faces.scss +32 -0
- data/app/assets/stylesheets/undercase/patterns/_forms.scss +617 -0
- data/app/assets/stylesheets/undercase/patterns/_horizontal_rules.scss +5 -0
- data/app/assets/stylesheets/undercase/patterns/_icons.scss +4 -0
- data/app/assets/stylesheets/undercase/patterns/_inline_message.scss +36 -0
- data/app/assets/stylesheets/undercase/patterns/_layout.scss +57 -0
- data/app/assets/stylesheets/undercase/patterns/_length_of_time.scss +10 -0
- data/app/assets/stylesheets/undercase/patterns/_links.scss +96 -0
- data/app/assets/stylesheets/undercase/patterns/_lists.scss +84 -0
- data/app/assets/stylesheets/undercase/patterns/_media.scss +15 -0
- data/app/assets/stylesheets/undercase/patterns/_modals.scss +114 -0
- data/app/assets/stylesheets/undercase/patterns/_navigation.scss +224 -0
- data/app/assets/stylesheets/undercase/patterns/_pagination.scss +33 -0
- data/app/assets/stylesheets/undercase/patterns/_person_placard.scss +52 -0
- data/app/assets/stylesheets/undercase/patterns/_popovers.scss +12 -0
- data/app/assets/stylesheets/undercase/patterns/_quiz.scss +67 -0
- data/app/assets/stylesheets/undercase/patterns/_site.scss +95 -0
- data/app/assets/stylesheets/undercase/patterns/_spinners.scss +23 -0
- data/app/assets/stylesheets/undercase/patterns/_tables.scss +111 -0
- data/app/assets/stylesheets/undercase/patterns/_tabs.scss +56 -0
- data/app/assets/stylesheets/undercase/patterns/_typography.scss +231 -0
- data/app/assets/stylesheets/undercase/patterns/undercase_icons/glyphs.scss +28 -0
- data/app/assets/stylesheets/undercase/patterns_new_front_end/_all.scss +6 -0
- data/app/assets/stylesheets/undercase/patterns_new_front_end/_cards.scss +248 -0
- data/app/assets/stylesheets/undercase/patterns_new_front_end/_links.scss +10 -0
- data/app/assets/stylesheets/undercase/patterns_new_front_end/_warnings.scss +32 -0
- data/app/assets/stylesheets/undercase/vendor_static/_all.scss +12 -0
- data/app/assets/stylesheets/undercase/vendor_static/_calendrical.scss +105 -0
- data/app/assets/stylesheets/undercase/vendor_static/_icons.scss +422 -0
- data/app/assets/stylesheets/undercase/vendor_static/_jquery-ui-1.8.13.custom.scss +615 -0
- data/app/assets/stylesheets/undercase_frame/_dummy_site.scss +307 -0
- data/app/assets/stylesheets/undercase_frame/vendor/coderay.css +118 -0
- data/app/assets/stylesheets/undercase_frame_application.css.scss +18 -0
- data/app/assets/stylesheets/undercase_frame_vendor_static.scss +4 -0
- data/app/controllers/undercase/application_controller.rb +4 -0
- data/app/controllers/undercase/patterns_controller.rb +13 -0
- data/app/helpers/undercase/application_helper.rb +86 -0
- data/app/helpers/undercase/pattern_helper.rb +7 -0
- data/app/inputs/currency_input.rb +20 -0
- data/app/inputs/date_picker_input.rb +77 -0
- data/app/inputs/date_time_picker_input.rb +141 -0
- data/app/inputs/radio_as_accessible_input.rb +33 -0
- data/app/inputs/radio_with_clear_input.rb +41 -0
- data/app/models/dummy_form_object.rb +24 -0
- data/app/views/layouts/undercase/application.html.haml +49 -0
- data/app/views/undercase/patterns/_blue_dotted_link_caps.html.haml +2 -0
- data/app/views/undercase/patterns/_blue_link.html.haml +2 -0
- data/app/views/undercase/patterns/_blue_link_clean.html.haml +2 -0
- data/app/views/undercase/patterns/_cc_button_auto.html.haml +8 -0
- data/app/views/undercase/patterns/_cc_button_flat_blue.html.haml +2 -0
- data/app/views/undercase/patterns/_cc_button_flat_gray.html.haml +7 -0
- data/app/views/undercase/patterns/_cc_button_flat_gray_split.html.haml +4 -0
- data/app/views/undercase/patterns/_cc_button_flat_green.html.haml +2 -0
- data/app/views/undercase/patterns/_cc_button_gray.html.haml +1 -0
- data/app/views/undercase/patterns/_cc_button_icon.html.haml +2 -0
- data/app/views/undercase/patterns/_cc_button_wire_auto.html.haml +8 -0
- data/app/views/undercase/patterns/_cc_link_smartbar.html.haml +2 -0
- data/app/views/undercase/patterns/_chevrons.html.haml +38 -0
- data/app/views/undercase/patterns/_colors.html.haml +12 -0
- data/app/views/undercase/patterns/_content_with_toolbar.html.haml +6 -0
- data/app/views/undercase/patterns/_dropdown.html.haml +21 -0
- data/app/views/undercase/patterns/_filters.html.haml +210 -0
- data/app/views/undercase/patterns/_filters_show_only.html.haml +77 -0
- data/app/views/undercase/patterns/_gray_link.html.haml +2 -0
- data/app/views/undercase/patterns/_grid.html.haml +0 -0
- data/app/views/undercase/patterns/_icon_classes.html.haml +8 -0
- data/app/views/undercase/patterns/_icon_custom.html.haml +12 -0
- data/app/views/undercase/patterns/_inline_message.html.haml +5 -0
- data/app/views/undercase/patterns/_length_of_time.html.haml +12 -0
- data/app/views/undercase/patterns/_list_circle.html.haml +4 -0
- data/app/views/undercase/patterns/_list_disc.html.haml +4 -0
- data/app/views/undercase/patterns/_navigation.html.haml +40 -0
- data/app/views/undercase/patterns/_pagination.html.haml +17 -0
- data/app/views/undercase/patterns/_pattern.html.haml +27 -0
- data/app/views/undercase/patterns/_person_placard.html.haml +103 -0
- data/app/views/undercase/patterns/_popover.html.haml +9 -0
- data/app/views/undercase/patterns/_tables_mobile.html.haml +23 -0
- data/app/views/undercase/patterns/_tables_not_desktop.html.haml +21 -0
- data/app/views/undercase/patterns/_tables_small_mobile.html.haml +23 -0
- data/app/views/undercase/patterns/_tables_small_tablet.html.haml +25 -0
- data/app/views/undercase/patterns/_typography.html.haml +16 -0
- data/app/views/undercase/patterns/_typography_body_em.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_body_p.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_body_strong.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_body_thin.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_body_underline.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_body_uppercase.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_heading_1.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_heading_2.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_heading_3.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_heading_4.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_heading_thin.html.haml +1 -0
- data/app/views/undercase/patterns/_typography_links_general.html.haml +2 -0
- data/app/views/undercase/patterns/_typography_links_navigation.html.haml +2 -0
- data/app/views/undercase/patterns/_typography_links_page_banner.html.haml +2 -0
- data/app/views/undercase/patterns/_uc_borders_blue.html.haml +2 -0
- data/app/views/undercase/patterns/_uc_borders_gray.html.haml +2 -0
- data/app/views/undercase/patterns/_uc_borders_hover_blue.html.haml +3 -0
- data/app/views/undercase/patterns/_uc_borders_left.html.haml +4 -0
- data/app/views/undercase/patterns/_uc_borders_lighter_gray.html.haml +3 -0
- data/app/views/undercase/patterns/_uc_borders_middle_blue_2.html.haml +1 -0
- data/app/views/undercase/patterns/_uc_borders_middle_gray.html.haml +2 -0
- data/app/views/undercase/patterns/_uc_borders_yellow.html.haml +1 -0
- data/app/views/undercase/patterns/_uc_card.html.haml +40 -0
- data/app/views/undercase/patterns/_uc_dialog_loading.html.haml +2 -0
- data/app/views/undercase/patterns/_uc_errors.html.haml +1 -0
- data/app/views/undercase/patterns/_uc_forms_check_boxes.html.haml +7 -0
- data/app/views/undercase/patterns/_uc_forms_check_boxes_boolean.html.haml +20 -0
- data/app/views/undercase/patterns/_uc_forms_checkbutton.html.haml +14 -0
- data/app/views/undercase/patterns/_uc_forms_conditionally_required.html.haml +19 -0
- data/app/views/undercase/patterns/_uc_forms_currency_input.html.haml +7 -0
- data/app/views/undercase/patterns/_uc_forms_date_picker.html.haml +9 -0
- data/app/views/undercase/patterns/_uc_forms_date_time_picker.html.haml +9 -0
- data/app/views/undercase/patterns/_uc_forms_disabled_field.html.haml +8 -0
- data/app/views/undercase/patterns/_uc_forms_dropdown.html.haml +10 -0
- data/app/views/undercase/patterns/_uc_forms_dropdown_with_optgroups.html.haml +10 -0
- data/app/views/undercase/patterns/_uc_forms_full_name.html.haml +32 -0
- data/app/views/undercase/patterns/_uc_forms_grouped_inputs.html.haml +17 -0
- data/app/views/undercase/patterns/_uc_forms_large_field.html.haml +8 -0
- data/app/views/undercase/patterns/_uc_forms_medium_field.html.haml +8 -0
- data/app/views/undercase/patterns/_uc_forms_phone.html.haml +26 -0
- data/app/views/undercase/patterns/_uc_forms_radio_button_clear_link.html.haml +7 -0
- data/app/views/undercase/patterns/_uc_forms_radio_buttons.html.haml +7 -0
- data/app/views/undercase/patterns/_uc_forms_radio_buttons_breathe.html.haml +11 -0
- data/app/views/undercase/patterns/_uc_forms_radio_buttons_horizontal.html.haml +11 -0
- data/app/views/undercase/patterns/_uc_forms_search.html.haml +23 -0
- data/app/views/undercase/patterns/_uc_forms_short_name.html.haml +20 -0
- data/app/views/undercase/patterns/_uc_forms_small_field.html.haml +8 -0
- data/app/views/undercase/patterns/_uc_forms_textarea.html.haml +9 -0
- data/app/views/undercase/patterns/_uc_forms_tiny_field.html.haml +8 -0
- data/app/views/undercase/patterns/_uc_list_comma.html.haml +4 -0
- data/app/views/undercase/patterns/_uc_list_ordered_alpha.html.haml +12 -0
- data/app/views/undercase/patterns/_uc_list_ordered_decimal.html.haml +12 -0
- data/app/views/undercase/patterns/_uc_list_pipe.html.haml +4 -0
- data/app/views/undercase/patterns/_uc_media.html.haml +6 -0
- data/app/views/undercase/patterns/_uc_modal_basic.html.haml +28 -0
- data/app/views/undercase/patterns/_uc_modal_exception.html.haml +34 -0
- data/app/views/undercase/patterns/_uc_modal_with_linked.html.haml +37 -0
- data/app/views/undercase/patterns/_uc_quiz_questions.html.haml +12 -0
- data/app/views/undercase/patterns/_uc_tabs.html.haml +16 -0
- data/app/views/undercase/patterns/index.html.haml +48 -0
- data/app/views/undercase/patterns/show.html.haml +7 -0
- data/app/views/undercase/popups/_dropdown.html.haml +5 -0
- data/config/initializers/dotiw.rb +1 -0
- data/config/initializers/simple_form.rb +147 -0
- data/config/routes.rb +4 -0
- data/config/tddium.yml +17 -0
- data/config/undercase-icons-regular.yml +41 -0
- data/lib/tasks/undercase.rake +51 -0
- data/lib/undercase.rb +15 -0
- data/lib/undercase/categories.yml +12 -0
- data/lib/undercase/category.rb +20 -0
- data/lib/undercase/engine.rb +13 -0
- data/lib/undercase/pattern.rb +68 -0
- data/lib/undercase/patterns/blue_dotted_link_caps.yml +4 -0
- data/lib/undercase/patterns/blue_link.yml +4 -0
- data/lib/undercase/patterns/blue_link_clean.yml +4 -0
- data/lib/undercase/patterns/cc_button_auto.yml +4 -0
- data/lib/undercase/patterns/cc_button_flat_blue.yml +4 -0
- data/lib/undercase/patterns/cc_button_flat_gray.yml +4 -0
- data/lib/undercase/patterns/cc_button_flat_gray_split.yml +9 -0
- data/lib/undercase/patterns/cc_button_flat_green.yml +27 -0
- data/lib/undercase/patterns/cc_button_gray.yml +4 -0
- data/lib/undercase/patterns/cc_button_icon.yml +4 -0
- data/lib/undercase/patterns/cc_button_wire_auto.yml +5 -0
- data/lib/undercase/patterns/cc_link_smartbar.yml +4 -0
- data/lib/undercase/patterns/chevrons.yml +4 -0
- data/lib/undercase/patterns/colors.yml +5 -0
- data/lib/undercase/patterns/content_with_toolbar.yml +4 -0
- data/lib/undercase/patterns/dropdown.yml +4 -0
- data/lib/undercase/patterns/filters.yml +5 -0
- data/lib/undercase/patterns/filters_show_only.yml +5 -0
- data/lib/undercase/patterns/gray_link.yml +4 -0
- data/lib/undercase/patterns/grid.yml +4 -0
- data/lib/undercase/patterns/icon_classes.yml +5 -0
- data/lib/undercase/patterns/icon_custom.yml +4 -0
- data/lib/undercase/patterns/inline_message.yml +4 -0
- data/lib/undercase/patterns/length_of_time.yml +4 -0
- data/lib/undercase/patterns/list_circle.yml +4 -0
- data/lib/undercase/patterns/list_disc.yml +4 -0
- data/lib/undercase/patterns/navigation.yml +4 -0
- data/lib/undercase/patterns/pagination.yml +4 -0
- data/lib/undercase/patterns/person_placard.yml +4 -0
- data/lib/undercase/patterns/popover.yml +4 -0
- data/lib/undercase/patterns/tables_mobile.yml +4 -0
- data/lib/undercase/patterns/tables_not_desktop.yml +4 -0
- data/lib/undercase/patterns/tables_small_tablet.yml +4 -0
- data/lib/undercase/patterns/typography.yml +4 -0
- data/lib/undercase/patterns/typography_body_em.yml +4 -0
- data/lib/undercase/patterns/typography_body_p.yml +4 -0
- data/lib/undercase/patterns/typography_body_strong.yml +4 -0
- data/lib/undercase/patterns/typography_body_thin.yml +4 -0
- data/lib/undercase/patterns/typography_body_underline.yml +4 -0
- data/lib/undercase/patterns/typography_body_uppercase.yml +4 -0
- data/lib/undercase/patterns/typography_heading_1.yml +4 -0
- data/lib/undercase/patterns/typography_heading_2.yml +4 -0
- data/lib/undercase/patterns/typography_heading_3.yml +4 -0
- data/lib/undercase/patterns/typography_heading_4.yml +4 -0
- data/lib/undercase/patterns/typography_heading_thin.yml +4 -0
- data/lib/undercase/patterns/typography_links_general.yml +4 -0
- data/lib/undercase/patterns/typography_links_navigation.yml +4 -0
- data/lib/undercase/patterns/typography_links_page_banner.yml +4 -0
- data/lib/undercase/patterns/uc_borders_blue.yml +4 -0
- data/lib/undercase/patterns/uc_borders_gray.yml +4 -0
- data/lib/undercase/patterns/uc_borders_hover_blue.yml +4 -0
- data/lib/undercase/patterns/uc_borders_left.yml +4 -0
- data/lib/undercase/patterns/uc_borders_lighter_gray.yml +4 -0
- data/lib/undercase/patterns/uc_borders_middle_blue_2.yml +4 -0
- data/lib/undercase/patterns/uc_borders_middle_gray.yml +4 -0
- data/lib/undercase/patterns/uc_borders_yellow.yml +4 -0
- data/lib/undercase/patterns/uc_card.yml +5 -0
- data/lib/undercase/patterns/uc_dialog_loading.yml +4 -0
- data/lib/undercase/patterns/uc_errors.yml +5 -0
- data/lib/undercase/patterns/uc_forms_check_boxes.yml +4 -0
- data/lib/undercase/patterns/uc_forms_check_boxes_boolean.yml +4 -0
- data/lib/undercase/patterns/uc_forms_checkbutton.yml +4 -0
- data/lib/undercase/patterns/uc_forms_conditionally_required.yml +4 -0
- data/lib/undercase/patterns/uc_forms_currency_input.yml +4 -0
- data/lib/undercase/patterns/uc_forms_date_picker.yml +4 -0
- data/lib/undercase/patterns/uc_forms_date_time_picker.yml +4 -0
- data/lib/undercase/patterns/uc_forms_disabled_field.yml +4 -0
- data/lib/undercase/patterns/uc_forms_dropdown.yml +4 -0
- data/lib/undercase/patterns/uc_forms_dropdown_with_optgroups.yml +4 -0
- data/lib/undercase/patterns/uc_forms_full_name.yml +4 -0
- data/lib/undercase/patterns/uc_forms_grouped_inputs.yml +4 -0
- data/lib/undercase/patterns/uc_forms_large_field.yml +4 -0
- data/lib/undercase/patterns/uc_forms_medium_field.yml +4 -0
- data/lib/undercase/patterns/uc_forms_phone.yml +4 -0
- data/lib/undercase/patterns/uc_forms_radio_button_clear_link.yml +4 -0
- data/lib/undercase/patterns/uc_forms_radio_buttons.yml +4 -0
- data/lib/undercase/patterns/uc_forms_radio_buttons_breathe.yml +4 -0
- data/lib/undercase/patterns/uc_forms_radio_buttons_horizontal.yml +4 -0
- data/lib/undercase/patterns/uc_forms_search.yml +4 -0
- data/lib/undercase/patterns/uc_forms_short_name.yml +4 -0
- data/lib/undercase/patterns/uc_forms_small_field.yml +4 -0
- data/lib/undercase/patterns/uc_forms_textarea.yml +4 -0
- data/lib/undercase/patterns/uc_forms_tiny_field.yml +4 -0
- data/lib/undercase/patterns/uc_list_comma.yml +4 -0
- data/lib/undercase/patterns/uc_list_ordered_alpha.yml +4 -0
- data/lib/undercase/patterns/uc_list_ordered_decimal.yml +4 -0
- data/lib/undercase/patterns/uc_list_pipe.yml +4 -0
- data/lib/undercase/patterns/uc_media.yml +4 -0
- data/lib/undercase/patterns/uc_modal_basic.yml +4 -0
- data/lib/undercase/patterns/uc_modal_exception.yml +4 -0
- data/lib/undercase/patterns/uc_modal_with_linked.yml +4 -0
- data/lib/undercase/patterns/uc_quiz_questions.yml +4 -0
- data/lib/undercase/patterns/uc_tabs.yml +4 -0
- data/lib/undercase/templates/fontcustom/glyphs.scss +6 -0
- data/lib/undercase/version.rb +3 -0
- data/public/timezones/Makefile +523 -0
- data/public/timezones/africa +1194 -0
- data/public/timezones/antarctica +411 -0
- data/public/timezones/asia +2751 -0
- data/public/timezones/australasia +1726 -0
- data/public/timezones/backward +117 -0
- data/public/timezones/etcetera +81 -0
- data/public/timezones/europe +2973 -0
- data/public/timezones/factory +10 -0
- data/public/timezones/iso3166.tab +276 -0
- data/public/timezones/leapseconds +100 -0
- data/public/timezones/northamerica +3254 -0
- data/public/timezones/pacificnew +28 -0
- data/public/timezones/solar87 +390 -0
- data/public/timezones/solar88 +390 -0
- data/public/timezones/solar89 +395 -0
- data/public/timezones/southamerica +1718 -0
- data/public/timezones/systemv +38 -0
- data/public/timezones/yearistype.sh +38 -0
- data/public/timezones/zone.tab +444 -0
- metadata +789 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
.uc-media
|
2
|
+
.uc-media__image
|
3
|
+
%img{src: '/assets/avatar_male_small.png'}
|
4
|
+
.uc-media__content
|
5
|
+
%p Any type of content can go here. Lorem ipsum dolor sit amet, at fabulas lucilius evertitur cum, homero hendrerit instructior sed at. Pri ut dolor alterum, vim utamur oporteat intellegebat an, ad quando probatus hendrerit usu. Quo ei veniam mollis meliore, cu porro conceptam usu. Sed appareat probatus principes ea, no mel mundi omittam consulatu. Ei putant senserit his, vim soluta periculis no. In vis fabulas intellegam, docendi temporibus qui id.
|
6
|
+
%p Lorem ipsum dolor sit amet, at fabulas lucilius evertitur cum, homero hendrerit instructior sed at. Pri ut dolor alterum, vim utamur oporteat intellegebat an, ad quando probatus hendrerit usu. Quo ei veniam mollis meliore, cu porro conceptam usu. Sed appareat probatus principes ea, no mel mundi omittam consulatu. Ei putant senserit his, vim soluta periculis no. In vis fabulas intellegam, docendi temporibus qui id.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
.show
|
2
|
+
%button#js-modal-3.cc-button-flat-green-primary Basic Modal
|
3
|
+
|
4
|
+
#js-modal-3-content.show.js-hidden
|
5
|
+
.uc-modal
|
6
|
+
.row
|
7
|
+
.uc-modal-header
|
8
|
+
Apply for a new license
|
9
|
+
%hr.uc-modal-rule
|
10
|
+
.row
|
11
|
+
.uc-modal-content
|
12
|
+
.type-body
|
13
|
+
This request will move this resource to
|
14
|
+
%strong Inquiry status
|
15
|
+
and add a new
|
16
|
+
%strong Initial Licensure Checklist
|
17
|
+
="."
|
18
|
+
.uc-modal-content
|
19
|
+
.type-body Are you sure you would like to add this request?
|
20
|
+
.row.uc-modal-actions.align-center
|
21
|
+
%input.cc-button-flat-green-primary{type: "button", value: "Save"}
|
22
|
+
%a.js-close-modal.cc-button-flat-gray-primary{href: "#"} Cancel
|
23
|
+
|
24
|
+
:javascript
|
25
|
+
$("#js-modal-3").click(function() {
|
26
|
+
var modal3 = new window.undercase.modal($("#js-modal-3-content"));
|
27
|
+
modal3.open();
|
28
|
+
});
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.show
|
2
|
+
#js-modal-2.cc-button-flat-green-primary Modal w/ Exception
|
3
|
+
|
4
|
+
#js-modal-2-content.show.js-hidden
|
5
|
+
.uc-modal.uc-modal-exception
|
6
|
+
.row
|
7
|
+
.uc-modal-header Required Information
|
8
|
+
%hr.uc-modal-rule
|
9
|
+
.row.uc-modal-content
|
10
|
+
.type-body.gap-bottom
|
11
|
+
The following fields are missing on
|
12
|
+
%a.blue-link{href: "#"} Hungry Bear’s
|
13
|
+
Profile:
|
14
|
+
%ul.uc-modal-linked.uc-list-circle
|
15
|
+
%li Race
|
16
|
+
%li Hispanic or Latino Origin
|
17
|
+
%li Active Military Dependent Statuses
|
18
|
+
%li Living Arrangements
|
19
|
+
%li Child Risk Factors
|
20
|
+
.row.uc-modal-links
|
21
|
+
.one.half.mobile.align-left
|
22
|
+
%a.blue-link-clean{href: "#"} Edit Profile
|
23
|
+
.one.half.mobile.align-right
|
24
|
+
%a.blue-link-clean{href: "#"} Create an Exception
|
25
|
+
.row.uc-modal-rule-wrapper
|
26
|
+
.uc-rule-dotted
|
27
|
+
.row.uc-modal-actions.align-center
|
28
|
+
%a.js-close-modal.cc-button-flat-green-primary{href: "#"} OK
|
29
|
+
|
30
|
+
:javascript
|
31
|
+
$("#js-modal-2").click(function() {
|
32
|
+
var modal2 = new window.undercase.modal($("#js-modal-2-content"));
|
33
|
+
modal2.open();
|
34
|
+
});
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.show
|
2
|
+
#js-modal-1.cc-button-flat-green-primary Modal With Linked Content
|
3
|
+
|
4
|
+
#js-modal-1-content.show.js-hidden
|
5
|
+
.uc-modal.uc-modal-large
|
6
|
+
.row
|
7
|
+
.uc-modal-header
|
8
|
+
Withdraw this assessment
|
9
|
+
%hr.uc-modal-rule
|
10
|
+
.row
|
11
|
+
.uc-modal-linked
|
12
|
+
%a.blue-dotted-link-caps{href: "#"} Kary Him Beow Asssesment
|
13
|
+
%p.type-body 24 hours for neglect, physical abuse, & sexual abuse
|
14
|
+
.row
|
15
|
+
.uc-modal-content
|
16
|
+
.type-body
|
17
|
+
Upon withdrawal, the Central Intake Unit will be notified and the assessment will be moved to the Withdrawn Assessments Index. This action cannot be undown.
|
18
|
+
.row
|
19
|
+
.uc-modal-content
|
20
|
+
%fieldset
|
21
|
+
.row
|
22
|
+
%legend.type-body.gap-bottom Please select the reason for the withdrawal:
|
23
|
+
.row.half-gap-bottom
|
24
|
+
%input#uc-modal-1-label-1{type: "radio"}
|
25
|
+
%label{for: "uc-modal-1-label-1"} Option 1
|
26
|
+
.row.half-gap-bottom
|
27
|
+
%input#uc-modal-1-label-2{type: "radio"}
|
28
|
+
%label{for: "uc-modal-1-label-2"} Option 2
|
29
|
+
.row.uc-modal-actions.align-center
|
30
|
+
%input.cc-button-flat-green-primary{type: "button", value: "Save"}
|
31
|
+
%a.js-close-modal.cc-button-flat-gray-primary{href: "#"} Cancel
|
32
|
+
|
33
|
+
:javascript
|
34
|
+
$("#js-modal-1").click(function() {
|
35
|
+
var modal1 = new window.undercase.modal($("#js-modal-1-content"));
|
36
|
+
modal1.open();
|
37
|
+
});
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#tab-group.row.uc-autocompleter-tab-group.five.sixths.uc-border--light-gray
|
2
|
+
%ul.uc-autocompleter-tabs.row
|
3
|
+
%li.uc-autocompleter-tabs__tab.one.half.mobile.active
|
4
|
+
%button.uc-autocompleter-tabs__tab__button.js-tab-button{ 'data-target' => '#js-local-results' }
|
5
|
+
Tab One
|
6
|
+
%li.uc-autocompleter-tabs__tab.one.half.mobile
|
7
|
+
%button.uc-autocompleter-tabs__tab__button.js-tab-button{ 'data-target' => '#js-global-results' }
|
8
|
+
Tab Two
|
9
|
+
|
10
|
+
#js-local-results.double-padded.uc-autocompleter-tab-panel.active
|
11
|
+
Panel One
|
12
|
+
#js-global-results.double-padded.uc-autocompleter-tab-panel
|
13
|
+
Panel Two
|
14
|
+
|
15
|
+
:javascript
|
16
|
+
new window.undercase.AutocompleterTabs('#tab-group');
|
@@ -0,0 +1,48 @@
|
|
1
|
+
- content_for :title, "Getting Started!"
|
2
|
+
|
3
|
+
.doc-text
|
4
|
+
%p The pattern library contains the UI building blocks of Casebook. It is divided into sections that reflect the categories of components we use:
|
5
|
+
|
6
|
+
%section.uf-description
|
7
|
+
%h2 Sections
|
8
|
+
%ul
|
9
|
+
%li
|
10
|
+
=link_to "Grids and Spacing", undercase.category_path(category: "grids")
|
11
|
+
— grids
|
12
|
+
%li
|
13
|
+
=link_to "Colors", undercase.category_path(category: "colors")
|
14
|
+
— colors
|
15
|
+
%li
|
16
|
+
=link_to "Borders", undercase.category_path(category: "borders")
|
17
|
+
— borders
|
18
|
+
%li
|
19
|
+
=link_to "Typography", undercase.category_path(category: "typography")
|
20
|
+
— typography
|
21
|
+
%li
|
22
|
+
= link_to "Components", undercase.category_path(category: "components")
|
23
|
+
— components
|
24
|
+
%li
|
25
|
+
= link_to "Forms", undercase.category_path(category: "forms")
|
26
|
+
— forms
|
27
|
+
%li
|
28
|
+
= link_to "Lists", undercase.category_path(category: "lists")
|
29
|
+
— lists
|
30
|
+
%li
|
31
|
+
= link_to "Buttons", undercase.category_path(category: "buttons")
|
32
|
+
— buttons
|
33
|
+
%li
|
34
|
+
= link_to "Links", undercase.category_path(category: "links")
|
35
|
+
— links
|
36
|
+
%li
|
37
|
+
= link_to "Icons", undercase.category_path(category: "icons")
|
38
|
+
— icons
|
39
|
+
%li
|
40
|
+
= link_to "Popups", undercase.category_path(category: "popups")
|
41
|
+
— modals, dropdowns, popovers
|
42
|
+
%li
|
43
|
+
= link_to "Language", undercase.category_path(category: "language")
|
44
|
+
— language/grammar/tone for different kinds of copy
|
45
|
+
|
46
|
+
%section
|
47
|
+
%h2 When Should I Add a Pattern
|
48
|
+
%p If you can’t find an existing pattern in the library to implement a feature, revisit the design to see if it can be adjusted to use one. Otherwise, break the feature into atomic components and add each component as a pattern. For example, if you create a card with a formatted list and a styled fieldset, add the list and fieldset as distinct patterns.
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'dotiw'
|
@@ -0,0 +1,147 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
4
|
+
# complete input. You can remove any component from the
|
5
|
+
# wrapper, change the order or even add your own to the
|
6
|
+
# stack. The options given below are used to wrap the
|
7
|
+
# whole input.
|
8
|
+
config.wrappers :default,
|
9
|
+
:class => 'uc-form-field input',
|
10
|
+
:hint_class => :field_with_hint, :error_class => :field_with_errors do |b|
|
11
|
+
## Extensions enabled by default
|
12
|
+
# Any of these extensions can be disabled for a
|
13
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
14
|
+
# You can make any of these extensions optional by
|
15
|
+
# renaming `b.use` to `b.optional`.
|
16
|
+
|
17
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
18
|
+
# and required attributes
|
19
|
+
b.use :html5
|
20
|
+
|
21
|
+
# Calculates placeholders automatically from I18n
|
22
|
+
# You can also pass a string as f.input :placeholder => "Placeholder"
|
23
|
+
# b.use :placeholder
|
24
|
+
|
25
|
+
## Optional extensions
|
26
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
|
27
|
+
# to the input. If so, they will retrieve the values from the model
|
28
|
+
# if any exists. If you want to enable the lookup for any of those
|
29
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
30
|
+
|
31
|
+
# Calculates maxlength from length validations for string inputs
|
32
|
+
# b.optional :maxlength
|
33
|
+
|
34
|
+
# Calculates pattern from format validations for string inputs
|
35
|
+
# b.optional :pattern
|
36
|
+
|
37
|
+
# Calculates min and max from length validations for numeric inputs
|
38
|
+
# b.optional :min_max
|
39
|
+
|
40
|
+
# Calculates readonly automatically from readonly attributes
|
41
|
+
# b.optional :readonly
|
42
|
+
|
43
|
+
## Inputs
|
44
|
+
b.use :label_input
|
45
|
+
b.use :hint, :wrap_with => { :tag => 'span', :class => 'hint'}
|
46
|
+
b.use :error, :wrap_with => { :tag => 'span', :class => 'uc-error'}
|
47
|
+
end
|
48
|
+
|
49
|
+
# The default wrapper to be used by the FormBuilder.
|
50
|
+
config.default_wrapper = :default
|
51
|
+
|
52
|
+
# Define the way to render check boxes / radio buttons with labels.
|
53
|
+
# Defaults to :nested for bootstrap config.
|
54
|
+
# :inline => input + label
|
55
|
+
# :nested => label > input
|
56
|
+
config.boolean_style = :inline
|
57
|
+
|
58
|
+
# Default class for buttons
|
59
|
+
# config.button_class = 'btn'
|
60
|
+
|
61
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
62
|
+
# :first lists the first message for each field.
|
63
|
+
# Use :to_sentence to list all errors for each field.
|
64
|
+
# config.error_method = :first
|
65
|
+
|
66
|
+
# Default tag used for error notification helper.
|
67
|
+
config.error_notification_tag = :div
|
68
|
+
|
69
|
+
# CSS class to add for error notification helper.
|
70
|
+
config.error_notification_class = 'alert alert-error'
|
71
|
+
|
72
|
+
# ID to add for error notification helper.
|
73
|
+
# config.error_notification_id = nil
|
74
|
+
|
75
|
+
# Series of attempts to detect a default label method for collection.
|
76
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
77
|
+
|
78
|
+
# Series of attempts to detect a default value method for collection.
|
79
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
80
|
+
|
81
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
82
|
+
config.collection_wrapper_tag = :fieldset
|
83
|
+
|
84
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
85
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
86
|
+
# SimpleForm will force this option to be a label.
|
87
|
+
# config.item_wrapper_tag = :span
|
88
|
+
|
89
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
90
|
+
config.item_wrapper_class = 'uc-form-collection-item'
|
91
|
+
|
92
|
+
# How the label text should be generated altogether with the required text.
|
93
|
+
# config.label_text = lambda { |label, required| "#{required} #{label}" }
|
94
|
+
config.label_text = ->(label, required) { "#{label}#{required}" }
|
95
|
+
|
96
|
+
# You can define the class to use on all labels. Default is nil.
|
97
|
+
config.label_class = 'uc-form-label input'
|
98
|
+
|
99
|
+
# You can define the class to use on all forms. Default is simple_form.
|
100
|
+
# config.form_class = :simple_form
|
101
|
+
|
102
|
+
# You can define which elements should obtain additional classes
|
103
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
104
|
+
|
105
|
+
# Whether attributes are required by default (or not). Default is true.
|
106
|
+
config.required_by_default = false
|
107
|
+
|
108
|
+
# Tell browsers whether to use default HTML5 validations (novalidate option).
|
109
|
+
# Default is enabled.
|
110
|
+
config.browser_validations = false
|
111
|
+
|
112
|
+
# Collection of methods to detect if a file type was given.
|
113
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
114
|
+
|
115
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
116
|
+
# to match as key, and the input type that will be used when the field name
|
117
|
+
# matches the regexp as value.
|
118
|
+
# config.input_mappings = { /count/ => :integer }
|
119
|
+
SimpleForm::FormBuilder.map_type :date, to: DatePickerInput
|
120
|
+
SimpleForm::FormBuilder.map_type :datetime, to: DateTimePickerInput
|
121
|
+
|
122
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
123
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
124
|
+
# config.wrapper_mappings = { :string => :prepend }
|
125
|
+
|
126
|
+
# Default priority for time_zone inputs.
|
127
|
+
# config.time_zone_priority = nil
|
128
|
+
|
129
|
+
# Default priority for country inputs.
|
130
|
+
# config.country_priority = nil
|
131
|
+
|
132
|
+
# When false, do not use translations for labels.
|
133
|
+
# config.translate_labels = true
|
134
|
+
|
135
|
+
# Automatically discover new inputs in Rails' autoload path.
|
136
|
+
# config.inputs_discovery = true
|
137
|
+
|
138
|
+
# Cache SimpleForm inputs discovery
|
139
|
+
# config.cache_discovery = !Rails.env.development?
|
140
|
+
config.wrappers :accessible_collection, tag: :fieldset, class: 'uc-form-fieldset-collection', collection_wrapper_tag: false do |b|
|
141
|
+
b.use :html5
|
142
|
+
b.use :label_text, wrap_with: { tag: 'legend', class: 'uc-form-legend' }
|
143
|
+
b.use :input
|
144
|
+
b.use :error, wrap_with: { tag: 'span', class: 'uc-error' }
|
145
|
+
b.use :hint
|
146
|
+
end
|
147
|
+
end
|
data/config/routes.rb
ADDED
data/config/tddium.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
:tddium:
|
2
|
+
:bundler_version: '1.3.5'
|
3
|
+
:cache:
|
4
|
+
:key_paths:
|
5
|
+
- Gemfile
|
6
|
+
- undercase.gemspec
|
7
|
+
:firefox: '24.0esr'
|
8
|
+
:headless: true
|
9
|
+
:hooks:
|
10
|
+
:post_setup: 'cd spec/dummy && RAILS_ENV=test bundle exec rake --trace assets:precompile'
|
11
|
+
:ruby_version: 'ruby-2.1.2'
|
12
|
+
:tests:
|
13
|
+
- :type: custom
|
14
|
+
:command: bin/karma
|
15
|
+
:invocation: single
|
16
|
+
:output: exit-status
|
17
|
+
:timeout: 3600
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# --------------------------------------------------------------------------- #
|
2
|
+
# Project Info
|
3
|
+
# Defaults shown. Learn more about these options by running
|
4
|
+
# `fontcustom help` or visiting <http://fontcustom.com>.
|
5
|
+
# --------------------------------------------------------------------------- #
|
6
|
+
|
7
|
+
font_name: Undercase-Icons
|
8
|
+
css_selector: .uc-icon-{{glyph}}
|
9
|
+
preprocessor_path: ""
|
10
|
+
autowidth: false
|
11
|
+
no_hash: true
|
12
|
+
force: false
|
13
|
+
debug: false
|
14
|
+
quiet: false
|
15
|
+
|
16
|
+
|
17
|
+
# --------------------------------------------------------------------------- #
|
18
|
+
# Input Paths
|
19
|
+
# --------------------------------------------------------------------------- #
|
20
|
+
|
21
|
+
input:
|
22
|
+
vectors: app/assets/images/icons
|
23
|
+
templates: lib/undercase/templates/fontcustom
|
24
|
+
|
25
|
+
# --------------------------------------------------------------------------- #
|
26
|
+
# Output Paths
|
27
|
+
# --------------------------------------------------------------------------- #
|
28
|
+
|
29
|
+
output:
|
30
|
+
fonts: app/assets/fonts/Undercase-Icons
|
31
|
+
css: app/assets/stylesheets/undercase/patterns/undercase_icons
|
32
|
+
|
33
|
+
# --------------------------------------------------------------------------- #
|
34
|
+
# Templates
|
35
|
+
# Included in Font Custom: preview, css, scss, scss-rails
|
36
|
+
# Custom templates should be saved in the INPUT[:templates] directory and
|
37
|
+
# referenced by their baserame.
|
38
|
+
# --------------------------------------------------------------------------- #
|
39
|
+
|
40
|
+
templates:
|
41
|
+
- glyphs.scss
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'lib/undercase/pattern')
|
3
|
+
|
4
|
+
namespace :fonts do
|
5
|
+
desc 'Compile fonts'
|
6
|
+
task :compile do
|
7
|
+
system 'fontcustom compile -c config/undercase-icons-regular.yml'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
namespace :pattern do
|
12
|
+
desc 'Combine import statements for all existing, new, and changed patterns into a manifest file. Overwrites existing manifest.'
|
13
|
+
task :manifest do
|
14
|
+
scss = Undercase::Pattern.all.inject('') do |sum, pattern|
|
15
|
+
sum << "@import 'undercase/patterns/#{pattern.key}';\n"
|
16
|
+
sum
|
17
|
+
end
|
18
|
+
File.open(Undercase::Pattern::SCSS_FILE, 'w') {|f| f.write(scss) }
|
19
|
+
puts "Generated SCSS import manifest at #{Undercase::Pattern::SCSS_FILE}"
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "Create scaffolding for a new pattern. Usage: pattern:create[NAME,'DISPLAY NAME']"
|
23
|
+
task :create, :pattern_name, :display_name do |t, args|
|
24
|
+
name = args[:pattern_name]
|
25
|
+
display_name = args[:display_name]
|
26
|
+
puts "Creating #{name}, #{display_name}..."
|
27
|
+
|
28
|
+
yaml = "#{Undercase::Pattern::YAML_PATH}#{name}.yml"
|
29
|
+
content = <<-TEXT
|
30
|
+
name: #{display_name}
|
31
|
+
description: add description
|
32
|
+
usage: add usage notes for #{name} pattern
|
33
|
+
category: :choose_one
|
34
|
+
TEXT
|
35
|
+
|
36
|
+
File.open(yaml, 'w') {|f| f.write(content) }
|
37
|
+
puts "Created #{yaml}"
|
38
|
+
|
39
|
+
scss = "#{Undercase::Pattern::SCSS_PATH}_#{name}.scss"
|
40
|
+
system('touch', scss)
|
41
|
+
puts "Created #{scss}"
|
42
|
+
|
43
|
+
haml = "#{Undercase::Pattern::HAML_PATH}_#{name}.html.haml"
|
44
|
+
system('touch', haml)
|
45
|
+
puts "Created #{haml}"
|
46
|
+
|
47
|
+
Rake::Task['pattern:manifest'].execute
|
48
|
+
|
49
|
+
puts 'Done'
|
50
|
+
end
|
51
|
+
end
|