From 400edb4ad9ca189115403a9897584f855a6b7850 Mon Sep 17 00:00:00 2001 From: jakcharvat Date: Wed, 22 Aug 2018 20:27:54 +0800 Subject: [PATCH 1/2] Add search bar --- app.js | 7 +- app.scss | 30 +- index.html | 25 +- .../@material/theme/README.md | 181 + .../@material/theme/_color-palette.scss | 290 + .../@material/theme/_constants.scss | 283 + .../@material/theme/_functions.scss | 60 + .../@material/theme/_mixins.scss | 80 + .../@material/theme/_variables.scss | 140 + .../@material/theme/dist/mdc.theme.css | 150 + .../@material/theme/dist/mdc.theme.min.css | 8 + .../@material/theme/mdc-theme.scss | 42 + .../@material/theme/package.json | 45 + .../@material/floating-label/README.md | 110 + .../@material/floating-label/_mixins.scss | 73 + .../@material/floating-label/_variables.scss | 18 + .../@material/floating-label/adapter.js | 64 + .../@material/floating-label/constants.js | 24 + .../dist/mdc.floating-label.css | 86 + .../dist/mdc.floating-label.min.css | 8 + .../floating-label/dist/mdc.floatingLabel.js | 797 +++ .../dist/mdc.floatingLabel.min.js | 23 + .../@material/floating-label/foundation.js | 111 + .../@material/floating-label/index.js | 74 + .../floating-label/mdc-floating-label.scss | 70 + .../node_modules/@material/theme/README.md | 181 + .../@material/theme/_color-palette.scss | 290 + .../@material/theme/_constants.scss | 283 + .../@material/theme/_functions.scss | 60 + .../node_modules/@material/theme/_mixins.scss | 80 + .../@material/theme/_variables.scss | 140 + .../@material/theme/dist/mdc.theme.css | 150 + .../@material/theme/dist/mdc.theme.min.css | 8 + .../@material/theme/mdc-theme.scss | 42 + .../node_modules/@material/theme/package.json | 45 + .../@material/floating-label/package.json | 56 + node_modules/@material/line-ripple/README.md | 91 + .../@material/line-ripple/_functions.scss | 21 + .../@material/line-ripple/_mixins.scss | 21 + node_modules/@material/line-ripple/adapter.js | 71 + .../@material/line-ripple/constants.js | 24 + .../line-ripple/dist/mdc.line-ripple.css | 28 + .../line-ripple/dist/mdc.line-ripple.min.css | 8 + .../line-ripple/dist/mdc.lineRipple.js | 804 +++ .../line-ripple/dist/mdc.lineRipple.min.js | 23 + .../@material/line-ripple/foundation.js | 108 + node_modules/@material/line-ripple/index.js | 74 + .../line-ripple/mdc-line-ripple.scss | 45 + .../node_modules/@material/theme/README.md | 181 + .../@material/theme/_color-palette.scss | 290 + .../@material/theme/_constants.scss | 283 + .../@material/theme/_functions.scss | 60 + .../node_modules/@material/theme/_mixins.scss | 80 + .../@material/theme/_variables.scss | 140 + .../@material/theme/dist/mdc.theme.css | 150 + .../@material/theme/dist/mdc.theme.min.css | 8 + .../@material/theme/mdc-theme.scss | 42 + .../node_modules/@material/theme/package.json | 45 + .../@material/line-ripple/package.json | 55 + .../@material/notched-outline/README.md | 133 + .../@material/notched-outline/_mixins.scss | 45 + .../@material/notched-outline/_variables.scss | 17 + .../@material/notched-outline/adapter.js | 70 + .../@material/notched-outline/constants.js | 29 + .../dist/mdc.notched-outline.css | 41 + .../dist/mdc.notched-outline.min.css | 8 + .../dist/mdc.notchedOutline.js | 802 +++ .../dist/mdc.notchedOutline.min.js | 23 + .../@material/notched-outline/foundation.js | 124 + .../@material/notched-outline/index.js | 75 + .../notched-outline/mdc-notched-outline.scss | 71 + .../node_modules/@material/theme/README.md | 181 + .../@material/theme/_color-palette.scss | 290 + .../@material/theme/_constants.scss | 283 + .../@material/theme/_functions.scss | 60 + .../node_modules/@material/theme/_mixins.scss | 80 + .../@material/theme/_variables.scss | 140 + .../@material/theme/dist/mdc.theme.css | 150 + .../@material/theme/dist/mdc.theme.min.css | 8 + .../@material/theme/mdc-theme.scss | 42 + .../node_modules/@material/theme/package.json | 45 + .../@material/notched-outline/package.json | 57 + node_modules/@material/shape/README.md | 107 + node_modules/@material/shape/_mixins.scss | 58 + .../@material/shape/dist/mdc.shape.css | 39 + .../@material/shape/dist/mdc.shape.min.css | 7 + node_modules/@material/shape/mdc-shape.scss | 52 + node_modules/@material/shape/package.json | 49 + node_modules/@material/textfield/README.md | 321 + .../@material/textfield/_functions.scss | 21 + node_modules/@material/textfield/_mixins.scss | 571 ++ .../@material/textfield/_variables.scss | 59 + node_modules/@material/textfield/adapter.js | 207 + node_modules/@material/textfield/constants.js | 52 + .../textfield/dist/mdc.textfield.css | 1221 ++++ .../@material/textfield/dist/mdc.textfield.js | 5592 +++++++++++++++++ .../textfield/dist/mdc.textfield.min.css | 8 + .../textfield/dist/mdc.textfield.min.js | 135 + .../@material/textfield/foundation.js | 440 ++ .../@material/textfield/helper-text/README.md | 117 + .../textfield/helper-text/_mixins.scss | 43 + .../textfield/helper-text/adapter.js | 70 + .../textfield/helper-text/constants.js | 30 + .../textfield/helper-text/foundation.js | 124 + .../@material/textfield/helper-text/index.js | 60 + .../mdc-text-field-helper-text.scss | 45 + .../@material/textfield/icon/README.md | 148 + .../@material/textfield/icon/_mixins.scss | 56 + .../@material/textfield/icon/_variables.scss | 20 + .../@material/textfield/icon/adapter.js | 77 + .../@material/textfield/icon/constants.js | 24 + .../@material/textfield/icon/foundation.js | 113 + .../@material/textfield/icon/index.js | 62 + .../textfield/icon/mdc-text-field-icon.scss | 31 + node_modules/@material/textfield/index.js | 455 ++ .../@material/textfield/mdc-text-field.scss | 245 + .../node_modules/@material/ripple/README.md | 340 + .../@material/ripple/_functions.scss | 48 + .../@material/ripple/_keyframes.scss | 59 + .../@material/ripple/_mixins.scss | 228 + .../@material/ripple/_variables.scss | 41 + .../node_modules/@material/ripple/adapter.js | 110 + .../node_modules/@material/ripple/common.scss | 38 + .../@material/ripple/constants.js | 46 + .../@material/ripple/dist/mdc.ripple.css | 185 + .../@material/ripple/dist/mdc.ripple.js | 1792 ++++++ .../@material/ripple/dist/mdc.ripple.min.css | 8 + .../@material/ripple/dist/mdc.ripple.min.js | 39 + .../@material/ripple/foundation.js | 604 ++ .../node_modules/@material/ripple/index.js | 153 + .../@material/ripple/mdc-ripple.scss | 49 + .../@material/ripple/package.json | 51 + .../node_modules/@material/ripple/util.js | 146 + .../node_modules/@material/theme/README.md | 181 + .../@material/theme/_color-palette.scss | 290 + .../@material/theme/_constants.scss | 283 + .../@material/theme/_functions.scss | 60 + .../node_modules/@material/theme/_mixins.scss | 80 + .../@material/theme/_variables.scss | 140 + .../@material/theme/dist/mdc.theme.css | 150 + .../@material/theme/dist/mdc.theme.min.css | 8 + .../@material/theme/mdc-theme.scss | 42 + .../node_modules/@material/theme/package.json | 46 + node_modules/@material/textfield/package.json | 62 + package-lock.json | 90 + package.json | 3 + 146 files changed, 25579 insertions(+), 12 deletions(-) create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/README.md create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/_color-palette.scss create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/_constants.scss create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/_functions.scss create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/_mixins.scss create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/_variables.scss create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/dist/mdc.theme.css create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/dist/mdc.theme.min.css create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/mdc-theme.scss create mode 100644 node_modules/@material/.notched-outline.MODULES/@material/theme/package.json create mode 100644 node_modules/@material/floating-label/README.md create mode 100644 node_modules/@material/floating-label/_mixins.scss create mode 100644 node_modules/@material/floating-label/_variables.scss create mode 100644 node_modules/@material/floating-label/adapter.js create mode 100644 node_modules/@material/floating-label/constants.js create mode 100644 node_modules/@material/floating-label/dist/mdc.floating-label.css create mode 100644 node_modules/@material/floating-label/dist/mdc.floating-label.min.css create mode 100644 node_modules/@material/floating-label/dist/mdc.floatingLabel.js create mode 100644 node_modules/@material/floating-label/dist/mdc.floatingLabel.min.js create mode 100644 node_modules/@material/floating-label/foundation.js create mode 100644 node_modules/@material/floating-label/index.js create mode 100644 node_modules/@material/floating-label/mdc-floating-label.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/README.md create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/_color-palette.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/_constants.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/_functions.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/_mixins.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/_variables.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/dist/mdc.theme.css create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/dist/mdc.theme.min.css create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/mdc-theme.scss create mode 100644 node_modules/@material/floating-label/node_modules/@material/theme/package.json create mode 100644 node_modules/@material/floating-label/package.json create mode 100644 node_modules/@material/line-ripple/README.md create mode 100644 node_modules/@material/line-ripple/_functions.scss create mode 100644 node_modules/@material/line-ripple/_mixins.scss create mode 100644 node_modules/@material/line-ripple/adapter.js create mode 100644 node_modules/@material/line-ripple/constants.js create mode 100644 node_modules/@material/line-ripple/dist/mdc.line-ripple.css create mode 100644 node_modules/@material/line-ripple/dist/mdc.line-ripple.min.css create mode 100644 node_modules/@material/line-ripple/dist/mdc.lineRipple.js create mode 100644 node_modules/@material/line-ripple/dist/mdc.lineRipple.min.js create mode 100644 node_modules/@material/line-ripple/foundation.js create mode 100644 node_modules/@material/line-ripple/index.js create mode 100644 node_modules/@material/line-ripple/mdc-line-ripple.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/README.md create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/_color-palette.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/_constants.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/_functions.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/_mixins.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/_variables.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/dist/mdc.theme.css create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/dist/mdc.theme.min.css create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/mdc-theme.scss create mode 100644 node_modules/@material/line-ripple/node_modules/@material/theme/package.json create mode 100644 node_modules/@material/line-ripple/package.json create mode 100644 node_modules/@material/notched-outline/README.md create mode 100644 node_modules/@material/notched-outline/_mixins.scss create mode 100644 node_modules/@material/notched-outline/_variables.scss create mode 100644 node_modules/@material/notched-outline/adapter.js create mode 100644 node_modules/@material/notched-outline/constants.js create mode 100644 node_modules/@material/notched-outline/dist/mdc.notched-outline.css create mode 100644 node_modules/@material/notched-outline/dist/mdc.notched-outline.min.css create mode 100644 node_modules/@material/notched-outline/dist/mdc.notchedOutline.js create mode 100644 node_modules/@material/notched-outline/dist/mdc.notchedOutline.min.js create mode 100644 node_modules/@material/notched-outline/foundation.js create mode 100644 node_modules/@material/notched-outline/index.js create mode 100644 node_modules/@material/notched-outline/mdc-notched-outline.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/README.md create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/_color-palette.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/_constants.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/_functions.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/_mixins.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/_variables.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/dist/mdc.theme.css create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/dist/mdc.theme.min.css create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/mdc-theme.scss create mode 100644 node_modules/@material/notched-outline/node_modules/@material/theme/package.json create mode 100644 node_modules/@material/notched-outline/package.json create mode 100644 node_modules/@material/shape/README.md create mode 100644 node_modules/@material/shape/_mixins.scss create mode 100644 node_modules/@material/shape/dist/mdc.shape.css create mode 100644 node_modules/@material/shape/dist/mdc.shape.min.css create mode 100644 node_modules/@material/shape/mdc-shape.scss create mode 100644 node_modules/@material/shape/package.json create mode 100644 node_modules/@material/textfield/README.md create mode 100644 node_modules/@material/textfield/_functions.scss create mode 100644 node_modules/@material/textfield/_mixins.scss create mode 100644 node_modules/@material/textfield/_variables.scss create mode 100644 node_modules/@material/textfield/adapter.js create mode 100644 node_modules/@material/textfield/constants.js create mode 100644 node_modules/@material/textfield/dist/mdc.textfield.css create mode 100644 node_modules/@material/textfield/dist/mdc.textfield.js create mode 100644 node_modules/@material/textfield/dist/mdc.textfield.min.css create mode 100644 node_modules/@material/textfield/dist/mdc.textfield.min.js create mode 100644 node_modules/@material/textfield/foundation.js create mode 100644 node_modules/@material/textfield/helper-text/README.md create mode 100644 node_modules/@material/textfield/helper-text/_mixins.scss create mode 100644 node_modules/@material/textfield/helper-text/adapter.js create mode 100644 node_modules/@material/textfield/helper-text/constants.js create mode 100644 node_modules/@material/textfield/helper-text/foundation.js create mode 100644 node_modules/@material/textfield/helper-text/index.js create mode 100644 node_modules/@material/textfield/helper-text/mdc-text-field-helper-text.scss create mode 100644 node_modules/@material/textfield/icon/README.md create mode 100644 node_modules/@material/textfield/icon/_mixins.scss create mode 100644 node_modules/@material/textfield/icon/_variables.scss create mode 100644 node_modules/@material/textfield/icon/adapter.js create mode 100644 node_modules/@material/textfield/icon/constants.js create mode 100644 node_modules/@material/textfield/icon/foundation.js create mode 100644 node_modules/@material/textfield/icon/index.js create mode 100644 node_modules/@material/textfield/icon/mdc-text-field-icon.scss create mode 100644 node_modules/@material/textfield/index.js create mode 100644 node_modules/@material/textfield/mdc-text-field.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/README.md create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/_functions.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/_keyframes.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/_mixins.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/_variables.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/adapter.js create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/common.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/constants.js create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/dist/mdc.ripple.css create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/dist/mdc.ripple.js create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/dist/mdc.ripple.min.css create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/dist/mdc.ripple.min.js create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/foundation.js create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/index.js create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/mdc-ripple.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/package.json create mode 100644 node_modules/@material/textfield/node_modules/@material/ripple/util.js create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/README.md create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/_color-palette.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/_constants.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/_functions.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/_mixins.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/_variables.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/dist/mdc.theme.css create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/dist/mdc.theme.min.css create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/mdc-theme.scss create mode 100644 node_modules/@material/textfield/node_modules/@material/theme/package.json create mode 100644 node_modules/@material/textfield/package.json diff --git a/app.js b/app.js index 99c236d..3d5d564 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,6 @@ import { MDCTopAppBar } from '@material/top-app-bar/index'; import { MDCRipple } from '@material/ripple'; +import {MDCTextField} from '@material/textfield'; // Top App Bar @@ -30,4 +31,8 @@ gitRipple.unbounded = true; // Other Ripples -const polyRipple = new MDCRipple(document.querySelector('.polyconv__media')) \ No newline at end of file +const polyRipple = new MDCRipple(document.querySelector('.polyconv__media')) + +// Text Fields + +const searchTextField = new MDCTextField(document.querySelector('.search-text-field--elem')); \ No newline at end of file diff --git a/app.scss b/app.scss index 30c7a49..4ca5ab1 100644 --- a/app.scss +++ b/app.scss @@ -15,6 +15,10 @@ $mdc-theme-on-background: #FFFFFF; @import "@material/typography/mdc-typography"; @import "@material/list/mdc-list"; @import "@material/ripple/mdc-ripple"; +@import "@material/textfield/mdc-text-field"; +@import "@material/notched-outline/mdc-notched-outline"; +@import "@material/shape/mdc-shape"; +@import "@material/shape/mixins"; html { --scroll-height: 0%; @@ -136,7 +140,7 @@ body.no-scroll { overflow: hidden; } .back-button { position: absolute; - @include mdc-icon-button-ink-color(on-secondary); + @include mdc-icon-button-ink-color(on-primary); } .jakcharvat-logo { @@ -387,9 +391,21 @@ body.no-scroll { overflow: hidden; } border-radius: 10px; } -.mdc-list-item { - border-radius: 10px; - justify-content: center; - cursor: pointer; - color: $mdc-theme-on-secondary; -} \ No newline at end of file +// ... Text Fields ... + +.mdc-text-field { + position: relative; + + left: 10px; + width: calc(100% - 15px); + top: 20px; + + @include mdc-text-field-focused-outline-color(on-secondary); + @include mdc-text-field-outline-color(on-primary); + @include mdc-text-field-hover-outline-color(on-secondary); + @include mdc-text-field-ink-color(on-secondary); + @include mdc-text-field-label-color(on-secondary); + @include mdc-text-field-caret-color(on-secondary); +} + +// ... Shape ... diff --git a/index.html b/index.html index 8567b85..d139464 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,8 @@ openScope Tool Hub @@ -46,12 +47,25 @@ + +
+ + +
+ + + +
+
+
+