aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/SearchBox.scss
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-10 06:39:00 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-10 06:39:00 -0400
commit913244091c3ad3fefad7c9e3eeeeb432a9b3d15e (patch)
treebdef33fb9672db5e8286918aef3ba82be5848313 /src/client/views/SearchBox.scss
parent5d3c1921644e5a99b0d3281bb601d14c7484bc6f (diff)
Refactored SearchBox
Made DragManager able to handle async functions Cleaned up some other stuff
Diffstat (limited to 'src/client/views/SearchBox.scss')
-rw-r--r--src/client/views/SearchBox.scss43
1 files changed, 23 insertions, 20 deletions
diff --git a/src/client/views/SearchBox.scss b/src/client/views/SearchBox.scss
index 792d6dd3c..b38e6091d 100644
--- a/src/client/views/SearchBox.scss
+++ b/src/client/views/SearchBox.scss
@@ -1,47 +1,50 @@
@import "globalCssVariables";
-.searchBox {
+.searchBox-bar {
height: 32px;
- //display: flex;
- //padding: 4px;
- -webkit-transition: width 0.4s ease-in-out;
- transition: width 0.4s ease-in-out;
+ display: flex;
+ justify-content: flex-end;
align-items: center;
+ padding-left: 2px;
+ padding-right: 2px;
-
-
- input[type=text] {
+ .searchBox-input {
width: 130px;
-webkit-transition: width 0.4s;
transition: width 0.4s;
- position: absolute;
- right: 100px;
+ align-self: stretch;
}
- input[type=text]:focus {
+ .searchBox-input:focus {
width: 500px;
outline: 3px solid lightblue;
}
- .filter-button {
- position: absolute;
- right: 30px;
+ .searchBox-barChild {
+ flex: 0 1 auto;
+ margin-left: 2px;
+ margin-right: 2px;
}
- .submit-search {
- text-align: right;
+ .searchBox-filter {
+ align-self: stretch;
+ }
+
+ .searchBox-submit {
color: $dark-color;
- -webkit-transition: right 0.4s;
- transition: right 0.4s;
}
- .submit-search:hover {
+ .searchBox-submit:hover {
color: $main-accent;
transform: scale(1.05);
cursor: pointer;
}
}
+.searchBox-results {
+ margin-left: 27px; //Is there a better way to do this?
+}
+
.filter-form {
background: $dark-color;
height: 400px;
@@ -64,7 +67,7 @@
height: 20px;
}
-.results {
+.searchBox-results {
top: 300px;
display: flex;
flex-direction: column;