Giter VIP home page Giter VIP logo

sass-mixins's Introduction

SASS Mixins

A collection of SASS mixins for your project.

Animation

.class { @include animation(animationName 1s); }

Keyframes

@include keyframes(animationOne) {
    from { background-color: red; }
    to { background-color: black; }
}

Background size

.class { @include background-size(auto 100%); }

Box shadow

.class { @include box-shadow(1px 1px 10px 10px #666, 2px 2px 5px 5px #ddd inset); }

Opacity

.class { @include opacity(0.5); }

Clearfix

.class { @include clearfix(); }

Border-radius

.class { @include border-radius(10px); }

Box-sizing

.class { @include box-sizing(); }

Transition

.class { @include transition(color 1s .5s ease-out); }

Columns

.class { @include columns(3, 150px, solid 1px red); }

Transform

Default

.class { @include transform(rotate(45deg); }

Translate

.class { @include translate(100px, 100px); }

Skew

.class { @include skew(10px, 10px); }

Scale

.class { @include scale(0.75); }

Rotate

.class { @include rotate(45deg); }

Transform-origin

.class { @include transform-origin(left, top); }

Gradients

Linear horizontal (simple)

Only start and end color.

.class { @include horizontal-gradient(#666, #000); }

Linear horizontal (multiple)

The first color is the background color and the other are steps of gradient.

.class { @include horizontal-gradient(#666, #000 50%, #444 80%); }

Linear vertical (simple)

Only start and end color.

.class { @include vertical-gradient(#666, #000); }

Linear vertical (multiple)

The first color is the background color and the other are steps of gradient.

.class { @include vertical-gradient(#666, #000 40%, #333 75%); }

Absolute Center

Reference

.class {
    @include absolute-center(5%, 0, none, 0);
}
.class {
  position: absolute;
  top: 5%;
  right: 0;
  left: 0;
  margin: auto;
}

Font-family

.class { @include font-face("helvetica","../font/helvetica"); }

sass-mixins's People

Contributors

raphaelfabeni avatar neysimoes avatar

Watchers

James Cloos avatar Ricardo Côrtes avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.