<commit_before>@import "../../globals.md";
@import "./button";

// Material Design Button
// --------------------------------------------------

$button-md-margin:                         0.4rem 0.2rem !default;
$button-md-padding:                        0 1.1em !default;
$button-md-font-size:                      1.4rem !default;
$button-md-height:                         3.6rem !default;
$button-md-box-shadow:                     0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12) !default;
$button-md-box-shadow-active:              0 3px 5px rgba(0, 0, 0, 0.14), 0 3px 5px rgba(0, 0, 0, 0.21) !default;

$button-md-border-radius:                  2px !default;
$button-md-animation-curve:                cubic-bezier(0.4, 0, 0.2, 1) !default;
$button-md-transition-duration:            300ms !default;

$button-md-clear-hover-background-color:   rgba(158, 158, 158, 0.1) !default;
$button-md-clear-active-background-color:  rgba(158, 158, 158, 0.2) !default;

$button-md-fab-box-shadow:                 0 4px 6px 0 rgba(0, 0, 0, 0.14), 0 4px 5px rgba(0, 0, 0, 0.1) !default;
$button-md-fab-box-shadow-active:          0 5px 15px 0 rgba(0, 0, 0, 0.4), 0 4px 7px 0 rgba(0, 0, 0, 0.1) !default;

$button-md-color:                          map-get($colors-md, primary) !default;
$button-md-color-activated:                color-shade($button-md-color) !default;
$button-md-text-color:                     inverse($button-md-color) !default;
$button-md-hover-opacity:                  0.8 !default;

$button-md-large-font-size:                2rem !default;
$button-md-large-height:                   2.8em !default;
$button-md-large-padding:                  1.0em !default;
$button-md-small-font-size:                1.3rem !default;
$button-md-small-height:                   2.1em !default;
$button-md-small-padding:                  0.9em !default;
$button-md-small-icon-font-size:           1.4em !default;


// Material Design Default Button
// --------------------------------------------------

.button {
  margin: $button-md-margin;
  padding: $button-md-padding;
  height: $button-md-height;
  border-radius: $button-md-border-radius;

  font-weight: 500;
  font-size: $button-md-font-size;

  color: $button-md-text-color;
  background-color: $button-md-color;
  box-shadow: $button-md-box-shadow;

  text-transform: uppercase;

  transition: box-shadow $button-md-transition-duration $button-md-animation-curve,
              background-color $button-md-transition-duration $button-md-animation-curve,
              color $button-md-transition-duration $button-md-animation-curve;

  &:hover:not(.disable-hover) {
    background-color: $button-md-color;
  }

  &.activated {
    box-shadow: $button-md-box-shadow-active;
    background-color: $button-md-color-activated;
  }

  ion-button-effect {
    background-color: $button-md-text-color;
  }
}


// Material Design Default Button Color Mixin
// --------------------------------------------------

@mixin md-button-default($color-name, $color-value) {

  .button-#{$color-name} {
    $bg-color: $color-value;
    $bg-color-activated: color-shade($bg-color);
    $fg-color: inverse($bg-color);

    color: $fg-color;
    background-color: $bg-color;

    &.activated {
      opacity: 1;
      background-color: $bg-color-activated;
    }

    ion-button-effect {
      background-color: $fg-color;
    }
  }

}


// Material Design Button Sizes
// --------------------------------------------------

.button-large {
  padding: 0 $button-md-large-padding;
  height: $button-md-large-height;
  font-size: $button-md-large-font-size;
}

.button-small {
  padding: 0 $button-md-small-padding;
  height: $button-md-small-height;
  font-size: $button-md-small-font-size;
}

.button-small.button-icon-only ion-icon {
  font-size: $button-md-small-icon-font-size;
}

// Material Design Block Button
// --------------------------------------------------

.button-block {
  margin-left: 0;
  margin-right: 0;
}

// Material Design Full Button
// --------------------------------------------------

.button-full {
  margin-right: 0;
  margin-left: 0;
  border-radius: 0;
  border-right-width: 0;
  border-left-width: 0;
}

// Material Design Outline Button
// --------------------------------------------------

.button-outline {
  border-width: 1px;
  border-style: solid;
  border-color: $button-md-color;
  background-color: transparent;
  color: $button-md-color;
  box-shadow: none;

  &.activated {
    opacity: 1;
    box-shadow: none;
    background-color: transparent;
  }

  ion-button-effect {
    background-color: $button-md-color;
  }
}


// Material Design Outline Button Color Mixin
// --------------------------------------------------

@mixin md-button-outline($color-name, $color-value) {

  .button-outline-#{$color-name} {
    $fg-color: color-shade($color-value, 5%);
    border-color: $fg-color;
    background-color: transparent;
    color: $fg-color;

    &.activated {
      background-color: transparent;
    }

    ion-button-effect {
      background-color: $fg-color;
    }
  }<commit_msg>fix(button): fix colorized buttons on hover and outline buttons on hover<commit_after>@import "../../globals.md";
@import "./button";

// Material Design Button
// --------------------------------------------------

$button-md-margin:                         0.4rem 0.2rem !default;
$button-md-padding:                        0 1.1em !default;
$button-md-font-size:                      1.4rem !default;
$button-md-height:                         3.6rem !default;
$button-md-box-shadow:                     0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12) !default;
$button-md-box-shadow-active:              0 3px 5px rgba(0, 0, 0, 0.14), 0 3px 5px rgba(0, 0, 0, 0.21) !default;

$button-md-border-radius:                  2px !default;
$button-md-animation-curve:                cubic-bezier(0.4, 0, 0.2, 1) !default;
$button-md-transition-duration:            300ms !default;

$button-md-clear-hover-background-color:   rgba(158, 158, 158, 0.1) !default;
$button-md-clear-active-background-color:  rgba(158, 158, 158, 0.2) !default;

$button-md-fab-box-shadow:                 0 4px 6px 0 rgba(0, 0, 0, 0.14), 0 4px 5px rgba(0, 0, 0, 0.1) !default;
$button-md-fab-box-shadow-active:          0 5px 15px 0 rgba(0, 0, 0, 0.4), 0 4px 7px 0 rgba(0, 0, 0, 0.1) !default;

$button-md-color:                          map-get($colors-md, primary) !default;
$button-md-color-activated:                color-shade($button-md-color) !default;
$button-md-text-color:                     inverse($button-md-color) !default;
$button-md-hover-opacity:                  0.8 !default;

$button-md-large-font-size:                2rem !default;
$button-md-large-height:                   2.8em !default;
$button-md-large-padding:                  1.0em !default;
$button-md-small-font-size:                1.3rem !default;
$button-md-small-height:                   2.1em !default;
$button-md-small-padding:                  0.9em !default;
$button-md-small-icon-font-size:           1.4em !default;


// Material Design Default Button
// --------------------------------------------------

.button {
  margin: $button-md-margin;
  padding: $button-md-padding;
  height: $button-md-height;
  border-radius: $button-md-border-radius;

  font-weight: 500;
  font-size: $button-md-font-size;

  color: $button-md-text-color;
  background-color: $button-md-color;
  box-shadow: $button-md-box-shadow;

  text-transform: uppercase;

  transition: box-shadow $button-md-transition-duration $button-md-animation-curve,
              background-color $button-md-transition-duration $button-md-animation-curve,
              color $button-md-transition-duration $button-md-animation-curve;

  &:hover:not(.disable-hover) {
    background-color: $button-md-color;
  }

  &.activated {
    box-shadow: $button-md-box-shadow-active;
    background-color: $button-md-color-activated;
  }

  ion-button-effect {
    background-color: $button-md-text-color;
  }
}


// Material Design Default Button Color Mixin
// --------------------------------------------------

@mixin md-button-default($color-name, $color-value) {

  .button-#{$color-name} {
    $bg-color: $color-value;
    $bg-color-activated: color-shade($bg-color);
    $fg-color: inverse($bg-color);

    color: $fg-color;
    background-color: $bg-color;

    &:hover:not(.disable-hover) {
      background-color: $bg-color;
    }

    &.activated {
      opacity: 1;
      background-color: $bg-color-activated;
    }

    ion-button-effect {
      background-color: $fg-color;
    }
  }

}


// Material Design Button Sizes
// --------------------------------------------------

.button-large {
  padding: 0 $button-md-large-padding;
  height: $button-md-large-height;
  font-size: $button-md-large-font-size;
}

.button-small {
  padding: 0 $button-md-small-padding;
  height: $button-md-small-height;
  font-size: $button-md-small-font-size;
}

.button-small.button-icon-only ion-icon {
  font-size: $button-md-small-icon-font-size;
}

// Material Design Block Button
// --------------------------------------------------

.button-block {
  margin-left: 0;
  margin-right: 0;
}

// Material Design Full Button
// --------------------------------------------------

.button-full {
  margin-right: 0;
  margin-left: 0;
  border-radius: 0;
  border-right-width: 0;
  border-left-width: 0;
}

// Material Design Outline Button
// --------------------------------------------------

.button-outline {
  border-width: 1px;
  border-style: solid;
  border-color: $button-md-color;
  background-color: transparent;
  color: $button-md-color;
  box-shadow: none;

  &:hover:not(.disable-hover) {
    background-color: $button-md-clear-hover-background-color;
  }

  &.activated {
    opacity: 1;
    box-shadow: none;
    background-color: transparent;
  }

  ion-button-effect {
    background-color: $button-md-color;
  }
}


// Material Design Outline Button Color Mixin
// --------------------------------------------------

@mixin md-button-outline($color-name, $color-value) {

  .button-outline-#{$color-name} {
    $fg-color: color-shade($color-value, 5%);
    border-color: $fg-color;
    background-color: transparent;
    color: $fg-color;

    &:hover:not(.disable-hover) {
      background-color: $button-md-clear-hover-background-color;
    }

    &.activated {
      background-color: transparent;
    }

    ion-button-effect {
      background-color: $fg-color;
    }
  }
{'fraction_non_alphanumeric': 0.22244299366070583, 'fraction_numerical': 0.029331062541394646, 'mean_word_length': 1.8715023091551208, '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': '807400', 'n_tokens_mistral': 3762, 'n_tokens_neox': 3432, 'n_words': 661}