0.0.12 • Published 2 years ago

elr-scss-buttons v0.0.12

Weekly downloads
19
License
SEE LICENSE IN LI...
Repository
github
Last release
2 years ago

Buttons

npm version CI License: MIT npm last commit Netlify Status

some scss mixins for buttons

View Demo

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install elr-scss-buttons

or

yarn add elr-scss-buttons

Implementation

Scss

.button {
  margin: 8px;
  @include elr-button;
  @include elr-button-context;
  @include elr-button-branded;
}
.button-raised {
  @include elr-button-raised;
}
.button-gradient {
  @include elr-button-gradient;
}
.button-glass {
  @include elr-button-glass;
}
.button-invert {
  @include elr-button(
    $config: (
      background-color: $primary-color,
      hover-color: #76d219,
      border-radius: 0,
    )
  );
  margin: 8px;
}
.button-group {
  @include elr-button-group;
}
.button-icon {
  @include elr-icon-button;
  margin: 8px;
}
.button-icon-round {
  @include elr-icon-button(
    $config: (
      round: true,
    )
  );
  margin: 8px;
}

HTML

<button class="button">Button</button>
<button class="button button-pill">Button</button>
<button class="button-invert">Button</button>
<button class="button button-ghost">Button</button>
<button class="button button-ghost button-pill">Button</button>
<button class="button button-raised">Button</button>
<button class="button button-gradient">Button</button>
<button class="button button-glass">Button</button>

SEE LICENSE IN LICENSE.md

0.0.11

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago