Skip to content

gustavoquinalha/buttons-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buttons.css

Simple CSS for buttons and dropdowns.

Demos

Install

$ npm i @gustavoquinalha/buttons-css -D
$ yarn add @gustavoquinalha/buttons-css -D

or

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gustavoquinalha/[email protected]/assets/css/buttons.min.css">

Docs

Default

<button type="button" name="button" class="btn">Default</button>
<a href="#" class="btn">Default Link</a>

Sizes

<button type="button" name="button" class="btn btn-lg">Button Large</button>
<button type="button" name="button" class="btn">Button Normal</button>
<button type="button" name="button" class="btn btn-sm">Button Small</button>

Full width

<button type="button" name="button" class="btn btn-full">Full width</button>

Rounded

<button type="button" name="button" class="btn btn-rounded">Rounded</button>
<a href="#" class="btn btn-rounded">Link Rounded</a>

Primary colors

<button type="button" name="button" class="btn btn-primary">Button primary</button>
<button type="button" name="button" class="btn btn-secundary">Button secundary</button>

Status

<button type="button" name="button" class="btn btn-warning">Warning</button>
<button type="button" name="button" class="btn btn-danger">Danger</button>
<button type="button" name="button" class="btn btn-success">Success</button>

Disabled

<button type="button" name="button" class="btn" disabled>Disabled</button>
<button type="button" name="button" class="btn btn-primary disabled">Disabled</button>

Buttons + icons

<button type="button" name="button" class="btn"><span class="feather-icon icon-arrow-left icon-margin-right"></span> Previous</button>
<button type="button" name="button" class="btn"><span class="feather-icon icon-pause"></span></button>
<button type="button" name="button" class="btn"><span class="feather-icon icon-play"></span></button>
<button type="button" name="button" class="btn">Next <span class="feather-icon icon-arrow-right icon-margin-left"></span></button>

Icons

<button type="button" name="button" class="btn btn-link"><span class="feather-icon icon-x"></span></button>
<button type="button" name="button" class="btn btn-link"><span class="feather-icon icon-book"></span></button>
<button type="button" name="button" class="btn btn-link"><span class="feather-icon icon-camera"></span></button>
<button type="button" name="button" class="btn btn-link"><span class="feather-icon icon-file"></span></button>>

Transparent background

<button type="button" name="button" class="btn btn-link btn-transparent"><span class="feather-icon icon-chevrons-left"></span></button>
<button type="button" name="button" class="btn btn-link btn-transparent"><span class="feather-icon icon-chevrons-right"></span></button>
<button type="button" name="button" class="btn btn-link btn-transparent"><span class="feather-icon icon-edit"></span></button>
<button type="button" name="button" class="btn btn-link btn-transparent"><span class="feather-icon icon-x"></span></button>

Loading

<button type="button" name="button" class="btn btn-min-width btn-link"><span class="feather-icon icon-loader"></span></button>
<button type="button" name="button" class="btn btn-min-width btn-link">Loading<span class="feather-icon icon-loader icon-margin-left"></button>

Group buttons

<div class="group-buttons">
  <button type="button" name="button" class="btn btn-active">Group 1</button>
  <button type="button" name="button" class="btn">Group 2</button>
  <button type="button" name="button" class="btn">Group 3</button>
  <button type="button" name="button" class="btn">Group 4</button>
</div>

<div class="group-buttons column" style="max-width: 300px">
  <button type="button" name="button" class="btn">Group 1</button>
  <button type="button" name="button" class="btn">Group 2</button>
  <button type="button" name="button" class="btn">Group 3</button>
  <button type="button" name="button" class="btn">Group 4</button>
</div>

Dropdowns

<div class="example-button container wrap container wrap">
<div class="dropdown margin-bottom-10" style="width: 300px;">
  <button type="button" name="button" class="btn">Dropdown <span class="feather-icon icon-margin-left icon-chevron-down"></span></button>
  <div class="dropdown-content">
    <ul>
      <li>
        <a href="#">
        Edit
      </a>
      </li>
      <li>
        <a href="#">
        Print
      </a>
      </li>
      <li>
        <a href="#">
        Delete
      </a>
      </li>
    </ul>
  </div>
</div>

Badges

<div class="badge">
  <div class="badge--number">0.0.1</div>
  <a href="#" class="btn">Version</a>
</div>

<div class="badge">
  <div class="badge--number">3</div>
  <a href="#" class="btn btn-secundary"><span class="feather-icon icon-star icon-margin-right"></span> Stars</a>
</div>

<div class="badge">
  <div class="badge--number">6</div>
  <a href="#" class="btn btn-danger"><span class="feather-icon icon-alert-triangle icon-margin-right"></span> Issues</a>
</div>