lcms-engine 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +25 -0
- data/.eslintignore +2 -1
- data/.eslintrc +23 -73
- data/.nvmrc +1 -1
- data/.overcommit.yml +8 -2
- data/.prettierrc +7 -0
- data/.rubocop.yml +5 -2
- data/.ruby-version +1 -1
- data/.stylelintignore +9 -0
- data/.stylelintrc +8 -0
- data/CHANGELOG.md +36 -2
- data/Dockerfile +3 -3
- data/Gemfile.lock +344 -297
- data/README.md +20 -18
- data/app/assets/config/lcms_engine_manifest.js +4 -2
- data/app/assets/javascripts/lcms/engine/admin/{application.js → lcms_engine_application.js} +1 -3
- data/app/assets/javascripts/lcms/engine/initializers/foundation.js +1 -1
- data/app/assets/javascripts/lcms/engine/{application.js → lcms_engine_application.js} +0 -0
- data/app/assets/stylesheets/lcms/engine/admin/collections.scss +2 -1
- data/app/assets/stylesheets/lcms/engine/admin/components.scss +60 -19
- data/app/assets/stylesheets/lcms/engine/admin/curriculums.scss +12 -10
- data/app/assets/stylesheets/lcms/engine/admin/lessons.scss +21 -15
- data/app/assets/stylesheets/lcms/engine/admin/materials.scss +25 -17
- data/app/assets/stylesheets/lcms/engine/admin/resources.scss +8 -7
- data/app/assets/stylesheets/lcms/engine/admin/standards.scss +4 -1
- data/app/assets/stylesheets/lcms/engine/admin/users.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/base/_colors.scss +8 -10
- data/app/assets/stylesheets/lcms/engine/base/_ld-colors.scss +10 -10
- data/app/assets/stylesheets/lcms/engine/components/_assoc-picker.scss +4 -5
- data/app/assets/stylesheets/lcms/engine/components/lesson/_activity.scss +6 -2
- data/app/assets/stylesheets/lcms/engine/components/lesson/_callout.scss +19 -5
- data/app/assets/stylesheets/lcms/engine/components/lesson/_columns.scss +4 -3
- data/app/assets/stylesheets/lcms/engine/components/lesson/_curriculum-map.scss +16 -7
- data/app/assets/stylesheets/lcms/engine/components/lesson/_def.scss +2 -2
- data/app/assets/stylesheets/lcms/engine/components/lesson/_expand.scss +9 -9
- data/app/assets/stylesheets/lcms/engine/components/lesson/_foundational-divider.scss +0 -1
- data/app/assets/stylesheets/lcms/engine/components/lesson/_group.scss +3 -1
- data/app/assets/stylesheets/lcms/engine/components/lesson/_icons.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/components/lesson/_image-wrap.scss +2 -2
- data/app/assets/stylesheets/lcms/engine/components/lesson/_inset.scss +7 -2
- data/app/assets/stylesheets/lcms/engine/components/lesson/_materials.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/components/lesson/_multiple-choice.scss +4 -1
- data/app/assets/stylesheets/lcms/engine/components/lesson/_override.scss +28 -9
- data/app/assets/stylesheets/lcms/engine/components/lesson/_pd.scss +7 -7
- data/app/assets/stylesheets/lcms/engine/components/lesson/_pv.scss +5 -4
- data/app/assets/stylesheets/lcms/engine/components/lesson/_section.scss +10 -3
- data/app/assets/stylesheets/lcms/engine/components/lesson/_selection-control.scss +14 -8
- data/app/assets/stylesheets/lcms/engine/components/lesson/_sidebar.scss +25 -10
- data/app/assets/stylesheets/lcms/engine/components/lesson/_title.scss +3 -1
- data/app/assets/stylesheets/lcms/engine/components/lesson/_unit-map.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/components/material/_material.scss +3 -3
- data/app/assets/stylesheets/lcms/engine/components/material/_overlay.scss +12 -4
- data/app/assets/stylesheets/lcms/engine/components/material/_preview.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/components/support/_survey.scss +3 -1
- data/app/assets/stylesheets/lcms/engine/layout/_footer.scss +29 -11
- data/app/assets/stylesheets/lcms/engine/layout/_header.scss +5 -5
- data/app/assets/stylesheets/lcms/engine/layout/_navigation.scss +4 -6
- data/app/assets/stylesheets/lcms/engine/layout/_page.scss +2 -2
- data/app/assets/stylesheets/lcms/engine/{admin.scss → lcms_engine_admin.scss} +26 -15
- data/app/assets/stylesheets/lcms/engine/lcms_engine_application.scss +9 -0
- data/app/assets/stylesheets/lcms/engine/pdf.scss +5 -26
- data/app/assets/stylesheets/lcms/engine/pdf_plain.scss +5 -23
- data/app/assets/stylesheets/lcms/engine/print/_base.scss +41 -12
- data/app/assets/stylesheets/lcms/engine/print/_cover.scss +12 -12
- data/app/assets/stylesheets/lcms/engine/print/_footer.scss +8 -3
- data/app/assets/stylesheets/lcms/engine/print/_gdoc-base.scss +10 -37
- data/app/assets/stylesheets/lcms/engine/print/_helpers.scss +5 -2
- data/app/assets/stylesheets/lcms/engine/print/_lesson-base.scss +2 -14
- data/app/assets/stylesheets/lcms/engine/print/_material-base.scss +1 -3
- data/app/assets/stylesheets/lcms/engine/print/_print.scss +15 -8
- data/app/assets/stylesheets/lcms/engine/print/_toc.scss +24 -9
- data/app/assets/stylesheets/lcms/engine/print/gdoc/_base-typography.scss +24 -6
- data/app/assets/stylesheets/lcms/engine/print/gdoc/_base.scss +10 -3
- data/app/assets/stylesheets/lcms/engine/print/gdoc/_colors.scss +3 -3
- data/app/assets/stylesheets/lcms/engine/print/gdoc/_header.scss +2 -2
- data/app/assets/stylesheets/lcms/engine/print/gdoc/_helpers.scss +1 -0
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_activity.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_agenda.scss +8 -2
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_callout.scss +16 -6
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_def.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_dialogue.scss +3 -1
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_expand.scss +5 -2
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_image-wrap.scss +5 -3
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_image.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_optbreak.scss +1 -0
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_section.scss +4 -1
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_smp.scss +1 -0
- data/app/assets/stylesheets/lcms/engine/print/gdoc/lesson/_tables.scss +11 -3
- data/app/assets/stylesheets/lcms/engine/print/gdoc/material/_header.scss +5 -2
- data/app/assets/stylesheets/lcms/engine/print/lesson/_base-typography.scss +33 -9
- data/app/assets/stylesheets/lcms/engine/print/lesson/_group.scss +3 -1
- data/app/assets/stylesheets/lcms/engine/print/lesson/_image.scss +3 -1
- data/app/assets/stylesheets/lcms/engine/print/lesson/_materials.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/print/lesson/_pd.scss +8 -4
- data/app/assets/stylesheets/lcms/engine/print/lesson/_section.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/print/material/_header.scss +4 -1
- data/app/assets/stylesheets/lcms/engine/themes/_material.scss +11 -11
- data/app/assets/stylesheets/lcms/engine/utils/_colorcodes.scss +15 -5
- data/app/assets/stylesheets/lcms/engine/utils/_functions.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/utils/_helpers.scss +23 -11
- data/app/assets/stylesheets/lcms/engine/utils/_placeholders.scss +1 -1
- data/app/assets/stylesheets/lcms/engine/utils/_variables.scss +11 -11
- data/app/assets/stylesheets/lcms/engine/vendors/{mathjax.css → mathjax.scss} +0 -0
- data/app/assets/stylesheets/lcms/engine/vendors/react-tagsinput.css +48 -0
- data/app/controllers/concerns/lcms/engine/reimportable.rb +1 -1
- data/app/controllers/lcms/engine/admin/access_codes_controller.rb +8 -3
- data/app/controllers/lcms/engine/admin/admin_controller.rb +5 -39
- data/app/controllers/lcms/engine/admin/association_picker_controller.rb +4 -1
- data/app/controllers/lcms/engine/admin/batch_reimports_controller.rb +2 -2
- data/app/controllers/lcms/engine/admin/curriculums_controller.rb +21 -2
- data/app/controllers/lcms/engine/admin/documents_controller.rb +26 -14
- data/app/controllers/lcms/engine/admin/materials_controller.rb +23 -13
- data/app/controllers/lcms/engine/admin/resource_bulk_edits_controller.rb +2 -2
- data/app/controllers/lcms/engine/admin/resources_controller.rb +9 -7
- data/app/controllers/lcms/engine/admin/settings_controller.rb +1 -1
- data/app/controllers/lcms/engine/admin/standards_controller.rb +2 -2
- data/app/controllers/lcms/engine/admin/users_controller.rb +10 -7
- data/app/controllers/lcms/engine/application_controller.rb +1 -1
- data/app/controllers/lcms/engine/resources_controller.rb +5 -5
- data/app/controllers/lcms/engine/welcome_controller.rb +11 -0
- data/app/entities/lcms/engine/hierarchical_position.rb +1 -2
- data/app/entities/lcms/engine/media_embed.rb +1 -1
- data/app/entities/lcms/engine/pagination.rb +14 -10
- data/app/entities/lcms/engine/roman_numerals.rb +1 -1
- data/app/exceptions/lcms/engine/document_error.rb +8 -0
- data/app/exceptions/lcms/engine/material_error.rb +8 -0
- data/app/helpers/admin/components_helper.rb +1 -1
- data/app/helpers/lcms/engine/path_helper.rb +32 -0
- data/app/helpers/lcms/engine/resource_helper.rb +1 -1
- data/app/helpers/lcms/engine/view_helper.rb +0 -8
- data/app/interactors/lcms/engine/explore_curriculum_interactor.rb +1 -1
- data/app/javascript/components/admin/ImportStatus.jsx +88 -58
- data/app/javascript/components/admin/Initializer.jsx +33 -35
- data/app/javascript/components/admin/MultiSelectedOperation.jsx +43 -19
- data/app/javascript/components/admin/association-picker/AssociationPicker.jsx +68 -48
- data/app/javascript/components/admin/association-picker/AssociationPickerItem.jsx +18 -7
- data/app/javascript/components/admin/association-picker/AssociationPickerResults.jsx +42 -18
- data/app/javascript/components/admin/association-picker/AssociationPickerWindow.jsx +47 -28
- data/app/javascript/components/admin/curriculum/CurriculumEditor.jsx +54 -33
- data/app/javascript/components/admin/curriculum/DirectoryPicker.jsx +80 -53
- data/app/javascript/components/admin/picker/PickerButton.jsx +16 -11
- data/app/javascript/components/admin/picker/pickerModal.jsx +6 -6
- data/app/javascript/components/admin/picker/pickerWindowWrapper.jsx +61 -40
- data/app/javascript/components/admin/resource-picker/ResourcePicker.jsx +54 -40
- data/app/javascript/components/admin/resource-picker/ResourcePickerResource.jsx +14 -3
- data/app/javascript/components/admin/resource-picker/ResourcePickerWindow.jsx +50 -21
- data/app/javascript/components/paginate/PageView.jsx +20 -8
- data/app/javascript/components/paginate/PaginationBoxView.jsx +78 -66
- data/app/javascript/components/paginate/PaginationListView.jsx +59 -45
- data/app/javascript/packs/lcms_engine_admin.js +15 -0
- data/app/javascript/packs/{application.js → lcms_engine_application.js} +5 -4
- data/app/javascript/packs/server_rendering.js +1 -0
- data/app/javascript/vendor/jstree/jstree.min.js +6 -0
- data/app/javascript/vendor/jstree/themes/default/32px.png +0 -0
- data/app/javascript/vendor/jstree/themes/default/40px.png +0 -0
- data/app/javascript/vendor/jstree/themes/default/style.css +1106 -0
- data/app/javascript/vendor/jstree/themes/default/style.min.css +1 -0
- data/app/javascript/vendor/jstree/themes/default/throbber.gif +0 -0
- data/app/javascript/vendor/jstree/themes/default-dark/32px.png +0 -0
- data/app/javascript/vendor/jstree/themes/default-dark/40px.png +0 -0
- data/app/javascript/vendor/jstree/themes/default-dark/style.css +1150 -0
- data/app/javascript/vendor/jstree/themes/default-dark/style.min.css +1 -0
- data/app/javascript/vendor/jstree/themes/default-dark/throbber.gif +0 -0
- data/app/jobs/lcms/engine/document_generate_job.rb +1 -1
- data/app/jobs/lcms/engine/document_generate_pdf_job.rb +5 -5
- data/app/jobs/lcms/engine/material_generate_pdf_job.rb +4 -4
- data/app/models/concerns/lcms/engine/navigable.rb +6 -10
- data/app/models/concerns/lcms/engine/searchable.rb +7 -0
- data/app/models/lcms/engine/document.rb +1 -1
- data/app/models/lcms/engine/resource.rb +1 -1
- data/app/models/lcms/engine/search/repository.rb +1 -1
- data/app/presenters/lcms/engine/content_presenter.rb +1 -1
- data/app/presenters/lcms/engine/curriculum_presenter.rb +21 -18
- data/app/presenters/lcms/engine/document_presenter.rb +3 -1
- data/app/presenters/lcms/engine/resource_presenter.rb +6 -3
- data/app/queries/lcms/engine/admin_documents_query.rb +1 -1
- data/app/queries/lcms/engine/admin_materials_query.rb +11 -2
- data/app/queries/lcms/engine/base_query.rb +1 -1
- data/app/services/lcms/engine/document_build_service.rb +2 -0
- data/app/services/lcms/engine/document_generator.rb +2 -2
- data/app/services/lcms/engine/google/drive_service.rb +7 -15
- data/app/services/lcms/engine/google/script_service.rb +7 -3
- data/app/services/lcms/engine/html_sanitizer.rb +1 -1
- data/app/services/lcms/engine/lti_exporter.rb +1 -1
- data/app/services/lcms/engine/material_preview_generator.rb +1 -1
- data/app/services/lcms/engine/s3_service.rb +14 -2
- data/app/tasks/resource_tasks.rb +2 -2
- data/app/views/layouts/lcms/engine/admin.html.erb +3 -3
- data/app/views/layouts/lcms/engine/application.html.erb +2 -2
- data/app/views/layouts/lcms/engine/lti.html.erb +1 -1
- data/app/views/lcms/engine/admin/access_codes/_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/access_codes/index.html.erb +3 -3
- data/app/views/lcms/engine/admin/batch_reimports/_search_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/curriculums/edit.html.erb +4 -2
- data/app/views/lcms/engine/admin/documents/_reimport.html.erb +1 -1
- data/app/views/lcms/engine/admin/documents/_search_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/documents/import.html.erb +1 -1
- data/app/views/lcms/engine/admin/documents/index.html.erb +5 -3
- data/app/views/lcms/engine/admin/documents/new.html.erb +6 -2
- data/app/views/lcms/engine/admin/materials/_reimport.html.erb +1 -1
- data/app/views/lcms/engine/admin/materials/_search_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/materials/import.html.erb +1 -1
- data/app/views/lcms/engine/admin/materials/index.html.erb +22 -18
- data/app/views/lcms/engine/admin/materials/new.html.erb +5 -1
- data/app/views/lcms/engine/admin/resource_bulk_edits/new.html.erb +1 -1
- data/app/views/lcms/engine/admin/resources/_fields.html.erb +4 -3
- data/app/views/lcms/engine/admin/resources/_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/resources/_search_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/resources/index.html.erb +7 -5
- data/app/views/lcms/engine/admin/shared/_header.html.erb +12 -12
- data/app/views/lcms/engine/admin/standards/_form.html.erb +3 -1
- data/app/views/lcms/engine/admin/standards/_search_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/users/_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/users/_search_form.html.erb +1 -1
- data/app/views/lcms/engine/admin/users/index.html.erb +6 -6
- data/app/views/lcms/engine/pages/not_found.html.erb +5 -0
- data/app/views/lcms/engine/resources/generic.html.erb +0 -4
- data/app/views/lcms/engine/resources/media.html.erb +0 -4
- data/app/views/lcms/engine/resources/show.html.erb +0 -2
- data/config/initializers/airbrake.rb +62 -10
- data/config/initializers/bitly.rb +1 -1
- data/config/initializers/carrier_wave.rb +6 -4
- data/config/initializers/ckeditor.rb +6 -0
- data/config/initializers/elasticsearch.rb +1 -1
- data/config/initializers/resque.rb +2 -2
- data/config/locales/admin/en.yml +0 -1
- data/config/locales/ui/en.yml +1 -0
- data/config/routes.rb +5 -2
- data/db/migrate/.keep +0 -0
- data/db/schema.rb +279 -311
- data/db/seeds.rb +0 -1
- data/docker-compose.ror4.yml +32 -0
- data/docker-compose.yml +6 -3
- data/docs/env-variables.md +40 -40
- data/docs/google-cloud-platform-setup.md +45 -17
- data/docs/how-to-build-and-publish.md +1 -0
- data/lcms-engine.gemspec +21 -15
- data/lib/doc_template/document.rb +3 -4
- data/lib/doc_template/document_toc.rb +2 -2
- data/lib/doc_template/objects/activity_metadata.rb +1 -1
- data/lib/doc_template/objects/toc_helpers.rb +4 -4
- data/lib/doc_template/objects/toc_metadata.rb +4 -6
- data/lib/doc_template/tags/answer_space_tag.rb +1 -1
- data/lib/doc_template/tags/base_tag.rb +2 -2
- data/lib/doc_template/tags/block_tag.rb +1 -1
- data/lib/doc_template/tags/table_tag.rb +1 -1
- data/lib/doc_template/template.rb +1 -1
- data/lib/doc_template.rb +9 -9
- data/lib/document_exporter/gdoc/base.rb +5 -2
- data/lib/document_exporter/pdf/base.rb +1 -1
- data/lib/document_exporter/pdf/document.rb +2 -2
- data/lib/document_exporter/pdf/material.rb +2 -2
- data/lib/document_exporter/pdf/student_material.rb +2 -2
- data/lib/document_exporter/pdf/teacher_material.rb +2 -2
- data/lib/document_renderer/part.rb +1 -3
- data/lib/lcms/engine/engine.rb +10 -9
- data/lib/lcms/engine/version.rb +1 -1
- data/lib/lcms/engine.rb +0 -1
- data/lib/lt/lcms/metadata/context.rb +56 -52
- data/lib/lt/lcms/metadata/service.rb +3 -2
- data/lib/tasks/cloud66.rake +2 -2
- data/lib/tasks/document.rake +4 -4
- data/lib/tasks/google.rake +29 -14
- data/lib/tasks/lcms/engine_tasks.rake +1 -1
- data/package.json +31 -10
- data/postcss.config.js +12 -0
- data/spec/controllers/admin/curriculums_controller_spec.rb +23 -0
- data/spec/controllers/admin/documents_controller_spec.rb +22 -2
- data/spec/controllers/admin/materials_controller_spec.rb +16 -3
- data/spec/controllers/admin/resource_bulk_edit_controller_spec.rb +1 -1
- data/spec/controllers/admin/resources_controller_spec.rb +1 -1
- data/spec/controllers/admin/settings_controller_spec.rb +1 -1
- data/spec/controllers/admin/standards_controller_spec.rb +1 -1
- data/spec/controllers/admin/welcome_controller_spec.rb +12 -10
- data/spec/controllers/resources_controller_spec.rb +3 -3
- data/spec/controllers/welcome_controller_spec.rb +38 -0
- data/spec/dummy/.traceroute.yaml +0 -2
- data/spec/dummy/bin/webpack +18 -0
- data/spec/dummy/bin/webpack-dev-server +18 -0
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/config/initializers/assets.rb +6 -0
- data/spec/dummy/config/lcms-admin.yml +3 -7
- data/spec/dummy/config/routes.rb +6 -0
- data/spec/dummy/db/schema.rb +5 -5
- data/spec/factories/documents.rb +1 -0
- data/spec/factories/downloads.rb +1 -1
- data/spec/factories/resources.rb +2 -2
- data/spec/features/admin/materials/add_material_spec.rb +2 -0
- data/spec/features/admin/users_spec.rb +2 -2
- data/spec/{controllers/admin/admin_controller_spec.rb → helpers/path_helper_spec.rb} +6 -6
- data/spec/lib/doc_template/objects/activity_metadata_spec.rb +1 -1
- data/spec/lib/doc_template/objects/agenda_metadata_spec.rb +2 -0
- data/spec/lib/doc_template/objects/toc_metadata_spec.rb +1 -1
- data/spec/lib/doc_template/tags/page_break_tag_spec.rb +1 -1
- data/spec/lib/doc_template/tags/pd_tag_spec.rb +1 -1
- data/spec/models/document_spec.rb +1 -1
- data/spec/models/standard_spec.rb +2 -0
- data/spec/queries/lcms/engine/admin_materials_query_spec.rb +34 -0
- data/spec/rails_helper.rb +6 -17
- data/spec/services/document_build_service_spec.rb +4 -11
- data/spec/services/s3_service_spec.rb +31 -0
- data/spec/support/concerns/navigable.rb +2 -0
- data/spec/support/routes.rb +4 -0
- data/spec/support/shared_examples/content_tag.rb +4 -4
- data/templates/routes.rb +0 -1
- data/yarn.lock +3412 -2933
- metadata +146 -288
- data/app/assets/stylesheets/lcms/engine/application.scss +0 -36
- data/app/assets/stylesheets/lcms/engine/vendors/jquery.tagsinput.css +0 -1
- data/app/exceptions/components_api_error.rb +0 -4
- data/app/exceptions/document_error.rb +0 -4
- data/app/exceptions/material_error.rb +0 -4
- data/app/javascript/packs/admin.js +0 -14
- data/app/models/lcms/engine/component.rb +0 -88
- data/app/presenters/lcms/engine/social_media_presenter.rb +0 -83
- data/app/views/lcms/engine/shared/_social_sharing.html.erb +0 -22
- data/db/migrate/20200217160930_change_document_parts_to_polymorphic.rb +0 -36
- data/db/migrate/20200218144849_drop_material_parts_table.rb +0 -7
- data/db/migrate/20200422130652_add_reimported_at_to_documents.rb +0 -7
- data/db/migrate/20200429130353_drop_pages.rb +0 -13
- data/db/seeds/pages.seeds.rb +0 -26
- data/lib/document_exporter.rb +0 -6
- data/lib/lcms/engine/migration.rb +0 -16
- data/spec/models/component_spec.rb +0 -60
- data/vendor/assets/javascripts/jquery.tagsinput.js +0 -1
@@ -1,24 +1,24 @@
|
|
1
1
|
$ub-ld-colorcodes: (
|
2
2
|
activity-optional: #fee59e,
|
3
|
-
default-image-bg: transparentize(map-get($ub-colorcodes, default-base), .85),
|
4
|
-
ela-expand-bg: transparentize(map-get($ub-colorcodes, ela-base), .85),
|
5
|
-
ela-toggler-bg: transparentize(map-get($ub-colorcodes, ela-base), .7),
|
6
|
-
ela6-section-bg: transparentize(map-get($ub-colorcodes, ela-base), .85),
|
7
|
-
ela-image-bg: transparentize(map-get($ub-colorcodes, ela-base), .85),
|
3
|
+
default-image-bg: transparentize(map-get($ub-colorcodes, default-base), 0.85),
|
4
|
+
ela-expand-bg: transparentize(map-get($ub-colorcodes, ela-base), 0.85),
|
5
|
+
ela-toggler-bg: transparentize(map-get($ub-colorcodes, ela-base), 0.7),
|
6
|
+
ela6-section-bg: transparentize(map-get($ub-colorcodes, ela-base), 0.85),
|
7
|
+
ela-image-bg: transparentize(map-get($ub-colorcodes, ela-base), 0.85),
|
8
8
|
gls-bg: #fff6cc,
|
9
9
|
material-overlay: #423872,
|
10
10
|
material-thumbnail-border: #ccc,
|
11
|
-
math-activity-bg: transparentize(map-get($ub-colorcodes, math-base), .85),
|
11
|
+
math-activity-bg: transparentize(map-get($ub-colorcodes, math-base), 0.85),
|
12
12
|
math-activity-foundational: #4bb0db,
|
13
13
|
math-activity-foundational-bg: #e4f7ff,
|
14
14
|
math-activity-foundational-disabled-bg: #0088c2,
|
15
15
|
math-activity-foundational-disabled-fg: #99e0ff,
|
16
16
|
math-activity-foundational-guidance-bg: #d5effb,
|
17
17
|
math-activity-foundational-switch-bg: #b0e1f8,
|
18
|
-
math-activity-guidance-bg: transparentize(map-get($ub-colorcodes, math-base), .85),
|
19
|
-
math-expand-bg: transparentize(map-get($ub-colorcodes, math-base), .85),
|
20
|
-
math-toggler-bg: transparentize(map-get($ub-colorcodes, math-base), .7),
|
21
|
-
math-image-bg: transparentize(map-get($ub-colorcodes, math-base), .85),
|
18
|
+
math-activity-guidance-bg: transparentize(map-get($ub-colorcodes, math-base), 0.85),
|
19
|
+
math-expand-bg: transparentize(map-get($ub-colorcodes, math-base), 0.85),
|
20
|
+
math-toggler-bg: transparentize(map-get($ub-colorcodes, math-base), 0.7),
|
21
|
+
math-image-bg: transparentize(map-get($ub-colorcodes, math-base), 0.85),
|
22
22
|
pd-bg: #e8e7ed,
|
23
23
|
pd-bg-dark: #8e89a9,
|
24
24
|
section-optional: #fee59e,
|
@@ -22,14 +22,14 @@
|
|
22
22
|
}
|
23
23
|
|
24
24
|
.o-assocpicker-close {
|
25
|
-
-moz-border-radius: 0 2px 2px 0;
|
26
|
-
-moz-box-sizing: border-box;
|
27
|
-
-webkit-border-radius: 0 2px 2px 0;
|
28
|
-
-webkit-box-sizing: border-box;
|
29
25
|
border-left: 1px solid #d0d0d0;
|
30
26
|
border-radius: 0 2px 2px 0;
|
27
|
+
border-radius: 0 2px 2px 0;
|
28
|
+
border-radius: 0 2px 2px 0;
|
31
29
|
bottom: 0;
|
32
30
|
box-sizing: border-box;
|
31
|
+
box-sizing: border-box;
|
32
|
+
box-sizing: border-box;
|
33
33
|
color: inherit;
|
34
34
|
display: inline-block;
|
35
35
|
font-size: 12px;
|
@@ -59,5 +59,4 @@
|
|
59
59
|
.c-assocpicker-submit {
|
60
60
|
margin: 0 10% 2em;
|
61
61
|
width: 80%;
|
62
|
-
|
63
62
|
}
|
@@ -9,11 +9,11 @@
|
|
9
9
|
@include e(guidance) {
|
10
10
|
@include add-column-padding($x: 1);
|
11
11
|
@include add-gutter(margin, bottom, 1);
|
12
|
-
@include add-top-bottom-padding($y: .5);
|
12
|
+
@include add-top-bottom-padding($y: 0.5);
|
13
13
|
background-color: map-get($ub-ld-colorcodes, math-activity-guidance-bg);
|
14
14
|
|
15
15
|
@include m(title) {
|
16
|
-
@include add-gutter(margin, bottom, .5);
|
16
|
+
@include add-gutter(margin, bottom, 0.5);
|
17
17
|
display: block;
|
18
18
|
|
19
19
|
.o-ld-activity-foundational-skills & {
|
@@ -31,9 +31,11 @@
|
|
31
31
|
margin: 2rem 0;
|
32
32
|
padding: 2rem;
|
33
33
|
|
34
|
+
// stylelint-disable declaration-no-important
|
34
35
|
p {
|
35
36
|
margin: 0 !important;
|
36
37
|
}
|
38
|
+
// stylelint-enable declaration-no-important
|
37
39
|
}
|
38
40
|
|
39
41
|
@include e(source) {
|
@@ -62,6 +64,7 @@
|
|
62
64
|
}
|
63
65
|
}
|
64
66
|
|
67
|
+
// stylelint-disable max-nesting-depth
|
65
68
|
&.c-ld-toc {
|
66
69
|
@include add-gutter(padding, top, 1);
|
67
70
|
border-top: 4px solid map-get($ub-colorcodes, math-base);
|
@@ -78,4 +81,5 @@
|
|
78
81
|
.o-ld-activity-foundational-skills & {
|
79
82
|
background-color: map-get($ub-ld-colorcodes, math-activity-foundational-bg);
|
80
83
|
}
|
84
|
+
// stylelint-enable max-nesting-depth
|
81
85
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.o-ld-callout {
|
2
2
|
@include clearfix;
|
3
|
-
border-left: .125rem solid;
|
3
|
+
border-left: 0.125rem solid;
|
4
4
|
float: right;
|
5
5
|
font: italic 1.25rem / 1.3 $ub-serif;
|
6
6
|
margin: 1.5rem 0 1.5rem 1.5rem;
|
@@ -24,16 +24,30 @@
|
|
24
24
|
@include m(math) {
|
25
25
|
border-color: map-get($ub-colorcodes, math-base);
|
26
26
|
|
27
|
-
&,
|
28
|
-
|
27
|
+
&,
|
28
|
+
*,
|
29
|
+
ul,
|
30
|
+
li,
|
31
|
+
ol {
|
32
|
+
&,
|
33
|
+
* {
|
34
|
+
color: map-get($ub-colorcodes, math-base);
|
35
|
+
}
|
29
36
|
}
|
30
37
|
}
|
31
38
|
|
32
39
|
@include m(ela) {
|
33
40
|
border-color: map-get($ub-colorcodes, ela-base);
|
34
41
|
|
35
|
-
&,
|
36
|
-
|
42
|
+
&,
|
43
|
+
*,
|
44
|
+
ul,
|
45
|
+
li,
|
46
|
+
ol {
|
47
|
+
&,
|
48
|
+
* {
|
49
|
+
color: map-get($ub-colorcodes, ela-base);
|
50
|
+
}
|
37
51
|
}
|
38
52
|
}
|
39
53
|
}
|
@@ -4,12 +4,13 @@
|
|
4
4
|
}
|
5
5
|
|
6
6
|
.o-ld-columns-table {
|
7
|
-
thead,
|
8
|
-
|
7
|
+
thead,
|
8
|
+
tbody {
|
9
|
+
background-color: initial !important; // stylelint-disable-line declaration-no-important
|
9
10
|
border: zero;
|
10
11
|
}
|
11
12
|
|
12
13
|
tr {
|
13
|
-
background-color: initial !important;
|
14
|
+
background-color: initial !important; // stylelint-disable-line declaration-no-important
|
14
15
|
}
|
15
16
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.o-ld-map-bg {
|
2
2
|
@include m(base) {
|
3
3
|
background-color: $ub-white;
|
4
|
-
opacity: .3;
|
4
|
+
opacity: 0.3;
|
5
5
|
}
|
6
6
|
|
7
7
|
@include m(active) {
|
@@ -14,30 +14,39 @@
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
-
|
18
17
|
.o-ld-map-module {
|
18
|
+
// stylelint-disable declaration-no-important
|
19
19
|
@include m(ela) {
|
20
|
-
&,
|
20
|
+
&,
|
21
|
+
&:hover,
|
22
|
+
&:focus {
|
21
23
|
color: map-get($ub-colorcodes, ela-base) !important;
|
22
24
|
}
|
23
25
|
}
|
24
26
|
@include m(math) {
|
25
|
-
&,
|
27
|
+
&,
|
28
|
+
&:hover,
|
29
|
+
&:focus {
|
26
30
|
color: map-get($ub-colorcodes, math-base) !important;
|
27
31
|
}
|
28
32
|
}
|
33
|
+
// stylelint-enable declaration-no-important
|
29
34
|
}
|
30
35
|
|
31
36
|
.o-ld-map-txt-link {
|
32
37
|
@include m(base) {
|
33
|
-
&,
|
38
|
+
&,
|
39
|
+
&:hover,
|
40
|
+
&:focus {
|
34
41
|
color: $ub-white;
|
35
|
-
opacity: .5;
|
42
|
+
opacity: 0.5;
|
36
43
|
}
|
37
44
|
}
|
38
45
|
|
39
46
|
@include m(active) {
|
40
|
-
&,
|
47
|
+
&,
|
48
|
+
&:hover,
|
49
|
+
&:focus {
|
41
50
|
color: $ub-white;
|
42
51
|
opacity: 1;
|
43
52
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.c-ld-keyword {
|
2
2
|
cursor: help;
|
3
|
-
font-weight: bold !important;
|
3
|
+
font-weight: bold !important; // stylelint-disable-line declaration-no-important
|
4
4
|
white-space: nowrap;
|
5
5
|
|
6
6
|
@include m(ela) {
|
@@ -16,7 +16,7 @@
|
|
16
16
|
@include txt-element-strict(ld-tooltip);
|
17
17
|
background: map-get($ub-ld-colorcodes, tooltip-bg);
|
18
18
|
border: 0;
|
19
|
-
box-shadow: 0 0 8px 0 rgba(0,0,0,0.25);
|
19
|
+
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.25);
|
20
20
|
padding: 1rem;
|
21
21
|
|
22
22
|
* {
|
@@ -1,12 +1,4 @@
|
|
1
1
|
.o-ld-expand {
|
2
|
-
&.o-ld-expand-math {
|
3
|
-
background-color: map-get($ub-ld-colorcodes, math-expand-bg);
|
4
|
-
}
|
5
|
-
|
6
|
-
&.o-ld-expand-ela {
|
7
|
-
background-color: map-get($ub-ld-colorcodes, ela-expand-bg);
|
8
|
-
}
|
9
|
-
|
10
2
|
clear: both;
|
11
3
|
|
12
4
|
@include e(content) {
|
@@ -22,7 +14,7 @@
|
|
22
14
|
@include txt-element(button);
|
23
15
|
cursor: pointer;
|
24
16
|
display: block;
|
25
|
-
padding: .75rem 0;
|
17
|
+
padding: 0.75rem 0;
|
26
18
|
text-align: center;
|
27
19
|
|
28
20
|
@include m(hide) {
|
@@ -39,4 +31,12 @@
|
|
39
31
|
background-color: map-get($ub-ld-colorcodes, math-toggler-bg);
|
40
32
|
color: map-get($ub-colorcodes, math-base);
|
41
33
|
}
|
34
|
+
|
35
|
+
&.o-ld-expand-math {
|
36
|
+
background-color: map-get($ub-ld-colorcodes, math-expand-bg);
|
37
|
+
}
|
38
|
+
|
39
|
+
&.o-ld-expand-ela {
|
40
|
+
background-color: map-get($ub-ld-colorcodes, ela-expand-bg);
|
41
|
+
}
|
42
42
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
.o-ld-image-wrap {
|
2
2
|
@include m(math) {
|
3
|
-
@include add-top-bottom-padding(.5);
|
3
|
+
@include add-top-bottom-padding(0.5);
|
4
4
|
@include clearfix;
|
5
5
|
background: $ub-white;
|
6
6
|
display: inline-block;
|
7
7
|
width: 100%;
|
8
8
|
|
9
9
|
> img {
|
10
|
-
height: auto !important;
|
10
|
+
height: auto !important; // stylelint-disable-line declaration-no-important
|
11
11
|
max-width: 70%;
|
12
12
|
}
|
13
13
|
}
|
@@ -5,7 +5,8 @@
|
|
5
5
|
font-weight: normal;
|
6
6
|
}
|
7
7
|
|
8
|
-
ol,
|
8
|
+
ol,
|
9
|
+
ul {
|
9
10
|
margin-bottom: 0;
|
10
11
|
}
|
11
12
|
|
@@ -14,32 +15,49 @@
|
|
14
15
|
}
|
15
16
|
|
16
17
|
ol {
|
17
|
-
margin-left: .25rem;
|
18
|
+
margin-left: 0.25rem;
|
18
19
|
padding-left: 1em;
|
19
|
-
|
20
|
+
|
21
|
+
> li::before {
|
22
|
+
margin-left: -1em;
|
23
|
+
}
|
20
24
|
}
|
21
25
|
|
26
|
+
// stylelint-disable selector-no-qualifying-type
|
22
27
|
ol.c-ld-ol {
|
23
28
|
margin-left: 1.3rem;
|
24
29
|
}
|
30
|
+
// stylelint-enable selector-no-qualifying-type
|
25
31
|
|
26
|
-
thead,
|
32
|
+
thead,
|
33
|
+
tbody,
|
34
|
+
tfoot {
|
35
|
+
border: 0;
|
36
|
+
}
|
27
37
|
|
28
|
-
.indented {
|
38
|
+
.indented {
|
39
|
+
text-indent: $list-side-margin * 2;
|
40
|
+
}
|
29
41
|
|
30
42
|
// TODO: Quick fix, cg&lesson styles separated at pr 622
|
31
43
|
// After merging with 622 should be checked, maybe we don't need this
|
32
|
-
sup,
|
44
|
+
sup,
|
45
|
+
sub {
|
46
|
+
font-size: 75% !important; // stylelint-disable-line declaration-no-important
|
47
|
+
}
|
33
48
|
}
|
34
49
|
|
35
50
|
.c-ld {
|
36
51
|
@include m(ela-2) {
|
52
|
+
// stylelint-disable selector-no-qualifying-type
|
37
53
|
h2.o-ld-title {
|
38
|
-
margin-top: $ub-large-margin * 2 !important;
|
54
|
+
margin-top: $ub-large-margin * 2 !important; // stylelint-disable-line declaration-no-important
|
39
55
|
}
|
56
|
+
// stylelint-enable selector-no-qualifying-type
|
40
57
|
}
|
41
58
|
}
|
42
59
|
|
60
|
+
// stylelint-disable max-nesting-depth
|
43
61
|
.c-ld-table {
|
44
62
|
@include e(wrap) {
|
45
63
|
clear: both;
|
@@ -51,11 +69,12 @@
|
|
51
69
|
background-color: $ub-white;
|
52
70
|
}
|
53
71
|
|
54
|
-
td,
|
72
|
+
td,
|
73
|
+
th {
|
55
74
|
border: 1px solid $ub-hr;
|
56
75
|
|
57
76
|
p {
|
58
|
-
margin-bottom: initial !important;
|
77
|
+
margin-bottom: initial !important; // stylelint-disable-line declaration-no-important
|
59
78
|
}
|
60
79
|
}
|
61
80
|
}
|
@@ -59,7 +59,7 @@
|
|
59
59
|
@include e(title) {
|
60
60
|
@include txt-element(ld-pd-title);
|
61
61
|
|
62
|
-
padding-top: .5rem;
|
62
|
+
padding-top: 0.5rem;
|
63
63
|
|
64
64
|
.o-ld-pd--collapsed & {
|
65
65
|
@include txt-element(ld-pd-title-collapsed);
|
@@ -114,7 +114,7 @@
|
|
114
114
|
@include e(object) {
|
115
115
|
height: 100%;
|
116
116
|
max-width: 100%;
|
117
|
-
position: absolute !important;
|
117
|
+
position: absolute !important; // stylelint-disable-line declaration-no-important
|
118
118
|
width: 100%;
|
119
119
|
}
|
120
120
|
|
@@ -130,7 +130,7 @@
|
|
130
130
|
|
131
131
|
@include e(overlay-bg) {
|
132
132
|
background-color: $ub-primary;
|
133
|
-
opacity: .6;
|
133
|
+
opacity: 0.6;
|
134
134
|
}
|
135
135
|
|
136
136
|
@include e(overlay-icon) {
|
@@ -143,8 +143,8 @@
|
|
143
143
|
}
|
144
144
|
|
145
145
|
.o-ld-cg {
|
146
|
-
@include add-gutter(margin, bottom, .5);
|
147
|
-
@include add-gutter(margin, top, .5);
|
146
|
+
@include add-gutter(margin, bottom, 0.5);
|
147
|
+
@include add-gutter(margin, top, 0.5);
|
148
148
|
@include flex;
|
149
149
|
@include txt-element(ld-pd-cg);
|
150
150
|
|
@@ -165,8 +165,8 @@
|
|
165
165
|
@include e(title) {
|
166
166
|
@include txt-element(ld-pd-cg-title);
|
167
167
|
|
168
|
-
margin-bottom: 1rem !important;
|
169
|
-
margin-top: .5rem !important;
|
168
|
+
margin-bottom: 1rem !important; // stylelint-disable-line declaration-no-important
|
169
|
+
margin-top: 0.5rem !important; // stylelint-disable-line declaration-no-important
|
170
170
|
}
|
171
171
|
|
172
172
|
@include e(thumbnail) {
|
@@ -1,15 +1,16 @@
|
|
1
1
|
.o-ld-pv-content {
|
2
|
-
thead,
|
3
|
-
|
2
|
+
thead,
|
3
|
+
tbody {
|
4
|
+
background-color: initial !important; // stylelint-disable-line declaration-no-important
|
4
5
|
border: zero;
|
5
6
|
}
|
6
7
|
|
7
8
|
tr {
|
8
|
-
background-color: initial !important;
|
9
|
+
background-color: initial !important; // stylelint-disable-line declaration-no-important
|
9
10
|
}
|
10
11
|
|
11
12
|
td {
|
13
|
+
@include add-top-bottom-padding();
|
12
14
|
border: 1px solid;
|
13
|
-
@include add-top-bottom-padding()
|
14
15
|
}
|
15
16
|
}
|
@@ -12,15 +12,22 @@
|
|
12
12
|
@include e(quote) {
|
13
13
|
@include clearfix;
|
14
14
|
border-color: map-get($ub-colorcodes, ela-base);
|
15
|
-
border-left: .125rem solid;
|
15
|
+
border-left: 0.125rem solid;
|
16
16
|
float: right;
|
17
17
|
font: italic 1.25rem / 1.3 $ub-serif;
|
18
18
|
margin: 1.5rem 0 1rem 3.25rem;
|
19
19
|
padding-left: 1.125rem;
|
20
20
|
width: 50%;
|
21
21
|
|
22
|
-
&,
|
23
|
-
|
22
|
+
&,
|
23
|
+
*,
|
24
|
+
ul,
|
25
|
+
li,
|
26
|
+
ol {
|
27
|
+
&,
|
28
|
+
* {
|
29
|
+
color: map-get($ub-colorcodes, ela-base);
|
30
|
+
}
|
24
31
|
}
|
25
32
|
}
|
26
33
|
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
// stylelint-disable max-nesting-depth
|
2
|
+
$shadow-color: rgba(0, 0, 0, 0.3);
|
2
3
|
|
3
4
|
.o-ld-selection {
|
4
5
|
@include flex;
|
@@ -8,7 +9,7 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
8
9
|
@include e(label) {
|
9
10
|
cursor: pointer;
|
10
11
|
font-weight: bold;
|
11
|
-
margin-left: .5em;
|
12
|
+
margin-left: 0.5em;
|
12
13
|
}
|
13
14
|
|
14
15
|
@include e(switch) {
|
@@ -16,7 +17,7 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
16
17
|
cursor: pointer;
|
17
18
|
height: 1.1em;
|
18
19
|
position: relative;
|
19
|
-
top: .1em;
|
20
|
+
top: 0.1em;
|
20
21
|
width: 2.5em;
|
21
22
|
|
22
23
|
&::before,
|
@@ -37,12 +38,12 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
37
38
|
&::after {
|
38
39
|
background-color: currentColor;
|
39
40
|
border-radius: 100%;
|
40
|
-
bottom:
|
41
|
+
bottom: -0.15em;
|
41
42
|
box-shadow: 0 2px 5px $shadow-color;
|
42
|
-
left:
|
43
|
+
left: -0.15em;
|
43
44
|
margin-left: 1.3em;
|
44
|
-
top:
|
45
|
-
transition: margin .15s;
|
45
|
+
top: -0.15em;
|
46
|
+
transition: margin 0.15s;
|
46
47
|
width: 1.3em;
|
47
48
|
}
|
48
49
|
}
|
@@ -52,7 +53,7 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
52
53
|
.o-ld-selection {
|
53
54
|
@include e(switch) {
|
54
55
|
&::after {
|
55
|
-
margin-left: .15em;
|
56
|
+
margin-left: 0.15em;
|
56
57
|
}
|
57
58
|
}
|
58
59
|
}
|
@@ -86,10 +87,12 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
86
87
|
}
|
87
88
|
}
|
88
89
|
|
90
|
+
// stylelint-disable selector-max-compound-selectors
|
89
91
|
.o-material-wrapper,
|
90
92
|
.c-ld-toc > *:not(.u-txt--title-type):not(.o-ld-title) {
|
91
93
|
display: none;
|
92
94
|
}
|
95
|
+
// stylelint-enable selector-max-compound-selectors
|
93
96
|
}
|
94
97
|
}
|
95
98
|
|
@@ -145,12 +148,14 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
145
148
|
}
|
146
149
|
}
|
147
150
|
|
151
|
+
// stylelint-disable selector-max-compound-selectors
|
148
152
|
.o-ld-activity__source,
|
149
153
|
.o-material-wrapper,
|
150
154
|
.o-ld-materials,
|
151
155
|
.c-ld-toc > div > *:not(.u-txt--title-type):not(.o-ld-title):not(.u-txt--ld-activity-teaser) {
|
152
156
|
display: none;
|
153
157
|
}
|
158
|
+
// stylelint-enable selector-max-compound-selectors
|
154
159
|
}
|
155
160
|
}
|
156
161
|
|
@@ -167,6 +172,7 @@ $shadow-color: rgba(0, 0, 0, .3);
|
|
167
172
|
}
|
168
173
|
}
|
169
174
|
|
175
|
+
// stylelint-disable declaration-no-important
|
170
176
|
@include e(title) {
|
171
177
|
@include txt-element(lesson-title);
|
172
178
|
color: map-get($ub-selection, modal-title-fg) !important;
|