mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(searchbar): modify height on the input to fix it on Canary
Fixes #5176
This commit is contained in:
@@ -14,7 +14,8 @@ $searchbar-ios-input-search-icon-color: rgba(0, 0, 0, 0.5) !default;
|
||||
$searchbar-ios-input-search-icon-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'><path fill='" + $searchbar-ios-input-search-icon-color + "' d='M5,1c2.2,0,4,1.8,4,4S7.2,9,5,9S1,7.2,1,5S2.8,1,5,1 M5,0C2.2,0,0,2.2,0,5s2.2,5,5,5s5-2.2,5-5S7.8,0,5,0 L5,0z'/><line stroke='" + $searchbar-ios-input-search-icon-color + "' stroke-miterlimit='10' x1='12.6' y1='12.6' x2='8.2' y2='8.2'/></svg>" !default;
|
||||
$searchbar-ios-input-search-icon-size: 13px !default;
|
||||
|
||||
$searchbar-ios-input-height: 100% !default;
|
||||
$searchbar-ios-input-height: 3rem !default;
|
||||
$searchbar-ios-input-line-height: $searchbar-ios-input-height !default;
|
||||
$searchbar-ios-input-placeholder-color: rgba(0, 0, 0, 0.5) !default;
|
||||
$searchbar-ios-input-text-color: #000 !default;
|
||||
$searchbar-ios-input-background-color: #FFFFFF !default;
|
||||
@@ -62,6 +63,7 @@ ion-searchbar {
|
||||
|
||||
.searchbar-input {
|
||||
height: $searchbar-ios-input-height;
|
||||
line-height: $searchbar-ios-input-line-height;
|
||||
padding: 0 28px;
|
||||
|
||||
font-size: 1.4rem;
|
||||
|
||||
@@ -11,7 +11,8 @@ $searchbar-md-input-search-icon-color: #5B5B5B !default;
|
||||
$searchbar-md-input-search-icon-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='" + $searchbar-md-input-search-icon-color + "' d='M337.509,305.372h-17.501l-6.571-5.486c20.791-25.232,33.922-57.054,33.922-93.257C347.358,127.632,283.896,64,205.135,64C127.452,64,64,127.632,64,206.629s63.452,142.628,142.225,142.628c35.011,0,67.831-13.167,92.991-34.008l6.561,5.487v17.551L415.18,448L448,415.086L337.509,305.372z M206.225,305.372c-54.702,0-98.463-43.887-98.463-98.743c0-54.858,43.761-98.742,98.463-98.742c54.7,0,98.462,43.884,98.462,98.742C304.687,261.485,260.925,305.372,206.225,305.372z'/></svg>" !default;
|
||||
$searchbar-md-input-search-icon-size: 20px !default;
|
||||
|
||||
$searchbar-md-input-height: 100% !default;
|
||||
$searchbar-md-input-height: auto !default;
|
||||
$searchbar-md-input-line-height: 3rem !default;
|
||||
$searchbar-md-input-box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12) !default;
|
||||
$searchbar-md-input-placeholder-color: #AEAEAE !default;
|
||||
$searchbar-md-input-text-color: #141414 !default;
|
||||
@@ -78,6 +79,7 @@ ion-searchbar {
|
||||
padding: 6px 55px;
|
||||
|
||||
height: $searchbar-md-input-height;
|
||||
line-height: $searchbar-md-input-line-height;
|
||||
box-shadow: $searchbar-md-input-box-shadow;
|
||||
|
||||
font-size: 1.6rem;
|
||||
|
||||
@@ -28,7 +28,6 @@ ion-searchbar {
|
||||
width: 100%;
|
||||
border: none;
|
||||
font-family: inherit;
|
||||
line-height: 3rem;
|
||||
@include appearance(none);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user