Marthee commited on
Commit
507e2ff
·
1 Parent(s): 1af5751

Update static/searchButton.css

Browse files
Files changed (1) hide show
  1. 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
- .button {
7
- display: inline-block;
8
- margin: 4px 2px;
9
- background-color: #444;
10
- font-size: 14px;
11
- padding-left: 32px;
12
- padding-right: 32px;
13
- height: 50px;
14
- line-height: 50px;
15
- text-align: center;
16
- color: white;
17
- text-decoration: none;
18
- cursor: pointer;
19
- -moz-user-select: none;
20
- -khtml-user-select: none;
21
- -webkit-user-select: none;
22
- -ms-user-select: none;
23
- user-select: none;
24
- }
25
-
26
- .button:hover {
27
- transition-duration: 0.4s;
28
- -moz-transition-duration: 0.4s;
29
- -webkit-transition-duration: 0.4s;
30
- -o-transition-duration: 0.4s;
31
- background-color: white;
32
- color: black;
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
- padding: 0;
77
- width: 0;
78
- height: 100%;
79
- z-index: 10;
80
- transition-duration: 0.4s;
81
- -moz-transition-duration: 0.4s;
82
- -webkit-transition-duration: 0.4s;
83
- -o-transition-duration: 0.4s;
84
- }
85
-
86
- .search:focus {
87
- width: 363px; /* Bar width+1px */
88
- padding: 0 16px 0 0;
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
+ }