All Projects → Riccardo-Zanutta → buttons-collection.scss

Riccardo-Zanutta / buttons-collection.scss

Licence: other
[UNMANTAINED] A collection of buttons made with SASS.

Programming Languages

CSS
56736 projects

Projects that are alternatives of or similar to buttons-collection.scss

Compoundbuttongroup
An Android library to easily implement compound buttons
Stars: ✭ 52 (+57.58%)
Mutual labels:  buttons
Vscode Powertools
A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.
Stars: ✭ 150 (+354.55%)
Mutual labels:  buttons
Vue Particle Effect Buttons
A bursting particles effects buttons component ✨💥❄️🌋
Stars: ✭ 219 (+563.64%)
Mutual labels:  buttons
Tm16xx
Arduino TM16xx library for LED & KEY and LED Matrix modules based on TM1638, TM1637, TM1640 and similar chips. Simply use print() on 7-segment and use Adafruit GFX on matrix.
Stars: ✭ 61 (+84.85%)
Mutual labels:  buttons
Downloadbutton
Customizable App Store style download button
Stars: ✭ 1,532 (+4542.42%)
Mutual labels:  buttons
Rhsidebuttons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
Stars: ✭ 164 (+396.97%)
Mutual labels:  buttons
Ng Bootstrap
Angular powered Bootstrap
Stars: ✭ 7,872 (+23754.55%)
Mutual labels:  buttons
getbuttons.io
Love Buttons? Get so many button designs. Click Click!!
Stars: ✭ 12 (-63.64%)
Mutual labels:  buttons
Android Socialbuttons
A library for easily implementing social login/share buttons
Stars: ✭ 145 (+339.39%)
Mutual labels:  buttons
Sbuttons
💡 Simple buttons you can use easily for your next project.
Stars: ✭ 207 (+527.27%)
Mutual labels:  buttons
Sense Navigation
Sheet Navigation + Actions for Qlik Sense.
Stars: ✭ 85 (+157.58%)
Mutual labels:  buttons
Hibiscus.js
Native Angular directives for Bootstrap4
Stars: ✭ 115 (+248.48%)
Mutual labels:  buttons
Buttons
A collection of CSS buttons.
Stars: ✭ 177 (+436.36%)
Mutual labels:  buttons
Buttoncraft
Craft that perfect SwiftUI button effect 👌🏼
Stars: ✭ 60 (+81.82%)
Mutual labels:  buttons
PolishAnnoyanceFilters
Polskie Filtry Elementów Irytujących ukrywają i blokują wyskakujące okienka, widgety, newslettery, powiadomienia push, strzałki, niezgodne z tematem artykułów otagowane linki wewnętrzne i inne drażniące elementy (Polskie Filtry RODO-Ciasteczkowe są już w nich zawarte).
Stars: ✭ 45 (+36.36%)
Mutual labels:  buttons
Superbadges
Emoji Tab Bar button badges ✨
Stars: ✭ 47 (+42.42%)
Mutual labels:  buttons
Niui
Lightweight, feature-rich, accessible front-end library
Stars: ✭ 152 (+360.61%)
Mutual labels:  buttons
materialize-social
Social Login Buttons for MaterializeCSS
Stars: ✭ 50 (+51.52%)
Mutual labels:  buttons
buttons
Make sharing fast and secure.
Stars: ✭ 18 (-45.45%)
Mutual labels:  buttons
Tristatetogglebutton
Customizable tri-state toggle button (with three states, three state toggle) for Android
Stars: ✭ 198 (+500%)
Mutual labels:  buttons

buttons-collection.scss

Simply an open source collection of buttons made with SASS:

Getting started

  • You can grab the compiled CSS directly from the css folder;
  • If you're using SASS, import in your main stylesheet(or whatever you want) the buttons.scss and mixins.scss files:
@import 'mixins';
@import 'buttons';

In buttons.scss there is:

/* Buttons */

// variables: button colors.
$base-button-color:     #fff !default;
$base-button-bg:        #0074d9 !default;
$btn-primary-border:    darken($base-button-bg, 5%) !default;

// Base Button
@include button;

// Themes
@include button_flat;
@include button_ghost;
@include button_ghost;
@include button_ghost_light;
@include button_3d;

.btn, .btn-flat, .btn-ghost, .btn-ghost-light, .btn-3d, {
  @include blockbreak;
}

// Sizes
.btn-s { font-size: 12px; }
.btn-m { font-size: 18px; }
.btn-l { font-size: 20px; }

// Border radius.
.radius {border-radius: .3em;}

So if you want to create a new button, or change the color, ovverride or create a new button class, simply @include your desired mixin in the buttons.scss file.

Note that there are some helper classes to increase/decrease the size of the buttons and to make them rounded.

Examples

// buttons.scss
// $red is a variable I defined in a separate "_vars.scss" file.

@include button_flat($class: -red, $bg: $red)

Output in main.css:

/* Consider to apply this style to an anchor tag <a/> */ 
.btn-flat-red,
.btn-flat-red:link,
.btn-flat-red:visited {
  position: relative;
  color: white;
  background-color: #e74c3c;
  -webkit-box-shadow: 0px 4px #d62c1a;
  box-shadow: 0px 4px #d62c1a;
  margin-bottom: 1.5em;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.btn-flat-red:hover,
.btn-flat-red:focus {
  text-decoration: none;
  background-color: #d62c1a;
  -webkit-box-shadow: 0px 4px #a82315;
  box-shadow: 0px 4px #a82315;
}

.btn-flat-red:active {
  top: 3px;
  outline: 0;
  background-image: none;
}

In the mixins file you can find:

  • the main %button placeholder;
  • A mixin for responsive breakpoints;
  • (obviously) the main mixins.
  • a "blockbreak" mixin, useful for making a full-width button on a certain breakpoint. So, once you have created your classes, make sure to include them:
// buttons.scss

.btn, .btn-flat, .btn-ghost, .btn-flat-custom, .btn-ghost-custom, .btn-3d, {
  @include blockbreak;
}
  • You can change the breakpoint in the mixins.scss file;
  • You can include only the theme you want to avoid bloat of code;

⚠️ I'm using PrePros App for Windows to compile and autoprefix SASS. Consider to use that or a library such as Bourbon.

I'm going to add more and more themes. So feel free to fork this repo, use the code for personal and commercial uses, extend its functionality and make a pull request :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].