<commit_before>// See height set globally, depended on by buttons
md-toast {
  display: flex;
  position:absolute;
  box-sizing: border-box;
  align-items: center;

  min-height: 48px;
  padding-left: 24px;
  padding-right: 24px;

  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  border-radius: 2px;
  font-size: 14px;
  cursor: default;

  max-width: 879px;
  max-height: 40px;

  height: $toast-height;
  z-index: $z-index-toast;

  &.md-capsule {
    border-radius: 24px;
  }

  opacity: 1;
  transform: translate3d(0,0,0) rotateZ(0deg);
  transition: $swift-ease-out;

  &.ng-leave-active {
    transition: $swift-ease-in;
  }

  /* Transition differently when swiping */
  &.md-swipeleft,
  &.md-swiperight,
  &.md-swipeup,
  &.md-swipedown {
    transition: $swift-ease-out;
  }

  &.ng-enter {
    transform: translate3d(0, 100%, 0);
    &.md-top {
      transform: translate3d(0, -100%, 0);
    }
    opacity: 0;
    &.ng-enter-active {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }
  &.ng-leave.ng-leave-active {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    &.md-top {
      transform: translate3d(0, -100%, 0);
    }
    &.md-swipeleft {
      transform: translate3d(-100%, 0%, 0);
    }
    &.md-swiperight {
      transform: translate3d(100%, 0%, 0);
    }
  }

  .md-action {
    line-height: 19px;
    padding-left: 24px;
    cursor: pointer;
    text-transform: uppercase;
    float: right;
  }
}


@media (max-width: $layout-breakpoint-sm) {
  md-toast {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 0;
    bottom: 0;
    &.md-top {
      bottom: auto;
      top: 0;
    }
  }
}
@media (min-width: $layout-breakpoint-sm) {
  md-toast {
    min-width: 288px;
    &.md-bottom {
      bottom: $toast-margin;
    }
    &.md-left {
      left: $toast-margin;
    }
    &.md-right {
      right: $toast-margin;
    }
    &.md-top {
      top: $toast-margin;
    }

    /* 
     * When the toast doesn't take up the whole screen,
     * make it rotate when the user swipes it away
     */
    &.ng-leave.ng-leave-active {
      &.md-swipeleft {
        transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
      }
      &.md-swiperight {
        transform: translate3d(100%, 25%, 0) rotateZ(15deg);
      }
      &.md-top {
        &.md-swipeleft {
          transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
        }
        &.md-swiperight {
          transform: translate3d(100%, 0, 0) rotateZ(15deg);
        }
      }
    }
  }
}
<commit_msg>fix(toast): fix excess padding on md-action<commit_after>// See height set globally, depended on by buttons
md-toast {
  display: flex;
  position:absolute;
  box-sizing: border-box;
  align-items: center;

  min-height: 48px;
  padding-left: 24px;
  padding-right: 24px;

  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  border-radius: 2px;
  font-size: 14px;
  cursor: default;

  max-width: 879px;
  max-height: 40px;

  height: $toast-height;
  z-index: $z-index-toast;

  &.md-capsule {
    border-radius: 24px;
  }

  opacity: 1;
  transform: translate3d(0,0,0) rotateZ(0deg);
  transition: $swift-ease-out;

  &.ng-leave-active {
    transition: $swift-ease-in;
  }

  /* Transition differently when swiping */
  &.md-swipeleft,
  &.md-swiperight,
  &.md-swipeup,
  &.md-swipedown {
    transition: $swift-ease-out;
  }

  &.ng-enter {
    transform: translate3d(0, 100%, 0);
    &.md-top {
      transform: translate3d(0, -100%, 0);
    }
    opacity: 0;
    &.ng-enter-active {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }
  &.ng-leave.ng-leave-active {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    &.md-top {
      transform: translate3d(0, -100%, 0);
    }
    &.md-swipeleft {
      transform: translate3d(-100%, 0%, 0);
    }
    &.md-swiperight {
      transform: translate3d(100%, 0%, 0);
    }
  }

  .md-action {
    line-height: 19px;
    margin-left: 24px;
    cursor: pointer;
    text-transform: uppercase;
    float: right;
  }
}


@media (max-width: $layout-breakpoint-sm) {
  md-toast {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 0;
    bottom: 0;
    &.md-top {
      bottom: auto;
      top: 0;
    }
  }
}
@media (min-width: $layout-breakpoint-sm) {
  md-toast {
    min-width: 288px;
    &.md-bottom {
      bottom: $toast-margin;
    }
    &.md-left {
      left: $toast-margin;
    }
    &.md-right {
      right: $toast-margin;
    }
    &.md-top {
      top: $toast-margin;
    }

    /* 
     * When the toast doesn't take up the whole screen,
     * make it rotate when the user swipes it away
     */
    &.ng-leave.ng-leave-active {
      &.md-swipeleft {
        transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
      }
      &.md-swiperight {
        transform: translate3d(100%, 25%, 0) rotateZ(15deg);
      }
      &.md-top {
        &.md-swipeleft {
          transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
        }
        &.md-swiperight {
          transform: translate3d(100%, 0, 0) rotateZ(15deg);
        }
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.16151002140494258, 'fraction_numerical': 0.04981513913212687, 'mean_word_length': 2.0723251643753735, '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': '4489353', 'n_tokens_mistral': 2248, 'n_tokens_neox': 2007, 'n_words': 417}