GithubHelp home page GithubHelp logo

comster / bootstrap-prefixed-less Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bassjobsen/bootstrap-prefixed-less

0.0 3.0 0.0 60 KB

Add the same browser prefixes to your CSS with Less instead of the Autoprefixer (since Bootstrap 3.2.0)

CSS 100.00%

bootstrap-prefixed-less's Introduction

Bootstrap Less vendor prefixes

Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created by Mark Otto and Jacob Thornton, and maintained by the core team with the massive support and involvement of the community. Bootstrap is used for JBST. JBST is a powerful theme framework that can be used as a standalone website builder or as a framework to create child themes for WordPress build on Twitter's Bootstrap 3. Full customizable with LESS.

From version 3.2.0 and futher Bootstrap drops vendor prefixes (and vendor mixins) from the Less code (deprecated with backward compatibillty support) and add the Autoprefixer to their Grunt build system. Autoprefixing and only using normal CSS according to the latest W3C specs seems a good idea. Autoprefixer make it really easy to add or remove support for browsers and the Less code will become as clean as possible.

JBST has a built-in Less compiler based on less.php. The JBST WordPress theme runs on PHP. Currently there is no native PHP version of the autoprefixer. To solve this problem you can use the Less code from this repository to compile Bootstrap's CSS. The final CSS should be equal to that compiled from the original source and autoprefixed with Bootstrap's default browser support. ( browsers: ['last 2 versions', 'ie 8', 'ie 9', 'android 2.3', 'android 4', 'opera 12']). Vendor prefixes are add by Less. See also: backward-compatibility prefixing (and try to understand the gradient mixins)

How it Works

Normal CSS properties which should be prefixed for browser support are replaced with a mixin call. Called mixins are available in mixins/vendor-prefixes.less. These mixins add the required vendor prefixes by Less. mixins/vendor-prefixes.less has been extend with some mixins which are not available in Bootstrap's Less code. Currently the gradient mixins are replaced with that from remove vendor prefixes from gradient mixins Notice using these kind of mixins is deprecated by Bootstrap but usefull for everyone who want to compile Bootstrap latest Less code and can't install 'npm' and / or Grunt.

bootstrap-prefixed-less's People

Contributors

bassjobsen avatar

Watchers

 avatar  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.