Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harwinborger/browser-support

SASS mixin to add CSS support for specific browsers in your project
https://github.com/harwinborger/browser-support

Last synced: 4 days ago
JSON representation

SASS mixin to add CSS support for specific browsers in your project

Awesome Lists containing this project

README

        

# Browser Support for CSS / SCSS
Browser support let you use simple SCSS mixins to apply code only for a specific browser. This can be handy in case you want to write your fallback code specific for Internet Exployer 11.

## Currently Supports:
- Internet Exployer 11

## How to use
```scss
@include browser(IE11){
// your specific code for IE11 here
}
```

## Example
### SCSS Code
```scss
.myClass::before {
@include browser(IE11){
content: 'IE11 only';
}
}
```

### CSS Outputs
```css
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
*::-ms-backdrop, .myClass::before {
content: 'IE11 only';
}
}
```