renalware-core 2.0.151 → 2.0.157
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/application_helper.rb +2 -1
- 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/dashboards/show.html.slim +3 -3
- data/app/views/renalware/pd/dashboards/show/_page_actions.html.slim +9 -16
- data/app/views/renalware/pd/dashboards/show/_pet_adequacies.html.slim +1 -1
- 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/20200226145010_add_unique_indexes.rb +12 -11
- 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/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 -2
- 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,107 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-panel-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to control the background and border styles
|
13
|
+
$panel-bg: scale-color($white, $lightness: -5%) !default;
|
14
|
+
$panel-border-style: solid !default;
|
15
|
+
$panel-border-size: 1px !default;
|
16
|
+
$callout-panel-bg: scale-color($primary-color, $lightness: 94%) !default;
|
17
|
+
|
18
|
+
// We use this % to control how much we darken things on hover
|
19
|
+
$panel-border-color: scale-color($panel-bg, $lightness: -11%) !default;
|
20
|
+
|
21
|
+
// We use these to set default inner padding and bottom margin
|
22
|
+
$panel-margin-bottom: rem-calc(20) !default;
|
23
|
+
$panel-padding: rem-calc(20) !default;
|
24
|
+
|
25
|
+
// We use these to set default font colors
|
26
|
+
$panel-font-color: $oil !default;
|
27
|
+
$panel-font-color-alt: $white !default;
|
28
|
+
|
29
|
+
$panel-header-adjust: true !default;
|
30
|
+
$callout-panel-link-color: $primary-color !default;
|
31
|
+
$callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightness: -14%) !default;
|
32
|
+
//
|
33
|
+
// @mixins
|
34
|
+
//
|
35
|
+
// We use this mixin to create panels.
|
36
|
+
// $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default
|
37
|
+
// $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
|
38
|
+
// $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
|
39
|
+
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust, $border:true) {
|
40
|
+
|
41
|
+
@if $bg {
|
42
|
+
$bg-lightness: lightness($bg);
|
43
|
+
|
44
|
+
@if $border {
|
45
|
+
border-style: $panel-border-style;
|
46
|
+
border-width: $panel-border-size;
|
47
|
+
border-color: $panel-border-color;
|
48
|
+
} @else {
|
49
|
+
border-style: none;
|
50
|
+
border-width: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
margin-bottom: $panel-margin-bottom;
|
54
|
+
padding: $padding;
|
55
|
+
|
56
|
+
background: $bg;
|
57
|
+
@if $bg-lightness >= 50% { color: $panel-font-color; }
|
58
|
+
@else { color: $panel-font-color-alt; }
|
59
|
+
|
60
|
+
// Respect the padding, fool.
|
61
|
+
> :first-child { margin-top: 0; }
|
62
|
+
> :last-child { margin-bottom: 0; }
|
63
|
+
|
64
|
+
@if $adjust {
|
65
|
+
// We set the font color based on the darkness of the bg.
|
66
|
+
@if $bg-lightness >= 50% {
|
67
|
+
h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color; }
|
68
|
+
}
|
69
|
+
@else {
|
70
|
+
h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color-alt; }
|
71
|
+
}
|
72
|
+
|
73
|
+
// reset header line-heights for panels
|
74
|
+
h1, h2, h3, h4, h5, h6 {
|
75
|
+
line-height: 1; margin-bottom: rem-calc(20) / 2;
|
76
|
+
&.subheader { line-height: 1.4; }
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
@include exports("panel") {
|
83
|
+
@if $include-html-panel-classes {
|
84
|
+
|
85
|
+
/* Panels */
|
86
|
+
.panel { @include panel;
|
87
|
+
|
88
|
+
&.callout {
|
89
|
+
@include panel($callout-panel-bg);
|
90
|
+
a:not(.button) {
|
91
|
+
color: $callout-panel-link-color;
|
92
|
+
|
93
|
+
&:hover,
|
94
|
+
&:focus {
|
95
|
+
color: $callout-panel-link-color-hover;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&.radius {
|
101
|
+
@include radius;
|
102
|
+
}
|
103
|
+
|
104
|
+
}
|
105
|
+
|
106
|
+
}
|
107
|
+
}
|
@@ -0,0 +1,212 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
@import 'grid';
|
7
|
+
|
8
|
+
//
|
9
|
+
// @name _reveal.scss
|
10
|
+
// @dependencies _global.scss
|
11
|
+
//
|
12
|
+
|
13
|
+
$include-html-reveal-classes: $include-html-classes !default;
|
14
|
+
|
15
|
+
// We use these to control the style of the reveal overlay.
|
16
|
+
$reveal-overlay-bg: rgba($black, .45) !default;
|
17
|
+
$reveal-overlay-bg-old: $black !default;
|
18
|
+
|
19
|
+
// We use these to control the style of the modal itself.
|
20
|
+
$reveal-modal-bg: $white !default;
|
21
|
+
$reveal-position-top: rem-calc(100) !default;
|
22
|
+
$reveal-default-width: 80% !default;
|
23
|
+
$reveal-max-width: $row-width !default;
|
24
|
+
$reveal-modal-padding: rem-calc(30) !default;
|
25
|
+
$reveal-box-shadow: 0 0 10px rgba($black,.4) !default;
|
26
|
+
|
27
|
+
// We use these to style the reveal close button
|
28
|
+
$reveal-close-font-size: rem-calc(40) !default;
|
29
|
+
$reveal-close-top: rem-calc(10) !default;
|
30
|
+
$reveal-close-side: rem-calc(22) !default;
|
31
|
+
$reveal-close-color: $base !default;
|
32
|
+
$reveal-close-weight: $font-weight-bold !default;
|
33
|
+
|
34
|
+
// We use this to set the default radius used throughout the core.
|
35
|
+
$reveal-radius: $global-radius !default;
|
36
|
+
$reveal-round: $global-rounded !default;
|
37
|
+
|
38
|
+
// We use these to control the modal border
|
39
|
+
$reveal-border-style: solid !default;
|
40
|
+
$reveal-border-width: 1px !default;
|
41
|
+
$reveal-border-color: $steel !default;
|
42
|
+
|
43
|
+
$reveal-modal-class: "reveal-modal" !default;
|
44
|
+
$close-reveal-modal-class: "close-reveal-modal" !default;
|
45
|
+
|
46
|
+
// Set base z-index
|
47
|
+
$z-index-base: 1005;
|
48
|
+
|
49
|
+
//
|
50
|
+
// @mixins
|
51
|
+
//
|
52
|
+
|
53
|
+
// We use this to create the reveal background overlay styles
|
54
|
+
@mixin reveal-bg( $include-z-index-value: true ) {
|
55
|
+
// position: absolute; // allows modal background to extend beyond window position
|
56
|
+
background: $reveal-overlay-bg-old; // Autoprefixer should be used to avoid such variables needed when Foundation for Sites can do so in the near future.
|
57
|
+
background: $reveal-overlay-bg;
|
58
|
+
bottom: 0;
|
59
|
+
display: none;
|
60
|
+
left: 0;
|
61
|
+
position: fixed;
|
62
|
+
right: 0;
|
63
|
+
top: 0;
|
64
|
+
z-index: if( $include-z-index-value, $z-index-base - 1, auto );
|
65
|
+
#{$default-float}: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
// We use this mixin to create the structure of a reveal modal
|
69
|
+
//
|
70
|
+
// $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false
|
71
|
+
// $width - Sets reveal width Default: $reveal-default-width || 80%
|
72
|
+
//
|
73
|
+
@mixin reveal-modal-base( $base-style: true, $width:$reveal-default-width, $max-width:$reveal-max-width, $border-radius: $reveal-radius) {
|
74
|
+
@if $base-style {
|
75
|
+
border-radius: $border-radius;
|
76
|
+
display: none;
|
77
|
+
position: absolute;
|
78
|
+
top:0;
|
79
|
+
visibility: hidden;
|
80
|
+
width: 100%;
|
81
|
+
z-index: $z-index-base;
|
82
|
+
#{$default-float}: 0;
|
83
|
+
|
84
|
+
@media #{$small-only} {
|
85
|
+
min-height:100vh;
|
86
|
+
}
|
87
|
+
|
88
|
+
// Make sure rows don't have a min-width on them
|
89
|
+
.column, .columns { min-width: 0; }
|
90
|
+
|
91
|
+
// Get rid of margin from first and last element inside modal
|
92
|
+
> :first-child { margin-top: 0; }
|
93
|
+
|
94
|
+
> :last-child { margin-bottom: 0; }
|
95
|
+
}
|
96
|
+
|
97
|
+
@if $width {
|
98
|
+
@media #{$medium-up} {
|
99
|
+
left: 0;
|
100
|
+
margin: 0 auto;
|
101
|
+
max-width: $max-width;
|
102
|
+
right: 0;
|
103
|
+
width: $width;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// We use this to style the reveal modal defaults
|
109
|
+
//
|
110
|
+
// $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || $white
|
111
|
+
// $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding.
|
112
|
+
// $border - Choose whether reveal uses a border. Default: true, Options: false
|
113
|
+
// $border-style - Set reveal border style. Default: $reveal-border-style || solid
|
114
|
+
// $border-width - Width of border (i.e. 1px). Default: $reveal-border-width.
|
115
|
+
// $border-color - Color of border. Default: $reveal-border-color.
|
116
|
+
// $box-shadow - Choose whether or not to include the default box-shadow. Default: true, Options: false
|
117
|
+
// $radius - If true, set to modal radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: false
|
118
|
+
// $top-offset - Default: $reveal-position-top || 50px
|
119
|
+
@mixin reveal-modal-style(
|
120
|
+
$bg:false,
|
121
|
+
$padding:false,
|
122
|
+
$border:false,
|
123
|
+
$border-style:$reveal-border-style,
|
124
|
+
$border-width:$reveal-border-width,
|
125
|
+
$border-color:$reveal-border-color,
|
126
|
+
$box-shadow:false,
|
127
|
+
$radius:false,
|
128
|
+
$top-offset:false) {
|
129
|
+
|
130
|
+
@if $bg { background-color: $bg; }
|
131
|
+
@if $padding != false { padding: $padding; }
|
132
|
+
|
133
|
+
@if $border { border: $border-style $border-width $border-color; }
|
134
|
+
|
135
|
+
// We can choose whether or not to include the default box-shadow.
|
136
|
+
@if $box-shadow {
|
137
|
+
box-shadow: $reveal-box-shadow;
|
138
|
+
}
|
139
|
+
@else{
|
140
|
+
box-shadow: none;
|
141
|
+
}
|
142
|
+
|
143
|
+
// We can control how much radius is used on the modal
|
144
|
+
@if $radius == true { @include radius($reveal-radius); }
|
145
|
+
@else if $radius { @include radius($radius); }
|
146
|
+
|
147
|
+
@if $top-offset {
|
148
|
+
@media #{$medium-up} {
|
149
|
+
top: $top-offset;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
// We use this to create a close button for the reveal modal
|
155
|
+
//
|
156
|
+
// $color - Default: $reveal-close-color || $base
|
157
|
+
@mixin reveal-close($color:$reveal-close-color) {
|
158
|
+
color: $color;
|
159
|
+
cursor: $cursor-pointer-value;
|
160
|
+
font-size: $reveal-close-font-size;
|
161
|
+
font-weight: $reveal-close-weight;
|
162
|
+
line-height: 1;
|
163
|
+
position: absolute;
|
164
|
+
top: $reveal-close-top;
|
165
|
+
#{$opposite-direction}: $reveal-close-side;
|
166
|
+
}
|
167
|
+
|
168
|
+
@include exports("reveal") {
|
169
|
+
@if $include-html-reveal-classes {
|
170
|
+
|
171
|
+
// Reveal Modals
|
172
|
+
.reveal-modal-bg { @include reveal-bg; }
|
173
|
+
|
174
|
+
.#{$reveal-modal-class} {
|
175
|
+
@include reveal-modal-base;
|
176
|
+
@include reveal-modal-style(
|
177
|
+
$bg:$reveal-modal-bg,
|
178
|
+
$padding:$reveal-modal-padding,
|
179
|
+
$border:true,
|
180
|
+
$box-shadow:true,
|
181
|
+
$radius:false,
|
182
|
+
$top-offset:$reveal-position-top
|
183
|
+
);
|
184
|
+
|
185
|
+
&.radius { @include reveal-modal-style($radius:true); }
|
186
|
+
&.round { @include reveal-modal-style($radius:$reveal-round); }
|
187
|
+
&.collapse { @include reveal-modal-style($padding:0); }
|
188
|
+
&.tiny { @include reveal-modal-base(false, 30%); }
|
189
|
+
&.small { @include reveal-modal-base(false, 40%); }
|
190
|
+
&.medium { @include reveal-modal-base(false, 60%); }
|
191
|
+
&.large { @include reveal-modal-base(false, 70%); }
|
192
|
+
&.xlarge { @include reveal-modal-base(false, 95%); }
|
193
|
+
&.full {
|
194
|
+
@include reveal-modal-base(false, 100%);
|
195
|
+
height: 100vh;
|
196
|
+
height:100%;
|
197
|
+
left:0;
|
198
|
+
margin-left: 0 !important;
|
199
|
+
max-width: none !important;
|
200
|
+
min-height:100vh;
|
201
|
+
top:0;
|
202
|
+
}
|
203
|
+
|
204
|
+
// Modals pushed to back
|
205
|
+
&.toback {
|
206
|
+
z-index: $z-index-base - 2;
|
207
|
+
}
|
208
|
+
|
209
|
+
.#{$close-reveal-modal-class} { @include reveal-close; }
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
|
11
|
+
$include-html-nav-classes: $include-html-classes !default;
|
12
|
+
|
13
|
+
// We use this to control padding.
|
14
|
+
$side-nav-padding: rem-calc(14 0) !default;
|
15
|
+
|
16
|
+
// We use these to control list styles.
|
17
|
+
$side-nav-list-type: none !default;
|
18
|
+
$side-nav-list-position: outside !default;
|
19
|
+
$side-nav-list-margin: rem-calc(0 0 7 0) !default;
|
20
|
+
|
21
|
+
// We use these to control link styles.
|
22
|
+
$side-nav-link-color: $primary-color !default;
|
23
|
+
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
24
|
+
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
25
|
+
$side-nav-link-bg-hover: hsla(0, 0, 0, .025) !default;
|
26
|
+
$side-nav-link-margin: 0 !default;
|
27
|
+
$side-nav-link-padding: rem-calc(7 14) !default;
|
28
|
+
$side-nav-font-size: rem-calc(14) !default;
|
29
|
+
$side-nav-font-weight: $font-weight-normal !default;
|
30
|
+
$side-nav-font-weight-active: $side-nav-font-weight !default;
|
31
|
+
$side-nav-font-family: $body-font-family !default;
|
32
|
+
$side-nav-font-family-active: $side-nav-font-family !default;
|
33
|
+
|
34
|
+
// We use these to control heading styles.
|
35
|
+
$side-nav-heading-color: $side-nav-link-color !default;
|
36
|
+
$side-nav-heading-font-size: $side-nav-font-size !default;
|
37
|
+
$side-nav-heading-font-weight: bold !default;
|
38
|
+
$side-nav-heading-text-transform: uppercase !default;
|
39
|
+
|
40
|
+
// We use these to control border styles
|
41
|
+
$side-nav-divider-size: 1px !default;
|
42
|
+
$side-nav-divider-style: solid !default;
|
43
|
+
$side-nav-divider-color: scale-color($white, $lightness: -10%) !default;
|
44
|
+
|
45
|
+
|
46
|
+
//
|
47
|
+
// @mixins
|
48
|
+
//
|
49
|
+
|
50
|
+
|
51
|
+
// We use this to style the side-nav
|
52
|
+
//
|
53
|
+
// $divider-color - Border color of divider. Default: $side-nav-divider-color.
|
54
|
+
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
55
|
+
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
56
|
+
// $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
|
57
|
+
@mixin side-nav(
|
58
|
+
$divider-color:$side-nav-divider-color,
|
59
|
+
$font-size:$side-nav-font-size,
|
60
|
+
$link-color:$side-nav-link-color,
|
61
|
+
$link-color-active:$side-nav-link-color-active,
|
62
|
+
$link-color-hover:$side-nav-link-color-hover,
|
63
|
+
$link-bg-hover:$side-nav-link-bg-hover) {
|
64
|
+
display: block;
|
65
|
+
font-family: $side-nav-font-family;
|
66
|
+
list-style-position: $side-nav-list-position;
|
67
|
+
list-style-type: $side-nav-list-type;
|
68
|
+
margin: 0;
|
69
|
+
padding: $side-nav-padding;
|
70
|
+
|
71
|
+
li {
|
72
|
+
font-size: $font-size;
|
73
|
+
font-weight: $side-nav-font-weight;
|
74
|
+
margin: $side-nav-list-margin;
|
75
|
+
|
76
|
+
a:not(.button) {
|
77
|
+
color: $link-color;
|
78
|
+
display: block;
|
79
|
+
margin: $side-nav-link-margin;
|
80
|
+
padding: $side-nav-link-padding;
|
81
|
+
&:hover,
|
82
|
+
&:focus {
|
83
|
+
background: $link-bg-hover;
|
84
|
+
color: $link-color-hover;
|
85
|
+
}
|
86
|
+
&:active {
|
87
|
+
color: $link-color-active;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
&.active > a:first-child:not(.button) {
|
92
|
+
color: $side-nav-link-color-active;
|
93
|
+
font-family: $side-nav-font-family-active;
|
94
|
+
font-weight: $side-nav-font-weight-active;
|
95
|
+
}
|
96
|
+
|
97
|
+
&.divider {
|
98
|
+
border-top: $side-nav-divider-size $side-nav-divider-style;
|
99
|
+
height: 0;
|
100
|
+
list-style: none;
|
101
|
+
padding: 0;
|
102
|
+
border-top-color: $divider-color;
|
103
|
+
}
|
104
|
+
|
105
|
+
&.heading {
|
106
|
+
color: $side-nav-heading-color;
|
107
|
+
font: {
|
108
|
+
size: $side-nav-heading-font-size;
|
109
|
+
weight: $side-nav-heading-font-weight;
|
110
|
+
}
|
111
|
+
text-transform: $side-nav-heading-text-transform;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
@include exports("side-nav") {
|
117
|
+
@if $include-html-nav-classes {
|
118
|
+
.side-nav {@include side-nav;}
|
119
|
+
}
|
120
|
+
}
|
@@ -0,0 +1,203 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
@import 'buttons';
|
7
|
+
@import 'dropdown-buttons';
|
8
|
+
|
9
|
+
//
|
10
|
+
// @name _split-buttons.scss
|
11
|
+
// @dependencies _buttons.scss, _global.scss
|
12
|
+
//
|
13
|
+
|
14
|
+
//
|
15
|
+
// @variables
|
16
|
+
//
|
17
|
+
|
18
|
+
$include-html-button-classes: $include-html-classes !default;
|
19
|
+
|
20
|
+
// We use these to control different shared styles for Split Buttons
|
21
|
+
$split-button-function-factor: 10% !default;
|
22
|
+
$split-button-pip-color: $white !default;
|
23
|
+
$split-button-pip-color-alt: $oil !default;
|
24
|
+
$split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
|
25
|
+
$split-button-span-border-color: rgba(255,255,255,0.5) !default;
|
26
|
+
|
27
|
+
// We use these to control tiny split buttons
|
28
|
+
$split-button-padding-tny: $button-pip-tny * 10 !default;
|
29
|
+
$split-button-span-width-tny: $button-pip-tny * 6 !default;
|
30
|
+
$split-button-pip-size-tny: $button-pip-tny !default;
|
31
|
+
$split-button-pip-top-tny: $button-pip-tny * 2 !default;
|
32
|
+
$split-button-pip-default-float-tny: rem-calc(-6) !default;
|
33
|
+
|
34
|
+
// We use these to control small split buttons
|
35
|
+
$split-button-padding-sml: $button-pip-sml * 10 !default;
|
36
|
+
$split-button-span-width-sml: $button-pip-sml * 6 !default;
|
37
|
+
$split-button-pip-size-sml: $button-pip-sml !default;
|
38
|
+
$split-button-pip-top-sml: $button-pip-sml * 1.5 !default;
|
39
|
+
$split-button-pip-default-float-sml: rem-calc(-6) !default;
|
40
|
+
|
41
|
+
// We use these to control medium split buttons
|
42
|
+
$split-button-padding-med: $button-pip-med * 9 !default;
|
43
|
+
$split-button-span-width-med: $button-pip-med * 5.5 !default;
|
44
|
+
$split-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
45
|
+
$split-button-pip-top-med: $button-pip-med * 1.5 !default;
|
46
|
+
$split-button-pip-default-float-med: rem-calc(-6) !default;
|
47
|
+
|
48
|
+
// We use these to control large split buttons
|
49
|
+
$split-button-padding-lrg: $button-pip-lrg * 8 !default;
|
50
|
+
$split-button-span-width-lrg: $button-pip-lrg * 5 !default;
|
51
|
+
$split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
52
|
+
$split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5) !default;
|
53
|
+
$split-button-pip-default-float-lrg: rem-calc(-6) !default;
|
54
|
+
|
55
|
+
|
56
|
+
//
|
57
|
+
// @mixins
|
58
|
+
//
|
59
|
+
|
60
|
+
// We use this mixin to create split buttons that build upon the button mixins
|
61
|
+
//
|
62
|
+
// $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large.
|
63
|
+
// $pip-color - Color of the triangle. Default: $split-button-pip-color.
|
64
|
+
// $span-border - Border color of button divider. Default: $split-button-span-border-color.
|
65
|
+
// $base-style - Apply base style to split button. Default: true.
|
66
|
+
@mixin split-button(
|
67
|
+
$padding:medium,
|
68
|
+
$pip-color:$split-button-pip-color,
|
69
|
+
$span-border:$split-button-span-border-color,
|
70
|
+
$base-style:true) {
|
71
|
+
|
72
|
+
// With this, we can control whether or not the base styles come through.
|
73
|
+
@if $base-style {
|
74
|
+
position: relative;
|
75
|
+
|
76
|
+
// Styling for the split arrow clickable area
|
77
|
+
span {
|
78
|
+
display: block;
|
79
|
+
height: 100%;
|
80
|
+
position: absolute;
|
81
|
+
#{$opposite-direction}: 0;
|
82
|
+
top: 0;
|
83
|
+
border-#{$default-float}: solid 1px;
|
84
|
+
|
85
|
+
// Building the triangle pip indicator
|
86
|
+
&:after {
|
87
|
+
position: absolute;
|
88
|
+
content: "";
|
89
|
+
width: 0;
|
90
|
+
height: 0;
|
91
|
+
display: block;
|
92
|
+
border-style: inset;
|
93
|
+
top: 50%;
|
94
|
+
#{$default-float}: 50%;
|
95
|
+
}
|
96
|
+
|
97
|
+
&:active { background-color: $split-button-active-bg-tint; }
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// Control the border color for the span area of the split button
|
102
|
+
@if $span-border {
|
103
|
+
span {
|
104
|
+
border-#{$default-float}-color: $span-border;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// Style of the button and clickable area for tiny sizes
|
109
|
+
@if $padding == tiny {
|
110
|
+
padding-#{$opposite-direction}: $split-button-padding-tny;
|
111
|
+
|
112
|
+
span { width: $split-button-span-width-tny;
|
113
|
+
&:after {
|
114
|
+
border-top-style: solid;
|
115
|
+
border-width: $split-button-pip-size-tny;
|
116
|
+
margin-#{$default-float}: $split-button-pip-default-float-tny;
|
117
|
+
top: 48%;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
// Style of the button and clickable area for small sizes
|
123
|
+
@else if $padding == small {
|
124
|
+
padding-#{$opposite-direction}: $split-button-padding-sml;
|
125
|
+
|
126
|
+
span { width: $split-button-span-width-sml;
|
127
|
+
&:after {
|
128
|
+
border-top-style: solid;
|
129
|
+
border-width: $split-button-pip-size-sml;
|
130
|
+
margin-#{$default-float}: $split-button-pip-default-float-sml;
|
131
|
+
top: 48%;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
// Style of the button and clickable area for default (medium) sizes
|
137
|
+
@else if $padding == medium {
|
138
|
+
padding-#{$opposite-direction}: $split-button-padding-med;
|
139
|
+
|
140
|
+
span { width: $split-button-span-width-med;
|
141
|
+
&:after {
|
142
|
+
border-top-style: solid;
|
143
|
+
border-width: $split-button-pip-size-med;
|
144
|
+
margin-#{$default-float}: $split-button-pip-default-float-med;
|
145
|
+
top: 48%;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
// Style of the button and clickable area for large sizes
|
151
|
+
@else if $padding == large {
|
152
|
+
padding-#{$opposite-direction}: $split-button-padding-lrg;
|
153
|
+
|
154
|
+
span { width: $split-button-span-width-lrg;
|
155
|
+
&:after {
|
156
|
+
border-top-style: solid;
|
157
|
+
border-width: $split-button-pip-size-lrg;
|
158
|
+
margin-#{$default-float}: $split-button-pip-default-float-lrg;
|
159
|
+
top: 48%;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
// Control the color of the triangle pip
|
165
|
+
@if $pip-color {
|
166
|
+
span:after { border-color: $pip-color transparent transparent transparent; }
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
@include exports("split-button") {
|
171
|
+
@if $include-html-button-classes {
|
172
|
+
|
173
|
+
.split.button { @include split-button;
|
174
|
+
|
175
|
+
&.secondary { @include split-button(false, $split-button-pip-color, $split-button-span-border-color, false); }
|
176
|
+
&.alert { @include split-button(false, false, $split-button-span-border-color, false); }
|
177
|
+
&.success { @include split-button(false, false, $split-button-span-border-color, false); }
|
178
|
+
|
179
|
+
&.tiny { @include split-button(tiny, false, false, false); }
|
180
|
+
&.small { @include split-button(small, false, false, false); }
|
181
|
+
&.large { @include split-button(large, false, false, false); }
|
182
|
+
&.expand { padding-left: 2rem; }
|
183
|
+
|
184
|
+
&.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); }
|
185
|
+
|
186
|
+
&.radius span { @include side-radius($opposite-direction, $global-radius); }
|
187
|
+
&.round span { @include side-radius($opposite-direction, 1000px); }
|
188
|
+
&.no-pip{
|
189
|
+
span:before{ border-style:none; }
|
190
|
+
span:after{ border-style:none; }
|
191
|
+
span>i{
|
192
|
+
display: block;
|
193
|
+
left: 50%;
|
194
|
+
margin-left: -0.28889em;
|
195
|
+
margin-top: -0.48889em;
|
196
|
+
position: absolute;
|
197
|
+
top: 50%;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
}
|
203
|
+
}
|