Sha256: c9f775b045c14b5d8d509885a21955993b59e4c18a665e7cfcc86f9994ff63f6

Contents?: true

Size: 673 Bytes

Versions: 108

Compression:

Stored size: 673 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

108 entries across 108 versions & 12 rubygems

Version Path
jekyll-garden-0.0.12 _sass/util/mixins/_buttons.scss
jekyll-cessda-docs-0.1.11 _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.11.pre.d2f3089c74b3bfd3d3624d702cb07401036885ff _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10.pre.d82c42ba9ed332418f362da4ebd6622718985a14 _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10.pre.f39e7bdab5c9aaaac9b9c7b2d6d4224de53bbc62 _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10.pre.d587f893cc63298eb1de3c47b89bca57ff44de3f _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10 _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10.pre.2706e0c723ff44067ba8e667ac3e44e9269e39e4 _sass/support/mixins/_buttons.scss
jekyll-wikibonsai-0.0.11 _sass/util/mixins/_buttons.scss
jekyll-wikibonsai-0.0.10 _sass/util/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10.pre.f77bbe9cb46f31a0330b9cfa0d97f2f030f0677a _sass/support/mixins/_buttons.scss
just-the-docs-0.5.4 _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.9 _sass/support/mixins/_buttons.scss
jekyll-cessda-docs-0.1.10.pre.1ed94d588429435ee094e916854b74478a0f0f3c _sass/support/mixins/_buttons.scss
just-the-docs-peter-0.1.3 _sass/support/mixins/_buttons.scss
just-the-docs-peter-0.1.2 _sass/support/mixins/_buttons.scss
just-the-docs-peter-0.1.1 _sass/support/mixins/_buttons.scss
just-the-docs-0.5.3 _sass/support/mixins/_buttons.scss
just-the-docs-0.5.2 _sass/support/mixins/_buttons.scss
just-the-docs-0.5.1 _sass/support/mixins/_buttons.scss