<commit_before>@import '../vendor/bourbon/bourbon';

@import 'variables';
@import 'utils';

@mixin modals {

  // padding based on base line to have a consistent gutter around the content (vertical + horizontal)
  //$padding-modal: 3 * $grid-size;

  .mt-modal__container {
    max-width: $width-breakpoint-single-column-layout;
    padding: $grid-size;
    overflow: visible;

    // propagate the "flexibility"
    display: flex;
    flex-direction: column;
  }

  .mt-modal__frame {
    background-color: $color-contrast;
    border-radius: $border-radius;
    color: $color-text-black-text;
    @include z-depth($depth-dialog);

    // propagate the "flexibility"
    display: flex;
    flex-direction: column;
  }

  .mt-modal__title {
    flex: none;
    padding: 0 3 * $grid-size;
    margin: 3 * $grid-size 0;

    color: $color-primary;
    font: $font-bigger;
    font-weight: 700;
    text-align: center;
  }

  .mt-modal__content {
    // use the initial value for flex (0 1 auto)
    // will shrink to match the available height or expand to give enough place to the content
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    text-align: justify;
  }

  .mt-modal__content__wrapper {
    padding: 0 3 * $grid-size;
  }

  .mt-modal__content__paragraph {
    margin-bottom: 3 * $grid-size;
  }

  .mt-modal__content__sub {
    font: $font-smaller;
  }

  .mt-modal__commands {
    flex: none;

    display: flex;
    justify-content: flex-end;
  }

  .mt-modal__button {
    @include mt-click-reaction();

    margin: $grid-size;

    line-height: 5 * $grid-size;
    min-width: 8 * $grid-size;
    padding: 0 $grid-size;

    color: $color-text;
    font-weight: 700;
    text-align: center;
    background-color: $color-accent;
    border-radius: $border-radius;

    &.secondary {
      border: 1px solid $color-accent;
      background-color: transparent;
    }

    &:first-child {
      //margin-left: 0;
    }

    &:last-child {
      //margin-right: 0;
    }
  }

  .mt-modal__link {
    text-decoration: underline;
  }
}<commit_msg>#133 In Chrome Android large modal overflow the viewport: - added a max-height value on the modal container<commit_after>@import '../vendor/bourbon/bourbon';

@import 'variables';
@import 'utils';

@mixin modals {

  .mt-modal__container {
    max-height: 100%;
    max-width: $width-breakpoint-single-column-layout;
    padding: $grid-size;
    overflow: visible;

    // propagate the "flexibility"
    display: flex;
    flex-direction: column;
  }

  .mt-modal__frame {
    background-color: $color-contrast;
    border-radius: $border-radius;
    color: $color-text-black-text;
    @include z-depth($depth-dialog);

    // propagate the "flexibility"
    display: flex;
    flex-direction: column;
  }

  .mt-modal__title {
    flex: none;
    padding: 0 3 * $grid-size;
    margin: 3 * $grid-size 0;

    color: $color-primary;
    font: $font-bigger;
    font-weight: 700;
    text-align: center;
  }

  .mt-modal__content {
    // use the initial value for flex (0 1 auto)
    // will shrink to match the available height or expand to give enough place to the content
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    text-align: justify;
  }

  .mt-modal__content__wrapper {
    padding: 0 3 * $grid-size;
  }

  .mt-modal__content__paragraph {
    margin-bottom: 3 * $grid-size;
  }

  .mt-modal__content__sub {
    font: $font-smaller;
  }

  .mt-modal__commands {
    flex: none;

    display: flex;
    justify-content: flex-end;
  }

  .mt-modal__button {
    @include mt-click-reaction();

    margin: $grid-size;

    line-height: 5 * $grid-size;
    min-width: 8 * $grid-size;
    padding: 0 $grid-size;

    color: $color-text;
    font-weight: 700;
    text-align: center;
    background-color: $color-accent;
    border-radius: $border-radius;

    &.secondary {
      border: 1px solid $color-accent;
      background-color: transparent;
    }

    &:first-child {
      //margin-left: 0;
    }

    &:last-child {
      //margin-right: 0;
    }
  }

  .mt-modal__link {
    text-decoration: underline;
  }
}
{'fraction_non_alphanumeric': 0.13368983957219252, 'fraction_numerical': 0.011910549343704424, 'mean_word_length': 2.502127659574468, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6857791', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1386, 'n_words': 332}