Git Product home page Git Product logo

browser-hack-sass-mixins's Introduction

Browser Hack Mixins for Sass

###Apply your CSS to a specific browser

Browser Hack Mixins for Sass

Requirements

  • Sass 3.3+

How To Use

  1. Import _hacks.scss file to your SCSS code : @import "hacks";
  2. Use the mixin you want:
  • @include [Mixin_Name]{ selector, (property: value) }
  • For example:
@include only_ie9{ .my_element, (color: red)}

Or:

@include only_ff28_above{ .my_element, (
  background-color: green,
  display: flex,
  margin: 2em,
)}

List of Mixins

  1. Firefox CSS Hacks
  • only_ff
  • only_ff2
  • only_ff2_above
  • only_ff3_above
  • only_ff6_above
  • only_ff16_above
  • only_ff21_above
  • only_ff24_above
  • only_ff25_above
  • only_ff26_above
  • only_ff27_above
  • only_ff28_above
  • only_ff30_above
  1. Webkit CSS Hacks
  • only_webkit
  • only_chrome
  • only_safari
  • only_safari9
  • only_ios
  • only_safari_no_ios
  • only_opera9_safari2
  1. Opera CSS Hacks
  • only_opera
  • only_opera11
  1. Internet Explorer CSS Hacks
  • only_edge
  • only_ie6
  • only_ie7
  • only_ie7_below
  • only_ie8
  • only_ie8_below
  • only_ie9
  • only_ie9_below
  • only_ie10
  • only_ie10_above
  • only_ie11
  • only_ie11_above
  • no_ie6
  • only_ie9_saf4_above
  1. Other CSS Hacks
  • no_ie_safari6

##Tips

  • Use firefox mixins before IE mixins. Sometimes Firefox wants to precess the IE css but it can't and skips it's own CSS!

What's New

  • Added Microsoft Edge mixin
  • More styles on each mixin
  • Fixed 'only_safari' mixin
  • Fixed firefox mixins

Thanks to

Share this!

[share](https://twitter.com/intent/tweet?text=Browser-Hack Mixins for Sass%20-%20https://github.com/saadeghi/browser-hack-sass-mixins/)

browser-hack-sass-mixins's People

Contributors

saadeghi avatar marknotton avatar

Watchers

James Cloos avatar Son Pham 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.