<commit_before>//
// Copyright 2016 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/elevation/mixins";
@import "@material/ripple/mixins";
@import "@material/theme/functions";
@import "@material/theme/mixins";
@import "@material/typography/mixins";
@import "./variables";

@mixin mdc-button-filled-accessible($container-fill-color) {
  $light-or-dark: mdc-theme-light-or-dark($container-fill-color);

  @include mdc-button-container-fill-color($container-fill-color);

  @if ($light-or-dark == "light") {
    @include mdc-button-ink-color(text-primary-on-dark);
    @include mdc-ripple-color(text-primary-on-dark, $mdc-filled-button-ripple-opacity);
  } @else {
    @include mdc-button-ink-color(text-primary-on-light);
    @include mdc-ripple-color(text-primary-on-light, $mdc-filled-button-ripple-opacity);
  }
}

@mixin mdc-button-container-fill-color($color) {
  // :not(:disabled) is used to support link styled as button
  // as link does not support :enabled style
  &:not(:disabled) {
    @include mdc-theme-prop(background-color, $color, $edgeOptOut: true);
  }
}

@mixin mdc-button-stroke-color($color) {
  &:not(:disabled) {
    @include mdc-theme-prop(border-color, $color);
  }
}

@mixin mdc-button-ink-color($color) {
  &:not(:disabled) {
    @include mdc-theme-prop(color, $color);
  }
}

@mixin mdc-button-corner-radius($corner-radius) {
  border-radius: $corner-radius;
}

@mixin mdc-button-stroke-width($stroke-width) {
  border-width: $stroke-width;
  // Note: line height is adjusted for stroke button because borders are not
  // considered as space available to text on the Web
  line-height: $mdc-button-height - $stroke-width * 2;

  // postcss-bem-linter: ignore
  &.mdc-button--dense {
    // Minus extra 1 to accommodate odd font size of dense button
    line-height: $mdc-dense-button-height - $stroke-width * 2 - 1;
  }
}

@mixin mdc-button-base_() {
  @include mdc-typography(button);
  @include mdc-ripple-surface;
  @include mdc-ripple-radius;

  display: inline-block;
  position: relative;
  box-sizing: border-box;
  min-width: 88px;
  height: $mdc-button-height;
  padding: 0 16px;
  border: none;
  outline: none;
  text-align: center;
  user-select: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  overflow: hidden;
  vertical-align: middle;

  // postcss-bem-linter: ignore
  &:active {
    outline: none;
  }

  &:hover {
    cursor: pointer;
  }

  &::-moz-focus-inner {
    padding: 0;<commit_msg>fix(button): Revise button minimum width (#1487)<commit_after>//
// Copyright 2016 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/elevation/mixins";
@import "@material/ripple/mixins";
@import "@material/theme/functions";
@import "@material/theme/mixins";
@import "@material/typography/mixins";
@import "./variables";

@mixin mdc-button-filled-accessible($container-fill-color) {
  $light-or-dark: mdc-theme-light-or-dark($container-fill-color);

  @include mdc-button-container-fill-color($container-fill-color);

  @if ($light-or-dark == "light") {
    @include mdc-button-ink-color(text-primary-on-dark);
    @include mdc-ripple-color(text-primary-on-dark, $mdc-filled-button-ripple-opacity);
  } @else {
    @include mdc-button-ink-color(text-primary-on-light);
    @include mdc-ripple-color(text-primary-on-light, $mdc-filled-button-ripple-opacity);
  }
}

@mixin mdc-button-container-fill-color($color) {
  // :not(:disabled) is used to support link styled as button
  // as link does not support :enabled style
  &:not(:disabled) {
    @include mdc-theme-prop(background-color, $color, $edgeOptOut: true);
  }
}

@mixin mdc-button-stroke-color($color) {
  &:not(:disabled) {
    @include mdc-theme-prop(border-color, $color);
  }
}

@mixin mdc-button-ink-color($color) {
  &:not(:disabled) {
    @include mdc-theme-prop(color, $color);
  }
}

@mixin mdc-button-corner-radius($corner-radius) {
  border-radius: $corner-radius;
}

@mixin mdc-button-stroke-width($stroke-width) {
  border-width: $stroke-width;
  // Note: line height is adjusted for stroke button because borders are not
  // considered as space available to text on the Web
  line-height: $mdc-button-height - $stroke-width * 2;

  // postcss-bem-linter: ignore
  &.mdc-button--dense {
    // Minus extra 1 to accommodate odd font size of dense button
    line-height: $mdc-dense-button-height - $stroke-width * 2 - 1;
  }
}

@mixin mdc-button-base_() {
  @include mdc-typography(button);
  @include mdc-ripple-surface;
  @include mdc-ripple-radius;

  display: inline-block;
  position: relative;
  box-sizing: border-box;
  min-width: 64px;
  height: $mdc-button-height;
  padding: 0 16px;
  border: none;
  outline: none;
  text-align: center;
  user-select: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  overflow: hidden;
  vertical-align: middle;

  // postcss-bem-linter: ignore
  &:active {
    outline: none;
  }

  &:hover {
    cursor: pointer;
  }

  &::-moz-focus-inner {
    padding: 0;
{'fraction_non_alphanumeric': 0.14904396143160648, 'fraction_numerical': 0.00784441902271613, 'mean_word_length': 3.5808383233532934, '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': '1188855', 'n_tokens_mistral': 2140, 'n_tokens_neox': 2048, 'n_words': 518}