Skip to content

Commit

Permalink
Merge branch 'search_bar_css' of https://github.com/quochuy/condenser
Browse files Browse the repository at this point in the history
…into quochuy-search_bar_css
  • Loading branch information
gl2748 committed Feb 20, 2020
2 parents d30ad37 + 29b6a0a commit 07bc445
Showing 1 changed file with 26 additions and 33 deletions.
59 changes: 26 additions & 33 deletions src/app/components/elements/SearchInput/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ form.search-input {
}
stroke-width: 1.2;
fill: none;

}

input.search-input__inner {
outline: none;
padding: 9px 10px 9px 32px;
width: 55px;
padding: 9px 10px 11px 32px;
border-radius: 25pc;
transition: all 0.3s ease-in-out;
font-size: 16px;
Expand All @@ -26,7 +24,6 @@ form.search-input {
height: 42px;
color: transparent;
cursor: pointer;
transition: all 0.3s ease-in-out;
font-family: $font-primary;
@include themify($themes) {
border: 1px solid rgba(202, 202, 202, 0.6);
Expand All @@ -39,13 +36,11 @@ form.search-input {
}
&:focus {
width: 180px;
background-color: $color-white;
@include themify($themes) {
border: themed('moduleBackgroundColor');
}
border-color: $color-teal;
box-shadow: 0 0 5px rgba(109,207,246,.5);
width: 180px;
padding-left: 2.5rem;
@include themify($themes) {
color: themed('textColorPrimary');
Expand Down Expand Up @@ -79,56 +74,54 @@ form.search-input--expanded {
}
stroke-width: 1.2;
fill: none;

}

&:hover {
svg.search-input__icon {
stroke: $color-white;
}
}

input.search-input__inner {
outline: none;
padding: 9px 10px 9px 32px;
width: 55px;
padding: 9px 10px 11px 32px;
border-radius: 25pc;
transition: all 0.3s ease-in-out;
font-size: 16px;
background: transparent;
box-shadow: none;
width: 42px;
height: 42px;
color: transparent;
cursor: pointer;
transition: all 0.3s ease-in-out;
font-family: $font-primary;
width: 100%;
border-color: $color-teal;
box-shadow: 0 0 5px rgba(109,207,246,.5);
padding-left: 2.5rem;
cursor: auto;
@include themify($themes) {
border: 1px solid rgba(202, 202, 202, 0.6);
}
&::placeholder {
color: transparent
@include themify($themes) {
border: themed('moduleBackgroundColor');
}
@include themify($themes) {
color: themed('textColorPrimary');
}
&:hover {
background-color: $color-teal;
color: $color-white;
}
width: 100%;
background-color: $color-white;
@include themify($themes) {
border: themed('moduleBackgroundColor');
}
border-color: $color-teal;
box-shadow: 0 0 5px rgba(109,207,246,.5);
padding-left: 2.5rem;
&::placeholder {
@include themify($themes) {
color: themed('textColorPrimary');
}
background-color: transparent;
cursor: auto;
&::placeholder {
color: $color-blue-dark;
@include themify($themes) {
color: themed('textColorSecondary');
}
color: themed('textColorSecondary');
}
}
&:hover::placeholder {
color: $color-text-white;
}
}

/* small */
input.search-input__inner.search-input__inner--small {

}
}
}

0 comments on commit 07bc445

Please sign in to comment.