polymer-paper-rails 0.2.6 → 1.0.0.pre.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/components/iron-a11y-announcer/README.md +29 -0
- data/app/assets/components/iron-a11y-announcer/bower.json +28 -0
- data/app/assets/components/iron-a11y-announcer/demo/index.html +40 -0
- data/app/assets/components/iron-a11y-announcer/demo/x-announces.html +50 -0
- data/app/assets/components/iron-a11y-announcer/index.html +28 -0
- data/app/assets/components/iron-a11y-announcer/iron-a11y-announcer.html +125 -0
- data/app/assets/components/iron-a11y-announcer/test/index.html +26 -0
- data/app/assets/components/iron-a11y-announcer/test/iron-a11y-announcer.html +59 -0
- data/app/assets/components/iron-a11y-keys-behavior/README.md +15 -0
- data/app/assets/components/iron-a11y-keys-behavior/bower.json +27 -0
- data/app/assets/components/iron-a11y-keys-behavior/demo/index.html +21 -0
- data/app/assets/components/iron-a11y-keys-behavior/demo/x-key-aware.html +69 -0
- data/app/assets/components/iron-a11y-keys-behavior/index.html +24 -0
- data/app/assets/components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html +418 -0
- data/app/assets/components/iron-a11y-keys-behavior/test/basic-test.html +248 -0
- data/app/assets/components/{paper-icon-button/metadata.html → iron-a11y-keys-behavior/test/index.html} +18 -10
- data/app/assets/components/iron-autogrow-textarea/README.md +24 -0
- data/app/assets/components/iron-autogrow-textarea/bower.json +37 -0
- data/app/assets/components/iron-autogrow-textarea/demo/index.html +81 -0
- data/app/assets/components/iron-autogrow-textarea/hero.svg +33 -0
- data/app/assets/components/iron-autogrow-textarea/index.html +30 -0
- data/app/assets/components/iron-autogrow-textarea/iron-autogrow-textarea.html +263 -0
- data/app/assets/components/iron-autogrow-textarea/test/basic.html +94 -0
- data/app/assets/components/iron-autogrow-textarea/test/index.html +25 -0
- data/app/assets/components/iron-behaviors/README.md +4 -0
- data/app/assets/components/iron-behaviors/bower.json +25 -0
- data/app/assets/components/iron-behaviors/demo/index.html +49 -0
- data/app/assets/components/iron-behaviors/demo/simple-button.html +70 -0
- data/app/assets/components/iron-behaviors/index.html +27 -0
- data/app/assets/components/iron-behaviors/iron-button-state.html +195 -0
- data/app/assets/components/iron-behaviors/iron-control-state.html +102 -0
- data/app/assets/components/iron-behaviors/test/active-state.html +154 -0
- data/app/assets/components/iron-behaviors/test/disabled-state.html +85 -0
- data/app/assets/components/iron-behaviors/test/focused-state.html +82 -0
- data/app/assets/components/iron-behaviors/test/index.html +25 -0
- data/app/assets/components/iron-behaviors/test/test-elements.html +44 -0
- data/app/assets/components/iron-fit-behavior/README.md +3 -0
- data/app/assets/components/iron-fit-behavior/bower.json +31 -0
- data/app/assets/components/iron-fit-behavior/demo/index.html +42 -0
- data/app/assets/components/iron-fit-behavior/demo/simple-fit.html +42 -0
- data/app/assets/components/iron-fit-behavior/index.html +30 -0
- data/app/assets/components/iron-fit-behavior/iron-fit-behavior.html +230 -0
- data/app/assets/components/iron-fit-behavior/test/index.html +34 -0
- data/app/assets/components/iron-fit-behavior/test/iron-fit-behavior.html +332 -0
- data/app/assets/components/iron-fit-behavior/test/test-fit.html +42 -0
- data/app/assets/components/iron-flex-layout/README.md +4 -0
- data/app/assets/components/iron-flex-layout/bower.json +21 -0
- data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
- data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
- data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
- data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
- data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
- data/app/assets/components/iron-form-element-behavior/README.md +2 -0
- data/app/assets/components/iron-form-element-behavior/bower.json +27 -0
- data/app/assets/components/iron-form-element-behavior/demo/index.html +53 -0
- data/app/assets/components/iron-form-element-behavior/demo/simple-element.html +27 -0
- data/app/assets/components/iron-form-element-behavior/demo/simple-form.html +42 -0
- data/app/assets/components/iron-form-element-behavior/index.html +30 -0
- data/app/assets/components/iron-form-element-behavior/iron-form-element-behavior.html +50 -0
- data/app/assets/components/iron-icon/README.md +56 -0
- data/app/assets/components/iron-icon/bower.json +29 -0
- data/app/assets/components/iron-icon/demo/index.html +28 -0
- data/app/assets/components/iron-icon/demo/location.png +0 -0
- data/app/assets/components/iron-icon/hero.svg +19 -0
- data/app/assets/components/iron-icon/index.html +26 -0
- data/app/assets/components/iron-icon/iron-icon.html +187 -0
- data/app/assets/components/iron-icon/test/index.html +31 -0
- data/app/assets/components/iron-icon/test/iron-icon.html +120 -0
- data/app/assets/components/iron-icons/README.md +8 -0
- data/app/assets/components/{core-icons → iron-icons}/av-icons.html +19 -11
- data/app/assets/components/iron-icons/bower.json +37 -0
- data/app/assets/components/{core-icons → iron-icons}/communication-icons.html +14 -9
- data/app/assets/components/iron-icons/demo/index.html +132 -0
- data/app/assets/components/{core-icons → iron-icons}/device-icons.html +13 -9
- data/app/assets/components/{core-icons → iron-icons}/editor-icons.html +8 -5
- data/app/assets/components/{core-icons → iron-icons}/hardware-icons.html +11 -6
- data/app/assets/components/iron-icons/hero.svg +35 -0
- data/app/assets/components/{core-icons → iron-icons}/image-icons.html +23 -11
- data/app/assets/components/{core-menu/core-submenu.css → iron-icons/index.html} +14 -32
- data/app/assets/components/{core-icons/core-icons.html → iron-icons/iron-icons.html} +60 -35
- data/app/assets/components/{core-icons → iron-icons}/maps-icons.html +13 -12
- data/app/assets/components/{core-icons → iron-icons}/notification-icons.html +20 -7
- data/app/assets/components/{core-icons → iron-icons}/social-icons.html +6 -5
- data/app/assets/components/iron-iconset-svg/README.md +4 -0
- data/app/assets/components/iron-iconset-svg/bower.json +27 -0
- data/app/assets/components/iron-iconset-svg/demo/index.html +65 -0
- data/app/assets/components/{core-iconset-svg → iron-iconset-svg/demo}/svg-sample-icons.html +12 -11
- data/app/assets/components/iron-iconset-svg/index.html +26 -0
- data/app/assets/components/iron-iconset-svg/iron-iconset-svg.html +191 -0
- data/app/assets/components/iron-iconset-svg/test/index.html +30 -0
- data/app/assets/components/iron-iconset-svg/test/iron-iconset-svg.html +107 -0
- data/app/assets/components/iron-input/README.md +16 -0
- data/app/assets/components/iron-input/bower.json +36 -0
- data/app/assets/components/iron-input/demo/index.html +87 -0
- data/app/assets/components/iron-input/hero.svg +19 -0
- data/app/assets/components/iron-input/index.html +30 -0
- data/app/assets/components/iron-input/iron-input.html +235 -0
- data/app/assets/components/iron-input/test/index.html +24 -0
- data/app/assets/components/iron-input/test/iron-input.html +139 -0
- data/app/assets/components/iron-input/test/letters-only.html +30 -0
- data/app/assets/components/iron-media-query/README.md +11 -0
- data/app/assets/components/iron-media-query/bower.json +30 -0
- data/app/assets/components/iron-media-query/demo/index.html +38 -0
- data/app/assets/components/iron-media-query/hero.svg +29 -0
- data/app/assets/components/iron-media-query/index.html +29 -0
- data/app/assets/components/iron-media-query/iron-media-query.html +84 -0
- data/app/assets/components/iron-media-query/test/basic.html +71 -0
- data/app/assets/components/iron-media-query/test/index.html +30 -0
- data/app/assets/components/iron-menu-behavior/README.md +3 -0
- data/app/assets/components/iron-menu-behavior/bower.json +32 -0
- data/app/assets/components/iron-menu-behavior/demo/index.html +100 -0
- data/app/assets/components/iron-menu-behavior/demo/simple-menu.html +50 -0
- data/app/assets/components/iron-menu-behavior/demo/simple-menubar.html +54 -0
- data/app/assets/components/iron-menu-behavior/index.html +30 -0
- data/app/assets/components/iron-menu-behavior/iron-menu-behavior.html +214 -0
- data/app/assets/components/iron-menu-behavior/iron-menubar-behavior.html +65 -0
- data/app/assets/components/iron-menu-behavior/test/index.html +35 -0
- data/app/assets/components/iron-menu-behavior/test/iron-menu-behavior.html +108 -0
- data/app/assets/components/iron-menu-behavior/test/iron-menubar-behavior.html +108 -0
- data/app/assets/components/iron-menu-behavior/test/test-menu.html +40 -0
- data/app/assets/components/iron-menu-behavior/test/test-menubar.html +40 -0
- data/app/assets/components/iron-meta/README.md +46 -0
- data/app/assets/components/iron-meta/bower.json +28 -0
- data/app/assets/components/iron-meta/demo/index.html +45 -0
- data/app/assets/components/iron-meta/hero.svg +33 -0
- data/app/assets/components/iron-meta/index.html +27 -0
- data/app/assets/components/iron-meta/iron-meta.html +352 -0
- data/app/assets/components/iron-meta/test/basic.html +48 -0
- data/app/assets/components/iron-meta/test/index.html +30 -0
- data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
- data/app/assets/components/iron-overlay-behavior/README.md +11 -0
- data/app/assets/components/iron-overlay-behavior/bower.json +36 -0
- data/app/assets/components/iron-overlay-behavior/demo/index.html +149 -0
- data/app/assets/components/iron-overlay-behavior/demo/simple-overlay.html +50 -0
- data/app/assets/components/iron-overlay-behavior/index.html +30 -0
- data/app/assets/components/iron-overlay-behavior/iron-overlay-backdrop.html +132 -0
- data/app/assets/components/iron-overlay-behavior/iron-overlay-behavior.html +432 -0
- data/app/assets/components/iron-overlay-behavior/iron-overlay-manager.html +107 -0
- data/app/assets/components/iron-overlay-behavior/test/index.html +34 -0
- data/app/assets/components/iron-overlay-behavior/test/iron-overlay-behavior.html +314 -0
- data/app/assets/components/iron-overlay-behavior/test/test-overlay.html +49 -0
- data/app/assets/components/iron-range-behavior/README.md +4 -0
- data/app/assets/components/iron-range-behavior/bower.json +30 -0
- data/app/assets/components/iron-range-behavior/demo/index.html +76 -0
- data/app/assets/components/iron-range-behavior/index.html +24 -0
- data/app/assets/components/iron-range-behavior/iron-range-behavior.html +101 -0
- data/app/assets/components/iron-range-behavior/test/basic.html +119 -0
- data/app/assets/components/iron-range-behavior/test/index.html +25 -0
- data/app/assets/components/iron-resizable-behavior/README.md +16 -0
- data/app/assets/components/iron-resizable-behavior/bower.json +26 -0
- data/app/assets/components/iron-resizable-behavior/demo/index.html +29 -0
- data/app/assets/components/iron-resizable-behavior/demo/src/x-app.html +114 -0
- data/app/assets/components/iron-resizable-behavior/index.html +25 -0
- data/app/assets/components/iron-resizable-behavior/iron-resizable-behavior.html +139 -0
- data/app/assets/components/iron-resizable-behavior/test/basic.html +263 -0
- data/app/assets/components/{core-overlay/core-key-helper.html → iron-resizable-behavior/test/index.html} +20 -11
- data/app/assets/components/iron-resizable-behavior/test/test-elements.html +143 -0
- data/app/assets/components/iron-selector/README.md +50 -0
- data/app/assets/components/iron-selector/bower.json +31 -0
- data/app/assets/components/iron-selector/demo/index.html +66 -0
- data/app/assets/components/iron-selector/index.html +28 -0
- data/app/assets/components/iron-selector/iron-multi-selectable.html +120 -0
- data/app/assets/components/iron-selector/iron-selectable.html +307 -0
- data/app/assets/components/iron-selector/iron-selection.html +115 -0
- data/app/assets/components/iron-selector/iron-selector.html +71 -0
- data/app/assets/components/iron-selector/test/activate-event.html +138 -0
- data/app/assets/components/iron-selector/test/basic.html +150 -0
- data/app/assets/components/iron-selector/test/content-element.html +43 -0
- data/app/assets/components/iron-selector/test/content.html +168 -0
- data/app/assets/components/iron-selector/test/index.html +36 -0
- data/app/assets/components/iron-selector/test/multi.html +135 -0
- data/app/assets/components/iron-selector/test/next-previous.html +134 -0
- data/app/assets/components/iron-selector/test/selected-attribute.html +72 -0
- data/app/assets/components/iron-selector/test/template-repeat.html +110 -0
- data/app/assets/components/iron-validatable-behavior/README.md +3 -0
- data/app/assets/components/iron-validatable-behavior/bower.json +35 -0
- data/app/assets/components/iron-validatable-behavior/demo/cats-only.html +46 -0
- data/app/assets/components/iron-validatable-behavior/demo/index.html +71 -0
- data/app/assets/components/iron-validatable-behavior/demo/validatable-input.html +46 -0
- data/app/assets/components/iron-validatable-behavior/index.html +30 -0
- data/app/assets/components/iron-validatable-behavior/iron-validatable-behavior.html +101 -0
- data/app/assets/components/iron-validatable-behavior/test/index.html +35 -0
- data/app/assets/components/iron-validatable-behavior/test/iron-validatable-behavior.html +52 -0
- data/app/assets/components/iron-validatable-behavior/test/test-validatable.html +28 -0
- data/app/assets/components/neon-animation/README.md +304 -0
- data/app/assets/components/neon-animation/animations/cascaded-animation.html +84 -0
- data/app/assets/components/neon-animation/animations/fade-in-animation.html +49 -0
- data/app/assets/components/neon-animation/animations/fade-out-animation.html +49 -0
- data/app/assets/components/neon-animation/animations/hero-animation.html +83 -0
- data/app/assets/components/neon-animation/animations/opaque-animation.html +46 -0
- data/app/assets/components/neon-animation/animations/ripple-animation.html +92 -0
- data/app/assets/components/neon-animation/animations/scale-down-animation.html +65 -0
- data/app/assets/components/neon-animation/animations/scale-up-animation.html +58 -0
- data/app/assets/components/neon-animation/animations/slide-down-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-from-left-animation.html +60 -0
- data/app/assets/components/neon-animation/animations/slide-from-right-animation.html +60 -0
- data/app/assets/components/neon-animation/animations/slide-left-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-right-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-up-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/transform-animation.html +61 -0
- data/app/assets/components/neon-animation/bower.json +51 -0
- data/app/assets/components/neon-animation/demo/declarative/index.html +108 -0
- data/app/assets/components/neon-animation/demo/doc/basic.html +47 -0
- data/app/assets/components/neon-animation/demo/doc/my-animatable.html +73 -0
- data/app/assets/components/neon-animation/demo/doc/my-dialog.html +97 -0
- data/app/assets/components/neon-animation/demo/doc/types.html +53 -0
- data/app/assets/components/neon-animation/demo/dropdown/animated-dropdown.html +97 -0
- data/app/assets/components/neon-animation/demo/dropdown/index.html +54 -0
- data/app/assets/components/neon-animation/demo/grid/animated-grid.html +166 -0
- data/app/assets/components/neon-animation/demo/grid/fullsize-page-with-card.html +124 -0
- data/app/assets/components/neon-animation/demo/grid/index.html +70 -0
- data/app/assets/components/neon-animation/demo/index.html +6 -0
- data/app/assets/components/neon-animation/demo/list/full-view.html +122 -0
- data/app/assets/components/neon-animation/demo/list/index.html +29 -0
- data/app/assets/components/neon-animation/demo/list/list-demo.html +112 -0
- data/app/assets/components/neon-animation/demo/list/list-view.html +127 -0
- data/app/assets/components/neon-animation/demo/load/animated-grid.html +147 -0
- data/app/assets/components/neon-animation/demo/load/full-page.html +86 -0
- data/app/assets/components/neon-animation/demo/load/index.html +45 -0
- data/app/assets/components/neon-animation/demo/reprojection/animated-grid.html +166 -0
- data/app/assets/components/neon-animation/demo/reprojection/fullsize-page-with-card.html +124 -0
- data/app/assets/components/neon-animation/demo/reprojection/index.html +66 -0
- data/app/assets/components/neon-animation/demo/reprojection/reprojected-pages.html +42 -0
- data/app/assets/components/neon-animation/demo/shared.css +40 -0
- data/app/assets/components/neon-animation/demo/tiles/circles-page.html +110 -0
- data/app/assets/components/neon-animation/demo/tiles/index.html +77 -0
- data/app/assets/components/neon-animation/demo/tiles/squares-page.html +104 -0
- data/app/assets/components/neon-animation/guides/neon-animation.md +313 -0
- data/app/assets/components/neon-animation/index.html +30 -0
- data/app/assets/components/neon-animation/neon-animatable-behavior.html +156 -0
- data/app/assets/components/neon-animation/neon-animatable.html +54 -0
- data/app/assets/components/neon-animation/neon-animated-pages.html +208 -0
- data/app/assets/components/neon-animation/neon-animation-behavior.html +88 -0
- data/app/assets/components/neon-animation/neon-animation-runner-behavior.html +110 -0
- data/app/assets/components/neon-animation/neon-animation.html +17 -0
- data/app/assets/components/neon-animation/neon-animations.html +25 -0
- data/app/assets/components/neon-animation/neon-shared-element-animatable-behavior.html +37 -0
- data/app/assets/components/neon-animation/neon-shared-element-animation-behavior.html +66 -0
- data/app/assets/components/{core-collapse/core-collapse.css → neon-animation/web-animations.html} +5 -10
- data/app/assets/components/paper-behaviors/README.md +4 -0
- data/app/assets/components/paper-behaviors/bower.json +39 -0
- data/app/assets/components/paper-behaviors/demo/index.html +57 -0
- data/app/assets/components/paper-behaviors/demo/paper-button.html +71 -0
- data/app/assets/components/paper-behaviors/demo/paper-radio-button.html +116 -0
- data/app/assets/components/paper-behaviors/index.html +26 -0
- data/app/assets/components/paper-behaviors/paper-button-behavior.html +55 -0
- data/app/assets/components/paper-behaviors/paper-inky-focus-behavior.html +44 -0
- data/app/assets/components/paper-behaviors/test/index.html +26 -0
- data/app/assets/components/paper-behaviors/test/paper-button-behavior.html +82 -0
- data/app/assets/components/paper-behaviors/test/paper-radio-button-behavior.html +62 -0
- data/app/assets/components/paper-behaviors/test/test-button.html +34 -0
- data/app/assets/components/paper-behaviors/test/test-radio-button.html +41 -0
- data/app/assets/components/paper-button/README.md +45 -0
- data/app/assets/components/paper-button/bower.json +39 -0
- data/app/assets/components/paper-button/demo/index.html +158 -0
- data/app/assets/components/paper-button/index.html +26 -0
- data/app/assets/components/paper-button/paper-button.html +113 -133
- data/app/assets/components/paper-button/test/index.html +25 -0
- data/app/assets/components/paper-button/test/paper-button.html +83 -0
- data/app/assets/components/paper-checkbox/README.md +31 -0
- data/app/assets/components/paper-checkbox/bower.json +37 -0
- data/app/assets/components/paper-checkbox/demo/index.html +94 -0
- data/app/assets/components/paper-checkbox/index.html +30 -0
- data/app/assets/components/paper-checkbox/paper-checkbox.css +141 -136
- data/app/assets/components/paper-checkbox/paper-checkbox.html +163 -102
- data/app/assets/components/paper-checkbox/test/basic.html +101 -0
- data/app/assets/components/paper-checkbox/test/index.html +24 -0
- data/app/assets/components/paper-dialog/README.md +3 -0
- data/app/assets/components/paper-dialog/bower.json +35 -0
- data/app/assets/components/paper-dialog/demo/index.html +158 -0
- data/app/assets/components/paper-dialog/hero.svg +58 -0
- data/app/assets/components/paper-dialog/index.html +30 -0
- data/app/assets/components/paper-dialog/paper-dialog.html +87 -66
- data/app/assets/components/paper-dialog/test/index.html +34 -0
- data/app/assets/components/paper-dialog/test/paper-dialog.html +53 -0
- data/app/assets/components/paper-dialog-behavior/README.md +24 -0
- data/app/assets/components/paper-dialog-behavior/bower.json +37 -0
- data/app/assets/components/paper-dialog-behavior/demo/index.html +96 -0
- data/app/assets/components/paper-dialog-behavior/demo/simple-dialog.html +42 -0
- data/app/assets/components/paper-dialog-behavior/hero.svg +51 -0
- data/app/assets/components/paper-dialog-behavior/index.html +30 -0
- data/app/assets/components/paper-dialog-behavior/paper-dialog-behavior.html +236 -0
- data/app/assets/components/paper-dialog-behavior/paper-dialog-common.css +58 -0
- data/app/assets/components/paper-dialog-behavior/test/index.html +34 -0
- data/app/assets/components/paper-dialog-behavior/test/paper-dialog-behavior.html +217 -0
- data/app/assets/components/paper-dialog-behavior/test/test-dialog.html +42 -0
- data/app/assets/components/paper-dialog-scrollable/README.md +8 -0
- data/app/assets/components/paper-dialog-scrollable/bower.json +36 -0
- data/app/assets/components/paper-dialog-scrollable/demo/index.html +290 -0
- data/app/assets/components/paper-dialog-scrollable/hero.svg +69 -0
- data/app/assets/components/paper-dialog-scrollable/index.html +30 -0
- data/app/assets/components/paper-dialog-scrollable/paper-dialog-scrollable.html +150 -0
- data/app/assets/components/paper-dialog-scrollable/test/index.html +34 -0
- data/app/assets/components/paper-dialog-scrollable/test/paper-dialog-scrollable.html +171 -0
- data/app/assets/components/paper-drawer-panel/README.md +71 -0
- data/app/assets/components/paper-drawer-panel/bower.json +33 -0
- data/app/assets/components/paper-drawer-panel/demo/index.html +85 -0
- data/app/assets/components/paper-drawer-panel/hero.svg +21 -0
- data/app/assets/components/paper-drawer-panel/index.html +29 -0
- data/app/assets/components/{core-drawer-panel/core-drawer-panel.css → paper-drawer-panel/paper-drawer-panel.css} +33 -51
- data/app/assets/components/paper-drawer-panel/paper-drawer-panel.html +585 -0
- data/app/assets/components/paper-elements/README.md +21 -0
- data/app/assets/components/paper-elements/bower.json +51 -0
- data/app/assets/components/paper-fab/README.md +44 -0
- data/app/assets/components/paper-fab/bower.json +39 -0
- data/app/assets/components/paper-fab/demo/index.html +93 -0
- data/app/assets/components/paper-fab/index.html +24 -0
- data/app/assets/components/paper-fab/paper-fab.html +119 -140
- data/app/assets/components/paper-fab/test/a11y.html +71 -0
- data/app/assets/components/paper-fab/test/basic.html +76 -0
- data/app/assets/components/paper-fab/test/index.html +26 -0
- data/app/assets/components/paper-header-panel/README.md +105 -0
- data/app/assets/components/paper-header-panel/bower.json +28 -0
- data/app/assets/components/paper-header-panel/demo/index.html +148 -0
- data/app/assets/components/paper-header-panel/hero.svg +38 -0
- data/app/assets/components/paper-header-panel/index.html +36 -0
- data/app/assets/components/paper-header-panel/paper-header-panel.html +496 -0
- data/app/assets/components/paper-header-panel/test/basic.html +156 -0
- data/app/assets/components/paper-header-panel/test/index.html +34 -0
- data/app/assets/components/paper-icon-button/README.md +49 -0
- data/app/assets/components/paper-icon-button/bower.json +33 -0
- data/app/assets/components/paper-icon-button/demo/index.html +154 -0
- data/app/assets/components/paper-icon-button/index.html +23 -0
- data/app/assets/components/paper-icon-button/paper-icon-button.html +86 -99
- data/app/assets/components/paper-icon-button/test/a11y.html +69 -0
- data/app/assets/components/paper-icon-button/test/basic.html +77 -0
- data/app/assets/components/paper-icon-button/test/index.html +26 -0
- data/app/assets/components/paper-input/README.md +5 -0
- data/app/assets/components/{core-menu/core-menu.css → paper-input/all-imports.html} +6 -12
- data/app/assets/components/paper-input/bower.json +44 -0
- data/app/assets/components/paper-input/demo/index.html +96 -0
- data/app/assets/components/paper-input/demo/ssn-input.html +94 -0
- data/app/assets/components/paper-input/demo/ssn-validator.html +31 -0
- data/app/assets/components/paper-input/hero.svg +19 -0
- data/app/assets/components/paper-input/index.html +28 -0
- data/app/assets/components/paper-input/paper-input-addon-behavior.html +47 -0
- data/app/assets/components/paper-input/paper-input-behavior.html +317 -0
- data/app/assets/components/paper-input/paper-input-char-counter.html +95 -0
- data/app/assets/components/paper-input/paper-input-container.html +495 -0
- data/app/assets/components/paper-input/paper-input-error.html +99 -0
- data/app/assets/components/paper-input/paper-input.html +96 -115
- data/app/assets/components/paper-input/paper-textarea.html +106 -0
- data/app/assets/components/paper-input/test/index.html +28 -0
- data/app/assets/components/paper-input/test/letters-only.html +30 -0
- data/app/assets/components/paper-input/test/paper-input-char-counter.html +112 -0
- data/app/assets/components/paper-input/test/paper-input-container.html +237 -0
- data/app/assets/components/paper-input/test/paper-input-error.html +60 -0
- data/app/assets/components/paper-input/test/paper-input.html +213 -0
- data/app/assets/components/paper-input/test/paper-textarea.html +169 -0
- data/app/assets/components/paper-item/README.md +4 -0
- data/app/assets/components/{font-roboto/roboto.html → paper-item/all-imports.html} +6 -2
- data/app/assets/components/paper-item/bower.json +40 -0
- data/app/assets/components/paper-item/demo/index.html +285 -0
- data/app/assets/components/paper-item/index.html +30 -0
- data/app/assets/components/paper-item/paper-icon-item.html +86 -0
- data/app/assets/components/paper-item/paper-item-body.html +93 -0
- data/app/assets/components/{core-animation/web-animations.html → paper-item/paper-item-shared.css} +13 -4
- data/app/assets/components/paper-item/paper-item.html +66 -117
- data/app/assets/components/paper-item/test/index.html +34 -0
- data/app/assets/components/paper-item/test/paper-item.html +66 -0
- data/app/assets/components/paper-material/README.md +13 -0
- data/app/assets/components/paper-material/bower.json +36 -0
- data/app/assets/components/paper-material/demo/index.html +113 -0
- data/app/assets/components/paper-material/index.html +30 -0
- data/app/assets/components/paper-material/paper-material.html +98 -0
- data/app/assets/components/paper-material/test/index.html +25 -0
- data/app/assets/components/paper-material/test/paper-material.html +92 -0
- data/app/assets/components/paper-menu/README.md +3 -0
- data/app/assets/components/paper-menu/bower.json +32 -0
- data/app/assets/components/paper-menu/demo/index.html +81 -0
- data/app/assets/components/paper-menu/hero.svg +35 -0
- data/app/assets/components/paper-menu/index.html +30 -0
- data/app/assets/components/paper-menu/paper-menu.html +133 -0
- data/app/assets/components/paper-menu/test/index.html +34 -0
- data/app/assets/components/paper-menu/test/paper-menu.html +67 -0
- data/app/assets/components/paper-progress/README.md +47 -0
- data/app/assets/components/paper-progress/bower.json +31 -0
- data/app/assets/components/paper-progress/demo/index.html +122 -0
- data/app/assets/components/paper-progress/hero.svg +21 -0
- data/app/assets/components/paper-progress/index.html +28 -0
- data/app/assets/components/paper-progress/paper-progress.html +153 -78
- data/app/assets/components/paper-progress/test/basic.html +121 -0
- data/app/assets/components/paper-progress/test/index.html +25 -0
- data/app/assets/components/paper-radio-button/README.md +29 -0
- data/app/assets/components/paper-radio-button/bower.json +35 -0
- data/app/assets/components/paper-radio-button/demo/index.html +94 -0
- data/app/assets/components/paper-radio-button/hero.svg +22 -0
- data/app/assets/components/paper-radio-button/index.html +29 -0
- data/app/assets/components/paper-radio-button/paper-radio-button.css +26 -25
- data/app/assets/components/paper-radio-button/paper-radio-button.html +123 -141
- data/app/assets/components/paper-radio-button/test/basic.html +101 -0
- data/app/assets/components/paper-radio-button/test/index.html +24 -0
- data/app/assets/components/paper-radio-group/README.md +20 -0
- data/app/assets/components/paper-radio-group/bower.json +36 -0
- data/app/assets/components/paper-radio-group/demo/index.html +108 -0
- data/app/assets/components/paper-radio-group/hero.svg +25 -0
- data/app/assets/components/paper-radio-group/index.html +30 -0
- data/app/assets/components/paper-radio-group/paper-radio-group.html +153 -68
- data/app/assets/components/paper-radio-group/test/basic.html +167 -0
- data/app/assets/components/paper-radio-group/test/index.html +25 -0
- data/app/assets/components/paper-ripple/README.md +65 -0
- data/app/assets/components/paper-ripple/bower.json +29 -0
- data/app/assets/components/paper-ripple/demo/index.html +413 -0
- data/app/assets/components/paper-ripple/hero.svg +30 -0
- data/app/assets/components/paper-ripple/index.html +27 -0
- data/app/assets/components/paper-ripple/paper-ripple.html +552 -315
- data/app/assets/components/paper-ripple/test/index.html +25 -0
- data/app/assets/components/paper-ripple/test/paper-ripple.html +166 -0
- data/app/assets/components/paper-scroll-header-panel/README.md +56 -0
- data/app/assets/components/paper-scroll-header-panel/bower.json +38 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo1.html +81 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo2.html +78 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo3.html +79 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo4.html +108 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo5.html +107 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo6.html +112 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo7.html +114 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo8.html +125 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo9.html +105 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg2.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg3.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg5.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg6.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg9.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/index.html +107 -0
- data/app/assets/components/paper-scroll-header-panel/demo/lorem-ipsum.html +42 -0
- data/app/assets/components/paper-scroll-header-panel/demo/sample-content.html +72 -0
- data/app/assets/components/paper-scroll-header-panel/hero.svg +41 -0
- data/app/assets/components/paper-scroll-header-panel/index.html +28 -0
- data/app/assets/components/paper-scroll-header-panel/paper-scroll-header-panel.html +455 -0
- data/app/assets/components/paper-scroll-header-panel/test/basic.html +112 -0
- data/app/assets/components/paper-scroll-header-panel/test/index.html +25 -0
- data/app/assets/components/paper-slider/README.md +69 -0
- data/app/assets/components/paper-slider/bower.json +34 -0
- data/app/assets/components/paper-slider/demo/index.html +113 -0
- data/app/assets/components/paper-slider/hero.svg +20 -0
- data/app/assets/components/paper-slider/index.html +29 -0
- data/app/assets/components/paper-slider/paper-slider.css +39 -26
- data/app/assets/components/paper-slider/paper-slider.html +305 -228
- data/app/assets/components/paper-slider/test/basic.html +139 -0
- data/app/assets/components/paper-slider/test/index.html +25 -0
- data/app/assets/components/paper-spinner/README.md +45 -0
- data/app/assets/components/paper-spinner/bower.json +33 -0
- data/app/assets/components/paper-spinner/demo/index.html +98 -0
- data/app/assets/components/paper-spinner/hero.svg +27 -0
- data/app/assets/components/paper-spinner/index.html +30 -0
- data/app/assets/components/paper-spinner/paper-spinner.css +42 -40
- data/app/assets/components/paper-spinner/paper-spinner.html +168 -103
- data/app/assets/components/paper-spinner/test/index.html +34 -0
- data/app/assets/components/paper-spinner/test/paper-spinner.html +63 -0
- data/app/assets/components/paper-styles/README.md +3 -0
- data/app/assets/components/paper-styles/bower.json +27 -0
- data/app/assets/components/paper-styles/classes/global.html +96 -0
- data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
- data/app/assets/components/paper-styles/classes/shadow.html +39 -0
- data/app/assets/components/paper-styles/classes/typography.html +171 -0
- data/app/assets/components/paper-styles/color.html +333 -0
- data/app/assets/components/paper-styles/default-theme.html +39 -0
- data/app/assets/components/paper-styles/demo-pages.html +72 -0
- data/app/assets/components/paper-styles/demo.css +25 -0
- data/app/assets/components/{paper-dropdown/paper-dropdown-transition.css → paper-styles/paper-styles-classes.html} +8 -9
- data/app/assets/components/paper-styles/paper-styles.html +17 -0
- data/app/assets/components/paper-styles/shadow.html +61 -0
- data/app/assets/components/paper-styles/typography.html +240 -0
- data/app/assets/components/paper-tabs/README.md +56 -0
- data/app/assets/components/paper-tabs/bower.json +37 -0
- data/app/assets/components/paper-tabs/demo/index.html +177 -0
- data/app/assets/components/paper-tabs/hero.svg +23 -0
- data/app/assets/components/paper-tabs/index.html +25 -0
- data/app/assets/components/paper-tabs/paper-tab.html +122 -46
- data/app/assets/components/paper-tabs/paper-tabs-icons.html +18 -0
- data/app/assets/components/paper-tabs/paper-tabs.html +387 -257
- data/app/assets/components/paper-tabs/test/attr-for-selected.html +82 -0
- data/app/assets/components/paper-tabs/test/basic.html +157 -0
- data/app/assets/components/paper-tabs/test/index.html +32 -0
- data/app/assets/components/paper-toast/README.md +4 -0
- data/app/assets/components/paper-toast/bower.json +28 -0
- data/app/assets/components/paper-toast/demo/index.html +56 -0
- data/app/assets/components/paper-toast/hero.svg +20 -0
- data/app/assets/components/paper-toast/index.html +26 -0
- data/app/assets/components/paper-toast/paper-toast.html +133 -265
- data/app/assets/components/paper-toggle-button/README.md +26 -0
- data/app/assets/components/paper-toggle-button/bower.json +36 -0
- data/app/assets/components/paper-toggle-button/demo/index.html +106 -0
- data/app/assets/components/paper-toggle-button/hero.svg +22 -0
- data/app/assets/components/paper-toggle-button/index.html +26 -0
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +36 -23
- data/app/assets/components/paper-toggle-button/paper-toggle-button.html +152 -148
- data/app/assets/components/paper-toggle-button/test/basic.html +86 -0
- data/app/assets/components/paper-toggle-button/test/index.html +25 -0
- data/app/assets/components/paper-toolbar/README.md +51 -0
- data/app/assets/components/paper-toolbar/bower.json +35 -0
- data/app/assets/components/paper-toolbar/demo/index.html +81 -0
- data/app/assets/components/paper-toolbar/index.html +38 -0
- data/app/assets/components/paper-toolbar/paper-toolbar.html +375 -0
- data/app/assets/components/paper-toolbar/test/index.html +24 -0
- data/app/assets/components/paper-toolbar/test/paper-toolbar.html +147 -0
- data/app/assets/components/polymer/LICENSE.txt +27 -0
- data/app/assets/components/polymer/bower.json +26 -0
- data/app/assets/components/polymer/build.log +27 -0
- data/app/assets/components/polymer/polymer-micro.html +523 -0
- data/app/assets/components/polymer/polymer-mini.html +1368 -0
- data/app/assets/components/polymer/polymer.html +3768 -0
- data/app/assets/components/web-animations-js/COPYING +202 -0
- data/app/assets/components/web-animations-js/History.md +108 -0
- data/app/assets/components/web-animations-js/README.md +161 -0
- data/app/assets/components/web-animations-js/bower.json +31 -0
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +2 -2
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js.map +1 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +2 -2
- data/app/assets/components/web-animations-js/web-animations-next.min.js.map +1 -0
- data/app/assets/components/web-animations-js/web-animations.html +50 -0
- data/app/assets/components/web-animations-js/web-animations.min.js +2 -2
- data/app/assets/components/web-animations-js/web-animations.min.js.gz +0 -0
- data/app/assets/components/web-animations-js/web-animations.min.js.map +1 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +343 -21
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +2 -2
- data/app/assets/components/webcomponentsjs/HTMLImports.js +348 -34
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +2 -2
- data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
- data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
- data/app/assets/components/webcomponentsjs/README.md +125 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +230 -93
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +6 -4
- data/app/assets/components/webcomponentsjs/bower.json +14 -0
- data/app/assets/components/webcomponentsjs/build.log +33 -0
- data/app/assets/components/webcomponentsjs/package.json +1 -1
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +671 -99
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +4 -2
- data/app/assets/components/webcomponentsjs/webcomponents.js +1149 -151
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +6 -5
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +532 -130
- data/app/assets/components/core-a11y-keys/core-a11y-keys.html +0 -335
- data/app/assets/components/core-animation/core-animation-group.html +0 -169
- data/app/assets/components/core-animation/core-animation.html +0 -525
- data/app/assets/components/core-collapse/core-collapse.html +0 -298
- data/app/assets/components/core-component-page/bowager-logo.png +0 -0
- data/app/assets/components/core-component-page/core-component-page.html +0 -37
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +0 -418
- data/app/assets/components/core-drawer-panel/metadata.html +0 -37
- data/app/assets/components/core-dropdown/core-dropdown-base.html +0 -117
- data/app/assets/components/core-dropdown/core-dropdown.html +0 -311
- data/app/assets/components/core-field/core-field.css +0 -38
- data/app/assets/components/core-field/core-field.html +0 -35
- data/app/assets/components/core-field/metadata.html +0 -26
- data/app/assets/components/core-focusable/core-focusable.html +0 -4
- data/app/assets/components/core-focusable/core-focusable.js +0 -134
- data/app/assets/components/core-focusable/polymer-mixin.js +0 -35
- data/app/assets/components/core-header-panel/core-header-panel.css +0 -78
- data/app/assets/components/core-header-panel/core-header-panel.html +0 -277
- data/app/assets/components/core-header-panel/metadata.html +0 -37
- data/app/assets/components/core-icon/core-icon.css +0 -16
- data/app/assets/components/core-icon/core-icon.html +0 -201
- data/app/assets/components/core-icon/metadata.html +0 -21
- data/app/assets/components/core-icon-button/core-icon-button.css +0 -75
- data/app/assets/components/core-icon-button/core-icon-button.html +0 -81
- data/app/assets/components/core-icon-button/metadata.html +0 -20
- data/app/assets/components/core-iconset/core-iconset.html +0 -241
- data/app/assets/components/core-iconset/my-icons-big.png +0 -0
- data/app/assets/components/core-iconset/my-icons.png +0 -0
- data/app/assets/components/core-iconset-svg/core-iconset-svg.html +0 -168
- data/app/assets/components/core-input/core-input.css +0 -41
- data/app/assets/components/core-input/core-input.html +0 -148
- data/app/assets/components/core-input/metadata.html +0 -23
- data/app/assets/components/core-item/core-item.css +0 -45
- data/app/assets/components/core-item/core-item.html +0 -73
- data/app/assets/components/core-item/metadata.html +0 -24
- data/app/assets/components/core-media-query/core-media-query.html +0 -87
- data/app/assets/components/core-menu/core-menu.html +0 -73
- data/app/assets/components/core-menu/core-submenu.html +0 -126
- data/app/assets/components/core-menu/metadata.html +0 -62
- data/app/assets/components/core-meta/core-meta.html +0 -145
- data/app/assets/components/core-overlay/core-overlay-layer.html +0 -116
- data/app/assets/components/core-overlay/core-overlay.html +0 -776
- data/app/assets/components/core-overlay/gulpfile.js +0 -2
- data/app/assets/components/core-range/core-range.html +0 -108
- data/app/assets/components/core-resizable/core-resizable.html +0 -248
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.css +0 -58
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +0 -360
- data/app/assets/components/core-scroll-header-panel/metadata.html +0 -41
- data/app/assets/components/core-selection/core-selection.html +0 -149
- data/app/assets/components/core-selector/core-selector.html +0 -548
- data/app/assets/components/core-selector/metadata.html +0 -20
- data/app/assets/components/core-style/core-style.html +0 -387
- data/app/assets/components/core-style/elements.html +0 -55
- data/app/assets/components/core-style/my-theme.html +0 -73
- data/app/assets/components/core-toolbar/core-toolbar.css +0 -117
- data/app/assets/components/core-toolbar/core-toolbar.html +0 -155
- data/app/assets/components/core-toolbar/metadata.html +0 -28
- data/app/assets/components/core-transition/core-transition-css.html +0 -220
- data/app/assets/components/core-transition/core-transition-overlay.css +0 -46
- data/app/assets/components/core-transition/core-transition.html +0 -140
- data/app/assets/components/paper-button/metadata.html +0 -17
- data/app/assets/components/paper-button/paper-button-base.html +0 -164
- data/app/assets/components/paper-dialog/paper-action-dialog.html +0 -104
- data/app/assets/components/paper-dialog/paper-dialog-base.html +0 -81
- data/app/assets/components/paper-dialog/paper-dialog-transition.css +0 -59
- data/app/assets/components/paper-dialog/paper-dialog-transition.html +0 -27
- data/app/assets/components/paper-dropdown/paper-dropdown-transition.html +0 -166
- data/app/assets/components/paper-dropdown/paper-dropdown.html +0 -117
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.css +0 -44
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.html +0 -184
- data/app/assets/components/paper-elements/metadata.html +0 -23
- data/app/assets/components/paper-elements/paper-elements.html +0 -40
- data/app/assets/components/paper-fab/metadata.html +0 -36
- data/app/assets/components/paper-input/metadata.html +0 -20
- data/app/assets/components/paper-input/paper-autogrow-textarea.html +0 -162
- data/app/assets/components/paper-input/paper-char-counter.html +0 -121
- data/app/assets/components/paper-input/paper-input-decorator.css +0 -132
- data/app/assets/components/paper-input/paper-input-decorator.html +0 -547
- data/app/assets/components/paper-item/metadata.html +0 -23
- data/app/assets/components/paper-menu-button/metadata.html +0 -21
- data/app/assets/components/paper-menu-button/paper-menu-button.css +0 -101
- data/app/assets/components/paper-menu-button/paper-menu-button.html +0 -79
- data/app/assets/components/paper-progress/metadata.html +0 -17
- data/app/assets/components/paper-progress/paper-progress.css +0 -68
- data/app/assets/components/paper-radio-button/metadata.html +0 -17
- data/app/assets/components/paper-radio-group/metadata.html +0 -22
- data/app/assets/components/paper-ripple/metadata.html +0 -20
- data/app/assets/components/paper-shadow/metadata.html +0 -17
- data/app/assets/components/paper-shadow/paper-shadow.css +0 -66
- data/app/assets/components/paper-shadow/paper-shadow.html +0 -86
- data/app/assets/components/paper-slider/metadata.html +0 -20
- data/app/assets/components/paper-tabs/metadata.html +0 -58
- data/app/assets/components/paper-tabs/paper-tab.css +0 -59
- data/app/assets/components/paper-tabs/paper-tabs.css +0 -80
- data/app/assets/components/paper-toast/metadata.html +0 -20
- data/app/assets/components/paper-toast/paper-toast.css +0 -80
- data/app/assets/components/paper-toggle-button/metadata.html +0 -17
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +0 -158
- data/app/assets/components/sampler-scaffold/sampler-scaffold.html +0 -224
@@ -0,0 +1,290 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
@license
|
4
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
|
14
|
+
<meta charset="utf-8">
|
15
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
16
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
17
|
+
|
18
|
+
<title>paper-dialog-scrollable demo</title>
|
19
|
+
|
20
|
+
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
21
|
+
|
22
|
+
<link rel="import" href="../paper-dialog-scrollable.html">
|
23
|
+
|
24
|
+
<link rel="import" href="../../paper-styles/classes/typography.html">
|
25
|
+
<link rel="import" href="../../iron-flex-layout/classes/iron-flex-layout.html">
|
26
|
+
|
27
|
+
<style>
|
28
|
+
|
29
|
+
section {
|
30
|
+
height: 100%;
|
31
|
+
}
|
32
|
+
|
33
|
+
.header, .footer {
|
34
|
+
padding: 8px 24px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.footer {
|
38
|
+
text-align: right;
|
39
|
+
}
|
40
|
+
|
41
|
+
</style>
|
42
|
+
|
43
|
+
</head>
|
44
|
+
<body class="fullbleed">
|
45
|
+
|
46
|
+
<section class="layout vertical">
|
47
|
+
|
48
|
+
<div class="header paper-font-title">
|
49
|
+
Alice in Wonderland
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<paper-dialog-scrollable class="flex paper-font-body1">
|
53
|
+
|
54
|
+
<p>Alice was beginning to get very tired of sitting by her sister
|
55
|
+
on the bank, and of having nothing to do: once or twice she had
|
56
|
+
peeped into the book her sister was reading, but it had no
|
57
|
+
pictures or conversations in it, 'and what is the use of a book,'
|
58
|
+
thought Alice 'without pictures or conversation?'</p>
|
59
|
+
|
60
|
+
<p>So she was considering in her own mind (as well as she could,
|
61
|
+
for the hot day made her feel very sleepy and stupid), whether
|
62
|
+
the pleasure of making a daisy-chain would be worth the trouble
|
63
|
+
of getting up and picking the daisies, when suddenly a White
|
64
|
+
Rabbit with pink eyes ran close by her.</p>
|
65
|
+
|
66
|
+
<p>There was nothing so <i>very</i> remarkable in that; nor did
|
67
|
+
Alice think it so <i>very</i> much out of the way to hear the
|
68
|
+
Rabbit say to itself, 'Oh dear! Oh dear! I shall be late!' (when
|
69
|
+
she thought it over afterwards, it occurred to her that she ought
|
70
|
+
to have wondered at this, but at the time it all seemed quite
|
71
|
+
natural); but when the Rabbit actually <i>took a watch out of its
|
72
|
+
waistcoat-pocket,</i> and looked at it, and then hurried on,
|
73
|
+
Alice started to her feet, for it flashed across her mind that
|
74
|
+
she had never before seen a rabbit with either a
|
75
|
+
waistcoat-pocket, or a watch to take out of it, and burning with
|
76
|
+
curiosity, she ran across the field after it, and fortunately was
|
77
|
+
just in time to see it pop down a large rabbit-hole under the
|
78
|
+
hedge.</p>
|
79
|
+
|
80
|
+
<p>In another moment down went Alice after it, never once
|
81
|
+
considering how in the world she was to get out again.</p>
|
82
|
+
|
83
|
+
<p>The rabbit-hole went straight on like a tunnel for some way,
|
84
|
+
and then dipped suddenly down, so suddenly that Alice had not a
|
85
|
+
moment to think about stopping herself before she found herself
|
86
|
+
falling down a very deep well.</p>
|
87
|
+
|
88
|
+
<p>Either the well was very deep, or she fell very slowly, for
|
89
|
+
she had plenty of time as she went down to look about her and to
|
90
|
+
wonder what was going to happen next. First, she tried to look
|
91
|
+
down and make out what she was coming to, but it was too dark to
|
92
|
+
see anything; then she looked at the sides of the well, and
|
93
|
+
noticed that they were filled with cupboards and book-shelves;
|
94
|
+
here and there she saw maps and pictures hung upon pegs. She took
|
95
|
+
down a jar from one of the shelves as she passed; it was labelled
|
96
|
+
'ORANGE MARMALADE', but to her great disappointment it was empty:
|
97
|
+
she did not like to drop the jar for fear of killing somebody, so
|
98
|
+
managed to put it into one of the cupboards as she fell past
|
99
|
+
it.</p>
|
100
|
+
|
101
|
+
<p>'Well!' thought Alice to herself, 'after such a fall as this,
|
102
|
+
I shall think nothing of tumbling down stairs! How brave they'll
|
103
|
+
all think me at home! Why, I wouldn't say anything about it, even
|
104
|
+
if I fell off the top of the house!' (Which was very likely
|
105
|
+
true.)</p>
|
106
|
+
|
107
|
+
<p>Down, down, down. Would the fall <i>never</i> come to an end!
|
108
|
+
'I wonder how many miles I've fallen by this time?' she said
|
109
|
+
aloud. 'I must be getting somewhere near the centre of the earth.
|
110
|
+
Let me see: that would be four thousand miles down, I think--'
|
111
|
+
(for, you see, Alice had learnt several things of this sort in
|
112
|
+
her lessons in the schoolroom, and though this was not a <i>very</i>
|
113
|
+
good opportunity for showing off her knowledge, as there was no
|
114
|
+
one to listen to her, still it was good practice to say it over)
|
115
|
+
'--yes, that's about the right distance--but then I wonder what
|
116
|
+
Latitude or Longitude I've got to?' (Alice had no idea what
|
117
|
+
Latitude was, or Longitude either, but thought they were nice
|
118
|
+
grand words to say.)</p>
|
119
|
+
|
120
|
+
<p>Presently she began again. 'I wonder if I shall fall right
|
121
|
+
<i>through</i> the earth! How funny it'll seem to come out among
|
122
|
+
the people that walk with their heads downward! The Antipathies,
|
123
|
+
I think--' (she was rather glad there <i>was</i> no one listening, this
|
124
|
+
time, as it didn't sound at all the right word) '--but I shall
|
125
|
+
have to ask them what the name of the country is, you know.
|
126
|
+
Please, Ma'am, is this New Zealand or Australia?' (and she tried
|
127
|
+
to curtsey as she spoke--fancy <i>curtseying</i> as you're
|
128
|
+
falling through the air! Do you think you could manage it?) 'And
|
129
|
+
what an ignorant little girl she'll think me for asking! No,
|
130
|
+
it'll never do to ask: perhaps I shall see it written up
|
131
|
+
somewhere.'</p>
|
132
|
+
|
133
|
+
<p>Down, down, down. There was nothing else to do, so Alice soon
|
134
|
+
began talking again. 'Dinah'll miss me very much to-night, I
|
135
|
+
should think!' (Dinah was the cat.) 'I hope they'll remember her
|
136
|
+
saucer of milk at tea-time. Dinah my dear! I wish you were down
|
137
|
+
here with me! There are no mice in the air, I'm afraid, but you
|
138
|
+
might catch a bat, and that's very like a mouse, you know. But do
|
139
|
+
cats eat bats, I wonder?' And here Alice began to get rather
|
140
|
+
sleepy, and went on saying to herself, in a dreamy sort of way,
|
141
|
+
'Do cats eat bats? Do cats eat bats?' and sometimes, 'Do bats eat
|
142
|
+
cats?' for, you see, as she couldn't answer either question, it
|
143
|
+
didn't much matter which way she put it. She felt that she was
|
144
|
+
dozing off, and had just begun to dream that she was walking hand
|
145
|
+
in hand with Dinah, and saying to her very earnestly, 'Now,
|
146
|
+
Dinah, tell me the truth: did you ever eat a bat?' when suddenly,
|
147
|
+
thump! thump! down she came upon a heap of sticks and dry leaves,
|
148
|
+
and the fall was over.</p>
|
149
|
+
|
150
|
+
<p>Alice was not a bit hurt, and she jumped up on to her feet in
|
151
|
+
a moment: she looked up, but it was all dark overhead; before her
|
152
|
+
was another long passage, and the White Rabbit was still in
|
153
|
+
sight, hurrying down it. There was not a moment to be lost: away
|
154
|
+
went Alice like the wind, and was just in time to hear it say, as
|
155
|
+
it turned a corner, 'Oh my ears and whiskers, how late it's
|
156
|
+
getting!' She was close behind it when she turned the corner, but
|
157
|
+
the Rabbit was no longer to be seen: she found herself in a long,
|
158
|
+
low hall, which was lit up by a row of lamps hanging from the
|
159
|
+
roof.</p>
|
160
|
+
|
161
|
+
<p>There were doors all round the hall, but they were all locked;
|
162
|
+
and when Alice had been all the way down one side and up the
|
163
|
+
other, trying every door, she walked sadly down the middle,
|
164
|
+
wondering how she was ever to get out again.</p>
|
165
|
+
|
166
|
+
<p>Suddenly she came upon a little three-legged table, all made
|
167
|
+
of solid glass; there was nothing on it except a tiny golden key,
|
168
|
+
and Alice's first thought was that it might belong to one of the
|
169
|
+
doors of the hall; but, alas! either the locks were too large, or
|
170
|
+
the key was too small, but at any rate it would not open any of
|
171
|
+
them. However, on the second time round, she came upon a low
|
172
|
+
curtain she had not noticed before, and behind it was a little
|
173
|
+
door about fifteen inches high: she tried the little golden key
|
174
|
+
in the lock, and to her great delight it fitted!</p>
|
175
|
+
|
176
|
+
<p>Alice opened the door and found that it led into a small
|
177
|
+
passage, not much larger than a rat-hole: she knelt down and
|
178
|
+
looked along the passage into the loveliest garden you ever saw.
|
179
|
+
How she longed to get out of that dark hall, and wander about
|
180
|
+
among those beds of bright flowers and those cool fountains, but
|
181
|
+
she could not even get her head though the doorway; 'and even if
|
182
|
+
my head <i>would</i> go through,' thought poor Alice, 'it would
|
183
|
+
be of very little use without my shoulders. Oh, how I wish I
|
184
|
+
could shut up like a telescope! I think I could, if I only know
|
185
|
+
how to begin.' For, you see, so many out-of-the-way things had
|
186
|
+
happened lately, that Alice had begun to think that very few
|
187
|
+
things indeed were really impossible.</p>
|
188
|
+
|
189
|
+
<p>There seemed to be no use in waiting by the little door, so
|
190
|
+
she went back to the table, half hoping she might find another
|
191
|
+
key on it, or at any rate a book of rules for shutting people up
|
192
|
+
like telescopes: this time she found a little bottle on it,
|
193
|
+
('which certainly was not here before,' said Alice,) and round
|
194
|
+
the neck of the bottle was a paper label, with the words 'DRINK
|
195
|
+
ME' beautifully printed on it in large letters.</p>
|
196
|
+
|
197
|
+
<p>It was all very well to say 'Drink me,' but the wise little
|
198
|
+
Alice was not going to do <i>that</i> in a hurry. 'No, I'll look
|
199
|
+
first,' she said, 'and see whether it's marked "<i>poison</i>" or
|
200
|
+
not'; for she had read several nice little histories about
|
201
|
+
children who had got burnt, and eaten up by wild beasts and other
|
202
|
+
unpleasant things, all because they <i>would</i> not remember the
|
203
|
+
simple rules their friends had taught them: such as, that a
|
204
|
+
red-hot poker will burn you if you hold it too long; and that if
|
205
|
+
you cut your finger <i>very</i> deeply with a knife, it usually
|
206
|
+
bleeds; and she had never forgotten that, if you drink much from
|
207
|
+
a bottle marked '<i>poison</i>,' it is almost certain to disagree
|
208
|
+
with you, sooner or later.</p>
|
209
|
+
|
210
|
+
<p>However, this bottle was <i>not</i> marked 'poison,' so Alice
|
211
|
+
ventured to taste it, and finding it very nice, (it had, in fact,
|
212
|
+
a sort of mixed flavour of cherry-tart, custard, pine-apple,
|
213
|
+
roast turkey, toffee, and hot buttered toast,) she very soon
|
214
|
+
finished it off.</p>
|
215
|
+
|
216
|
+
<p class="asterisks">
|
217
|
+
<br>
|
218
|
+
* * * * *
|
219
|
+
<br>
|
220
|
+
* * * *
|
221
|
+
<br>
|
222
|
+
* * * * *
|
223
|
+
<br>
|
224
|
+
</p>
|
225
|
+
|
226
|
+
<p>'What a curious feeling!' said Alice; 'I must be shutting up
|
227
|
+
like a telescope.'</p>
|
228
|
+
|
229
|
+
<p>And so it was indeed: she was now only ten inches high, and
|
230
|
+
her face brightened up at the thought that she was now the right
|
231
|
+
size for going through the little door into that lovely garden.
|
232
|
+
First, however, she waited for a few minutes to see if she was
|
233
|
+
going to shrink any further: she felt a little nervous about
|
234
|
+
this; 'for it might end, you know,' said Alice to herself, 'in my
|
235
|
+
going out altogether, like a candle. I wonder what I should be
|
236
|
+
like then?' And she tried to fancy what the flame of a candle is
|
237
|
+
like after the candle is blown out, for she could not remember
|
238
|
+
ever having seen such a thing.</p>
|
239
|
+
|
240
|
+
<p>After a while, finding that nothing more happened, she decided
|
241
|
+
on going into the garden at once; but, alas for poor Alice! when
|
242
|
+
she got to the door, she found she had forgotten the little
|
243
|
+
golden key, and when she went back to the table for it, she found
|
244
|
+
she could not possibly reach it: she could see it quite plainly
|
245
|
+
through the glass, and she tried her best to climb up one of the
|
246
|
+
legs of the table, but it was too slippery; and when she had
|
247
|
+
tired herself out with trying, the poor little thing sat down and
|
248
|
+
cried.</p>
|
249
|
+
|
250
|
+
<p>'Come, there's no use in crying like that!' said Alice to
|
251
|
+
herself, rather sharply; 'I advise you to leave off this minute!'
|
252
|
+
She generally gave herself very good advice, (though she very
|
253
|
+
seldom followed it), and sometimes she scolded herself so
|
254
|
+
severely as to bring tears into her eyes; and once she remembered
|
255
|
+
trying to box her own ears for having cheated herself in a game
|
256
|
+
of croquet she was playing against herself, for this curious
|
257
|
+
child was very fond of pretending to be two people. 'But it's no
|
258
|
+
use now,' thought poor Alice, 'to pretend to be two people! Why,
|
259
|
+
there's hardly enough of me left to make <i>one</i> respectable
|
260
|
+
person!'</p>
|
261
|
+
|
262
|
+
<p>Soon her eye fell on a little glass box that was lying under
|
263
|
+
the table: she opened it, and found in it a very small cake, on
|
264
|
+
which the words 'EAT ME' were beautifully marked in currants.
|
265
|
+
'Well, I'll eat it,' said Alice, 'and if it makes me grow larger,
|
266
|
+
I can reach the key; and if it makes me grow smaller, I can creep
|
267
|
+
under the door; so either way I'll get into the garden, and I
|
268
|
+
don't care which happens!'</p>
|
269
|
+
|
270
|
+
<p>She ate a little bit, and said anxiously to herself, 'Which
|
271
|
+
way? Which way?', holding her hand on the top of her head to feel
|
272
|
+
which way it was growing, and she was quite surprised to find
|
273
|
+
that she remained the same size: to be sure, this generally
|
274
|
+
happens when one eats cake, but Alice had got so much into the
|
275
|
+
way of expecting nothing but out-of-the-way things to happen,
|
276
|
+
that it seemed quite dull and stupid for life to go on in the
|
277
|
+
common way.</p>
|
278
|
+
|
279
|
+
<p>So she set to work, and very soon finished off the cake.</p>
|
280
|
+
|
281
|
+
</paper-dialog-scrollable>
|
282
|
+
|
283
|
+
<div class="footer paper-font-subhead">
|
284
|
+
Lewis Carroll
|
285
|
+
</div>
|
286
|
+
|
287
|
+
</section>
|
288
|
+
|
289
|
+
</body>
|
290
|
+
</html>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
5
|
+
viewBox="0 0 225 126" enable-background="new 0 0 225 126" xml:space="preserve">
|
6
|
+
<g id="background" display="none">
|
7
|
+
<rect display="inline" fill="#B0BEC5" width="225" height="126"/>
|
8
|
+
</g>
|
9
|
+
<g id="label">
|
10
|
+
</g>
|
11
|
+
<g id="art">
|
12
|
+
<g>
|
13
|
+
<polygon points="0,124 0,126 2,126 "/>
|
14
|
+
<polygon points="0,111.6 0,114.4 11.6,126 14.4,126 "/>
|
15
|
+
<polygon points="0,99.1 0,101.9 24.1,126 26.9,126 "/>
|
16
|
+
<polygon points="0,86.6 0,89.5 36.5,126 39.4,126 "/>
|
17
|
+
<polygon points="0,74.2 0,77 49,126 51.8,126 "/>
|
18
|
+
<polygon points="0,61.7 0,64.5 61.5,126 64.3,126 "/>
|
19
|
+
<polygon points="0,49.2 0,52.1 73.9,126 76.8,126 "/>
|
20
|
+
<polygon points="0,36.8 0,39.6 86.4,126 89.2,126 "/>
|
21
|
+
<polygon points="76.7,101 74,101 74,98.3 0,24.3 0,27.1 98.9,126 101.7,126 "/>
|
22
|
+
<polygon points="74,88.7 74,85.8 0,11.8 0,14.7 "/>
|
23
|
+
<polygon points="89.2,101 86.3,101 111.3,126 114.2,126 "/>
|
24
|
+
<polygon points="101.6,101 98.8,101 123.8,126 126.6,126 "/>
|
25
|
+
<polygon points="74,76.2 74,73.4 0.6,0 0,0 0,2.2 "/>
|
26
|
+
<polygon points="114.1,101 111.3,101 136.3,126 139.1,126 "/>
|
27
|
+
<polygon points="74,63.7 74,60.9 13.1,0 10.3,0 "/>
|
28
|
+
<polygon points="74,51.3 74,48.4 25.6,0 22.7,0 "/>
|
29
|
+
<polygon points="126.6,101 123.7,101 148.7,126 151.6,126 "/>
|
30
|
+
<polygon points="74,38.8 74,36 38,0 35.2,0 "/>
|
31
|
+
<polygon points="139,101 136.2,101 161.2,126 164,126 "/>
|
32
|
+
<polygon points="74,26.3 74,25 75.5,25 50.5,0 47.7,0 "/>
|
33
|
+
<polygon points="150,99.5 150,101 148.7,101 173.7,126 176.5,126 "/>
|
34
|
+
<polygon points="150,87 150,89.9 186.1,126 189,126 "/>
|
35
|
+
<polygon points="85.1,25 88,25 63,0 60.1,0 "/>
|
36
|
+
<polygon points="150,74.6 150,77.4 198.6,126 201.4,126 "/>
|
37
|
+
<polygon points="97.6,25 100.4,25 75.4,0 72.6,0 "/>
|
38
|
+
<polygon points="150,62.1 150,64.9 211.1,126 213.9,126 "/>
|
39
|
+
<polygon points="110.1,25 112.9,25 87.9,0 85.1,0 "/>
|
40
|
+
<polygon points="150,49.7 150,52.5 223.5,126 225,126 225,124.7 "/>
|
41
|
+
<polygon points="122.5,25 125.3,25 100.3,0 97.5,0 "/>
|
42
|
+
<polygon points="112.8,0 110,0 135,25 137.8,25 "/>
|
43
|
+
<polygon points="150,37.2 150,40 225,115 225,112.2 "/>
|
44
|
+
<polygon points="125.3,0 122.5,0 147.5,25 150,25 150,27.5 225,102.5 225,99.7 "/>
|
45
|
+
<polygon points="137.7,0 134.9,0 225,90.1 225,87.3 "/>
|
46
|
+
<polygon points="150.2,0 147.4,0 225,77.6 225,74.8 "/>
|
47
|
+
<polygon points="162.7,0 159.8,0 225,65.2 225,62.3 "/>
|
48
|
+
<polygon points="175.1,0 172.3,0 225,52.7 225,49.9 "/>
|
49
|
+
<polygon points="187.6,0 184.8,0 225,40.2 225,37.4 "/>
|
50
|
+
<polygon points="200.1,0 197.2,0 225,27.8 225,24.9 "/>
|
51
|
+
<polygon points="212.5,0 209.7,0 225,15.3 225,12.5 "/>
|
52
|
+
<polygon points="225,0 222.2,0 225,2.8 225,0 "/>
|
53
|
+
</g>
|
54
|
+
<path d="M151,102H73V24h78V102z M75,100h74V26H75V100z"/>
|
55
|
+
<rect x="82" y="53" width="26" height="2"/>
|
56
|
+
<rect x="116" y="53" width="26" height="2"/>
|
57
|
+
<rect x="82" y="62" width="26" height="2"/>
|
58
|
+
<rect x="82" y="72" width="26" height="2"/>
|
59
|
+
<rect x="116" y="72" width="26" height="2"/>
|
60
|
+
<rect x="82" y="42" width="26" height="2"/>
|
61
|
+
<circle cx="120" cy="63" r="4"/>
|
62
|
+
<circle cx="134" cy="63" r="4"/>
|
63
|
+
<rect x="116" y="85" width="22" height="5.5"/>
|
64
|
+
<g id="ic_x5F_add_x0D_">
|
65
|
+
</g>
|
66
|
+
</g>
|
67
|
+
<g id="Guides">
|
68
|
+
</g>
|
69
|
+
</svg>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
@license
|
4
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
|
14
|
+
<meta charset="utf-8">
|
15
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
16
|
+
|
17
|
+
<title>paper-dialog-scrollable</title>
|
18
|
+
|
19
|
+
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
|
20
|
+
|
21
|
+
<link rel="import" href="../polymer/polymer.html">
|
22
|
+
<link rel="import" href="../iron-component-page/iron-component-page.html">
|
23
|
+
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
|
27
|
+
<iron-component-page></iron-component-page>
|
28
|
+
|
29
|
+
</body>
|
30
|
+
</html>
|
@@ -0,0 +1,150 @@
|
|
1
|
+
<!--
|
2
|
+
@license
|
3
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9
|
+
-->
|
10
|
+
|
11
|
+
<link rel="import" href="../polymer/polymer.html">
|
12
|
+
<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html">
|
13
|
+
<link rel="import" href="../paper-styles/paper-styles.html">
|
14
|
+
|
15
|
+
<!--
|
16
|
+
`paper-dialog-scrollable` implements a scrolling area used in a Material Design dialog. It shows
|
17
|
+
a divider at the top and/or bottom indicating more content, depending on scroll position. Use this
|
18
|
+
together with elements implementing `Polymer.PaperDialogBehavior`.
|
19
|
+
|
20
|
+
<paper-dialog-impl>
|
21
|
+
<h2>Header</h2>
|
22
|
+
<paper-dialog-scrollable>
|
23
|
+
Lorem ipsum...
|
24
|
+
</paper-dialog-scrollable>
|
25
|
+
<div class="buttons">
|
26
|
+
<paper-button>OK</paper-button>
|
27
|
+
</div>
|
28
|
+
</paper-dialog-impl>
|
29
|
+
|
30
|
+
It shows a top divider after scrolling if it is not the first child in its parent container,
|
31
|
+
indicating there is more content above. It shows a bottom divider if it is scrollable and it is not
|
32
|
+
the last child in its parent container, indicating there is more content below. The bottom divider
|
33
|
+
is hidden if it is scrolled to the bottom.
|
34
|
+
|
35
|
+
@group Paper Elements
|
36
|
+
@element paper-dialog-scrollable
|
37
|
+
@demo demo/index.html
|
38
|
+
@hero hero.svg
|
39
|
+
-->
|
40
|
+
|
41
|
+
<dom-module id="paper-dialog-scrollable">
|
42
|
+
|
43
|
+
<style>
|
44
|
+
|
45
|
+
:host {
|
46
|
+
display: block;
|
47
|
+
position: relative;
|
48
|
+
}
|
49
|
+
|
50
|
+
:host(.is-scrolled:not(:first-child))::before {
|
51
|
+
content: '';
|
52
|
+
position: absolute;
|
53
|
+
top: 0;
|
54
|
+
left: 0;
|
55
|
+
right: 0;
|
56
|
+
height: 1px;
|
57
|
+
background: var(--divider-color);
|
58
|
+
}
|
59
|
+
|
60
|
+
:host(.can-scroll:not(.scrolled-to-bottom):not(:last-child))::after {
|
61
|
+
content: '';
|
62
|
+
position: absolute;
|
63
|
+
bottom: 0;
|
64
|
+
left: 0;
|
65
|
+
right: 0;
|
66
|
+
height: 1px;
|
67
|
+
background: var(--divider-color);
|
68
|
+
}
|
69
|
+
|
70
|
+
.scrollable {
|
71
|
+
padding: 0 24px;
|
72
|
+
|
73
|
+
@apply(--layout-scroll);
|
74
|
+
|
75
|
+
@apply(--paper-dialog-scrollable);
|
76
|
+
}
|
77
|
+
</style>
|
78
|
+
|
79
|
+
<template>
|
80
|
+
<div id="scrollable" class="scrollable">
|
81
|
+
<content></content>
|
82
|
+
</div>
|
83
|
+
</template>
|
84
|
+
|
85
|
+
</dom-module>
|
86
|
+
|
87
|
+
<script>
|
88
|
+
|
89
|
+
(function() {
|
90
|
+
|
91
|
+
Polymer({
|
92
|
+
|
93
|
+
is: 'paper-dialog-scrollable',
|
94
|
+
|
95
|
+
properties: {
|
96
|
+
|
97
|
+
/**
|
98
|
+
* The dialog element that implements `Polymer.PaperDialogBehavior` containing this element.
|
99
|
+
*/
|
100
|
+
dialogElement: {
|
101
|
+
type: Object,
|
102
|
+
value: function() {
|
103
|
+
return this.parentNode;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
},
|
108
|
+
|
109
|
+
listeners: {
|
110
|
+
'scrollable.scroll': '_onScroll',
|
111
|
+
'iron-resize': '_onIronResize'
|
112
|
+
},
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Returns the scrolling element.
|
116
|
+
*/
|
117
|
+
get scrollTarget() {
|
118
|
+
return this.$.scrollable;
|
119
|
+
},
|
120
|
+
|
121
|
+
attached: function() {
|
122
|
+
this.classList.add('no-padding');
|
123
|
+
// Set itself to the overlay sizing target
|
124
|
+
this.dialogElement.sizingTarget = this.scrollTarget;
|
125
|
+
// If the host is sized, fit the scrollable area to the container. Otherwise let it be
|
126
|
+
// its natural size.
|
127
|
+
requestAnimationFrame(function() {
|
128
|
+
if (this.offsetHeight > 0) {
|
129
|
+
this.$.scrollable.classList.add('fit');
|
130
|
+
}
|
131
|
+
this._scroll();
|
132
|
+
}.bind(this));
|
133
|
+
},
|
134
|
+
|
135
|
+
_scroll: function() {
|
136
|
+
this.toggleClass('is-scrolled', this.scrollTarget.scrollTop > 0);
|
137
|
+
this.toggleClass('can-scroll', this.scrollTarget.offsetHeight < this.scrollTarget.scrollHeight);
|
138
|
+
this.toggleClass('scrolled-to-bottom',
|
139
|
+
this.scrollTarget.scrollTop + this.scrollTarget.offsetHeight >= this.scrollTarget.scrollHeight);
|
140
|
+
},
|
141
|
+
|
142
|
+
_onScroll: function() {
|
143
|
+
this._scroll();
|
144
|
+
}
|
145
|
+
|
146
|
+
})
|
147
|
+
|
148
|
+
})();
|
149
|
+
|
150
|
+
</script>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
@license
|
4
|
+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
5
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
6
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
7
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
8
|
+
Code distributed by Google as part of the polymer project is also
|
9
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
10
|
+
-->
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
|
14
|
+
<title>paper-dialog tests</title>
|
15
|
+
|
16
|
+
<meta charset="utf-8">
|
17
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
18
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
19
|
+
|
20
|
+
<script src="../../web-component-tester/browser.js"></script>
|
21
|
+
|
22
|
+
</head>
|
23
|
+
<body>
|
24
|
+
|
25
|
+
<script>
|
26
|
+
|
27
|
+
WCT.loadSuites([
|
28
|
+
'paper-dialog-scrollable.html'
|
29
|
+
]);
|
30
|
+
|
31
|
+
</script>
|
32
|
+
|
33
|
+
</body>
|
34
|
+
</html>
|