Improve style for search forms
parent
0535253c91
commit
67cc23103c
|
@ -6,7 +6,7 @@ h2 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > form {
|
body > form #search-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
@ -20,6 +20,7 @@ body > form {
|
||||||
|
|
||||||
input[type="text"] {
|
input[type="text"] {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
min-width: 50px;
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
body{margin:10px}h2{margin-top:0}body>form{display:flex}body>form input{border-radius:0.4em;border:solid 3px #f4f4f4}body>form input[type="submit"]{background-color:#f4f4f4}body>form input[type="text"]{flex-grow:1;font-size:1.4em;padding:5px}ul{list-style-type:none;margin:0;padding:0}ul li{padding:10px 0}ul li:nth-child(even){background-color:#f4f4f4}.movie{display:flex;flex-flow:row wrap;align-items:center;justify-content:center}.movie .poster{margin-right:10px}.movie .informations{align-self:flex-start;flex:1 1 300px}
|
body{margin:10px}h2{margin-top:0}body>form #search-main{display:flex}body>form #search-main input{border-radius:0.4em;border:solid 3px #f4f4f4}body>form #search-main input[type="submit"]{background-color:#f4f4f4}body>form #search-main input[type="text"]{flex-grow:1;min-width:50px;font-size:1.4em;padding:5px}ul{list-style-type:none;margin:0;padding:0}ul li{padding:10px 0}ul li:nth-child(even){background-color:#f4f4f4}.movie{display:flex;flex-flow:row wrap;align-items:center;justify-content:center}.movie .poster{margin-right:10px}.movie .informations{align-self:flex-start;flex:1 1 300px}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
- content_for(:title) { 'Search' }
|
- content_for(:title) { 'Search' }
|
||||||
|
|
||||||
form method="get" action="/search" id="search"
|
form method="get" action="/search" id="search"
|
||||||
|
div id="search-main"
|
||||||
input type="text" name="search" value="#{params['search']}" autocomplete="off" autofocus="on"
|
input type="text" name="search" value="#{params['search']}" autocomplete="off" autofocus="on"
|
||||||
input type="submit" value="Search"
|
input type="submit" value="Search"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue