@csdsesystems/central-styles 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/Gulpfile.js +0 -56
- package/dependencies/.editorconfig +0 -21
- package/dependencies/.jshintrc +0 -24
- package/dependencies/LICENSE +0 -21
- package/dependencies/README.md +0 -80
- package/dependencies/bower.json +0 -24
- package/dependencies/components.html +0 -2761
- package/dependencies/css/.gitignore +0 -3
- package/dependencies/css/green.png +0 -0
- package/dependencies/css/green@2x.png +0 -0
- package/dependencies/css/red.png +0 -0
- package/dependencies/css/red@2x.png +0 -0
- package/dependencies/css/steelblue.png +0 -0
- package/dependencies/css/steelblue@2x.png +0 -0
- package/dependencies/example.png +0 -0
- package/dependencies/index.html +0 -120
- package/dependencies/layout.html +0 -712
- package/dependencies/package.json +0 -76
- package/dependencies/patterns.html +0 -313
- package/dependencies/scripts/hgt.js +0 -76
- package/dependencies/scripts/scripts/hgt.js +0 -76
- package/dependencies/scripts/scripts/vendor/infinite.min.js +0 -7
- package/dependencies/scripts/scripts/vendor/jquery.waypoints.min.js +0 -7
- package/dependencies/scripts/scripts/vendor/sticky.min.js +0 -7
- package/dependencies/scripts/vendor/infinite.min.js +0 -7
- package/dependencies/scripts/vendor/jquery.waypoints.min.js +0 -7
- package/dependencies/scripts/vendor/sticky.min.js +0 -7
- package/dependencies/styles/hgt-syntax.css +0 -86
- package/dependencies/styles/hgt.css +0 -428
- package/dependencies/styles/styles/hgt-syntax.css +0 -86
- package/dependencies/styles/styles/hgt.css +0 -412
- package/dependencies/styles.html +0 -985
- package/hologram_config.yml +0 -70
- package/images/BottomRightPattern.png +0 -0
- package/images/BottomRightPatternSml.png +0 -0
- package/images/CSDSCertificateLogo.png +0 -0
- package/images/CSDSLogoBlack-Sml.png +0 -0
- package/images/CSDSLogoColour.png +0 -0
- package/images/CSDSLogoColourV2.png +0 -0
- package/images/CSDSLogoWhite-Sml.png +0 -0
- package/images/PCLogoPlaceHolder.png +0 -0
- package/images/PC_certificate-footer.png +0 -0
- package/images/PC_certificate-footer.svg +0 -1
- package/images/PC_certificate-header.png +0 -0
- package/images/PC_certificate-header.svg +0 -1
- package/images/QLD-gov-logo-white.png +0 -0
- package/images/QLD-gov-logo.png +0 -0
- package/images/QLDGovLogoGrey.png +0 -0
- package/images/TopLeftPattern.png +0 -0
- package/images/TopLeftPatternSml.png +0 -0
- package/images/a1.jpg +0 -0
- package/images/a10.jpg +0 -0
- package/images/a2.jpg +0 -0
- package/images/a3.jpg +0 -0
- package/images/a4.jpg +0 -0
- package/images/a5.jpg +0 -0
- package/images/a6.jpg +0 -0
- package/images/a7.jpg +0 -0
- package/images/a8.jpg +0 -0
- package/images/achievements.png +0 -0
- package/images/alert-header-elearning.png +0 -0
- package/images/alert-header-equipment.png +0 -0
- package/images/alert-header-groups.png +0 -0
- package/images/alert-header-payments.png +0 -0
- package/images/alert-icon-groups.png +0 -0
- package/images/angular_logo.png +0 -0
- package/images/applicable_standards.png +0 -0
- package/images/axiom-pattern.png +0 -0
- package/images/background_lp_orange.jpg +0 -0
- package/images/background_pocket.jpg +0 -0
- package/images/bg_tick_wrapper.png +0 -0
- package/images/booking-calendar.png +0 -0
- package/images/booking-rooms.png +0 -0
- package/images/certificate-footer.png +0 -0
- package/images/certificate-footer.svg +0 -1
- package/images/certificate-header.png +0 -0
- package/images/choice-54e367cf104b0-default.png +0 -0
- package/images/courseCategory_alliedHealth.jpeg +0 -0
- package/images/courses/aam.jpg +0 -0
- package/images/courses/acls.jpg +0 -0
- package/images/courses/acrm.jpg +0 -0
- package/images/courses/als.jpg +0 -0
- package/images/courses/apics.jpg +0 -0
- package/images/courses/ason.jpg +0 -0
- package/images/courses/basic-sim.jpg +0 -0
- package/images/courses/bbs.jpg +0 -0
- package/images/courses/bkc.jpg +0 -0
- package/images/courses/bls.jpg +0 -0
- package/images/courses/blt.jpg +0 -0
- package/images/courses/capp.jpg +0 -0
- package/images/courses/chest.jpg +0 -0
- package/images/courses/cld.jpg +0 -0
- package/images/courses/cpc.jpg +0 -0
- package/images/courses/crop.jpg +0 -0
- package/images/courses/crp-oqp.jpg +0 -0
- package/images/courses/defib.jpg +0 -0
- package/images/courses/diabetic-foot.jpg +0 -0
- package/images/courses/ebus.jpg +0 -0
- package/images/courses/emac.jpg +0 -0
- package/images/courses/icr.jpg +0 -0
- package/images/courses/paccman.jpg +0 -0
- package/images/courses/rrcd-a.jpg +0 -0
- package/images/courses/seed.jpg +0 -0
- package/images/courses/spc.jpg +0 -0
- package/images/courses/tasp.jpg +0 -0
- package/images/courses/workshop.jpg +0 -0
- package/images/csds-eLearning-showcase-1.png +0 -0
- package/images/csds-pc-network.jpg +0 -0
- package/images/dashbard4_1.jpg +0 -0
- package/images/dashbard4_2.jpg +0 -0
- package/images/diagmonds-light.png +0 -0
- package/images/duotone.jpg +0 -0
- package/images/email_1.jpg +0 -0
- package/images/email_2.jpg +0 -0
- package/images/email_3.jpg +0 -0
- package/images/empty-state-courses.png +0 -0
- package/images/empty-state-groups.png +0 -0
- package/images/empty-state-orders.png +0 -0
- package/images/empty-state-payments.png +0 -0
- package/images/empty-state-portfolio.png +0 -0
- package/images/equip/airsim-baby.jpg +0 -0
- package/images/equip/airway-management-trainer.jpg +0 -0
- package/images/equip/broncho-boy.jpg +0 -0
- package/images/equip/default-img.jpg +0 -0
- package/images/equip/little-junior.jpg +0 -0
- package/images/equip/resusi-anne-basic.jpg +0 -0
- package/images/equip/simman-3g.jpg +0 -0
- package/images/full_height.jpg +0 -0
- package/images/gallery/1.jpg +0 -0
- package/images/gallery/10.jpg +0 -0
- package/images/gallery/10s.jpg +0 -0
- package/images/gallery/11.jpg +0 -0
- package/images/gallery/11s.jpg +0 -0
- package/images/gallery/12.jpg +0 -0
- package/images/gallery/12s.jpg +0 -0
- package/images/gallery/1s.jpg +0 -0
- package/images/gallery/2.jpg +0 -0
- package/images/gallery/2s.jpg +0 -0
- package/images/gallery/3.jpg +0 -0
- package/images/gallery/3s.jpg +0 -0
- package/images/gallery/4.jpg +0 -0
- package/images/gallery/4s.jpg +0 -0
- package/images/gallery/5.jpg +0 -0
- package/images/gallery/5s.jpg +0 -0
- package/images/gallery/6.jpg +0 -0
- package/images/gallery/6s.jpg +0 -0
- package/images/gallery/7.jpg +0 -0
- package/images/gallery/7s.jpg +0 -0
- package/images/gallery/8.jpg +0 -0
- package/images/gallery/8s.jpg +0 -0
- package/images/gallery/9.jpg +0 -0
- package/images/gallery/9s.jpg +0 -0
- package/images/graphic-email.png +0 -0
- package/images/graphic-healthcare-employee.png +0 -0
- package/images/graphic-healthcare-neither.png +0 -0
- package/images/graphic-healthcare-student.png +0 -0
- package/images/graphic-signup.png +0 -0
- package/images/green.png +0 -0
- package/images/green@2x.png +0 -0
- package/images/header-profile-skin-2 (1).png +0 -0
- package/images/header-profile-skin-2.png +0 -0
- package/images/headphones.jpg +0 -0
- package/images/html_logo.png +0 -0
- package/images/img_course.png +0 -0
- package/images/inspinia/3.png +0 -0
- package/images/inspinia/4.png +0 -0
- package/images/inspinia/avatar_all.png +0 -0
- package/images/inspinia/header-profile-skin-1.png +0 -0
- package/images/inspinia/header-profile-skin-2.png +0 -0
- package/images/inspinia/header-profile-skin-3.png +0 -0
- package/images/inspinia/header-profile.png +0 -0
- package/images/inspinia/header_one.jpg +0 -0
- package/images/inspinia/header_two.jpg +0 -0
- package/images/inspinia/shattered.png +0 -0
- package/images/inspinia/word_map.png +0 -0
- package/images/landing/CSDS-doing-things-differently-white.png +0 -0
- package/images/landing/CSDSLogo.png +0 -0
- package/images/landing/avatar1.jpg +0 -0
- package/images/landing/avatar2.jpg +0 -0
- package/images/landing/avatar3.jpg +0 -0
- package/images/landing/avatar4.jpg +0 -0
- package/images/landing/avatar5.jpg +0 -0
- package/images/landing/avatar6.jpg +0 -0
- package/images/landing/avatar7.jpg +0 -0
- package/images/landing/avatar8.jpg +0 -0
- package/images/landing/avatar9.jpg +0 -0
- package/images/landing/avatar_all.png +0 -0
- package/images/landing/dashboard.png +0 -0
- package/images/landing/header_one.jpg +0 -0
- package/images/landing/header_two.jpg +0 -0
- package/images/landing/iphone.jpg +0 -0
- package/images/landing/laptop.png +0 -0
- package/images/landing/perspective.png +0 -0
- package/images/landing/qldGovLogo.png +0 -0
- package/images/landing/shattered.png +0 -0
- package/images/landing/word_map.png +0 -0
- package/images/logoPlaceHolder.png +0 -0
- package/images/logo_csds_WOD.png +0 -0
- package/images/lp-professionals.png +0 -0
- package/images/map-placeholder.jpg +0 -0
- package/images/meteor_logo.png +0 -0
- package/images/mvc_logo.png +0 -0
- package/images/off_canvas.jpg +0 -0
- package/images/p1.jpg +0 -0
- package/images/p2.jpg +0 -0
- package/images/p3.jpg +0 -0
- package/images/p4.jpg +0 -0
- package/images/p5.jpg +0 -0
- package/images/p6.jpg +0 -0
- package/images/p7.jpg +0 -0
- package/images/p8.jpg +0 -0
- package/images/p_big1.jpg +0 -0
- package/images/p_big2.jpg +0 -0
- package/images/p_big3.jpg +0 -0
- package/images/pattern_centres.png +0 -0
- package/images/pattern_darkPages.png +0 -0
- package/images/pattern_educ.png +0 -0
- package/images/pattern_educ_whiteBG.png +0 -0
- package/images/pattern_white.png +0 -0
- package/images/patterns-error1.png +0 -0
- package/images/patterns-error2.png +0 -0
- package/images/patterns-error3.png +0 -0
- package/images/pcn-learning-solutions.jpg +0 -0
- package/images/pocket-simulation-centre.jpg +0 -0
- package/images/profile.jpg +0 -0
- package/images/profile_big.jpg +0 -0
- package/images/profile_small.jpg +0 -0
- package/images/profile_small2.jpg +0 -0
- package/images/rails_logo.png +0 -0
- package/images/red.png +0 -0
- package/images/red@2x.png +0 -0
- package/images/shop-equipmentloans.jpg +0 -0
- package/images/shop-products.jpg +0 -0
- package/images/signature.png +0 -0
- package/images/signaturePlaceHolder.png +0 -0
- package/images/simshop-bg.jpg +0 -0
- package/images/simshop-head.png +0 -0
- package/images/simshop-head2.png +0 -0
- package/images/steelblue-darkbg.png +0 -0
- package/images/steelblue.png +0 -0
- package/images/steelblue@2x.png +0 -0
- package/images/steelbluesmall.png +0 -0
- package/images/temp-landing-hero.jpg +0 -0
- package/images/wallpaper1.jpg +0 -0
- package/images/wallpaper2.jpg +0 -0
- package/images/wallpaper3.jpg +0 -0
- package/images/wallpaper4.jpg +0 -0
- package/images/zender_logo.png +0 -0
- package/index.html +0 -13
- package/sass/base/_base.scss +0 -931
- package/sass/base/_typography.scss +0 -236
- package/sass/bourbon/_bourbon-deprecated-upcoming.scss +0 -411
- package/sass/bourbon/_bourbon.scss +0 -87
- package/sass/bourbon/addons/_border-color.scss +0 -26
- package/sass/bourbon/addons/_border-radius.scss +0 -48
- package/sass/bourbon/addons/_border-style.scss +0 -25
- package/sass/bourbon/addons/_border-width.scss +0 -25
- package/sass/bourbon/addons/_buttons.scss +0 -64
- package/sass/bourbon/addons/_clearfix.scss +0 -25
- package/sass/bourbon/addons/_ellipsis.scss +0 -30
- package/sass/bourbon/addons/_font-stacks.scss +0 -31
- package/sass/bourbon/addons/_hide-text.scss +0 -27
- package/sass/bourbon/addons/_margin.scss +0 -26
- package/sass/bourbon/addons/_padding.scss +0 -26
- package/sass/bourbon/addons/_position.scss +0 -48
- package/sass/bourbon/addons/_prefixer.scss +0 -66
- package/sass/bourbon/addons/_retina-image.scss +0 -25
- package/sass/bourbon/addons/_size.scss +0 -51
- package/sass/bourbon/addons/_text-inputs.scss +0 -113
- package/sass/bourbon/addons/_timing-functions.scss +0 -34
- package/sass/bourbon/addons/_triangle.scss +0 -63
- package/sass/bourbon/addons/_word-wrap.scss +0 -29
- package/sass/bourbon/css3/_animation.scss +0 -43
- package/sass/bourbon/css3/_appearance.scss +0 -3
- package/sass/bourbon/css3/_backface-visibility.scss +0 -3
- package/sass/bourbon/css3/_background-image.scss +0 -42
- package/sass/bourbon/css3/_background.scss +0 -55
- package/sass/bourbon/css3/_border-image.scss +0 -59
- package/sass/bourbon/css3/_calc.scss +0 -4
- package/sass/bourbon/css3/_columns.scss +0 -47
- package/sass/bourbon/css3/_filter.scss +0 -4
- package/sass/bourbon/css3/_flex-box.scss +0 -287
- package/sass/bourbon/css3/_font-face.scss +0 -24
- package/sass/bourbon/css3/_font-feature-settings.scss +0 -4
- package/sass/bourbon/css3/_hidpi-media-query.scss +0 -10
- package/sass/bourbon/css3/_hyphens.scss +0 -4
- package/sass/bourbon/css3/_image-rendering.scss +0 -14
- package/sass/bourbon/css3/_keyframes.scss +0 -36
- package/sass/bourbon/css3/_linear-gradient.scss +0 -38
- package/sass/bourbon/css3/_perspective.scss +0 -8
- package/sass/bourbon/css3/_placeholder.scss +0 -8
- package/sass/bourbon/css3/_radial-gradient.scss +0 -39
- package/sass/bourbon/css3/_selection.scss +0 -42
- package/sass/bourbon/css3/_text-decoration.scss +0 -19
- package/sass/bourbon/css3/_transform.scss +0 -15
- package/sass/bourbon/css3/_transition.scss +0 -71
- package/sass/bourbon/css3/_user-select.scss +0 -3
- package/sass/bourbon/functions/_assign-inputs.scss +0 -11
- package/sass/bourbon/functions/_contains-falsy.scss +0 -20
- package/sass/bourbon/functions/_contains.scss +0 -26
- package/sass/bourbon/functions/_is-length.scss +0 -11
- package/sass/bourbon/functions/_is-light.scss +0 -21
- package/sass/bourbon/functions/_is-number.scss +0 -11
- package/sass/bourbon/functions/_is-size.scss +0 -13
- package/sass/bourbon/functions/_modular-scale.scss +0 -69
- package/sass/bourbon/functions/_px-to-em.scss +0 -13
- package/sass/bourbon/functions/_px-to-rem.scss +0 -15
- package/sass/bourbon/functions/_shade.scss +0 -24
- package/sass/bourbon/functions/_strip-units.scss +0 -17
- package/sass/bourbon/functions/_tint.scss +0 -24
- package/sass/bourbon/functions/_transition-property-name.scss +0 -22
- package/sass/bourbon/functions/_unpack.scss +0 -27
- package/sass/bourbon/helpers/_convert-units.scss +0 -21
- package/sass/bourbon/helpers/_directional-values.scss +0 -96
- package/sass/bourbon/helpers/_font-source-declaration.scss +0 -43
- package/sass/bourbon/helpers/_gradient-positions-parser.scss +0 -13
- package/sass/bourbon/helpers/_linear-angle-parser.scss +0 -25
- package/sass/bourbon/helpers/_linear-gradient-parser.scss +0 -41
- package/sass/bourbon/helpers/_linear-positions-parser.scss +0 -61
- package/sass/bourbon/helpers/_linear-side-corner-parser.scss +0 -31
- package/sass/bourbon/helpers/_radial-arg-parser.scss +0 -69
- package/sass/bourbon/helpers/_radial-gradient-parser.scss +0 -50
- package/sass/bourbon/helpers/_radial-positions-parser.scss +0 -18
- package/sass/bourbon/helpers/_render-gradients.scss +0 -26
- package/sass/bourbon/helpers/_shape-size-stripper.scss +0 -10
- package/sass/bourbon/helpers/_str-to-num.scss +0 -50
- package/sass/bourbon/settings/_asset-pipeline.scss +0 -7
- package/sass/bourbon/settings/_prefixer.scss +0 -9
- package/sass/bourbon/settings/_px-to-em.scss +0 -1
- package/sass/components/_alerts.scss +0 -300
- package/sass/components/_badges_labels.scss +0 -204
- package/sass/components/_breadcrumbs.scss +0 -65
- package/sass/components/_buttons.scss +0 -769
- package/sass/components/_calendar.scss +0 -301
- package/sass/components/_cards.scss +0 -218
- package/sass/components/_chips.scss +0 -23
- package/sass/components/_comments.scss +0 -129
- package/sass/components/_ibox.scss +0 -722
- package/sass/components/_icons.scss +0 -17
- package/sass/components/_inputs.scss +0 -3
- package/sass/components/_lists.scss +0 -489
- package/sass/components/_modals.scss +0 -260
- package/sass/components/_navigation.scss +0 -596
- package/sass/components/_photo_upload.scss +0 -39
- package/sass/components/_progress_bars.scss +0 -90
- package/sass/components/_sidebar.scss +0 -53
- package/sass/components/_tables.scss +0 -429
- package/sass/components/_timeline.scss +0 -84
- package/sass/components/_widgets.scss +0 -310
- package/sass/components/_wizards.scss +0 -48
- package/sass/components/_wysiwyg.scss +0 -3
- package/sass/inspinia/_animate.scss +0 -2848
- package/sass/inspinia/_badges_labels.scss +0 -67
- package/sass/inspinia/_base.scss +0 -1424
- package/sass/inspinia/_buttons.scss +0 -309
- package/sass/inspinia/_chat.scss +0 -125
- package/sass/inspinia/_custom.scss +0 -6
- package/sass/inspinia/_elements.scss +0 -2632
- package/sass/inspinia/_landing.scss +0 -659
- package/sass/inspinia/_md-skin.scss +0 -400
- package/sass/inspinia/_media.scss +0 -132
- package/sass/inspinia/_metismenu.scss +0 -82
- package/sass/inspinia/_mixins.scss +0 -0
- package/sass/inspinia/_navigation.scss +0 -590
- package/sass/inspinia/_pages.scss +0 -1366
- package/sass/inspinia/_rtl.scss +0 -280
- package/sass/inspinia/_sidebar.scss +0 -195
- package/sass/inspinia/_skins.scss +0 -480
- package/sass/inspinia/_spinners.scss +0 -1018
- package/sass/inspinia/_theme-config.scss +0 -114
- package/sass/inspinia/_top_navigation.scss +0 -132
- package/sass/inspinia/_typography.scss +0 -32
- package/sass/inspinia/_variables.scss +0 -39
- package/sass/layout/_bootstrap.scss +0 -496
- package/sass/layout/_content.scss +0 -31
- package/sass/layout/_forms.scss +0 -911
- package/sass/layout/_media-max-1199.scss +0 -7
- package/sass/layout/_media-max-1200.scss +0 -96
- package/sass/layout/_media-max-1400.scss +0 -7
- package/sass/layout/_media-max-330.scss +0 -5
- package/sass/layout/_media-max-350.scss +0 -38
- package/sass/layout/_media-max-400.scss +0 -51
- package/sass/layout/_media-max-460.scss +0 -81
- package/sass/layout/_media-max-479.scss +0 -32
- package/sass/layout/_media-max-550.scss +0 -47
- package/sass/layout/_media-max-600.scss +0 -64
- package/sass/layout/_media-max-672.scss +0 -6
- package/sass/layout/_media-max-768.scss +0 -81
- package/sass/layout/_media-max-840.scss +0 -11
- package/sass/layout/_media-max-900.scss +0 -5
- package/sass/layout/_media-max-991.scss +0 -18
- package/sass/layout/_media-max-992.scss +0 -48
- package/sass/layout/_media-max-999.scss +0 -35
- package/sass/layout/_media-min-1200.scss +0 -5
- package/sass/layout/_media-min-1201.scss +0 -112
- package/sass/layout/_media-min-1401.scss +0 -29
- package/sass/layout/_media-min-1501.scss +0 -8
- package/sass/layout/_media-min-1601.scss +0 -485
- package/sass/layout/_media-min-480.scss +0 -15
- package/sass/layout/_media-min-672.scss +0 -6
- package/sass/layout/_media-min-768.scss +0 -160
- package/sass/layout/_media-min-820.scss +0 -19
- package/sass/layout/_media-min-880.scss +0 -76
- package/sass/layout/_media-min-993.scss +0 -141
- package/sass/layout/_media.scss +0 -82
- package/sass/layout/_sidebar.scss +0 -29
- package/sass/layout/_top_navigation.scss +0 -37
- package/sass/pages/_pages.scss +0 -4429
- package/sass/plugins/_charts.scss +0 -65
- package/sass/plugins/_dropzone.scss +0 -15
- package/sass/plugins/_icheck.scss +0 -196
- package/sass/plugins/_select2-bootstrap.scss +0 -631
- package/sass/plugins/_skspinner.scss +0 -5
- package/sass/plugins/_sortable.scss +0 -43
- package/sass/plugins/_timepicker.scss +0 -14
- package/sass/plugins/_toastr.scss +0 -53
- package/sass/style.scss +0 -92
- package/sass/styleguide/_components-1-buttons.scss +0 -125
- package/sass/styleguide/_components-badges.scss +0 -62
- package/sass/styleguide/_components-breadcrumbs.scss +0 -30
- package/sass/styleguide/_components-cards.scss +0 -57
- package/sass/styleguide/_components-forms.scss +0 -176
- package/sass/styleguide/_components-ibox.scss +0 -107
- package/sass/styleguide/_components-labels.scss +0 -69
- package/sass/styleguide/_components-lists.scss +0 -274
- package/sass/styleguide/_components-modals.scss +0 -171
- package/sass/styleguide/_components-pagination.scss +0 -27
- package/sass/styleguide/_components-progressBars.scss +0 -82
- package/sass/styleguide/_components-tables.scss +0 -115
- package/sass/styleguide/_components-widgets.scss +0 -105
- package/sass/styleguide/_layout-asana.scss +0 -163
- package/sass/styleguide/_layout-centered.scss +0 -33
- package/sass/styleguide/_layout-itemAction.scss +0 -92
- package/sass/styleguide/_layout-responsive.scss +0 -77
- package/sass/styleguide/_patterns-alerts.scss +0 -62
- package/sass/styleguide/_patterns-dataformats.scss +0 -40
- package/sass/styleguide/_patterns-emptystates.scss +0 -46
- package/sass/styleguide/_patterns-errors.scss +0 -44
- package/sass/styleguide/_section-components.scss +0 -12
- package/sass/styleguide/_section-layout.scss +0 -40
- package/sass/styleguide/_section-patterns.scss +0 -11
- package/sass/styleguide/_section-styles.scss +0 -9
- package/sass/styleguide/_style-1-colors.scss +0 -126
- package/sass/styleguide/_style-2-icons.scss +0 -90
- package/sass/styleguide/_style-3-typography.scss +0 -139
- package/sass/styleguide/_style-4-spacing.scss +0 -85
- package/sass/styleguide/_style-5-borders.scss +0 -56
- package/sass/styleguide/_style-6-helpers.scss +0 -184
- package/sass/styleguide/index.md +0 -31
- package/sass/utilities/_mixins.scss +0 -607
- package/sass/utilities/_variables.scss +0 -118
- package/styleguide-dep/code_example_templates/js_example_template.html.erb +0 -7
- package/styleguide-dep/code_example_templates/jsx_example_template.html.erb +0 -7
- package/styleguide-dep/code_example_templates/markup_example_template.html.erb +0 -10
- package/styleguide-dep/code_example_templates/markup_table_template.html.erb +0 -23
- package/styleguide-dep/css/custom-icheckbox.css +0 -121
- package/styleguide-dep/css/doc.css +0 -165
- package/styleguide-dep/css/steelblue.png +0 -0
- package/styleguide-dep/css/steelblue@2x.png +0 -0
- package/styleguide-dep/js/checkbox.js +0 -6
- package/styleguide-dep/js/custom.js +0 -969
- package/styleguide-dep/js/inspinia.js +0 -297
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_args": [
|
|
3
|
-
[
|
|
4
|
-
"hologram-github-theme@^0.1.4",
|
|
5
|
-
"/var/www/styles"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_from": "hologram-github-theme@>=0.1.4 <0.2.0",
|
|
9
|
-
"_id": "hologram-github-theme@0.1.4",
|
|
10
|
-
"_inCache": true,
|
|
11
|
-
"_installable": true,
|
|
12
|
-
"_location": "/hologram-github-theme",
|
|
13
|
-
"_nodeVersion": "0.12.5",
|
|
14
|
-
"_npmUser": {
|
|
15
|
-
"email": "mathis@fsfe.org",
|
|
16
|
-
"name": "hupf"
|
|
17
|
-
},
|
|
18
|
-
"_npmVersion": "2.11.2",
|
|
19
|
-
"_phantomChildren": {},
|
|
20
|
-
"_requested": {
|
|
21
|
-
"name": "hologram-github-theme",
|
|
22
|
-
"raw": "hologram-github-theme@^0.1.4",
|
|
23
|
-
"rawSpec": "^0.1.4",
|
|
24
|
-
"scope": null,
|
|
25
|
-
"spec": ">=0.1.4 <0.2.0",
|
|
26
|
-
"type": "range"
|
|
27
|
-
},
|
|
28
|
-
"_requiredBy": [
|
|
29
|
-
"#DEV:/"
|
|
30
|
-
],
|
|
31
|
-
"_resolved": "https://registry.npmjs.org/hologram-github-theme/-/hologram-github-theme-0.1.4.tgz",
|
|
32
|
-
"_shasum": "6c6d1926dbc7bced202d84babc10964ef795d138",
|
|
33
|
-
"_shrinkwrap": null,
|
|
34
|
-
"_spec": "hologram-github-theme@^0.1.4",
|
|
35
|
-
"_where": "/var/www/styles",
|
|
36
|
-
"author": {
|
|
37
|
-
"email": "hofer@puzzle.ch",
|
|
38
|
-
"name": "Mathis Hofer"
|
|
39
|
-
},
|
|
40
|
-
"bugs": {
|
|
41
|
-
"url": "https://github.com/wearecube/hologram-github-theme/issues"
|
|
42
|
-
},
|
|
43
|
-
"dependencies": {},
|
|
44
|
-
"description": "A Github Styleguide inspired theme for Hologram",
|
|
45
|
-
"devDependencies": {},
|
|
46
|
-
"directories": {},
|
|
47
|
-
"dist": {
|
|
48
|
-
"shasum": "6c6d1926dbc7bced202d84babc10964ef795d138",
|
|
49
|
-
"tarball": "https://registry.npmjs.org/hologram-github-theme/-/hologram-github-theme-0.1.4.tgz"
|
|
50
|
-
},
|
|
51
|
-
"gitHead": "e1d49c127f759899c1c5def11174d5a76d5ede52",
|
|
52
|
-
"homepage": "https://github.com/wearecube/hologram-github-theme#readme",
|
|
53
|
-
"keywords": [
|
|
54
|
-
"hologram",
|
|
55
|
-
"styleguide",
|
|
56
|
-
"theme"
|
|
57
|
-
],
|
|
58
|
-
"license": "MIT",
|
|
59
|
-
"maintainers": [
|
|
60
|
-
{
|
|
61
|
-
"email": "mathis@fsfe.org",
|
|
62
|
-
"name": "hupf"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"name": "hologram-github-theme",
|
|
66
|
-
"optionalDependencies": {},
|
|
67
|
-
"readme": "ERROR: No README data found!",
|
|
68
|
-
"repository": {
|
|
69
|
-
"type": "git",
|
|
70
|
-
"url": "git+https://github.com/wearecube/hologram-github-theme.git"
|
|
71
|
-
},
|
|
72
|
-
"scripts": {
|
|
73
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
74
|
-
},
|
|
75
|
-
"version": "0.1.4"
|
|
76
|
-
}
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width">
|
|
6
|
-
<title>Patterns – Central Style Guide - Concrete</title>
|
|
7
|
-
|
|
8
|
-
<!-- Styleguide CSS -->
|
|
9
|
-
<link rel="stylesheet" href="styles/hgt-syntax.css">
|
|
10
|
-
<link rel="stylesheet" href="styles/hgt.css">
|
|
11
|
-
|
|
12
|
-
<!-- Source CSS -->
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
|
|
16
|
-
|
|
17
|
-
<link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.min.css">
|
|
18
|
-
|
|
19
|
-
<link rel="stylesheet" href="../styleguide/css/style.css">
|
|
20
|
-
|
|
21
|
-
<link rel="stylesheet" href="../styleguide-dep/css/doc.css">
|
|
22
|
-
|
|
23
|
-
<link rel="stylesheet" href="../styleguide-dep/css/custom-icheckbox.css">
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,700,700italic,400italic,500,500italic">
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</head>
|
|
29
|
-
|
|
30
|
-
<body class="hgt-body">
|
|
31
|
-
<div class="hgt-pagehead">
|
|
32
|
-
<div class="hgt-container">
|
|
33
|
-
<nav class="hgt-pagehead-nav" role="navigation">
|
|
34
|
-
<a href="index.html"
|
|
35
|
-
class="hgt-pagehead-nav-item ">
|
|
36
|
-
Home
|
|
37
|
-
</a>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<a href="components.html"
|
|
41
|
-
class="hgt-pagehead-nav-item ">
|
|
42
|
-
Components
|
|
43
|
-
</a>
|
|
44
|
-
|
|
45
|
-
<a href="layout.html"
|
|
46
|
-
class="hgt-pagehead-nav-item ">
|
|
47
|
-
Layout
|
|
48
|
-
</a>
|
|
49
|
-
|
|
50
|
-
<a href="patterns.html"
|
|
51
|
-
class="hgt-pagehead-nav-item selected">
|
|
52
|
-
Patterns
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
<a href="styles.html"
|
|
56
|
-
class="hgt-pagehead-nav-item ">
|
|
57
|
-
Styles
|
|
58
|
-
</a>
|
|
59
|
-
|
|
60
|
-
</nav>
|
|
61
|
-
|
|
62
|
-
<h1 class="hgt-pagehead-title">Central Style Guide - Concrete</h1>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div class="hgt-styleguide hgt-container">
|
|
67
|
-
<div class="hgt-columns">
|
|
68
|
-
|
|
69
|
-
<div class="hgt-column one-fourth">
|
|
70
|
-
<nav class="hgt-menu">
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<a href="#0_overview-patterns" class="hgt-menu-item">Overview</a>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<a href="#alerts" class="hgt-menu-item">Alerts</a>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<a href="#dataFormats" class="hgt-menu-item">Data formats</a>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<a href="#emptyStates" class="hgt-menu-item">Empty states</a>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
</nav>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<div class="hgt-column three-fourths">
|
|
93
|
-
<div class="hgt-content">
|
|
94
|
-
<h1 id="0_overview-patterns" class="styleguide">Overview</h1>
|
|
95
|
-
|
|
96
|
-
<p class="lead">Over a dozen reusable components built to provide iconography, dropdowns,
|
|
97
|
-
input groups, navigation, alerts, and much more.</p>
|
|
98
|
-
|
|
99
|
-
<h1 id="alerts" class="styleguide">Alerts</h1>
|
|
100
|
-
|
|
101
|
-
<p class="lead">Flash messages, or alerts, inform users of successful or pending actions.
|
|
102
|
-
Use them sparingly. Don’t show more than one at a time.</p>
|
|
103
|
-
<p class="styleguide">A basic alert box is just a transparently-bordered box with a <code>margin-bottom: 20px</code>
|
|
104
|
-
and a <code>padding: 15px</code>. Please do not overwrite these values.</p><div class="codeExample">
|
|
105
|
-
<div class="exampleOutput clear">
|
|
106
|
-
<div class="alert" role="alert">This is a basic alert box.</div>
|
|
107
|
-
|
|
108
|
-
</div>
|
|
109
|
-
<div class="codeBlock">
|
|
110
|
-
<div class="highlight">
|
|
111
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>This is a basic alert box.<span class="nt"></div></span></pre>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
<p class="styleguide">Add <code>.alert-warning</code> or <code>.alert-yellow</code> to the flash message to make it yellow.</p><div class="codeExample">
|
|
116
|
-
<div class="exampleOutput clear">
|
|
117
|
-
<div class="alert alert-warning" role="alert">
|
|
118
|
-
Warning! Something is wrong here.
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
</div>
|
|
122
|
-
<div class="codeBlock">
|
|
123
|
-
<div class="highlight">
|
|
124
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert alert-warning"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>
|
|
125
|
-
Warning! Something is wrong here.
|
|
126
|
-
<span class="nt"></div></span></pre>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
<p class="styleguide">Add <code>.alert-success</code> or <code>.alert-green</code> to the flash message to make it green.</p><div class="codeExample">
|
|
131
|
-
<div class="exampleOutput clear">
|
|
132
|
-
<div class="alert alert-success" role="alert">
|
|
133
|
-
Yes! This is to confirm you've done a great and solid job!
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
</div>
|
|
137
|
-
<div class="codeBlock">
|
|
138
|
-
<div class="highlight">
|
|
139
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert alert-success"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>
|
|
140
|
-
Yes! This is to confirm you've done a great and solid job!
|
|
141
|
-
<span class="nt"></div></span></pre>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
<p class="styleguide">Add <code>.alert-danger</code> or <code>.alert-red</code> to the flash message to make it red.</p><div class="codeExample">
|
|
146
|
-
<div class="exampleOutput clear">
|
|
147
|
-
<div class="alert alert-danger" role="alert">
|
|
148
|
-
Oopss. That's not right, and that's bad of you.
|
|
149
|
-
</div>
|
|
150
|
-
|
|
151
|
-
</div>
|
|
152
|
-
<div class="codeBlock">
|
|
153
|
-
<div class="highlight">
|
|
154
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert alert-danger"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>
|
|
155
|
-
Oopss. That's not right, and that's bad of you.
|
|
156
|
-
<span class="nt"></div></span></pre>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
|
|
161
|
-
<h3>We have also created specific Concrete elements for Central.</h3>
|
|
162
|
-
<div class="codeExample">
|
|
163
|
-
<div class="exampleOutput clear">
|
|
164
|
-
<div class="alert alert-pink" role="alert">
|
|
165
|
-
This is a Repair work order alert
|
|
166
|
-
</div>
|
|
167
|
-
|
|
168
|
-
</div>
|
|
169
|
-
<div class="codeBlock">
|
|
170
|
-
<div class="highlight">
|
|
171
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert alert-pink"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>
|
|
172
|
-
This is a Repair work order alert
|
|
173
|
-
<span class="nt"></div></span></pre>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
<div class="codeExample">
|
|
178
|
-
<div class="exampleOutput clear">
|
|
179
|
-
<div class="alert alert-info" role="alert">
|
|
180
|
-
This is a Service work order alert
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
</div>
|
|
184
|
-
<div class="codeBlock">
|
|
185
|
-
<div class="highlight">
|
|
186
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert alert-info"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>
|
|
187
|
-
This is a Service work order alert
|
|
188
|
-
<span class="nt"></div></span></pre>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
</div>
|
|
192
|
-
<div class="codeExample">
|
|
193
|
-
<div class="exampleOutput clear">
|
|
194
|
-
<div class="alert alert-orange" role="alert">
|
|
195
|
-
This is an Inspection work order alert
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
</div>
|
|
199
|
-
<div class="codeBlock">
|
|
200
|
-
<div class="highlight">
|
|
201
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"alert alert-orange"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">></span>
|
|
202
|
-
This is an Inspection work order alert
|
|
203
|
-
<span class="nt"></div></span></pre>
|
|
204
|
-
</div>
|
|
205
|
-
</div>
|
|
206
|
-
</div>
|
|
207
|
-
|
|
208
|
-
<h1 id="dataFormats" class="styleguide">Data formats</h1>
|
|
209
|
-
|
|
210
|
-
<p class="lead">Different types of numeric and linguistic data are represented using data formats.</p>
|
|
211
|
-
<p class="styleguide">How you format the date and time depends on a few factors.</p><p class="styleguide"><strong>Displaying time</strong><br />
|
|
212
|
-
Within the current day, display the time using lowercase am or pm, without periods. Central uses the 12-hour clock. Use a single am or pm at the end of the range, if both times have the same am/pm. </p><p class="styleguide">Examples of valid formats
|
|
213
|
-
<ul>
|
|
214
|
-
<li>9am - 12pm</li>
|
|
215
|
-
<li>8 - 9am</li>
|
|
216
|
-
<li>8:30am - 5pm</li>
|
|
217
|
-
<li>9 - 11:30am</li><br>
|
|
218
|
-
</ul></p><p class="styleguide"><strong>Displaying date</strong><br />
|
|
219
|
-
If it's within the current calendar year, display the date without the year. Otherwise, display the date and the year. Depending on how important specificity is, we normally don't include the year. </p><p class="styleguide">Examples of valid formats
|
|
220
|
-
<ul>
|
|
221
|
-
<li>10 Jun</li>
|
|
222
|
-
<li>10 Mar, 2016</li>
|
|
223
|
-
<li>15 - 22 May, 2016</li>
|
|
224
|
-
<li>15 Mar - 3 Aug, 2016</li>
|
|
225
|
-
<li>15 Mar, 2016 - 13 Mar 2017</li>
|
|
226
|
-
</ul></p>
|
|
227
|
-
<h1 id="emptyStates" class="styleguide">Empty states</h1>
|
|
228
|
-
|
|
229
|
-
<p class="lead">Empty states occur when a component's content can't be shown or there's nothing to show.</p>
|
|
230
|
-
<p class="styleguide">When a search does not have any results or a component doesn't have anything to show, these are empty states. Although these states aren't typical, they should be designed to prevent user confusion as Central is a task intensive application.</p><p class="styleguide">In a highly complex environment, the usual recommendation is go with the simplest. A good example to denote that there's nothing to see in a section is the following.</p><div class="codeExample">
|
|
231
|
-
<div class="exampleOutput clear">
|
|
232
|
-
<div class="form-group nlc m-b-sm">
|
|
233
|
-
<img src="https://media.giphy.com/media/13d2jHlSlxklVe/giphy.gif"
|
|
234
|
-
style="width: 300px; margin: 0px auto; margin-bottom: 40px;" />
|
|
235
|
-
</div>
|
|
236
|
-
|
|
237
|
-
</div>
|
|
238
|
-
<div class="codeBlock">
|
|
239
|
-
<div class="highlight">
|
|
240
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"form-group nlc m-b-sm"</span><span class="nt">></span>
|
|
241
|
-
<span class="nt"><img</span> <span class="na">src=</span><span class="s">"https://media.giphy.com/media/13d2jHlSlxklVe/giphy.gif"</span>
|
|
242
|
-
<span class="na">style=</span><span class="s">"width: 300px; margin: 0px auto; margin-bottom: 40px;"</span> <span class="nt">/></span>
|
|
243
|
-
<span class="nt"></div></span></pre>
|
|
244
|
-
</div>
|
|
245
|
-
</div>
|
|
246
|
-
</div>
|
|
247
|
-
<p class="styleguide">Of course, that was a joke. The most basic empty state display displays the section icon and a text tagline that follows this format - "No _______ to show". </p><div class="codeExample">
|
|
248
|
-
<div class="exampleOutput clear">
|
|
249
|
-
<div class="form-group nlc m-b-sm text-center">
|
|
250
|
-
<div class="empty-box opaque text-center">
|
|
251
|
-
<h3 class="m-t-lg opaque">
|
|
252
|
-
<i class="fa fa-clock-o fa-3x m-b-xs"></i> <br>
|
|
253
|
-
No bookings to show
|
|
254
|
-
</h3>
|
|
255
|
-
</div>
|
|
256
|
-
|
|
257
|
-
<div class="text-center">
|
|
258
|
-
<button class="btn btn-primary">New booking</button>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
</div>
|
|
263
|
-
<div class="codeBlock">
|
|
264
|
-
<div class="highlight">
|
|
265
|
-
<pre><span class="nt"><div</span> <span class="na">class=</span><span class="s">"form-group nlc m-b-sm text-center"</span><span class="nt">></span>
|
|
266
|
-
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"empty-box opaque text-center"</span><span class="nt">></span>
|
|
267
|
-
<span class="nt"><h3</span> <span class="na">class=</span><span class="s">"m-t-lg opaque"</span><span class="nt">></span>
|
|
268
|
-
<span class="nt"><i</span> <span class="na">class=</span><span class="s">"fa fa-clock-o fa-3x m-b-xs"</span><span class="nt">></i></span> <span class="nt"><br></span>
|
|
269
|
-
No bookings to show
|
|
270
|
-
<span class="nt"></h3></span>
|
|
271
|
-
<span class="nt"></div></span>
|
|
272
|
-
|
|
273
|
-
<span class="nt"><div</span> <span class="na">class=</span><span class="s">"text-center"</span><span class="nt">></span>
|
|
274
|
-
<span class="nt"><button</span> <span class="na">class=</span><span class="s">"btn btn-primary"</span><span class="nt">></span>New booking<span class="nt"></button></span>
|
|
275
|
-
<span class="nt"></div></span>
|
|
276
|
-
<span class="nt"></div></span></pre>
|
|
277
|
-
</div>
|
|
278
|
-
</div>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
</div>
|
|
283
|
-
|
|
284
|
-
<footer class="hgt-footer">
|
|
285
|
-
Built using <a href="https://github.com/trulia/hologram">Hologram</a> and <a href="https://github.com/wearecube/hologram-github-theme">Hologram Github Theme</a>
|
|
286
|
-
</footer>
|
|
287
|
-
</div>
|
|
288
|
-
|
|
289
|
-
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
|
|
290
|
-
<script src="scripts/vendor/jquery.waypoints.min.js"></script>
|
|
291
|
-
<script src="scripts/vendor/sticky.min.js"></script>
|
|
292
|
-
<script src="scripts/vendor/infinite.min.js"></script>
|
|
293
|
-
<script src="scripts/hgt.js"></script>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
|
|
298
|
-
|
|
299
|
-
<script type="text/javascript" src="../node_modules/jqueryui/jquery-ui.min.js"></script>
|
|
300
|
-
|
|
301
|
-
<script type="text/javascript" src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
302
|
-
|
|
303
|
-
<script type="text/javascript" src="../node_modules/icheck/icheck.min.js"></script>
|
|
304
|
-
|
|
305
|
-
<script type="text/javascript" src="../styleguide-dep/js/checkbox.js"></script>
|
|
306
|
-
|
|
307
|
-
<script type="text/javascript" src="../styleguide-dep/js/custom.js"></script>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
</body>
|
|
313
|
-
</html>
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Author: Mathis Hofer <hofer@puzzle.ch>
|
|
3
|
-
*
|
|
4
|
-
* The MIT License (MIT)
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2015 Puzzle ITC GmbH
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
*
|
|
15
|
-
* The above copyright notice and this permission notice shall be included in
|
|
16
|
-
* all copies or substantial portions of the Software.
|
|
17
|
-
*
|
|
18
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
* THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
(function (window, document, $, Waypoint) {
|
|
28
|
-
'use strict';
|
|
29
|
-
|
|
30
|
-
$(document).ready(function () {
|
|
31
|
-
// Menu should be always visible when scrolling
|
|
32
|
-
var $hgtMenu = $('.hgt-menu');
|
|
33
|
-
if ($hgtMenu.length){
|
|
34
|
-
new Waypoint.Sticky({
|
|
35
|
-
element: $hgtMenu[0],
|
|
36
|
-
stuckClass: 'hgt-sticky',
|
|
37
|
-
wrapper: '<div class="hgt-sticky-menu-wrapper" />',
|
|
38
|
-
offset: 5
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function selectMenuItem(hash) {
|
|
43
|
-
$('.hgt-menu-item').removeClass('selected');
|
|
44
|
-
$('.hgt-menu-item[href="' + hash + '"]').addClass('selected');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Update selected menu item on scrolling
|
|
48
|
-
$('.hgt-content > h1').waypoint({
|
|
49
|
-
handler: function() {
|
|
50
|
-
selectMenuItem('#' + $(this.element).attr('id'));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
// Smoothly scroll to clicked menu item content
|
|
55
|
-
$('.hgt-menu-item').on('click', function (event) {
|
|
56
|
-
var hash = $(this).attr('href'),
|
|
57
|
-
pos = Math.min($(hash).offset().top, $(document).height() - $(window).height());
|
|
58
|
-
|
|
59
|
-
event.preventDefault();
|
|
60
|
-
|
|
61
|
-
$('html,body').stop().animate({scrollTop : pos}, 200, function (){
|
|
62
|
-
window.location.hash = hash;
|
|
63
|
-
selectMenuItem(hash);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// Initially select menu item
|
|
68
|
-
if (window.location.hash) {
|
|
69
|
-
setTimeout(function () {
|
|
70
|
-
selectMenuItem(window.location.hash);
|
|
71
|
-
}, 0);
|
|
72
|
-
} else {
|
|
73
|
-
$('.hgt-menu-item:first-child').addClass('selected');
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
})(window, window.document, jQuery, Waypoint);
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Author: Mathis Hofer <hofer@puzzle.ch>
|
|
3
|
-
*
|
|
4
|
-
* The MIT License (MIT)
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2015 Puzzle ITC GmbH
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
*
|
|
15
|
-
* The above copyright notice and this permission notice shall be included in
|
|
16
|
-
* all copies or substantial portions of the Software.
|
|
17
|
-
*
|
|
18
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
* THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
(function (window, document, $, Waypoint) {
|
|
28
|
-
'use strict';
|
|
29
|
-
|
|
30
|
-
$(document).ready(function () {
|
|
31
|
-
// Menu should be always visible when scrolling
|
|
32
|
-
var $hgtMenu = $('.hgt-menu');
|
|
33
|
-
if ($hgtMenu.length){
|
|
34
|
-
new Waypoint.Sticky({
|
|
35
|
-
element: $hgtMenu[0],
|
|
36
|
-
stuckClass: 'hgt-sticky',
|
|
37
|
-
wrapper: '<div class="hgt-sticky-menu-wrapper" />',
|
|
38
|
-
offset: 5
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function selectMenuItem(hash) {
|
|
43
|
-
$('.hgt-menu-item').removeClass('selected');
|
|
44
|
-
$('.hgt-menu-item[href="' + hash + '"]').addClass('selected');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Update selected menu item on scrolling
|
|
48
|
-
$('.hgt-content > h1').waypoint({
|
|
49
|
-
handler: function() {
|
|
50
|
-
selectMenuItem('#' + $(this.element).attr('id'));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
// Smoothly scroll to clicked menu item content
|
|
55
|
-
$('.hgt-menu-item').on('click', function (event) {
|
|
56
|
-
var hash = $(this).attr('href'),
|
|
57
|
-
pos = Math.min($(hash).offset().top, $(document).height() - $(window).height());
|
|
58
|
-
|
|
59
|
-
event.preventDefault();
|
|
60
|
-
|
|
61
|
-
$('html,body').stop().animate({scrollTop : pos}, 200, function (){
|
|
62
|
-
window.location.hash = hash;
|
|
63
|
-
selectMenuItem(hash);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// Initially select menu item
|
|
68
|
-
if (window.location.hash) {
|
|
69
|
-
setTimeout(function () {
|
|
70
|
-
selectMenuItem(window.location.hash);
|
|
71
|
-
}, 0);
|
|
72
|
-
} else {
|
|
73
|
-
$('.hgt-menu-item:first-child').addClass('selected');
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
})(window, window.document, jQuery, Waypoint);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Waypoints Infinite Scroll Shortcut - 3.0.0
|
|
3
|
-
Copyright © 2011-2014 Caleb Troughton
|
|
4
|
-
Licensed under the MIT license.
|
|
5
|
-
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
|
|
6
|
-
*/
|
|
7
|
-
!function(){"use strict";function t(n){this.options=i.extend({},t.defaults,n),this.container=this.options.element,"auto"!==this.options.container&&(this.container=this.options.container),this.$container=i(this.container),this.$more=i(this.options.more),this.$more.length&&(this.setupHandler(),this.waypoint=new o(this.options))}var i=window.jQuery,o=window.Waypoint;t.prototype.setupHandler=function(){this.options.handler=i.proxy(function(){window.setTimeout(i.proxy(function(){this.options.onBeforePageLoad(),this.destroy(),this.$container.addClass(this.options.loadingClass),i.get(i(this.options.more).attr("href"),i.proxy(function(t){var n=i(i.parseHTML(t)),e=n.find(this.options.more);this.$container.append(n.find(this.options.items)),this.$container.removeClass(this.options.loadingClass),e.length||(e=n.filter(this.options.more)),e.length?(this.$more.replaceWith(e),this.$more=e,this.waypoint=new o(this.options)):this.$more.remove(),this.options.onAfterPageLoad()},this),0)},this))},this)},t.prototype.destroy=function(){this.waypoint&&this.waypoint.destroy()},t.defaults={container:"auto",items:".infinite-item",more:".infinite-more-link",offset:"bottom-in-view",loadingClass:"infinite-loading",onBeforePageLoad:i.noop,onAfterPageLoad:i.noop},o.Infinite=t}();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Waypoints - 3.0.0
|
|
3
|
-
Copyright © 2011-2014 Caleb Troughton
|
|
4
|
-
Licensed under the MIT license.
|
|
5
|
-
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
|
|
6
|
-
*/
|
|
7
|
-
!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.destroyAll=function(){var t=[];for(var e in i)t.push(i[e]);for(var o=0,r=t.length;r>o;o++)t[o].destroy()},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=r.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},r=window.Waypoint,n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t,s=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||r.isTouch)&&(e.didScroll=!0,n(t))})},e.prototype.handleResize=function(){r.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],r=o.newScroll>o.oldScroll,n=r?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(n),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element===this.element.window?r.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element===this.element.window?r.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,r=t.length;r>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element===this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var n=t[r];for(var s in this.waypoints[r]){var a,l,h,p,u,c=this.waypoints[r][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[n.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf("%")>-1&&(d=Math.ceil(n.contextDimension*d/100))),a=n.contextScroll-n.contextOffset,c.triggerPoint=w+a-d,l=f<n.oldScroll,h=c.triggerPoint>=n.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(n.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(n.forward),o[c.group.id]=c.group):y&&n.oldScroll>=c.triggerPoint&&(c.queueTrigger(n.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){s&&s(),e.refreshAll()},r.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},r=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],r="up"===i||"left"===i;o.sort(r?e:t);for(var n=0,s=o.length;s>n;n+=1){var a=o[n];(a.options.continuous||n===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=r.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=r.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=r.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},r.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var r=t.extend({},o,{element:this});"string"==typeof r.context&&(r.context=t(this).closest(r.context)[0]),i.push(new e(r))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Waypoints Sticky Element Shortcut - 3.0.0
|
|
3
|
-
Copyright © 2011-2014 Caleb Troughton
|
|
4
|
-
Licensed under the MIT license.
|
|
5
|
-
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
|
|
6
|
-
*/
|
|
7
|
-
!function(){"use strict";function t(s){this.options=e.extend({},i.defaults,t.defaults,s),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,s=i?this.$element.outerHeight(!0):"";this.$wrapper.height(s),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass).unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Waypoints Infinite Scroll Shortcut - 3.0.0
|
|
3
|
-
Copyright © 2011-2014 Caleb Troughton
|
|
4
|
-
Licensed under the MIT license.
|
|
5
|
-
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
|
|
6
|
-
*/
|
|
7
|
-
!function(){"use strict";function t(n){this.options=i.extend({},t.defaults,n),this.container=this.options.element,"auto"!==this.options.container&&(this.container=this.options.container),this.$container=i(this.container),this.$more=i(this.options.more),this.$more.length&&(this.setupHandler(),this.waypoint=new o(this.options))}var i=window.jQuery,o=window.Waypoint;t.prototype.setupHandler=function(){this.options.handler=i.proxy(function(){window.setTimeout(i.proxy(function(){this.options.onBeforePageLoad(),this.destroy(),this.$container.addClass(this.options.loadingClass),i.get(i(this.options.more).attr("href"),i.proxy(function(t){var n=i(i.parseHTML(t)),e=n.find(this.options.more);this.$container.append(n.find(this.options.items)),this.$container.removeClass(this.options.loadingClass),e.length||(e=n.filter(this.options.more)),e.length?(this.$more.replaceWith(e),this.$more=e,this.waypoint=new o(this.options)):this.$more.remove(),this.options.onAfterPageLoad()},this),0)},this))},this)},t.prototype.destroy=function(){this.waypoint&&this.waypoint.destroy()},t.defaults={container:"auto",items:".infinite-item",more:".infinite-more-link",offset:"bottom-in-view",loadingClass:"infinite-loading",onBeforePageLoad:i.noop,onAfterPageLoad:i.noop},o.Infinite=t}();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Waypoints - 3.0.0
|
|
3
|
-
Copyright © 2011-2014 Caleb Troughton
|
|
4
|
-
Licensed under the MIT license.
|
|
5
|
-
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
|
|
6
|
-
*/
|
|
7
|
-
!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.destroyAll=function(){var t=[];for(var e in i)t.push(i[e]);for(var o=0,r=t.length;r>o;o++)t[o].destroy()},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=r.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},r=window.Waypoint,n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t,s=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||r.isTouch)&&(e.didScroll=!0,n(t))})},e.prototype.handleResize=function(){r.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],r=o.newScroll>o.oldScroll,n=r?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(n),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element===this.element.window?r.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element===this.element.window?r.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,r=t.length;r>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element===this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var n=t[r];for(var s in this.waypoints[r]){var a,l,h,p,u,c=this.waypoints[r][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[n.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf("%")>-1&&(d=Math.ceil(n.contextDimension*d/100))),a=n.contextScroll-n.contextOffset,c.triggerPoint=w+a-d,l=f<n.oldScroll,h=c.triggerPoint>=n.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(n.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(n.forward),o[c.group.id]=c.group):y&&n.oldScroll>=c.triggerPoint&&(c.queueTrigger(n.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){s&&s(),e.refreshAll()},r.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},r=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],r="up"===i||"left"===i;o.sort(r?e:t);for(var n=0,s=o.length;s>n;n+=1){var a=o[n];(a.options.continuous||n===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=r.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=r.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=r.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},r.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var r=t.extend({},o,{element:this});"string"==typeof r.context&&(r.context=t(this).closest(r.context)[0]),i.push(new e(r))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Waypoints Sticky Element Shortcut - 3.0.0
|
|
3
|
-
Copyright © 2011-2014 Caleb Troughton
|
|
4
|
-
Licensed under the MIT license.
|
|
5
|
-
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
|
|
6
|
-
*/
|
|
7
|
-
!function(){"use strict";function t(s){this.options=e.extend({},i.defaults,t.defaults,s),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,s=i?this.$element.outerHeight(!0):"";this.$wrapper.height(s),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass).unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}();
|