Vulcan/packages/telescope-search/lib/client/stylesheets/search.scss

48 lines
913 B
SCSS
Raw Normal View History

2015-03-25 12:02:29 +09:00
$dark-grey:#444444;
.mobile-nav .search{
padding: 10px;
}
.search {
$compressed-width: 120px;
2015-03-25 12:02:29 +09:00
$expanded-width: 250px;
position: relative;
.search-field {
font-size: 14px;
padding: 4px 12px;
line-height: 1.3;
border-radius: 20px;
border: 0px;
2015-03-25 12:02:29 +09:00
width: 100%;
max-width: $expanded-width;
transition: 0.2s all;
-webkit-appearance: textfield;
background: white;
2015-03-25 12:02:29 +09:00
.white-bg &{
border: 1px solid #ddd;
}
&:focus {
outline: none;
2015-03-25 12:02:29 +09:00
background: white;
color: $dark-grey;
}
2015-03-25 12:02:29 +09:00
&::-webkit-input-placeholder{
color: currentColor;
}
&::-moz-placeholder{
color: currentColor;
}
}
&.empty {
.search-field {
2015-03-25 12:02:29 +09:00
max-width: $compressed-width;
background: rgba(255, 255, 255, 0.1);
&:focus {
background: white;
2015-03-25 12:02:29 +09:00
max-width: $expanded-width;
color: #aaa;
}
}
}
}