From f4964146600042270b1839d390d02381fe0c0e4a Mon Sep 17 00:00:00 2001 From: andres alcocer Date: Tue, 13 Nov 2018 21:07:35 -0500 Subject: [PATCH] header icons --- src/containers/App.js | 1 + src/containers/Navigation/Navigation.js | 5 ++ src/static/sass/base/_base.scss | 1 + src/static/sass/layout/_navigation.scss | 92 ++++++++++--------------- 4 files changed, 45 insertions(+), 54 deletions(-) diff --git a/src/containers/App.js b/src/containers/App.js index 39b8639..0084275 100644 --- a/src/containers/App.js +++ b/src/containers/App.js @@ -53,6 +53,7 @@ makeAipCall = (searchItem) => { } myF = (event) => { + this.setState({ myVal: false }); diff --git a/src/containers/Navigation/Navigation.js b/src/containers/Navigation/Navigation.js index 48a35ab..a4d1894 100644 --- a/src/containers/Navigation/Navigation.js +++ b/src/containers/Navigation/Navigation.js @@ -41,12 +41,17 @@ class navigation extends Component { My List
+ +
+ KIDS + DVD {/* */} diff --git a/src/static/sass/base/_base.scss b/src/static/sass/base/_base.scss index 8d1e4cc..8a66b08 100644 --- a/src/static/sass/base/_base.scss +++ b/src/static/sass/base/_base.scss @@ -70,6 +70,7 @@ html { height: 150%; padding-bottom: 10rem; padding-left: 4rem; + transition: all 5s; } diff --git a/src/static/sass/layout/_navigation.scss b/src/static/sass/layout/_navigation.scss index 6f248e9..5fc2b95 100644 --- a/src/static/sass/layout/_navigation.scss +++ b/src/static/sass/layout/_navigation.scss @@ -30,72 +30,56 @@ &-link { color: #fff; text-decoration: none; - margin-right: 3rem; + margin-right: 2rem; + + &:last-child { + padding-right: 2.6rem; + } + + } &--left { flex-grow: 1; color: #fff; - padding-right: 4.6rem; + padding-right: 2rem; display: flex; justify-content: flex-end; + + &__input { + font-size: 1.4rem; + border: none; + color: #fff; + outline: none; + width: 0px; + padding: 10px; + padding-right: 2rem; + // background: none; + background: $color-background; + border: 1px solid #fff; + transition: width .5s; + cursor: pointer; + + opacity: 0; + // transition: all .5s; + + &:focus { + padding-left: 4rem; + width: 22rem; + // border: 1px solid #fff; + cursor: text; + opacity: 1; + + } + } } } } - ::placeholder { - color: rgb(167, 166, 166); - opacity: 1; - /* Firefox */ - } - -input[type="text"] { - font-size: 1.4rem; - border: none; - outline: none; - // background-color: red; - width: 0px; - padding: 10px; - padding-right: 2rem; - background: none; - transition: width .5s cubic-bezier(0.000, 0.795, 0.000, 1.000); - cursor: pointer; -} - -input[type="text"]:focus:hover { - z-index: 2; - border-bottom: 1px solid #BBB; - color: #fff; -} - -input[type="text"]:focus { - width: 22rem; - color: #fff; - z-index: 1; - background-color: #000; - border: 1px solid #fff; - cursor: text; -} - -input[type="submit"] { - height: 67px; - width: 63px; - - text-indent: -10000px; - border: none; - position: absolute; - z-index: 2; - cursor: pointer; - opacity: 0.4; - cursor: pointer; - transition: opacity .4s ease; -} - .logo { - z-index: -1; - width: 2rem; - height: 2rem; - transform: translateX(2.4rem) translateY(.5rem); + width: 1.8rem; + height: 1.8rem; + transform: translateX(2.4rem) translateY(1rem); cursor: pointer; } \ No newline at end of file