@import "../../themes/ionic.globals.md";

@import "../item/item.md.vars";

// Material Design Input
// --------------------------------------------------

/// @prop - Font family of the input
$input-md-font-family:                    $font-family-md-base !default;

/// @prop - Font size of the input
$input-md-font-size:                      inherit !default;

/// @prop - Margin top of the input
$input-md-margin-top:                     $item-md-padding-top !default;

/// @prop - Margin end of the input
$input-md-margin-end:                     ($item-md-padding-end / 2) !default;

/// @prop - Margin bottom of the input
$input-md-margin-bottom:                  $item-md-padding-bottom !default;

/// @prop - Margin start of the input
$input-md-margin-start:                   ($item-md-padding-start / 2) !default;

/// @prop - Width of the icon used to clear the input
$input-md-input-clear-icon-width:         30px !default;

/// @prop - Color of the icon used to clear the input
$input-md-input-clear-icon-color:         $text-md-color-step-400 !default;

/// @prop - Icon used to clear the input
$input-md-input-clear-icon-svg:           "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><polygon fill='" + $input-md-input-clear-icon-color + "' points='405,136.798 375.202,107 256,226.202 136.798,107 107,136.798 226.202,256 107,375.202 136.798,405 256,285.798 375.202,405 405,375.202 285.798,256'/></svg>" !default;

/// @prop - Size of the icon used to clear the input
$input-md-input-clear-icon-size:          22px !default;

/// @prop - Placeholder Text color of the input
$input-md-placeholder-color:              $placeholder-text-md-color !default;

/// @prop - Show the focus highlight when the input has focus
$input-md-show-focus-highlight:           true !default;

/// @prop - Show the valid highlight when it is valid and has a value
$input-md-show-valid-highlight:           $input-md-show-focus-highlight !default;

/// @prop - Show the invalid highlight when it is invalid and has value
$input-md-show-invalid-highlight:         $input-md-show-focus-highlight !default;

/// @prop - Color of the input highlight
$input-md-highlight-color:                ion-color($colors-md, primary, base, md) !default;

/// @prop - Color of the input highlight when valid
$input-md-highlight-color-valid:          ion-color($colors-md, success, base, md) !default;

/// @prop - Color of the input highlight when invalid
$input-md-highlight-color-invalid:        ion-color($colors-md, danger, base, md) !default;

/// @prop - Padding top of the inset input
$input-md-inset-padding-top:              ($item-md-padding-top / 2) !default;

/// @prop - Padding end of the inset input
$input-md-inset-padding-end:              ($item-md-padding-end / 2) !default;

/// @prop - Padding bottom of the inset input
$input-md-inset-padding-bottom:           ($item-md-padding-bottom / 2) !default;

/// @prop - Padding start of the inset input
$input-md-inset-padding-start:            ($item-md-padding-start / 2) !default;

/// @prop - Margin top of the inset input
$input-md-inset-margin-top:               ($item-md-padding-top / 2) !default;

/// @prop - Margin end of the inset input
$input-md-inset-margin-end:               $item-md-padding-end !default;

/// @prop - Margin bottom of the inset input
$input-md-inset-margin-bottom:            ($item-md-padding-bottom / 2) !default;

/// @prop - Margin start of the inset input
$input-md-inset-margin-start:             $item-md-padding-start !default;
