renalware-core 2.0.153 → 2.0.155
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/navigation.js +0 -7
- data/app/assets/javascripts/renalware/components/sortable.js +3 -0
- data/app/assets/javascripts/renalware/core.js.erb +0 -2
- data/app/assets/javascripts/renalware/rollup_compiled.css +69147 -50289
- 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/_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/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/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/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/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/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/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/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 +28 -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/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/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/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 -0
- 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 +162 -64
- 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,525 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
$include-html-type-classes: $include-html-classes !default;
|
8
|
+
|
9
|
+
// We use these to control header font styles
|
10
|
+
$header-font-family: $body-font-family !default;
|
11
|
+
$header-font-weight: $font-weight-normal !default;
|
12
|
+
$header-font-style: normal !default;
|
13
|
+
$header-font-color: $jet !default;
|
14
|
+
$header-line-height: 1.4 !default;
|
15
|
+
$header-top-margin: .2rem !default;
|
16
|
+
$header-bottom-margin: .5rem !default;
|
17
|
+
$header-text-rendering: optimizeLegibility !default;
|
18
|
+
|
19
|
+
// We use these to control header font sizes
|
20
|
+
$h1-font-size: rem-calc(44) !default;
|
21
|
+
$h2-font-size: rem-calc(37) !default;
|
22
|
+
$h3-font-size: rem-calc(27) !default;
|
23
|
+
$h4-font-size: rem-calc(23) !default;
|
24
|
+
$h5-font-size: rem-calc(18) !default;
|
25
|
+
$h6-font-size: 1rem !default;
|
26
|
+
|
27
|
+
// We use these to control header size reduction on small screens
|
28
|
+
$h1-font-reduction: rem-calc(10) !default;
|
29
|
+
$h2-font-reduction: rem-calc(10) !default;
|
30
|
+
$h3-font-reduction: rem-calc(5) !default;
|
31
|
+
$h4-font-reduction: rem-calc(5) !default;
|
32
|
+
$h5-font-reduction: 0 !default;
|
33
|
+
$h6-font-reduction: 0 !default;
|
34
|
+
|
35
|
+
// These control how subheaders are styled.
|
36
|
+
$subheader-line-height: 1.4 !default;
|
37
|
+
$subheader-font-color: scale-color($header-font-color, $lightness: 35%) !default;
|
38
|
+
$subheader-font-weight: $font-weight-normal !default;
|
39
|
+
$subheader-top-margin: .2rem !default;
|
40
|
+
$subheader-bottom-margin: .5rem !default;
|
41
|
+
|
42
|
+
// A general <small> styling
|
43
|
+
$small-font-size: 60% !default;
|
44
|
+
$small-font-color: scale-color($header-font-color, $lightness: 35%) !default;
|
45
|
+
|
46
|
+
// We use these to style paragraphs
|
47
|
+
$paragraph-font-family: inherit !default;
|
48
|
+
$paragraph-font-weight: $font-weight-normal !default;
|
49
|
+
$paragraph-font-size: 1rem !default;
|
50
|
+
$paragraph-line-height: 1.6 !default;
|
51
|
+
$paragraph-margin-bottom: rem-calc(20) !default;
|
52
|
+
$paragraph-aside-font-size: rem-calc(14) !default;
|
53
|
+
$paragraph-aside-line-height: 1.35 !default;
|
54
|
+
$paragraph-aside-font-style: italic !default;
|
55
|
+
$paragraph-text-rendering: optimizeLegibility !default;
|
56
|
+
|
57
|
+
// We use these to style <code> tags
|
58
|
+
$code-color: $oil !default;
|
59
|
+
$code-font-family: $font-family-monospace !default;
|
60
|
+
$code-font-weight: $font-weight-normal !default;
|
61
|
+
$code-background-color: scale-color($secondary-color, $lightness: 70%) !default;
|
62
|
+
$code-border-size: 1px !default;
|
63
|
+
$code-border-style: solid !default;
|
64
|
+
$code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
|
65
|
+
$code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
|
66
|
+
|
67
|
+
// We use these to style anchors
|
68
|
+
$anchor-text-decoration: none !default;
|
69
|
+
$anchor-text-decoration-hover: none !default;
|
70
|
+
$anchor-font-color: $primary-color !default;
|
71
|
+
$anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default;
|
72
|
+
|
73
|
+
// We use these to style the <hr> element
|
74
|
+
$hr-border-width: 1px !default;
|
75
|
+
$hr-border-style: solid !default;
|
76
|
+
$hr-border-color: $gainsboro !default;
|
77
|
+
$hr-margin: rem-calc(20) !default;
|
78
|
+
|
79
|
+
// We use these to style lists
|
80
|
+
$list-font-family: $paragraph-font-family !default;
|
81
|
+
$list-font-size: $paragraph-font-size !default;
|
82
|
+
$list-line-height: $paragraph-line-height !default;
|
83
|
+
$list-margin-bottom: $paragraph-margin-bottom !default;
|
84
|
+
$list-style-position: outside !default;
|
85
|
+
$list-side-margin: 1.1rem !default;
|
86
|
+
$list-ordered-side-margin: 1.4rem !default;
|
87
|
+
$list-side-margin-no-bullet: 0 !default;
|
88
|
+
$list-nested-margin: rem-calc(20) !default;
|
89
|
+
$definition-list-header-weight: $font-weight-bold !default;
|
90
|
+
$definition-list-header-margin-bottom: .3rem !default;
|
91
|
+
$definition-list-margin-bottom: rem-calc(12) !default;
|
92
|
+
|
93
|
+
// We use these to style blockquotes
|
94
|
+
$blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default;
|
95
|
+
$blockquote-padding: rem-calc(9 20 0 19) !default;
|
96
|
+
$blockquote-border: 1px solid $gainsboro !default;
|
97
|
+
$blockquote-cite-font-size: rem-calc(13) !default;
|
98
|
+
$blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default;
|
99
|
+
$blockquote-cite-link-color: $blockquote-cite-font-color !default;
|
100
|
+
|
101
|
+
// Acronym styles
|
102
|
+
$acronym-underline: 1px dotted $gainsboro !default;
|
103
|
+
|
104
|
+
// We use these to control padding and margin
|
105
|
+
$microformat-padding: rem-calc(10 12) !default;
|
106
|
+
$microformat-margin: rem-calc(0 0 20 0) !default;
|
107
|
+
|
108
|
+
// We use these to control the border styles
|
109
|
+
$microformat-border-width: 1px !default;
|
110
|
+
$microformat-border-style: solid !default;
|
111
|
+
$microformat-border-color: $gainsboro !default;
|
112
|
+
|
113
|
+
// We use these to control full name font styles
|
114
|
+
$microformat-fullname-font-weight: $font-weight-bold !default;
|
115
|
+
$microformat-fullname-font-size: rem-calc(15) !default;
|
116
|
+
|
117
|
+
// We use this to control the summary font styles
|
118
|
+
$microformat-summary-font-weight: $font-weight-bold !default;
|
119
|
+
|
120
|
+
// We use this to control abbr padding
|
121
|
+
$microformat-abbr-padding: rem-calc(0 1) !default;
|
122
|
+
|
123
|
+
// We use this to control abbr font styles
|
124
|
+
$microformat-abbr-font-weight: $font-weight-bold !default;
|
125
|
+
$microformat-abbr-font-decoration: none !default;
|
126
|
+
|
127
|
+
// Controls the page margin when printing the website
|
128
|
+
$print-margin: 0.34in !default;
|
129
|
+
|
130
|
+
// Text alignment class names
|
131
|
+
$align-class-names:
|
132
|
+
small-only,
|
133
|
+
small,
|
134
|
+
medium-only,
|
135
|
+
medium,
|
136
|
+
large-only,
|
137
|
+
large,
|
138
|
+
xlarge-only,
|
139
|
+
xlarge,
|
140
|
+
xxlarge-only,
|
141
|
+
xxlarge;
|
142
|
+
|
143
|
+
// Text alignment breakpoints
|
144
|
+
$align-class-breakpoints:
|
145
|
+
$small-only,
|
146
|
+
$small-up,
|
147
|
+
$medium-only,
|
148
|
+
$medium-up,
|
149
|
+
$large-only,
|
150
|
+
$large-up,
|
151
|
+
$xlarge-only,
|
152
|
+
$xlarge-up,
|
153
|
+
$xxlarge-only,
|
154
|
+
$xxlarge-up;
|
155
|
+
|
156
|
+
// Generates text align and justify classes
|
157
|
+
@mixin align-classes{
|
158
|
+
.text-left { text-align: left !important; }
|
159
|
+
.text-right { text-align: right !important; }
|
160
|
+
.text-center { text-align: center !important; }
|
161
|
+
.text-justify { text-align: justify !important; }
|
162
|
+
|
163
|
+
@for $i from 1 through length($align-class-names) {
|
164
|
+
@media #{(nth($align-class-breakpoints, $i))} {
|
165
|
+
.#{(nth($align-class-names, $i))}-text-left { text-align: left !important; }
|
166
|
+
.#{(nth($align-class-names, $i))}-text-right { text-align: right !important; }
|
167
|
+
.#{(nth($align-class-names, $i))}-text-center { text-align: center !important; }
|
168
|
+
.#{(nth($align-class-names, $i))}-text-justify { text-align: justify !important; }
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
//
|
174
|
+
// Typography Placeholders
|
175
|
+
//
|
176
|
+
|
177
|
+
// These will throw a deprecation warning if used within a media query.
|
178
|
+
@mixin lead {
|
179
|
+
font-size: $paragraph-font-size + rem-calc(3.5);
|
180
|
+
line-height: 1.6;
|
181
|
+
}
|
182
|
+
|
183
|
+
@mixin subheader {
|
184
|
+
line-height: $subheader-line-height;
|
185
|
+
color: $subheader-font-color;
|
186
|
+
font-weight: $subheader-font-weight;
|
187
|
+
margin-top: $subheader-top-margin;
|
188
|
+
margin-bottom: $subheader-bottom-margin;
|
189
|
+
}
|
190
|
+
@include exports("type") {
|
191
|
+
@if $include-html-type-classes {
|
192
|
+
// Responsive Text alignment
|
193
|
+
@include align-classes;
|
194
|
+
|
195
|
+
/* Typography resets */
|
196
|
+
div,
|
197
|
+
dl,
|
198
|
+
dt,
|
199
|
+
dd,
|
200
|
+
ul,
|
201
|
+
ol,
|
202
|
+
li,
|
203
|
+
h1,
|
204
|
+
h2,
|
205
|
+
h3,
|
206
|
+
h4,
|
207
|
+
h5,
|
208
|
+
h6,
|
209
|
+
pre,
|
210
|
+
form,
|
211
|
+
p,
|
212
|
+
blockquote,
|
213
|
+
th,
|
214
|
+
td {
|
215
|
+
margin:0;
|
216
|
+
padding:0;
|
217
|
+
}
|
218
|
+
|
219
|
+
/* Default Link Styles */
|
220
|
+
a {
|
221
|
+
color: $anchor-font-color;
|
222
|
+
line-height: inherit;
|
223
|
+
text-decoration: $anchor-text-decoration;
|
224
|
+
|
225
|
+
&:hover,
|
226
|
+
&:focus {
|
227
|
+
color: $anchor-font-color-hover;
|
228
|
+
@if $anchor-text-decoration-hover != $anchor-text-decoration {
|
229
|
+
text-decoration: $anchor-text-decoration-hover;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
img { border:none; }
|
234
|
+
}
|
235
|
+
|
236
|
+
/* Default paragraph styles */
|
237
|
+
p {
|
238
|
+
font-family: $paragraph-font-family;
|
239
|
+
font-size: $paragraph-font-size;
|
240
|
+
font-weight: $paragraph-font-weight;
|
241
|
+
line-height: $paragraph-line-height;
|
242
|
+
margin-bottom: $paragraph-margin-bottom;
|
243
|
+
text-rendering: $paragraph-text-rendering;
|
244
|
+
|
245
|
+
&.lead { @include lead; }
|
246
|
+
|
247
|
+
& aside {
|
248
|
+
font-size: $paragraph-aside-font-size;
|
249
|
+
font-style: $paragraph-aside-font-style;
|
250
|
+
line-height: $paragraph-aside-line-height;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
/* Default header styles */
|
255
|
+
h1, h2, h3, h4, h5, h6 {
|
256
|
+
color: $header-font-color;
|
257
|
+
font-family: $header-font-family;
|
258
|
+
font-style: $header-font-style;
|
259
|
+
font-weight: $header-font-weight;
|
260
|
+
line-height: $header-line-height;
|
261
|
+
margin-bottom: $header-bottom-margin;
|
262
|
+
margin-top: $header-top-margin;
|
263
|
+
text-rendering: $header-text-rendering;
|
264
|
+
|
265
|
+
small {
|
266
|
+
color: $small-font-color;
|
267
|
+
font-size: $small-font-size;
|
268
|
+
line-height: 0;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
h1 { font-size: $h1-font-size - $h1-font-reduction; }
|
273
|
+
h2 { font-size: $h2-font-size - $h2-font-reduction; }
|
274
|
+
h3 { font-size: $h3-font-size - $h3-font-reduction; }
|
275
|
+
h4 { font-size: $h4-font-size - $h4-font-reduction; }
|
276
|
+
h5 { font-size: $h5-font-size - $h5-font-reduction; }
|
277
|
+
h6 { font-size: $h6-font-size - $h6-font-reduction; }
|
278
|
+
|
279
|
+
.subheader { @include subheader; }
|
280
|
+
|
281
|
+
hr {
|
282
|
+
border: $hr-border-style $hr-border-color;
|
283
|
+
border-width: $hr-border-width 0 0;
|
284
|
+
clear: both;
|
285
|
+
height: 0;
|
286
|
+
margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
|
287
|
+
}
|
288
|
+
|
289
|
+
/* Helpful Typography Defaults */
|
290
|
+
em,
|
291
|
+
i {
|
292
|
+
font-style: italic;
|
293
|
+
line-height: inherit;
|
294
|
+
}
|
295
|
+
|
296
|
+
strong,
|
297
|
+
b {
|
298
|
+
font-weight: $font-weight-bold;
|
299
|
+
line-height: inherit;
|
300
|
+
}
|
301
|
+
|
302
|
+
small {
|
303
|
+
font-size: $small-font-size;
|
304
|
+
line-height: inherit;
|
305
|
+
}
|
306
|
+
|
307
|
+
code {
|
308
|
+
background-color: $code-background-color;
|
309
|
+
border-color: $code-border-color;
|
310
|
+
border-style: $code-border-style;
|
311
|
+
border-width: $code-border-size;
|
312
|
+
color: $code-color;
|
313
|
+
font-family: $code-font-family;
|
314
|
+
font-weight: $code-font-weight;
|
315
|
+
padding: $code-padding;
|
316
|
+
}
|
317
|
+
|
318
|
+
/* Lists */
|
319
|
+
ul,
|
320
|
+
ol,
|
321
|
+
dl {
|
322
|
+
font-family: $list-font-family;
|
323
|
+
font-size: $list-font-size;
|
324
|
+
line-height: $list-line-height;
|
325
|
+
list-style-position: $list-style-position;
|
326
|
+
margin-bottom: $list-margin-bottom;
|
327
|
+
}
|
328
|
+
|
329
|
+
ul {
|
330
|
+
margin-#{$default-float}: $list-side-margin;
|
331
|
+
}
|
332
|
+
|
333
|
+
/* Unordered Lists */
|
334
|
+
ul {
|
335
|
+
li {
|
336
|
+
ul,
|
337
|
+
ol {
|
338
|
+
margin-#{$default-float}: $list-nested-margin;
|
339
|
+
margin-bottom: 0;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
&.square,
|
343
|
+
&.circle,
|
344
|
+
&.disc {
|
345
|
+
li ul { list-style: inherit; }
|
346
|
+
}
|
347
|
+
|
348
|
+
&.square { list-style-type: square; margin-#{$default-float}: $list-side-margin;}
|
349
|
+
&.circle { list-style-type: circle; margin-#{$default-float}: $list-side-margin;}
|
350
|
+
&.disc { list-style-type: disc; margin-#{$default-float}: $list-side-margin;}
|
351
|
+
}
|
352
|
+
|
353
|
+
/* Ordered Lists */
|
354
|
+
ol {
|
355
|
+
margin-#{$default-float}: $list-ordered-side-margin;
|
356
|
+
li {
|
357
|
+
ul,
|
358
|
+
ol {
|
359
|
+
margin-#{$default-float}: $list-nested-margin;
|
360
|
+
margin-bottom: 0;
|
361
|
+
}
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
// Lists without bullets
|
366
|
+
.no-bullet {
|
367
|
+
list-style-type: none;
|
368
|
+
margin-#{$default-float}: $list-side-margin-no-bullet;
|
369
|
+
|
370
|
+
li {
|
371
|
+
ul,
|
372
|
+
ol {
|
373
|
+
margin-#{$default-float}: $list-nested-margin;
|
374
|
+
margin-bottom: 0;
|
375
|
+
list-style: none;
|
376
|
+
}
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
/* Definition Lists */
|
381
|
+
dl {
|
382
|
+
dt {
|
383
|
+
margin-bottom: $definition-list-header-margin-bottom;
|
384
|
+
font-weight: $definition-list-header-weight;
|
385
|
+
}
|
386
|
+
dd { margin-bottom: $definition-list-margin-bottom; }
|
387
|
+
}
|
388
|
+
|
389
|
+
/* Abbreviations */
|
390
|
+
abbr,
|
391
|
+
acronym {
|
392
|
+
text-transform: uppercase;
|
393
|
+
font-size: 90%;
|
394
|
+
color: $body-font-color;
|
395
|
+
cursor: $cursor-help-value;
|
396
|
+
}
|
397
|
+
abbr {
|
398
|
+
text-transform: none;
|
399
|
+
&[title] {
|
400
|
+
border-bottom: $acronym-underline;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
/* Blockquotes */
|
405
|
+
blockquote {
|
406
|
+
margin: 0 0 $paragraph-margin-bottom;
|
407
|
+
padding: $blockquote-padding;
|
408
|
+
border-#{$default-float}: $blockquote-border;
|
409
|
+
|
410
|
+
cite {
|
411
|
+
display: block;
|
412
|
+
font-size: $blockquote-cite-font-size;
|
413
|
+
color: $blockquote-cite-font-color;
|
414
|
+
&:before {
|
415
|
+
content: "\2014 \0020";
|
416
|
+
}
|
417
|
+
|
418
|
+
a,
|
419
|
+
a:visited {
|
420
|
+
color: $blockquote-cite-link-color;
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
blockquote,
|
425
|
+
blockquote p {
|
426
|
+
line-height: $paragraph-line-height;
|
427
|
+
color: $blockquote-font-color;
|
428
|
+
}
|
429
|
+
|
430
|
+
/* Microformats */
|
431
|
+
.vcard {
|
432
|
+
display: inline-block;
|
433
|
+
margin: $microformat-margin;
|
434
|
+
border: $microformat-border-width $microformat-border-style $microformat-border-color;
|
435
|
+
padding: $microformat-padding;
|
436
|
+
|
437
|
+
li {
|
438
|
+
margin: 0;
|
439
|
+
display: block;
|
440
|
+
}
|
441
|
+
.fn {
|
442
|
+
font-weight: $microformat-fullname-font-weight;
|
443
|
+
font-size: $microformat-fullname-font-size;
|
444
|
+
}
|
445
|
+
}
|
446
|
+
|
447
|
+
.vevent {
|
448
|
+
.summary { font-weight: $microformat-summary-font-weight; }
|
449
|
+
|
450
|
+
abbr {
|
451
|
+
cursor: $cursor-default-value;
|
452
|
+
text-decoration: $microformat-abbr-font-decoration;
|
453
|
+
font-weight: $microformat-abbr-font-weight;
|
454
|
+
border: none;
|
455
|
+
padding: $microformat-abbr-padding;
|
456
|
+
}
|
457
|
+
}
|
458
|
+
|
459
|
+
|
460
|
+
@media #{$medium-up} {
|
461
|
+
h1, h2, h3, h4, h5, h6 { line-height: $header-line-height; }
|
462
|
+
h1 { font-size: $h1-font-size; }
|
463
|
+
h2 { font-size: $h2-font-size; }
|
464
|
+
h3 { font-size: $h3-font-size; }
|
465
|
+
h4 { font-size: $h4-font-size; }
|
466
|
+
h5 { font-size: $h5-font-size; }
|
467
|
+
h6 { font-size: $h6-font-size; }
|
468
|
+
}
|
469
|
+
|
470
|
+
// Only include these styles if you want them.
|
471
|
+
@if $include-print-styles {
|
472
|
+
/*
|
473
|
+
* Print styles.
|
474
|
+
*
|
475
|
+
* Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
|
476
|
+
* Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
|
477
|
+
*/
|
478
|
+
@media print {
|
479
|
+
* {
|
480
|
+
background: transparent !important;
|
481
|
+
color: $black !important; /* Black prints faster: h5bp.com/s */
|
482
|
+
box-shadow: none !important;
|
483
|
+
text-shadow: none !important;
|
484
|
+
}
|
485
|
+
|
486
|
+
a,
|
487
|
+
a:visited { text-decoration: underline;}
|
488
|
+
a[href]:after { content: " (" attr(href) ")"; }
|
489
|
+
|
490
|
+
abbr[title]:after { content: " (" attr(title) ")"; }
|
491
|
+
|
492
|
+
// Don't show links for images, or javascript/internal links
|
493
|
+
.ir a:after,
|
494
|
+
a[href^="javascript:"]:after,
|
495
|
+
a[href^="#"]:after { content: ""; }
|
496
|
+
|
497
|
+
pre,
|
498
|
+
blockquote {
|
499
|
+
border: 1px solid $aluminum;
|
500
|
+
page-break-inside: avoid;
|
501
|
+
}
|
502
|
+
|
503
|
+
thead { display: table-header-group; /* h5bp.com/t */ }
|
504
|
+
|
505
|
+
tr,
|
506
|
+
img { page-break-inside: avoid; }
|
507
|
+
|
508
|
+
img { max-width: 100% !important; }
|
509
|
+
|
510
|
+
@page { margin: $print-margin; }
|
511
|
+
|
512
|
+
p,
|
513
|
+
h2,
|
514
|
+
h3 {
|
515
|
+
orphans: 3;
|
516
|
+
widows: 3;
|
517
|
+
}
|
518
|
+
|
519
|
+
h2,
|
520
|
+
h3 { page-break-after: avoid; }
|
521
|
+
}
|
522
|
+
}
|
523
|
+
|
524
|
+
}
|
525
|
+
}
|