-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from sneas/bootstrap-prefix
fix: Prefix bootstrap classes to prevent collisions with users's CSS/JS
- Loading branch information
Showing
26 changed files
with
136 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<p> | ||
Demo library based on <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework. | ||
Demo library based on <a href="//getbootstrap.com/">Bootstrap</a> CSS framework. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<p> | ||
<img src="http://placehold.it/120x120" class="img-rounded"> | ||
<img src="http://placehold.it/120x120" class="img-circle"> | ||
<img src="http://placehold.it/120x120" class="img-thumbnail"> | ||
<img src="//placehold.it/120x120" class="img-rounded"> | ||
<img src="//placehold.it/120x120" class="img-circle"> | ||
<img src="//placehold.it/120x120" class="img-thumbnail"> | ||
</p> | ||
<p> | ||
<img src="http://placehold.it/1200x300" class="img-responsive"/> | ||
<img src="//placehold.it/1200x300" class="img-responsive"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Initialize Bootstrap | ||
@import "bootstrap/variables"; | ||
@import "bootstrap-sass-namespace/assets/stylesheets/_bootstrap.scss"; | ||
@import "bootstrap/theme"; | ||
|
||
// Initialize highlight.js | ||
.cl { | ||
@import "highlight.js/styles/github"; | ||
} | ||
|
||
// Initialize Smartmenus | ||
@import "smartmenus-namespace/dist/addons/bootstrap/jquery.smartmenus.bootstrap"; | ||
|
||
// Initialize Font Awesome | ||
$fa-font-path: "../fonts" !default; | ||
$fa-css-prefix: cl-fa !default; | ||
@import "font-awesome/scss/font-awesome"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
.navbar-inverse { | ||
.#{$class-prefix}-navbar-inverse { | ||
background-image: none; | ||
} | ||
|
||
.dropdown-menu > li > a:hover, | ||
.dropdown-menu > li > a:focus { | ||
.#{$class-prefix}-dropdown-menu > .#{$class-prefix}-tag-li > .#{$class-prefix}-tag-a:hover, | ||
.#{$class-prefix}-dropdown-menu > .#{$class-prefix}-tag-li > .#{$class-prefix}-tag-a:focus { | ||
background-image: none; | ||
outline: none; | ||
} | ||
|
||
.navbar-toggle { | ||
.#{$class-prefix}-navbar-toggle { | ||
@include navbar-vertical-align(30px); | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.navbar-nav { | ||
.#{$class-prefix}-navbar-nav { | ||
@media (min-width: $grid-float-breakpoint) { | ||
margin-left: -30px; | ||
} | ||
} | ||
|
||
.navbar-form { | ||
.#{$class-prefix}-navbar-form { | ||
padding-right: 0px; | ||
} | ||
|
||
.#{$class-prefix}-nav .#{$class-prefix}-open > .#{$class-prefix}-tag-a, | ||
.#{$class-prefix}-nav .#{$class-prefix}-open > .#{$class-prefix}-tag-a:hover, | ||
.#{$class-prefix}-nav .#{$class-prefix}-open > .#{$class-prefix}-tag-a:focus { | ||
@media (max-width: $grid-float-breakpoint) { | ||
background-color: transparent; | ||
border-color: transparent; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$border-radius-base: 0px; | ||
$navbar-inverse-bg: #333333; | ||
$padding-base-vertical: 0px; | ||
$navbar-padding-vertical: 5px; | ||
$navbar-height: 30px; | ||
$class-prefix: cl-bs; | ||
@import "bootstrap-sass-namespace/assets/stylesheets/bootstrap/_variables.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
@import "type"; | ||
@import "init"; | ||
@import "layout"; | ||
@import "navigation"; | ||
@import "tree"; | ||
@import "components"; | ||
@import "icons"; | ||
@import "grid"; | ||
@import "components"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.