CoreFiles by mySites.guru
_buttons.scss31 lines, 935 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
488606d36acaa4540e70ae90547aa616
sha1
7cac7f3df2dececea937ba6fc5fb45611b47632e
sha256
9865b5d5ae447627af5b798d72d2a81a95379f5fc63f5af845d7c05134bf85a7
// Buttons

@mixin button-variant($background, $border, $hover-background: darken($background, 7.5%), $hover-border: darken($border, 10%), $active-background: darken($background, 10%), $active-border: darken($border, 12.5%)) {
  color: color-yiq($background);
  @include gradient-bg($background);
  border-color: $border;
  @include box-shadow($btn-box-shadow);

  @include hover {
    @include gradient-bg($hover-background);
    color: color-yiq($hover-background);
    border-color: $hover-border;
  }

  &:focus,
  &.focus {
    // Avoid using mixin so we can pass custom focus shadow properly
    @if $enable-shadows {
      box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5), $atum-box-shadow;
    } @else {
      box-shadow: 0 0 0 $btn-focus-width rgba($border, .5), $atum-box-shadow;
    }
  }

}

@each $color, $value in $theme-colors {
  .btn-#{$color} {
    @include button-variant($value, $value);
  }
}

The same content is in 6 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha10. See them all, or every version of this file.