Skip to content

Commit 38b77c4

Browse files
committed
Move CSS from sourounging div to input element to allow for resize on
focus/transitions etc. This is in preparations of the redesign.
1 parent 128e0c9 commit 38b77c4

File tree

2 files changed

+48
-20
lines changed

2 files changed

+48
-20
lines changed

assets/sass/style.scss

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,34 +207,50 @@ td, th {
207207
}
208208

209209
#search {
210+
text-align: right;
211+
210212
label {
211213
float: left;
212214
font-size: 1.25em;
213215
}
214216

215217
div {
216218
overflow: hidden;
219+
/*
217220
border-width: 0.1em;
218221
border-style: solid;
219222
border-radius: 0.5em;
220223
padding: 0 0.5em;
221224
background-color: #FFFFFF;
225+
*/
222226
}
223227
}
224228

225229
#query {
226230
outline: none;
227-
border: none;
231+
232+
border-width: 0.1em;
233+
border-style: solid;
234+
border-radius: 0.5em;
235+
border-color: #8BC313;
236+
228237
margin: 0;
229-
padding: 0;
230-
width: 100%;
231-
background: none;
238+
padding: 0.25em 0.5em 0.25em 0.5em;
239+
width: 95%;
240+
background-color: #FFFFFF;
232241
color: #777777;
242+
243+
-webkit-transition: all .2s ease-out;
244+
-moz-transition: all .2s ease-out;
245+
-ms-transition: all .2s ease-out;
246+
-o-transition: all .2s ease-out;
247+
transition: all .2s easeout;
233248
}
234249

235250
#query:focus {
236251
color: #000000;
237252
text-align: left;
253+
width: 95%;
238254
}
239255

240256
#query::input-placeholder {

html/css/style.css

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -173,30 +173,42 @@ td, th {
173173
width: 84%;
174174
margin-top: 10px; }
175175

176-
#search label {
177-
float: left;
178-
font-size: 1.25em; }
176+
#search {
177+
text-align: right; }
178+
#search label {
179+
float: left;
180+
font-size: 1.25em; }
181+
#search div {
182+
overflow: hidden;
183+
/*
184+
border-width: 0.1em;
185+
border-style: solid;
186+
border-radius: 0.5em;
187+
padding: 0 0.5em;
188+
background-color: #FFFFFF;
189+
*/ }
179190

180-
#search div {
181-
overflow: hidden;
191+
#query {
192+
outline: none;
182193
border-width: 0.1em;
183194
border-style: solid;
184195
border-radius: 0.5em;
185-
padding: 0 0.5em;
186-
background-color: #FFFFFF; }
187-
188-
#query {
189-
outline: none;
190-
border: none;
196+
border-color: #8BC313;
191197
margin: 0;
192-
padding: 0;
193-
width: 100%;
194-
background: none;
195-
color: #777777; }
198+
padding: 0.25em 0.5em 0.25em 0.5em;
199+
width: 95%;
200+
background-color: #FFFFFF;
201+
color: #777777;
202+
-webkit-transition: all .2s ease-out;
203+
-moz-transition: all .2s ease-out;
204+
-ms-transition: all .2s ease-out;
205+
-o-transition: all .2s ease-out;
206+
transition: all .2s easeout; }
196207

197208
#query:focus {
198209
color: #000000;
199-
text-align: left; }
210+
text-align: left;
211+
width: 95%; }
200212

201213
#query::input-placeholder {
202214
text-align: right; }

0 commit comments

Comments
 (0)