ios7 search bar, fixes #374

This commit is contained in:
Adam Bradley
2014-01-10 23:49:19 -06:00
parent 032d21bd13
commit e390e2e1c3
3 changed files with 33 additions and 1 deletions

3
dist/css/ionic.css vendored
View File

@@ -1,4 +1,3 @@
@charset "UTF-8";
/*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
@@ -6543,6 +6542,8 @@ a.button {
*/
.platform-ios7 .bar-header {
height: 64px; }
.platform-ios7 .bar-header.item-input-inset .item-input-wrapper {
margin-top: 19px !important; }
.platform-ios7 .bar-header > * {
margin-top: 20px; }
.platform-ios7 .has-header {

View File

@@ -8,6 +8,10 @@
.bar-header {
height: 64px;
&.item-input-inset .item-input-wrapper {
margin-top: 19px !important;
}
> * {
margin-top: 20px;
}

27
test/search-ios7.html Normal file
View File

@@ -0,0 +1,27 @@
<html>
<head>
<meta charset="utf-8">
<title>Search</title>
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="../dist/css/ionic.css" rel="stylesheet">
</head>
<body class="platform-ios7">
<section class="content overflow-scroll">
<header class="bar bar-header item-input-inset">
<label class="item-input-wrapper">
<i class="icon ion-search placeholder-icon"></i>
<input type="search" placeholder="Search">
</label>
<button class="button button-clear button-positive">
Cancel
</button>
</header>
</section>
</body>
</html>