mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
refactor(search-bar): updated iOS cancel button to be far off screen to begin with
references #247
This commit is contained in:
@ -78,6 +78,17 @@ $search-bar-ios-input-close-icon-size: 17px !default;
|
||||
top: 6px;
|
||||
}
|
||||
|
||||
.search-bar-cancel {
|
||||
@extend button[clear];
|
||||
transition: $search-bar-ios-cancel-transition;
|
||||
min-height: 0;
|
||||
|
||||
padding-left: 8px;
|
||||
padding-right: 0;
|
||||
margin-left: 0;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
.search-bar-input-container.left-align {
|
||||
.search-bar-search-icon {
|
||||
margin-left: 0;
|
||||
@ -87,14 +98,6 @@ $search-bar-ios-input-close-icon-size: 17px !default;
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar-cancel {
|
||||
@extend button[clear];
|
||||
transition: $search-bar-ios-cancel-transition;
|
||||
padding-left: 8px;
|
||||
min-height: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&.hairlines .search-bar {
|
||||
border-bottom-width: 0.55px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user