mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
ios7 search bar, fixes #374
This commit is contained in:
3
dist/css/ionic.css
vendored
3
dist/css/ionic.css
vendored
@@ -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 {
|
||||
|
||||
@@ -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
27
test/search-ios7.html
Normal 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>
|
||||
Reference in New Issue
Block a user