renalware-core 2.0.153 → 2.0.159
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/renalware/components/configuration.js +20 -0
- data/app/assets/javascripts/renalware/components/{dialogs.js.erb → dialogs.js} +2 -5
- data/app/assets/javascripts/renalware/components/{feed_only_inputs.js.erb → feed_only_inputs.js} +4 -4
- data/app/assets/javascripts/renalware/components/navigation.js +0 -7
- data/app/assets/javascripts/renalware/components/sortable.js +3 -0
- data/app/assets/javascripts/renalware/{core.js.erb → core.js} +0 -7
- data/app/assets/javascripts/renalware/rollup_compiled.css +62433 -43575
- data/app/assets/javascripts/renalware/rollup_compiled.js +10 -14
- data/app/assets/stylesheets/renalware/base/_variables.scss +1 -0
- data/app/assets/stylesheets/renalware/lib/_foundation_and_overrides.scss +1 -620
- data/app/assets/stylesheets/renalware/lib/_select2-foundation5-overrides.scss +1 -1
- data/app/assets/stylesheets/renalware/modules/_clinical.scss +13 -0
- data/app/assets/stylesheets/renalware/modules/_medications.scss +9 -9
- data/app/assets/stylesheets/renalware/modules/_patients.scss +4 -0
- data/app/assets/stylesheets/renalware/modules/_users.scss +2 -1
- data/app/assets/stylesheets/renalware/partials/_forms.scss +11 -0
- data/app/assets/stylesheets/renalware/partials/_navigation.scss +15 -12
- data/app/assets/stylesheets/renalware/partials/_simple_form.scss +1 -1
- data/app/assets/stylesheets/renalware/partials/_tables.scss +15 -8
- data/app/assets/stylesheets/renalware/partials/_toggle.scss +0 -66
- data/app/assets/stylesheets/renalware/partials/_toggling.scss +18 -0
- data/app/assets/stylesheets/renalware/partials/_trix.scss +12 -0
- data/app/components/renalware/admissions/active_consult_alert_component.html.slim +4 -0
- data/app/components/renalware/admissions/active_consult_alert_component.rb +25 -0
- data/app/components/renalware/article_component.html.slim +5 -0
- data/app/components/renalware/article_component.rb +12 -0
- data/app/components/renalware/events/event_list_component.rb +6 -1
- data/app/components/renalware/medications/tabbed_prescriptions_list_component.html.slim +41 -0
- data/app/components/renalware/medications/tabbed_prescriptions_list_component.rb +47 -0
- data/app/components/renalware/patients/messages_component.html.slim +45 -0
- data/app/components/renalware/patients/messages_component.rb +52 -0
- data/app/components/renalware/pd/adequacy_results_component.html.slim +3 -5
- data/app/components/renalware/pd/pet_results_component.html.slim +1 -3
- data/app/components/renalware/system/admin_menu_component.html.slim +3 -1
- data/app/components/renalware/users/last_signin_component.html.slim +3 -0
- data/app/components/renalware/users/last_signin_component.rb +23 -0
- data/app/controllers/renalware/admin/playgrounds_controller.rb +1 -1
- data/app/controllers/renalware/admin/users_controller.rb +1 -0
- data/app/controllers/renalware/drugs/drugs_controller.rb +4 -0
- data/app/controllers/renalware/hd/historical_profiles_controller.rb +1 -1
- data/app/controllers/renalware/medications/prescriptions_controller.rb +5 -2
- data/app/controllers/renalware/messaging/internal/messages_controller.rb +14 -5
- data/app/controllers/renalware/pathology/observation_descriptions_controller.rb +58 -0
- data/app/controllers/renalware/patients/mdms_controller.rb +104 -0
- data/app/controllers/renalware/pd/pet_results_controller.rb +1 -1
- data/app/controllers/renalware/system/view_metadata_controller.rb +61 -0
- data/app/controllers/renalware/users_controller.rb +25 -0
- data/app/helpers/renalware/drugs_helper.rb +6 -0
- data/app/helpers/renalware/layout_helper.rb +1 -1
- data/app/models/concerns/renalware/sortable.rb +49 -0
- data/app/models/renalware/accesses/patient.rb +2 -2
- data/app/models/renalware/accesses/plan.rb +1 -1
- data/app/models/renalware/admissions/request.rb +1 -0
- data/app/models/renalware/clinical/body_composition.rb +1 -1
- data/app/models/renalware/clinical/dry_weight.rb +1 -1
- data/app/models/renalware/clinics/clinic_visit.rb +5 -4
- data/app/models/renalware/feeds/files/create_feed_file.rb +1 -1
- data/app/models/renalware/hd/patient.rb +1 -1
- data/app/models/renalware/hd/preference_set.rb +1 -1
- data/app/models/renalware/hd/profile.rb +4 -4
- data/app/models/renalware/hd/schedule_definition.rb +1 -1
- data/app/models/renalware/hd/session.rb +2 -2
- data/app/models/renalware/hd/session_forms/batch_compile_pdfs.rb +1 -1
- data/app/models/renalware/hd/station.rb +2 -1
- data/app/models/renalware/letters/description.rb +2 -0
- data/app/models/renalware/letters/letter.rb +1 -1
- data/app/models/renalware/letters/part/prescriptions.rb +12 -3
- data/app/models/renalware/letters/pdf_letter_cache.rb +1 -1
- data/app/models/renalware/letters/printing/batch_compile_pdfs.rb +1 -1
- data/app/models/renalware/letters/recipient_params_processor.rb +1 -1
- data/app/models/renalware/medications/prescription.rb +0 -4
- data/app/models/renalware/messaging/internal/message_form.rb +1 -0
- data/app/models/renalware/messaging/internal/message_form_builder.rb +2 -1
- data/app/models/renalware/pathology/current_observations_for_descriptions_query.rb +3 -3
- data/app/models/renalware/pathology/measurement_unit.rb +13 -0
- data/app/models/renalware/pathology/observation_description.rb +23 -5
- data/app/models/renalware/pathology/observation_descriptions_by_code_query.rb +1 -1
- data/app/models/renalware/pathology/observation_requests_attributes_builder.rb +45 -5
- data/app/models/renalware/pathology/observations_within_date_range_query.rb +1 -1
- data/app/models/renalware/patient.rb +2 -2
- data/app/models/renalware/patients/bookmark.rb +2 -2
- data/app/models/renalware/patients/mdm_menu.rb +41 -0
- data/app/models/renalware/patients/mdm_patients_query.rb +1 -1
- data/app/models/renalware/patients/search_query.rb +1 -1
- data/app/models/renalware/patients/worry.rb +0 -1
- data/app/models/renalware/pd/mdm_patients_query.rb +1 -1
- data/app/models/renalware/problems/problem.rb +2 -1
- data/app/models/renalware/snippets/snippet_query.rb +1 -1
- data/app/models/renalware/surveys/question.rb +1 -2
- data/app/models/renalware/system/column_definition.rb +43 -0
- data/app/models/renalware/system/filter_definition.rb +29 -0
- data/app/models/renalware/system/update_user.rb +5 -0
- data/app/models/renalware/system/version.rb +11 -0
- data/app/models/renalware/system/view_metadata.rb +25 -0
- data/app/models/renalware/transplants/donation.rb +1 -1
- data/app/models/renalware/transplants/donor_followup.rb +0 -1
- data/app/models/renalware/transplants/failure_cause_description.rb +1 -1
- data/app/models/renalware/transplants/mdm_patients_query.rb +2 -2
- data/app/models/renalware/transplants/patient.rb +1 -1
- data/app/models/renalware/transplants/recipient_followup.rb +1 -3
- data/app/models/renalware/transplants/registration.rb +1 -3
- data/app/models/renalware/transplants/registrations/wait_list_query.rb +4 -4
- data/app/models/renalware/ukrdc/measurement_unit.rb +21 -0
- data/app/models/renalware/ukrdc/outgoing/rendering/lab_order.rb +30 -2
- data/app/models/renalware/ukrdc/paths.rb +1 -1
- data/app/models/renalware/ukrdc/treatment_timeline/prepare_tables.rb +1 -1
- data/app/models/renalware/ukrdc/treatment_timeline/remap_model_table_names_to_their_prepared_equivalents.rb +1 -1
- data/app/models/renalware/virology/vaccination.rb +5 -0
- data/app/policies/application_policy.rb +1 -1
- data/app/policies/renalware/medications/prescription_policy.rb +35 -0
- data/app/policies/renalware/system/view_metadata_policy.rb +17 -0
- data/app/presenters/concerns/renalware/accountable_presentation.rb +33 -0
- data/app/presenters/renalware/clinics/visit_presenter.rb +11 -0
- data/app/presenters/renalware/events/event_presenter.rb +11 -0
- data/app/presenters/renalware/mdm_presenter.rb +11 -0
- data/app/presenters/renalware/pathology/results_presenter.rb +1 -2
- data/app/presenters/renalware/renal/clinical_summary_presenter.rb +9 -6
- data/app/presenters/renalware/user_session_presenter.rb +1 -3
- data/app/views/renalware/admin/playgrounds/show.html.slim +2 -6
- data/app/views/renalware/admin/users/edit.html.slim +9 -0
- data/app/views/renalware/admin/users/index.html.slim +6 -0
- data/app/views/renalware/admissions/admissions/_filters.html.slim +8 -16
- data/app/views/renalware/clinical/allergies/_list.html.slim +3 -1
- data/app/views/renalware/dashboard/dashboards/show.html.slim +1 -0
- data/app/views/renalware/hd/protocols/_virology.html.slim +4 -5
- data/app/views/renalware/letters/letters/_form.html.slim +1 -1
- data/app/views/renalware/letters/mailshots/mailshots/_form.html.slim +25 -21
- data/app/views/renalware/letters/parts/_prescriptions.html.slim +4 -0
- data/app/views/renalware/mdm/_prescriptions.html.slim +4 -13
- data/app/views/renalware/mdm/prescriptions/_table.html.slim +3 -1
- data/app/views/renalware/medications/prescriptions/_current_hd.html.slim +13 -0
- data/app/views/renalware/medications/prescriptions/_filter_form.html.slim +26 -13
- data/app/views/renalware/medications/prescriptions/_form.html.slim +3 -2
- data/app/views/renalware/medications/prescriptions/_options.html.slim +3 -3
- data/app/views/renalware/medications/prescriptions/_table.html.slim +5 -4
- data/app/views/renalware/medications/prescriptions/_tables.html.slim +13 -16
- data/app/views/renalware/medications/prescriptions/index.html.slim +5 -4
- data/app/views/renalware/messaging/internal/messages/_form.html.slim +3 -0
- data/app/views/renalware/messaging/internal/messages/index.html.slim +36 -0
- data/app/views/renalware/navigation/_mdms.html.slim +5 -0
- data/app/views/renalware/navigation/_renal.html.slim +1 -0
- data/app/views/renalware/navigation/{_super_admin.html.slim → _super_admin.html.slim.dead} +0 -0
- data/app/views/renalware/pathology/code_groups/edit.html.slim +5 -5
- data/app/views/renalware/pathology/code_groups/index.html.slim +4 -5
- data/app/views/renalware/pathology/code_groups/show.html.slim +25 -26
- data/app/views/renalware/pathology/observation_descriptions/_filters.html.slim +14 -0
- data/app/views/renalware/pathology/observation_descriptions/edit.html.slim +21 -0
- data/app/views/renalware/pathology/observation_descriptions/index.html.slim +38 -0
- data/app/views/renalware/pathology/requests/requests/request_form/_crs_form.html.slim +1 -1
- data/app/views/renalware/patients/alerts/_list.html.slim +1 -0
- data/app/views/renalware/patients/mdms/_filters.html.slim +38 -0
- data/app/views/renalware/patients/mdms/_table.html.slim +72 -0
- data/app/views/renalware/patients/mdms/show.html.slim +18 -0
- data/app/views/renalware/patients/side_menu/_general.html.slim +4 -0
- data/app/views/renalware/patients/worryboard/_filters.html.slim +18 -13
- data/app/views/renalware/pd/_peritonitis_episodes.html.slim +13 -13
- data/app/views/renalware/pd/adequacy_results/_form_fields.html.slim +1 -1
- data/app/views/renalware/pd/adequacy_results/_table.html.slim +2 -2
- data/app/views/renalware/pd/peritonitis_episodes/show.html.slim +8 -6
- data/app/views/renalware/shared/_fieldset.html.slim +1 -2
- data/app/views/renalware/shared/_magellan_block.html.slim +1 -2
- data/app/views/renalware/system/view_metadata/_columns_table.html.slim +44 -0
- data/app/views/renalware/system/view_metadata/_filters_form.html.slim +19 -0
- data/app/views/renalware/system/view_metadata/_versions.html.slim +23 -0
- data/app/views/renalware/system/view_metadata/edit.html.slim +66 -0
- data/app/views/renalware/transplants/mdm/_prescriptions.html.slim +6 -22
- data/app/views/renalware/users/_filters.html.slim +11 -0
- data/app/views/renalware/users/index.html.slim +24 -0
- data/app/views/renalware/virology/vaccinations/_cell.html.slim +1 -1
- data/app/views/renalware/virology/vaccinations/_inputs.html.slim +1 -0
- data/app/views/renalware/virology/vaccinations/_toggled_cell.html.slim +2 -0
- data/config/initializers/core_extensions.rb +2 -2
- data/config/initializers/delayed_job.rb +1 -1
- data/config/initializers/inflections.rb +1 -0
- data/config/initializers/pagy.rb +5 -0
- data/config/locales/renalware/clinical/allergies.en.yml +1 -0
- data/config/locales/renalware/medications/tabbed_prescriptions_list_component.yml +15 -0
- data/config/locales/renalware/navigation/renal.en.yml +1 -0
- data/config/locales/renalware/patients/side_menu.en.yml +1 -0
- data/config/locales/renalware/virology/virology.en.yml +2 -0
- data/config/permissions.yml +1 -0
- data/config/routes.rb +1 -0
- data/config/routes/messaging.rb +9 -1
- data/config/routes/pathology.rb +1 -0
- data/config/routes/patients.rb +1 -0
- data/config/routes/system.rb +3 -0
- data/config/routes/users.rb +3 -0
- data/db/functions/convert_to_float_with_explicit_return_v01.sql +18 -0
- data/db/functions/update_current_observation_set_from_trigger_v05.sql +92 -0
- data/db/functions/update_pathology_observations_nresult_from_trigger_v01.sql +13 -0
- data/db/migrate/20200122182018_update_patient_current_modalities.rb +7 -0
- data/db/migrate/20200122182036_create_transplant_mdm_patients.rb +7 -0
- data/db/migrate/20200122190909_create_view_metadata.rb +44 -0
- data/db/migrate/20200131133223_create_hd_mdm_patients.rb +7 -0
- data/db/migrate/20200205185151_add_columns_to_system_view_metadata.rb +13 -0
- data/db/migrate/20200219113324_create_supportive_care_mdm_patients_view.rb +7 -0
- data/db/migrate/20200622120232_add_limits_to_path_obs_descriptions.rb +18 -0
- data/db/migrate/20200626081248_overload_convert_to_float_function.rb +13 -0
- data/db/migrate/20200626090256_add_nresult_to_pathology_observations.rb +29 -0
- data/db/migrate/20200628094228_add_prescriber_to_users.rb +14 -0
- data/db/migrate/20200812074223_add_public_flag_to_messages.rb +18 -0
- data/db/migrate/20200815150303_create_system_versions.rb +16 -0
- data/db/migrate/20200817085618_create_pd_mdm_patients.rb +7 -0
- data/db/migrate/20200817103930_create_low_clearance_mdm_patients.rb +7 -0
- data/db/migrate/20201001144512_update_fn_update_current_obs_set_triggerv05.rb +13 -0
- data/db/migrate/20201001145452_add_position_to_letter_descriptions.rb +5 -0
- data/db/migrate/20201009090959_make_drug_types_unique.rb +8 -0
- data/db/migrate/20201012160414_add_suggested_measurement_unit_to_pathology_observation_descriptions.rb +18 -0
- data/db/migrate/20201012171428_create_ukrdc_measurement_units.rb +18 -0
- data/db/migrate/20201015160542_add_position_to_drug_types.rb +31 -0
- data/db/migrate/20201020155510_add_bmi_to_clinic_visits.rb +31 -0
- data/db/migrate/20201020164524_update_pd_mdm_patients_view.rb +7 -0
- data/db/migrate/20201020170921_update_hd_mdm_patients_view.rb +7 -0
- data/db/migrate/20201020171139_update_low_clearance_mdm_patients_view.rb +7 -0
- data/db/migrate/20201021153832_update_supportive_care_mdm_patients_view.rb +7 -0
- data/db/migrate/20201021154809_update_transplant_mdm_patients_view.rb +7 -0
- data/db/migrate/20201023092859_remove_unused_indexes.rb +20 -0
- data/db/migrate/20201105153422_update_medication_current_prescriptions_view.rb +7 -0
- data/db/migrate/20201112152752_update_pd_mdm_patients_view1.rb +7 -0
- data/db/seeds/default/system/seeds.rb +1 -0
- data/db/seeds/default/system/view_metadata.rb +91 -0
- data/db/seeds/default/ukrdc/measurement_units.csv +12 -0
- data/db/seeds/default/ukrdc/measurement_units.rb +15 -0
- data/db/seeds/default/ukrdc/seeds.rb +1 -0
- data/db/triggers/update_pathology_observations_nresult_trigger_v01.sql +11 -0
- data/db/views/hd_mdm_patients_v01.sql +69 -0
- data/db/views/hd_mdm_patients_v02.sql +70 -0
- data/db/views/low_clearance_mdm_patients_v01.sql +38 -0
- data/db/views/low_clearance_mdm_patients_v02.sql +39 -0
- data/db/views/medication_current_prescriptions_v01.sql +2 -1
- data/db/views/medication_current_prescriptions_v02.sql +30 -0
- data/db/views/patient_current_modalities_v02.sql +18 -0
- data/db/views/pd_mdm_patients_v01.sql +42 -0
- data/db/views/pd_mdm_patients_v02.sql +43 -0
- data/db/views/pd_mdm_patients_v03.sql +50 -0
- data/db/views/reporting_anaemia_audit_v01.sql +0 -2
- data/db/views/supportive_care_mdm_patients_v01.sql +28 -0
- data/db/views/supportive_care_mdm_patients_v02.sql +29 -0
- data/db/views/transplant_mdm_patients_v01.sql +46 -0
- data/db/views/transplant_mdm_patients_v02.sql +47 -0
- data/lib/renalware/configuration.rb +2 -5
- data/lib/renalware/engine.rb +2 -2
- data/lib/renalware/version_number.rb +1 -1
- data/lib/tasks/db.rake +9 -0
- data/lib/tasks/pd.rake +28 -0
- data/spec/factories/drugs/drug_types.rb +5 -1
- data/spec/factories/messaging/internal/messages.rb +1 -0
- data/spec/factories/patients/practices.rb +1 -1
- data/spec/factories/patients/primary_care_physicians.rb +1 -1
- data/spec/factories/system/users.rb +1 -0
- data/spec/factories/system/view_metadata.rb +20 -0
- data/spec/support/capybara_helper.rb +2 -4
- data/spec/support/letters_spec_helper.rb +1 -1
- data/spec/support/matchers/validate_timeliness_of.rb +1 -1
- data/spec/support/pathology_spec_helper.rb +1 -2
- data/spec/support/policy_spec_helper.rb +12 -0
- data/vendor/assets/javascripts/foundation/foundation.alert.js +43 -0
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +468 -0
- data/vendor/assets/javascripts/foundation/foundation.js +727 -0
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +522 -0
- data/vendor/assets/javascripts/foundation/foundation.tab.js +247 -0
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +348 -0
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +458 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +601 -0
- data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
- data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
- metadata +172 -71
- data/app/assets/javascripts/renalware/components/reporting.js.erb +0 -0
- data/app/assets/javascripts/renalware/components/session_timeout_redirect.js.erb +0 -37
- data/app/views/renalware/pd/infection_organisms/_edit.html.slim.obsolete +0 -16
- data/app/views/renalware/transplants/donor_operations/_sections_nav.html.slim +0 -11
- data/app/views/renalware/transplants/donor_workups/_sections_nav.html.slim +0 -15
- data/app/views/renalware/transplants/recipient_operations/_sections_nav.html.slim +0 -14
- data/app/views/renalware/transplants/recipient_workups/_sections_nav.html.slim +0 -15
- data/lib/core_extensions/active_record/sort.rb +0 -52
- data/spec/support/pages/accesses/procedure_page.rb +0 -53
- data/spec/support/pages/accesses/profile_page.rb +0 -45
- data/spec/support/pages/admissions/consults_page.rb +0 -26
- data/spec/support/pages/clinical/allergy_page.rb +0 -74
- data/spec/support/pages/clinical/profile_page.rb +0 -28
- data/spec/support/pages/hd/prescription_administration_dialog.rb +0 -132
- data/spec/support/pages/letters/form.rb +0 -63
- data/spec/support/pages/letters/mailshots/form.rb +0 -58
- data/spec/support/pages/letters/patient_letters.rb +0 -20
- data/spec/support/pages/low_clearance/profile_page.rb +0 -70
- data/spec/support/pages/medications/home_delivery_dialog.rb +0 -77
- data/spec/support/pages/medications/prescription_fom.rb +0 -62
- data/spec/support/pages/page_object.rb +0 -10
@@ -0,0 +1,125 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// @name _sub-nav.scss
|
9
|
+
// @dependencies _global.scss
|
10
|
+
//
|
11
|
+
|
12
|
+
//
|
13
|
+
// @variables
|
14
|
+
//
|
15
|
+
|
16
|
+
$include-html-nav-classes: $include-html-classes !default;
|
17
|
+
|
18
|
+
// We use these to control margin and padding
|
19
|
+
$sub-nav-list-margin: rem-calc(-4 0 18) !default;
|
20
|
+
$sub-nav-list-padding-top: rem-calc(4) !default;
|
21
|
+
|
22
|
+
// We use this to control the definition
|
23
|
+
$sub-nav-font-family: $body-font-family !default;
|
24
|
+
$sub-nav-font-size: rem-calc(14) !default;
|
25
|
+
$sub-nav-font-color: $aluminum !default;
|
26
|
+
$sub-nav-font-weight: $font-weight-normal !default;
|
27
|
+
$sub-nav-text-decoration: none !default;
|
28
|
+
$sub-nav-padding: rem-calc(3 16) !default;
|
29
|
+
$sub-nav-border-radius: 3px !default;
|
30
|
+
$sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
|
31
|
+
|
32
|
+
|
33
|
+
// We use these to control the active item styles
|
34
|
+
|
35
|
+
$sub-nav-active-font-weight: $font-weight-normal !default;
|
36
|
+
$sub-nav-active-bg: $primary-color !default;
|
37
|
+
$sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
|
38
|
+
$sub-nav-active-color: $white !default;
|
39
|
+
$sub-nav-active-padding: $sub-nav-padding !default;
|
40
|
+
$sub-nav-active-cursor: default !default;
|
41
|
+
|
42
|
+
$sub-nav-item-divider: "" !default;
|
43
|
+
$sub-nav-item-divider-margin: rem-calc(12) !default;
|
44
|
+
|
45
|
+
//
|
46
|
+
// @mixins
|
47
|
+
//
|
48
|
+
|
49
|
+
|
50
|
+
// Create a sub-nav item
|
51
|
+
//
|
52
|
+
// $font-color - Font color. Default: $sub-nav-font-color.
|
53
|
+
// $font-size - Font size. Default: $sub-nav-font-size.
|
54
|
+
// $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
|
55
|
+
// $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
|
56
|
+
@mixin sub-nav(
|
57
|
+
$font-color: $sub-nav-font-color,
|
58
|
+
$font-size: $sub-nav-font-size,
|
59
|
+
$active-bg: $sub-nav-active-bg,
|
60
|
+
$active-bg-hover: $sub-nav-active-bg-hover) {
|
61
|
+
display: block;
|
62
|
+
margin: $sub-nav-list-margin;
|
63
|
+
overflow: hidden;
|
64
|
+
padding-top: $sub-nav-list-padding-top;
|
65
|
+
width: auto;
|
66
|
+
|
67
|
+
dt {
|
68
|
+
text-transform: uppercase;
|
69
|
+
}
|
70
|
+
|
71
|
+
dt,
|
72
|
+
dd,
|
73
|
+
li {
|
74
|
+
color: $font-color;
|
75
|
+
float: $default-float;
|
76
|
+
font-family: $sub-nav-font-family;
|
77
|
+
font-size: $font-size;
|
78
|
+
font-weight: $sub-nav-font-weight;
|
79
|
+
margin-#{$default-float}: rem-calc(16);
|
80
|
+
margin-bottom: 0;
|
81
|
+
|
82
|
+
a {
|
83
|
+
color: $sub-nav-font-color;
|
84
|
+
padding: $sub-nav-padding;
|
85
|
+
text-decoration: $sub-nav-text-decoration;
|
86
|
+
|
87
|
+
&:hover {
|
88
|
+
color: $sub-nav-font-color-hover;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
&.active a {
|
93
|
+
@include radius($sub-nav-border-radius);
|
94
|
+
background: $active-bg;
|
95
|
+
color: $sub-nav-active-color;
|
96
|
+
cursor: $sub-nav-active-cursor;
|
97
|
+
font-weight: $sub-nav-active-font-weight;
|
98
|
+
padding: $sub-nav-active-padding;
|
99
|
+
|
100
|
+
&:hover {
|
101
|
+
background: $active-bg-hover;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
@if $sub-nav-item-divider != "" {
|
106
|
+
margin-#{$default-float}: 0;
|
107
|
+
|
108
|
+
&:before {
|
109
|
+
content: "#{$sub-nav-item-divider}";
|
110
|
+
margin: 0 $sub-nav-item-divider-margin;
|
111
|
+
}
|
112
|
+
|
113
|
+
&:first-child:before {
|
114
|
+
content: "";
|
115
|
+
margin: 0;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
@include exports("sub-nav") {
|
122
|
+
@if $include-html-nav-classes {
|
123
|
+
.sub-nav { @include sub-nav; }
|
124
|
+
}
|
125
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// @name _tables.scss
|
9
|
+
// @dependencies _global.scss
|
10
|
+
//
|
11
|
+
|
12
|
+
//
|
13
|
+
// @variables
|
14
|
+
//
|
15
|
+
|
16
|
+
$include-html-table-classes: $include-html-classes !default;
|
17
|
+
|
18
|
+
// These control the background color for the table and even rows
|
19
|
+
$table-bg: $white !default;
|
20
|
+
$table-even-row-bg: $snow !default;
|
21
|
+
|
22
|
+
// These control the table cell border style
|
23
|
+
$table-border-style: solid !default;
|
24
|
+
$table-border-size: 1px !default;
|
25
|
+
$table-border-color: $gainsboro !default;
|
26
|
+
|
27
|
+
// These control the table head styles
|
28
|
+
$table-head-bg: $white-smoke !default;
|
29
|
+
$table-head-font-size: rem-calc(14) !default;
|
30
|
+
$table-head-font-color: $jet !default;
|
31
|
+
$table-head-font-weight: $font-weight-bold !default;
|
32
|
+
$table-head-padding: rem-calc(8 10 10) !default;
|
33
|
+
|
34
|
+
// These control the table foot styles
|
35
|
+
$table-foot-bg: $table-head-bg !default;
|
36
|
+
$table-foot-font-size: $table-head-font-size !default;
|
37
|
+
$table-foot-font-color: $table-head-font-color !default;
|
38
|
+
$table-foot-font-weight: $table-head-font-weight !default;
|
39
|
+
$table-foot-padding: $table-head-padding !default;
|
40
|
+
|
41
|
+
// These control the caption
|
42
|
+
$table-caption-bg: transparent !default;
|
43
|
+
$table-caption-font-color: $table-head-font-color !default;
|
44
|
+
$table-caption-font-size: rem-calc(16) !default;
|
45
|
+
$table-caption-font-weight: bold !default;
|
46
|
+
|
47
|
+
// These control the row padding and font styles
|
48
|
+
$table-row-padding: rem-calc(9 10) !default;
|
49
|
+
$table-row-font-size: rem-calc(14) !default;
|
50
|
+
$table-row-font-color: $jet !default;
|
51
|
+
$table-line-height: rem-calc(18) !default;
|
52
|
+
|
53
|
+
// These are for controlling the layout, display and margin of tables
|
54
|
+
$table-layout: auto !default;
|
55
|
+
$table-display: table-cell !default;
|
56
|
+
$table-margin-bottom: rem-calc(20) !default;
|
57
|
+
|
58
|
+
|
59
|
+
//
|
60
|
+
// @mixins
|
61
|
+
//
|
62
|
+
|
63
|
+
@mixin table {
|
64
|
+
background: $table-bg;
|
65
|
+
border: $table-border-style $table-border-size $table-border-color;
|
66
|
+
margin-bottom: $table-margin-bottom;
|
67
|
+
table-layout: $table-layout;
|
68
|
+
|
69
|
+
caption {
|
70
|
+
background: $table-caption-bg;
|
71
|
+
color: $table-caption-font-color;
|
72
|
+
font: {
|
73
|
+
size: $table-caption-font-size;
|
74
|
+
weight: $table-caption-font-weight;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
thead {
|
79
|
+
background: $table-head-bg;
|
80
|
+
|
81
|
+
tr {
|
82
|
+
th,
|
83
|
+
td {
|
84
|
+
color: $table-head-font-color;
|
85
|
+
font-size: $table-head-font-size;
|
86
|
+
font-weight: $table-head-font-weight;
|
87
|
+
padding: $table-head-padding;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
tfoot {
|
93
|
+
background: $table-foot-bg;
|
94
|
+
|
95
|
+
tr {
|
96
|
+
th,
|
97
|
+
td {
|
98
|
+
color: $table-foot-font-color;
|
99
|
+
font-size: $table-foot-font-size;
|
100
|
+
font-weight: $table-foot-font-weight;
|
101
|
+
padding: $table-foot-padding;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
tr {
|
107
|
+
th,
|
108
|
+
td {
|
109
|
+
color: $table-row-font-color;
|
110
|
+
font-size: $table-row-font-size;
|
111
|
+
padding: $table-row-padding;
|
112
|
+
text-align: $default-float;
|
113
|
+
}
|
114
|
+
|
115
|
+
&.even,
|
116
|
+
&.alt,
|
117
|
+
&:nth-of-type(even) { background: $table-even-row-bg; }
|
118
|
+
}
|
119
|
+
|
120
|
+
thead tr th,
|
121
|
+
tfoot tr th,
|
122
|
+
tfoot tr td,
|
123
|
+
tbody tr th,
|
124
|
+
tbody tr td,
|
125
|
+
tr td { display: $table-display; line-height: $table-line-height; }
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
@include exports("table") {
|
130
|
+
@if $include-html-table-classes {
|
131
|
+
table {
|
132
|
+
@include table;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
@import 'grid';
|
7
|
+
|
8
|
+
//
|
9
|
+
// @variables
|
10
|
+
//
|
11
|
+
|
12
|
+
$include-html-tabs-classes: $include-html-classes !default;
|
13
|
+
|
14
|
+
$tabs-navigation-padding: rem-calc(16) !default;
|
15
|
+
$tabs-navigation-bg-color: $silver !default;
|
16
|
+
$tabs-navigation-active-bg-color: $white !default;
|
17
|
+
$tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%) !default;
|
18
|
+
$tabs-navigation-font-color: $jet !default;
|
19
|
+
$tabs-navigation-active-font-color: $tabs-navigation-font-color !default;
|
20
|
+
$tabs-navigation-font-size: rem-calc(16) !default;
|
21
|
+
$tabs-navigation-font-family: $body-font-family !default;
|
22
|
+
|
23
|
+
$tabs-content-margin-bottom: rem-calc(24) !default;
|
24
|
+
$tabs-content-padding: ($column-gutter/2) !default;
|
25
|
+
|
26
|
+
$tabs-vertical-navigation-margin-bottom: 1.25rem !default;
|
27
|
+
|
28
|
+
@include exports("tab") {
|
29
|
+
@if $include-html-tabs-classes {
|
30
|
+
.tabs {
|
31
|
+
@include clearfix;
|
32
|
+
margin-bottom: 0 !important;
|
33
|
+
margin-left: 0;
|
34
|
+
|
35
|
+
dd,
|
36
|
+
.tab-title {
|
37
|
+
float: $default-float;
|
38
|
+
list-style: none;
|
39
|
+
margin-bottom: 0 !important;
|
40
|
+
position: relative;
|
41
|
+
|
42
|
+
> a {
|
43
|
+
display: block;
|
44
|
+
background-color: $tabs-navigation-bg-color;
|
45
|
+
color: $tabs-navigation-font-color;
|
46
|
+
font-family: $tabs-navigation-font-family;
|
47
|
+
font-size: $tabs-navigation-font-size;
|
48
|
+
padding: $tabs-navigation-padding $tabs-navigation-padding * 2;
|
49
|
+
|
50
|
+
&:hover {
|
51
|
+
background-color: $tabs-navigation-hover-bg-color;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&.active > a {
|
56
|
+
background-color: $tabs-navigation-active-bg-color;
|
57
|
+
color: $tabs-navigation-active-font-color;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&.radius {
|
62
|
+
dd:first-child,
|
63
|
+
.tab:first-child {
|
64
|
+
a { @include side-radius($default-float, $global-radius); }
|
65
|
+
}
|
66
|
+
|
67
|
+
dd:last-child,
|
68
|
+
.tab:last-child {
|
69
|
+
a { @include side-radius($opposite-direction, $global-radius); }
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&.vertical {
|
74
|
+
dd,
|
75
|
+
.tab-title {
|
76
|
+
position: inherit;
|
77
|
+
float: none;
|
78
|
+
display: block;
|
79
|
+
top: auto;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.tabs-content {
|
85
|
+
@include clearfix;
|
86
|
+
margin-bottom: $tabs-content-margin-bottom;
|
87
|
+
width: 100%;
|
88
|
+
|
89
|
+
> .content {
|
90
|
+
display: none;
|
91
|
+
float: $default-float;
|
92
|
+
padding: $tabs-content-padding 0;
|
93
|
+
width: 100%;
|
94
|
+
|
95
|
+
&.active {
|
96
|
+
display: block;
|
97
|
+
float: none;
|
98
|
+
}
|
99
|
+
&.contained {
|
100
|
+
padding: $tabs-content-padding;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
&.vertical {
|
105
|
+
display: block;
|
106
|
+
|
107
|
+
> .content {
|
108
|
+
padding: 0 $tabs-content-padding;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@media #{$medium-up} {
|
114
|
+
.tabs {
|
115
|
+
&.vertical {
|
116
|
+
float: $default-float;
|
117
|
+
margin: 0;
|
118
|
+
margin-bottom: $tabs-vertical-navigation-margin-bottom !important;
|
119
|
+
max-width: 20%;
|
120
|
+
width: 20%;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.tabs-content {
|
125
|
+
&.vertical {
|
126
|
+
float: $default-float;
|
127
|
+
margin-#{$default-float}: -1px;
|
128
|
+
max-width: 80%;
|
129
|
+
padding-#{$default-float}: 1rem;
|
130
|
+
width: 80%;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.no-js {
|
136
|
+
.tabs-content > .content {
|
137
|
+
display: block;
|
138
|
+
float: none;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// Tooltip Variables
|
9
|
+
//
|
10
|
+
$include-html-tooltip-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
$has-tip-border-bottom: dotted 1px $iron !default;
|
13
|
+
$has-tip-font-weight: $font-weight-bold !default;
|
14
|
+
$has-tip-font-color: $oil !default;
|
15
|
+
$has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%) !default;
|
16
|
+
$has-tip-font-color-hover: $primary-color !default;
|
17
|
+
$has-tip-cursor-type: help !default;
|
18
|
+
|
19
|
+
$tooltip-padding: rem-calc(12) !default;
|
20
|
+
$tooltip-bg: $oil !default;
|
21
|
+
$tooltip-font-size: rem-calc(14) !default;
|
22
|
+
$tooltip-font-weight: $font-weight-normal !default;
|
23
|
+
$tooltip-font-color: $white !default;
|
24
|
+
$tooltip-line-height: 1.3 !default;
|
25
|
+
$tooltip-close-font-size: rem-calc(10) !default;
|
26
|
+
$tooltip-close-font-weight: $font-weight-normal !default;
|
27
|
+
$tooltip-close-font-color: $monsoon !default;
|
28
|
+
$tooltip-font-size-sml: rem-calc(14) !default;
|
29
|
+
$tooltip-radius: $global-radius !default;
|
30
|
+
$tooltip-rounded: $global-rounded !default;
|
31
|
+
$tooltip-pip-size: 5px !default;
|
32
|
+
$tooltip-max-width: 300px !default;
|
33
|
+
|
34
|
+
@include exports("tooltip") {
|
35
|
+
@if $include-html-tooltip-classes {
|
36
|
+
|
37
|
+
/* Tooltips */
|
38
|
+
.has-tip {
|
39
|
+
border-bottom: $has-tip-border-bottom;
|
40
|
+
color: $has-tip-font-color;
|
41
|
+
cursor: $has-tip-cursor-type;
|
42
|
+
font-weight: $has-tip-font-weight;
|
43
|
+
|
44
|
+
&:hover,
|
45
|
+
&:focus {
|
46
|
+
border-bottom: $has-tip-border-bottom-hover;
|
47
|
+
color: $has-tip-font-color-hover;
|
48
|
+
}
|
49
|
+
|
50
|
+
&.tip-left,
|
51
|
+
&.tip-right { float: none !important; }
|
52
|
+
}
|
53
|
+
|
54
|
+
.tooltip {
|
55
|
+
background: $tooltip-bg;
|
56
|
+
color: $tooltip-font-color;
|
57
|
+
display: none;
|
58
|
+
font-size: $tooltip-font-size;
|
59
|
+
font-weight: $tooltip-font-weight;
|
60
|
+
line-height: $tooltip-line-height;
|
61
|
+
max-width: $tooltip-max-width;
|
62
|
+
padding: $tooltip-padding;
|
63
|
+
position: absolute;
|
64
|
+
width: 100%;
|
65
|
+
z-index: 1006;
|
66
|
+
#{$default-float}: 50%;
|
67
|
+
|
68
|
+
> .nub {
|
69
|
+
border: solid $tooltip-pip-size;
|
70
|
+
border-color: transparent transparent $tooltip-bg transparent;
|
71
|
+
display: block;
|
72
|
+
height: 0;
|
73
|
+
pointer-events: none;
|
74
|
+
position: absolute;
|
75
|
+
top: -($tooltip-pip-size * 2);
|
76
|
+
width: 0;
|
77
|
+
#{$default-float}: $tooltip-pip-size;
|
78
|
+
|
79
|
+
&.rtl {
|
80
|
+
left: auto;
|
81
|
+
#{$opposite-direction}: $tooltip-pip-size;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
&.radius {
|
86
|
+
@include radius($tooltip-radius);
|
87
|
+
}
|
88
|
+
&.round {
|
89
|
+
@include radius($tooltip-rounded);
|
90
|
+
> .nub {
|
91
|
+
left: 2rem;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
&.opened {
|
96
|
+
border-bottom: $has-tip-border-bottom-hover !important;
|
97
|
+
color: $has-tip-font-color-hover !important;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.tap-to-close {
|
102
|
+
color: $tooltip-close-font-color;
|
103
|
+
display: block;
|
104
|
+
font-size: $tooltip-close-font-size;
|
105
|
+
font-weight: $tooltip-close-font-weight;
|
106
|
+
}
|
107
|
+
|
108
|
+
@media #{$small} {
|
109
|
+
.tooltip {
|
110
|
+
> .nub {
|
111
|
+
border-color: transparent transparent $tooltip-bg transparent;
|
112
|
+
top: -($tooltip-pip-size * 2);
|
113
|
+
}
|
114
|
+
&.tip-top>.nub {
|
115
|
+
border-color: $tooltip-bg transparent transparent transparent;
|
116
|
+
bottom: -($tooltip-pip-size * 2);
|
117
|
+
top: auto;
|
118
|
+
}
|
119
|
+
|
120
|
+
&.tip-left,
|
121
|
+
&.tip-right { float: none !important; }
|
122
|
+
|
123
|
+
&.tip-left>.nub {
|
124
|
+
border-color: transparent transparent transparent $tooltip-bg;
|
125
|
+
left: auto;
|
126
|
+
margin-top: -$tooltip-pip-size;
|
127
|
+
right: -($tooltip-pip-size * 2);
|
128
|
+
top: 50%;
|
129
|
+
}
|
130
|
+
&.tip-right>.nub {
|
131
|
+
border-color: transparent $tooltip-bg transparent transparent;
|
132
|
+
left: -($tooltip-pip-size * 2);
|
133
|
+
margin-top: -$tooltip-pip-size;
|
134
|
+
right: auto;
|
135
|
+
top: 50%;
|
136
|
+
}
|
137
|
+
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
}
|
142
|
+
}
|