@import "../../themes/ionic.globals.md"; // Material Design Searchbar // -------------------------------------------------- // deprecated $searchbar-md-padding: null !default; /// @prop - Padding top of the searchbar $searchbar-md-padding-top: 8px !default; /// @prop - Padding end of the searchbar $searchbar-md-padding-end: $searchbar-md-padding-top !default; /// @prop - Padding bottom of the searchbar $searchbar-md-padding-bottom: $searchbar-md-padding-top !default; /// @prop - Padding start of the searchbar $searchbar-md-padding-start: $searchbar-md-padding-end !default; /// @prop - Background of the searchbar $searchbar-md-background-color: inherit !default; /// @prop - Color of the searchbar input search icon $searchbar-md-input-search-icon-color: #5b5b5b !default; /// @prop - Svg for the searchbar input search icon $searchbar-md-input-search-icon-svg: "" !default; /// @prop - Size of the searchbar input search icon $searchbar-md-input-search-icon-size: 20px !default; /// @prop - Height of the searchbar input $searchbar-md-input-height: auto !default; /// @prop - Line height of the searchbar input $searchbar-md-input-line-height: 3rem !default; /// @prop - Box shadow of the searchbar input $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; /// @prop - Color of the searchbar input placeholder $searchbar-md-input-placeholder-color: #aeaeae !default; /// @prop - Color of the searchbar input text $searchbar-md-input-text-color: #141414 !default; /// @prop - Background of the searchbar input $searchbar-md-input-background-color: #fff !default; /// @prop - Border radius of the searchbar input $searchbar-md-input-border-radius: 2px !default; /// @prop - Color of the searchbar input clear icon $searchbar-md-input-clear-icon-color: #5b5b5b !default; /// @prop - Svg for the searchbar input clear icon $searchbar-md-input-clear-icon-svg: "" !default; /// @prop - Size of the searchbar input clear icon $searchbar-md-input-clear-icon-size: 22px !default; // Searchbar // ----------------------------------------- .searchbar-md { background: $searchbar-md-background-color; @include deprecated-variable(padding, $searchbar-md-padding) { @include padding($searchbar-md-padding-top, $searchbar-md-padding-end, $searchbar-md-padding-bottom, $searchbar-md-padding-start); } } // Searchbar Search Icon // ----------------------------------------- .searchbar-md .searchbar-search-icon { @include position(11px, null, null, 16px); @include svg-background-image($searchbar-md-input-search-icon-svg, true); width: $searchbar-md-input-search-icon-size + 1; height: $searchbar-md-input-search-icon-size + 1; } // Searchbar Cancel Icon (MD only) // ----------------------------------------- .searchbar-md .searchbar-md-cancel { @include position(0, null, null, 10px); @include margin(0); display: none; width: $searchbar-md-input-search-icon-size + 1; height: 100%; } // Searchbar Search & Cancel Icon // ----------------------------------------- .searchbar-md .searchbar-search-icon, .searchbar-md .searchbar-md-cancel { position: absolute; background-repeat: no-repeat; background-size: $searchbar-md-input-search-icon-size; } .searchbar-md .searchbar-search-icon.activated, .searchbar-md .searchbar-md-cancel.activated { background-color: transparent; } // Searchbar Input Field // ----------------------------------------- .searchbar-md .searchbar-input { @include placeholder($searchbar-md-input-placeholder-color); @include padding(6px, 55px); @include border-radius($searchbar-md-input-border-radius); @include background-position(start, 8px, center); height: $searchbar-md-input-height; font-size: 1.6rem; font-weight: 400; line-height: $searchbar-md-input-line-height; color: $searchbar-md-input-text-color; background-color: $searchbar-md-input-background-color; box-shadow: $searchbar-md-input-box-shadow; } // Searchbar Clear Input Icon // ----------------------------------------- .searchbar-md .searchbar-clear-icon { @include position(0, 13px, null, null); @include svg-background-image($searchbar-md-input-clear-icon-svg); @include padding(0); @include background-position(center); position: absolute; width: $searchbar-md-input-clear-icon-size; height: 100%; background-repeat: no-repeat; background-size: $searchbar-md-input-clear-icon-size; } .searchbar-md .searchbar-clear-icon.activated { background-color: transparent; } // Searchbar Focused // ----------------------------------------- .searchbar-md.searchbar-has-focus.searchbar-show-cancel .searchbar-search-icon { display: none; } .searchbar-md.searchbar-has-focus.searchbar-show-cancel .searchbar-md-cancel { display: inline-flex; } // Searchbar in Toolbar // ----------------------------------------- .toolbar .searchbar-md { @include padding(3px); } .toolbar .searchbar-md .searchbar-md-cancel { @include position-horizontal(14px, null); } // Searchbar Cancel Icon (iOS only) // ----------------------------------------- .searchbar-md .searchbar-ios-cancel { display: none; }