Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.
/ sass-prefixer Public archive

(Deprecated) Sass-prefixer is a vendor prefixer for sass written in scss

License

Notifications You must be signed in to change notification settings

guerrero/sass-prefixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sass Prefixer (DEPRECATED)

Sass-prefixer is a vendor prefixer for sass written in scss, you only need to download sass-prefixer.scss, import the file in your scss and start using it. That's all! Sass-prefixer it's in beta version, it but it works well with almost all common css properties.

sass-prefixer is deprecated, use Autoprefixer instead

Quick start

  • Download sass-prefixer
  • Save the file in your project directory, inside the scss folder (recommended)
  • Import sass-prefixer in your main scss file. If you don't have the sass-prefixer file in the same path as your scss main file you need to specify a relative path.
// Import sass-prefixer
@import "sass-prefixer";
  • Once you've imported sass-prefixer, you only need to include the mixin into your code to prefix your styles. This is the way to do:
// This is a selector with unprefixed properties
.unprefixed {
	box-sizing: border-box;
}

// This is a selector with prefixed properties using sass prefixer
// sass-prefixer mixin use only two parameter, the first for the css property
// and the second for the css value: @include prefix($property,$value), you
// should introduce the two parameters to avoid create an error while the scss
// file is compiling.
.prefixed {
	@include prefix(box-sizing, border-box)
}

This code compiles to:

.unprefixed {
	box-sizing: border-box;
}

.prefixed {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

Customize it

You can specify what browsers you want sass-prefixer support modifying the $prefixer-web-browsers-support variable in sass-prefixer.scss or adding it in your scss with a different value

Bugs and feature requests

Have a bug or a feature request? Please open a new issue. Before opening any issue, please search for existing issues and read the Issue Guidelines, written by Nicolas Gallagher.

Contributing

Please read through the contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Author

Alex Guerrero

License

Public License (Unlicense)

About

(Deprecated) Sass-prefixer is a vendor prefixer for sass written in scss

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages