Last active
December 25, 2015 05:48
-
-
Save n00b2pr0/6926813 to your computer and use it in GitHub Desktop.
Snippet for Stacked Panels Component in Bootstrap 3
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
<div class="panels-stacked"> | |
<div class="panel-heading">CATEGORIES</div> | |
<div class="panel-body"> | |
Panel Content | |
</div> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading">PRICE</div> | |
<div class="panel-body"> | |
Panel Content | |
</div> | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-heading">RATING</div> | |
<div class="panel-body"> | |
Panel Content | |
</div> | |
<div class="panel-footer"></div> | |
</div> | |
</div> |
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
.panels-stacked { | |
.panel { | |
margin-bottom: 0; | |
border-radius: 0; | |
border-bottom-color: transparent; | |
&:first-child { | |
border-top-right-radius: $border-radius-small; | |
border-top-left-radius: $border-radius-small; | |
} | |
&:last-child { | |
border-bottom-color: $panel-inner-border; | |
border-bottom-right-radius: $border-radius-small; | |
border-bottom-left-radius: $border-radius-small; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment