Giter Site home page Giter Site logo

mixins's Introduction

Mixins

A collection of helpful Sass mixins. You can use this as an alternate to compass if you need a general set of mixins such as roundeder corners, opacity, shadows, etc. Full list below.

All mixins generate the following prefixes automatically:

  • -webkit /* Safari and Chrome */
  • -khtml /* IE 9 */
  • -ms /* IE 9 */
  • -moz /* Firefox */
  • -o /* Opera */

Usage (Example)

Simply import the mixin file and then use like any normal Sass mixin.

` @import 'mixins';

.overlay { @include opacity(0.5, ); position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1000; } **Produces** .overlay { -webkit-opacity: 0.5; /* Safari and Chrome */ -khtml-opacity: 0.5; /* IE 9 */ -ms-opacity: 0.5; /* IE 9 */ -moz-opacity: 0.5; /* Firefox */ -o-opacity: 0.5; /* Opera */ opacity: 0.5; filter: alpha(opacity = 0.5 * 100); position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1000; }

List of CSS Mixins w/ (Default Values)

  • opacity opacity($trans: 0.75)
  • border-box border-box()
  • border-radius border-radius($radius: 4px)
  • box-shadow box-shadow($offset: 1px, $spread: 2px, $color: #999999)
  • rotate rotate($degree: 7deg)

mixins's People

Contributors

alexwolfe avatar

Watchers

Travis Smith 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.