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

// Material Design Action Sheet
// --------------------------------------------------

/// @prop - Text align of the action sheet
$action-sheet-md-text-align:                            start !default;

/// @prop - Background color of the action sheet
$action-sheet-md-background:                            #fafafa !default;

/// @prop - Bottom margin of the action sheet button group
$action-sheet-md-group-margin-bottom:                   8px !default;

/// @prop - Color of the action sheet title
$action-sheet-md-title-color:                           #757575 !default;

/// @prop - Font size of the action sheet title
$action-sheet-md-title-font-size:                       1.6rem !default;

// deprecated
$action-sheet-md-title-padding:                         null !default;

/// @prop - Padding top of the action sheet title
$action-sheet-md-title-padding-top:                     11px !default;

/// @prop - Padding end of the action sheet title
$action-sheet-md-title-padding-end:                     16px !default;

/// @prop - Padding bottom of the action sheet title
$action-sheet-md-title-padding-bottom:                  17px !default;

/// @prop - Padding start of the action sheet title
$action-sheet-md-title-padding-start:                   $action-sheet-md-title-padding-end !default;

/// @prop - Minimum height of the action sheet button
$action-sheet-md-button-min-height:                     4.8rem !default;

/// @prop - Text color of the action sheet button
$action-sheet-md-button-text-color:                     #222 !default;

/// @prop - Font size of the action sheet button
$action-sheet-md-button-font-size:                      1.6rem !default;

// deprecated
$action-sheet-md-button-padding:                        null !default;

/// @prop - Padding top of the action sheet button
$action-sheet-md-button-padding-top:                    0 !default;

/// @prop - Padding end of the action sheet button
$action-sheet-md-button-padding-end:                    16px !default;

/// @prop - Padding bottom of the action sheet button
$action-sheet-md-button-padding-bottom:                 $action-sheet-md-button-padding-top !default;

/// @prop - Padding start of the action sheet button
$action-sheet-md-button-padding-start:                  $action-sheet-md-button-padding-end !default;

/// @prop - Background color of the action sheet button
$action-sheet-md-button-background:                     transparent !default;

/// @prop - Background color of the action sheet activated button
$action-sheet-md-button-background-activated:           #f1f1f1 !default;

/// @prop - Font size of the icon in the action sheet button
$action-sheet-md-icon-font-size:                        2.4rem !default;

/// @prop - Width of the icon in the action sheet button
$action-sheet-md-icon-width:                            2.3rem !default;

/// @prop - Text align of the icon in the action sheet button
$action-sheet-md-icon-text-align:                       center !default;

/// @prop - Vertical align of the icon in the action sheet button
$action-sheet-md-icon-vertical-align:                   middle !default;

// deprecated
$action-sheet-md-icon-margin:                           null !default;

/// @prop - Margin top of the icon in the action sheet button
$action-sheet-md-icon-margin-top:                       0 !default;

/// @prop - Margin end of the icon in the action sheet button
$action-sheet-md-icon-margin-end:                       32px !default;

/// @prop - Margin bottom of the icon in the action sheet button
$action-sheet-md-icon-margin-bottom:                    0 !default;

/// @prop - Margin start of the icon in the action sheet button
$action-sheet-md-icon-margin-start:                     0 !default;

.action-sheet-md .action-sheet-container {
  @include padding(.8rem, 0);

  background: $action-sheet-md-background;
}

.action-sheet-md .action-sheet-title {
  @include text-align($action-sheet-md-text-align);

  font-size: $action-sheet-md-title-font-size;
  color: $action-sheet-md-title-color;

  @include deprecated-variable(padding, $action-sheet-md-title-padding) {
    @include padding($action-sheet-md-title-padding-top, $action-sheet-md-title-padding-end, $action-sheet-md-title-padding-bottom, $action-sheet-md-title-padding-start);
  }
}

.action-sheet-md .action-sheet-button {
  @include text-align($action-sheet-md-text-align);

  position: relative;
  overflow: hidden;

  min-height: $action-sheet-md-button-min-height;

  font-size: $action-sheet-md-button-font-size;
  color: $action-sheet-md-button-text-color;
  background: $action-sheet-md-button-background;


  @include deprecated-variable(padding, $action-sheet-md-button-padding) {
    @include padding($action-sheet-md-button-padding-top, $action-sheet-md-button-padding-end, $action-sheet-md-button-padding-bottom, $action-sheet-md-button-padding-start);
  }
}

.action-sheet-md .action-sheet-button.activated {
  background: $action-sheet-md-button-background-activated;
}

.action-sheet-md .action-sheet-icon {
  @include padding(0);
  @include text-align($action-sheet-md-icon-text-align);

  width: $action-sheet-md-icon-width;

  font-size: $action-sheet-md-icon-font-size;
  vertical-align: $action-sheet-md-icon-vertical-align;

  @include deprecated-variable(margin, $action-sheet-md-icon-margin) {
    @include margin($action-sheet-md-icon-margin-top, $action-sheet-md-icon-margin-end, $action-sheet-md-icon-margin-bottom, $action-sheet-md-icon-margin-start);
  }
}

.action-sheet-md .action-sheet-group {
  overflow: hidden;
}

.action-sheet-md .action-sheet-group .button-inner {
  justify-content: flex-start;
}

.action-sheet-md .action-sheet-selected {
  font-weight: bold;
}
