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..cd8a5bb 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 { @@ -216,15 +220,15 @@ body.no-scroll { overflow: hidden; } } .polyconv__media { - background-image: url(/imgs/polyConv.png); + background-image: url(imgs/polyConv.png); } .centreline__media { - background-image: url(/imgs/centreline.png); + background-image: url(imgs/centreline.png); } .add__media { - background-image: url(/imgs/add.png); + background-image: url(imgs/add.png); } .mdc-card__media.hovered { @@ -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 @@ + +
+ + +
+ + + +
+
+
+