<commit_before>//
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

@import "@material/animation/functions";
@import "@material/rtl/mixins";
@import "@material/theme/mixins";
@import "@material/typography/mixins";
@import "./variables";

/* postcss-bem-linter: define snackbar */
.mdc-snackbar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  align-items: center;
  justify-content: flex-start;
  padding-right: 24px;
  padding-left: 24px;
  transform: translate(-50%, 100%);
  transition: mdc-animation-exit-permanent(transform, .25s);
  background-color: $mdc-snackbar-background-color;
  pointer-events: none;
  will-change: transform;

  @include mdc-theme-dark(".mdc-snackbar") {
    background-color: $mdc-snackbar-background-color-on-dark;
  }

  @media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
    left: 0;
    width: calc(100% - 48px);
    transform: translate(0, 100%);
  }

  @media (min-width: $mdc-snackbar-tablet-breakpoint) {
    min-width: 288px;
    max-width: 568px;
    border-radius: 2px;
  }

  &--align-start {
    @media (min-width: $mdc-snackbar-tablet-breakpoint) {
      @include mdc-rtl-reflexive-position(left, 24px);

      bottom: 24px;
      transform: translate(0, 200%);
    }

    @media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
      bottom: 0;
      left: 0;
      width: calc(100% - 48px);
      transform: translate(0, 100%);
    }
  }

  &--active {
    transform: translate(0);
    transition: mdc-animation-enter(transform, .25s);
    pointer-events: auto;

    &:not(.mdc-snackbar--align-start) {
      transform: translate(-50%, 0);

      @media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
        bottom: 0;
        left: 0;
        width: calc(100% - 48px);
        transform: translate(0);
      }
    }
  }

  &--action-on-bottom {
    flex-direction: column;
  }

  &--action-on-bottom &__text {
    margin-right: inherit;
  }

  &--action-on-bottom &__action-wrapper {
    @include mdc-rtl-reflexive-box(margin, left, auto);<commit_msg>fix(snackbar): Explicitly use border-box (#1453)<commit_after>//
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

@import "@material/animation/functions";
@import "@material/rtl/mixins";
@import "@material/theme/mixins";
@import "@material/typography/mixins";
@import "./variables";

/* postcss-bem-linter: define snackbar */
.mdc-snackbar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-right: 24px;
  padding-left: 24px;
  transform: translate(-50%, 100%);
  transition: mdc-animation-exit-permanent(transform, .25s);
  background-color: $mdc-snackbar-background-color;
  pointer-events: none;
  will-change: transform;

  @include mdc-theme-dark(".mdc-snackbar") {
    background-color: $mdc-snackbar-background-color-on-dark;
  }

  @media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
    left: 0;
    width: 100%;
    transform: translate(0, 100%);
  }

  @media (min-width: $mdc-snackbar-tablet-breakpoint) {
    min-width: 288px;
    max-width: 568px;
    border-radius: 2px;
  }

  &--align-start {
    @media (min-width: $mdc-snackbar-tablet-breakpoint) {
      @include mdc-rtl-reflexive-position(left, 24px);

      bottom: 24px;
      transform: translate(0, 200%);
    }

    @media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
      bottom: 0;
      left: 0;
      width: 100%;
      transform: translate(0, 100%);
    }
  }

  &--active {
    transform: translate(0);
    transition: mdc-animation-enter(transform, .25s);
    pointer-events: auto;

    &:not(.mdc-snackbar--align-start) {
      transform: translate(-50%, 0);

      @media (max-width: ($mdc-snackbar-tablet-breakpoint - 1)) {
        bottom: 0;
        left: 0;
        width: 100%;
        transform: translate(0);
      }
    }
  }

  &--action-on-bottom {
    flex-direction: column;
  }

  &--action-on-bottom &__text {
    margin-right: inherit;
  }

  &--action-on-bottom &__action-wrapper {
    @include mdc-rtl-reflexive-box(margin, left, auto);
{'fraction_non_alphanumeric': 0.14975105323630794, 'fraction_numerical': 0.028341631558789736, 'mean_word_length': 2.9718631178707224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1353920', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1734, 'n_words': 436}