Sha256: 4e40b5de30b6d188fea649e2e02f3cf36d544b60edddbfd762d271a829cc367e

Contents?: true

Size: 681 Bytes

Versions: 12

Compression:

Stored size: 681 Bytes

Contents

// Colored button

@mixin btn-color($fg, $bg) {
  color: $fg;
  background-color: darken($bg, 2%);
  background-image: linear-gradient(lighten($bg, 5%), darken($bg, 2%));
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.12);

  &:hover,
  &.zeroclipboard-is-hover {
    color: $fg;
    background-color: darken($bg, 4%);
    background-image: linear-gradient((lighten($bg, 2%), darken($bg, 4%)));
  }

  &:active,
  &.selected,
  &.zeroclipboard-is-active {
    background-color: darken($bg, 5%);
    background-image: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  &.selected:hover {
    background-color: darken($bg, 10%);
  }
}

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
just-the-docs-0.10.0 _sass/support/mixins/_buttons.scss
just-the-docs-0.9.0 _sass/support/mixins/_buttons.scss
opendevsecops-jekyll-0.1.2 _sass/support/mixins/_buttons.scss
opendevsecops-jekyll-0.1.1 _sass/support/mixins/_buttons.scss
opendevsecops-jekyll-0.1.0 _sass/support/mixins/_buttons.scss
just-the-docs-0.8.2 _sass/support/mixins/_buttons.scss
just-the-docs-0.8.1 _sass/support/mixins/_buttons.scss
just-the-docs-0.8.0 _sass/support/mixins/_buttons.scss
just-the-docs-0.7.0 _sass/support/mixins/_buttons.scss
just-the-docs-0.6.2 _sass/support/mixins/_buttons.scss
just-the-docs-0.6.1 _sass/support/mixins/_buttons.scss
just-the-docs-0.6.0 _sass/support/mixins/_buttons.scss