Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5501: Add Twitter Bootstrap CSS (not js) #603

Conversation

fanf
Copy link
Member

@fanf fanf commented Sep 8, 2014

That pull request allows to use Twitter Bootstrap CSS and JS without breaking everything in Rudder.

See http://stackoverflow.com/questions/25552144/add-bootstrap-js-css-in-a-subparty-of-a-page-or-use-a-global-no-conflic-or-names for the technical limitation.

The solution was to rewrite CSS with a prefix, namely ".tw-bs" thanks to a LESS online processor (for remaining, it was: http://less2css.org/)

To use it, use the tw-bs component name prefixed with the "tw-bs" class. For example, to use the progree bar component, one will write: <div class="tw-bs progress">

For using the JS part, I was forced to add "no-conflict" for all standard element of bootstrap (buttons, alerts, modal, tabs, etc). If at some point we want to switch to bootstrap version, we will need to use them everywhere in Rudder (i.e: we can't simply use a Bootstrap button for one new visual element, we will need to change all Rudder buttons to use bootstrap).

@fanf fanf force-pushed the ust_5293/dev_5501_add_twitter_bootstrap_css branch from c6d3715 to 8f49fc1 Compare September 8, 2014 13:04
@VinceMacBuche
Copy link
Member

Nice Pr for boosting personnal stats !!

I think the css and js is ok !! we will be very happu to switch to minified files ones when everythin will be testest completelely

selfie-0

VinceMacBuche added a commit that referenced this pull request Sep 8, 2014
…trap_css

Fixes #5501: Add Twitter Bootstrap CSS (not js)
@VinceMacBuche VinceMacBuche merged commit 2aa46e2 into Normation:master Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants