@import "./action-sheet";
@import "./action-sheet.md.vars";

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

.action-sheet-md {
  font-family: $action-sheet-md-font-family;
}

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

.action-sheet-md .action-sheet-title {
  @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);

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

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

.action-sheet-md .action-sheet-sub-title {
  @include padding($action-sheet-md-sub-title-padding-top, $action-sheet-md-sub-title-padding-end, $action-sheet-md-sub-title-padding-bottom, $action-sheet-md-sub-title-padding-start);

  font-size: $action-sheet-md-sub-title-font-size;
}


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

.action-sheet-md .action-sheet-group {
  background-color: $action-sheet-md-background-color;
}

.action-sheet-md .action-sheet-group:first-child {
  @include padding($action-sheet-md-padding-top, null, null, null);
}

.action-sheet-md .action-sheet-group:last-child {
  @include padding(null, null, $action-sheet-md-padding-bottom, null);
}


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

.action-sheet-md .action-sheet-button {
  @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);

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

  position: relative;
  overflow: hidden;

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

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

  contain: strict;
}

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

.action-sheet-md .action-sheet-icon {
  @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);

  font-size: $action-sheet-md-icon-font-size;
}

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

.action-sheet-md .action-sheet-selected {
  font-weight: bold;
  background-color: $action-sheet-md-button-background-selected;
}
