Spaces:
Sleeping
Sleeping
Update static/searchButton.css
Browse files- static/searchButton.css +41 -96
static/searchButton.css
CHANGED
|
@@ -1,98 +1,43 @@
|
|
| 1 |
-
body {
|
| 2 |
-
font-family: sans-serif;
|
| 3 |
-
background-color: #111;
|
| 4 |
-
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
font-size:
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
-
|
| 29 |
-
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
.search-container {
|
| 36 |
-
position: relative;
|
| 37 |
-
display: inline-block;
|
| 38 |
-
margin: 4px 2px;
|
| 39 |
-
height: 50px;
|
| 40 |
-
width: 50px;
|
| 41 |
-
vertical-align: bottom;
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
.mglass {
|
| 45 |
-
display: inline-block;
|
| 46 |
-
pointer-events: none;
|
| 47 |
-
-webkit-transform: rotate(-45deg);
|
| 48 |
-
-moz-transform: rotate(-45deg);
|
| 49 |
-
-o-transform: rotate(-45deg);
|
| 50 |
-
-ms-transform: rotate(-45deg);
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
.searchbutton {
|
| 54 |
-
position: absolute;
|
| 55 |
-
font-size: 22px;
|
| 56 |
-
width: 100%;
|
| 57 |
-
margin: 0;
|
| 58 |
-
padding: 0;
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
.search:focus + .searchbutton {
|
| 62 |
-
transition-duration: 0.4s;
|
| 63 |
-
-moz-transition-duration: 0.4s;
|
| 64 |
-
-webkit-transition-duration: 0.4s;
|
| 65 |
-
-o-transition-duration: 0.4s;
|
| 66 |
-
background-color: white;
|
| 67 |
-
color: black;
|
| 68 |
-
}
|
| 69 |
-
|
| 70 |
-
.search {
|
| 71 |
-
position: absolute;
|
| 72 |
-
left: 49px; /* Button width-1px (Not 50px/100% because that will sometimes show a 1px line between the search box and button) */
|
| 73 |
-
background-color: white;
|
| 74 |
-
outline: none;
|
| 75 |
border: none;
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
}
|
| 90 |
-
|
| 91 |
-
.expandright {
|
| 92 |
-
left: auto;
|
| 93 |
-
right: 49px; /* Button width-1px */
|
| 94 |
-
}
|
| 95 |
-
|
| 96 |
-
.expandright:focus {
|
| 97 |
-
padding: 0 0 0 16px;
|
| 98 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
#tomeasureSearchInput,#relevantSearchInput {
|
| 3 |
+
-webkit-appearance: textfield;
|
| 4 |
+
-webkit-box-sizing: content-box;
|
| 5 |
+
font-family: inherit;
|
| 6 |
+
font-size: 100%;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
input::-webkit-search-decoration,
|
| 10 |
+
input::-webkit-search-cancel-button {
|
| 11 |
+
display: none;
|
| 12 |
+
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
#tomeasureSearchInput,#relevantSearchInput{
|
| 16 |
+
background: url(https://static.tumblr.com/ftv85bp/MIXmud4tx/search-icon.png) no-repeat 9px center;
|
| 17 |
+
/* border: solid 1px #ccc; */
|
| 18 |
+
padding: 9px 7px 9px 32px;
|
| 19 |
+
width:0;
|
| 20 |
+
height: 6px;
|
| 21 |
+
-webkit-border-radius: 10em;
|
| 22 |
+
-moz-border-radius: 10em;
|
| 23 |
+
border-radius:3px;
|
| 24 |
+
-webkit-transition: all .5s;
|
| 25 |
+
-moz-transition: all .5s;
|
| 26 |
+
transition: all .5s;
|
| 27 |
+
margin-left: 18ch ;
|
| 28 |
+
margin-top: 6px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
border: none;
|
| 30 |
+
}
|
| 31 |
+
#relevantSearchInput{
|
| 32 |
+
margin-left: 172px;
|
| 33 |
+
|
| 34 |
+
}
|
| 35 |
+
#tomeasureSearchInput:focus , #relevantSearchInput:focus {
|
| 36 |
+
width: 191px;
|
| 37 |
+
background-color: #fff;
|
| 38 |
+
border-color: #1b1d1c;
|
| 39 |
+
box-shadow: 0 0 5px rgba(109, 207, 246, .5);
|
| 40 |
+
}
|
| 41 |
+
#relevantSearchInput:focus {
|
| 42 |
+
width:165px;
|
| 43 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|