Git Product home page Git Product logo

bootstrap3-adapter's Introduction

Bootstrap 3 Adapter

Analytics

Writing Bootstrap 2 syntax, using Bootstrap 3 styles.

Introduction

Why we need an adapter to fit old syntax?

Some system has written in Bootstrap2 (example: Joomla CMS), but when Bootstrap3 release, it's not backward compatible. This adapter can help developer working in Bootstrap 2 & 3 syntax that will not break their system when migrating to version 3, or make Bootstrap 2 system be flatten styles.

How to use it

A html page written in Bootstrap 2 will be:

<!-- Bootstrap 2 css -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">

Then we remove Bootstrap 2 css and add Bootstrap 3 css:

<!-- Bootstrap 3 css -->
<link href="assets/css/bootstrap.css" rel="stylesheet">

Download and uncompress adapter zip file, we will get a file bootstrap3-adapter.min.css. Add it after bootstrap css:

<!-- Bootstrap 3 css -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap3-adapter.min.css" rel="stylesheet">

Now, a website written in Bootstrap 2 will be Bootstrap 3 flatten styles.

Contribution

Compiling less files

There is some less folders in this project.

  • less => main less files of adapter.
  • less.2 => Bootstrap 2 less files
  • less.3 => Bootstrap 3 less files

If you want to modify some less files in this project, please run

$ grunt dist

to compile less files. The css file will generated to dist and docs/asset folders.

You can open docs/index.html in browser to test your code.

How to use Grunt?

Please see Twitter Bootstrap: Compiling CSS and JavaScript

Compress css files to zip

Run:

$ sh build/zip.sh

Will auto zip dist/css/bootstrap3-adapter.css and dist/css/bootstrap3-adapter.min.css to asset/bootstrap3-adapter.zip. Then we use this file to dispatch.

About Bootstrap

This project is based on Twitter Bootstrap, please see twbs/bootstrap

bootstrap3-adapter's People

Contributors

asika32764 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

hfittipaldi

bootstrap3-adapter's Issues

Operational Question

Hi Simon ... good to see work around this, but wondering what the extra CSS file actually does.
I'm assuming what it does is apply BS3 styles to BS2 element types ,,, so if a BS3 style does not exist on an element it will apply same/similar styling to the mapped BS2 element ... and that's what is in the new css file?

Thanks for the work and look forward to your reply.

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.