|
@@ -26,12 +26,43 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.search-top {
|
|
.search-top {
|
|
|
|
|
+ flex-grow: 1;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+
|
|
|
|
|
+ %flexgrow {
|
|
|
|
|
+ flex-grow: 1;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // set flex-grow
|
|
|
|
|
+ .search-box {
|
|
|
|
|
+ @extend %flexgrow;
|
|
|
|
|
+ .form-group {
|
|
|
|
|
+ @extend %flexgrow;
|
|
|
|
|
+ }
|
|
|
|
|
+ .input-group {
|
|
|
|
|
+ @extend %flexgrow;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.search-top-input-group {
|
|
.search-top-input-group {
|
|
|
|
|
|
|
|
// using react-bootstrap-typeahead
|
|
// using react-bootstrap-typeahead
|
|
|
// see: https://github.com/ericgio/react-bootstrap-typeahead
|
|
// see: https://github.com/ericgio/react-bootstrap-typeahead
|
|
|
- .bootstrap-typeahead-input input {
|
|
|
|
|
- width: 400px;
|
|
|
|
|
|
|
+ .bootstrap-typeahead {
|
|
|
|
|
+ @extend %flexgrow;
|
|
|
|
|
+ max-width: 480px;
|
|
|
|
|
+
|
|
|
|
|
+ .bootstrap-typeahead-input {
|
|
|
|
|
+ @extend %flexgrow;
|
|
|
|
|
+ input {
|
|
|
|
|
+ @extend %flexgrow;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ .input-group-btn {
|
|
|
|
|
+ flex-basis: 39px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.search-top-clear {
|
|
.search-top-clear {
|
|
@@ -128,24 +159,11 @@
|
|
|
// Smartphone and Tablet
|
|
// Smartphone and Tablet
|
|
|
@media (max-width: $screen-sm-max) {
|
|
@media (max-width: $screen-sm-max) {
|
|
|
.search-top {
|
|
.search-top {
|
|
|
- margin-top: 4px 0 0 0;
|
|
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
|
|
+ margin-right: 0;
|
|
|
border-style: none !important;
|
|
border-style: none !important;
|
|
|
box-shadow: none !important;
|
|
box-shadow: none !important;
|
|
|
-webkit-box-shadow: none !important;
|
|
-webkit-box-shadow: none !important;
|
|
|
-
|
|
|
|
|
- .search-form {
|
|
|
|
|
- width: 76%;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .search-top-input-group {
|
|
|
|
|
- .search-top-input {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- }
|
|
|
|
|
- .btn {
|
|
|
|
|
- z-index: 10;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.search-result {
|
|
.search-result {
|
|
@@ -166,12 +184,10 @@
|
|
|
// Smartphone
|
|
// Smartphone
|
|
|
@media (max-width: $screen-xs-max) {
|
|
@media (max-width: $screen-xs-max) {
|
|
|
.search-top {
|
|
.search-top {
|
|
|
- .search-form {
|
|
|
|
|
- min-width: 40%;
|
|
|
|
|
- max-width: 50%;
|
|
|
|
|
- width: 50%;
|
|
|
|
|
- }
|
|
|
|
|
- .search-box {
|
|
|
|
|
|
|
+ .search-top-input-group {
|
|
|
|
|
+ .btn {
|
|
|
|
|
+ z-index: 10;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|