Browse Source

search text alignment

pull/214/head
connors 11 years ago
parent
commit
e7913d7816
  1. 6
      dist/ratchet.css
  2. 4
      lib/sass/forms.scss
  3. 5
      test/app/checkout.html

6
dist/ratchet.css vendored

@ -499,10 +499,16 @@ input[type=search] {
height: 34px; height: 34px;
padding: 0 10px; padding: 0 10px;
font-size: 14px; font-size: 14px;
text-align: center;
border-radius: 6px; border-radius: 6px;
border-width: 0; border-width: 0;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
box-sizing: border-box; box-sizing: border-box;
transition: text-align 1s linear;
}
input[type=search]:focus {
text-align: left;
} }
textarea { textarea {

4
lib/sass/forms.scss

@ -45,11 +45,15 @@ input[type=search] {
height: 34px; height: 34px;
padding: 0 10px; padding: 0 10px;
font-size: 14px; font-size: 14px;
text-align: center;
border-radius: 6px; border-radius: 6px;
border-width: 0; border-width: 0;
background-color: rgba(0,0,0,.1); background-color: rgba(0,0,0,.1);
box-sizing: border-box; // Override content-box in normalize box-sizing: border-box; // Override content-box in normalize
} }
input[type=search]:focus {
text-align: left;
}
// Allow text area's height to grow larger than a normal input // Allow text area's height to grow larger than a normal input
textarea { textarea {

5
test/app/checkout.html

@ -24,6 +24,11 @@
</a> </a>
<h1 class="title">Buy tickets</h1> <h1 class="title">Buy tickets</h1>
</header> </header>
<nav class="bar-standard bar-header-secondary">
<form>
<input type="search" placeholder="Search for movies">
</form>
</nav>
<nav class="bar-tab"> <nav class="bar-tab">
<ul class="tab-inner"> <ul class="tab-inner">

Loading…
Cancel
Save