Skip to content

Instantly share code, notes, and snippets.

@hallojoe
Last active July 29, 2016 14:40
Show Gist options
  • Save hallojoe/820b54a16e0aa0b68c8c6a953ae2d31f to your computer and use it in GitHub Desktop.
Save hallojoe/820b54a16e0aa0b68c8c6a953ae2d31f to your computer and use it in GitHub Desktop.
This show how to wrap a custom namespace around boostrap css.
/*
when build, this will prefix all rules with "namespaced-bootstrap"
*/
.namespaced-bootstrap {
@import (less) url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css');
}
<div class="namespaced-bootstrap"> <!-- yeah! -->
<div class="panel panel-default">
<div class="panel-body">
Basic panel example
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment