Skip to content

Commit

Permalink
Added tab-space class.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnsonaz committed Jun 21, 2018
1 parent 029296a commit 259c90d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/styl/tab/tab.styl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
box-shadow: $tab-box-shadow;
& > div {
display: none;
padding: $tab-body-padding;
clearfix();
&.tab-active {
display: block;
Expand All @@ -82,8 +81,12 @@
background-color: $tab-background-color;
border-radius: 0 $tab-border-radius $tab-border-radius $tab-border-radius;
box-shadow: $tab-box-shadow;
& > div {
//padding: $tab-body-padding;
}

&.tab-space {
.tab-body > div,
.tab-carousel > div {
padding: $tab-body-padding;
}
}
}
4 changes: 2 additions & 2 deletions test/views/containers.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>

<h3>Tab</h3>
<div class="tab-container" id="tab-regular">
<div class="tab-container tab-space" id="tab-regular">
<ul class="tab-header">
<li class="tab-title tab-active">
<a>Widgets</a>
Expand All @@ -35,7 +35,7 @@
</div>

<h3>Carousel</h3>
<div class="tab-container" id="tab-carousel">
<div class="tab-container tab-space" id="tab-carousel">
<ul class="tab-header">
<li class="tab-title tab-active">
<a>Widgets</a>
Expand Down

0 comments on commit 259c90d

Please sign in to comment.