Skip to content

Commit

Permalink
amend(tabs): prevent footer from having tabs top and re-add $tabs-str…
Browse files Browse the repository at this point in the history
…iped-off-opacity
  • Loading branch information
perrygovier committed Dec 12, 2014
1 parent 9ddce8f commit b6e2fba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/angular/directive/headerFooterBar.js
Expand Up @@ -124,9 +124,9 @@ function headerFooterBarDirective(isHeader) {
controller: '$ionicHeaderBar',
compile: function(tElement, $attr) {
tElement.addClass(isHeader ? 'bar bar-header' : 'bar bar-footer');
// android style tabs? if so, remove bottom border for seamless display
// top style tabs? if so, remove bottom border for seamless display
$timeout(function() {
if ($document[0].getElementsByClassName('tabs-top').length) tElement.addClass('has-tabs-top');
if (isHeader && $document[0].getElementsByClassName('tabs-top').length) tElement.addClass('has-tabs-top');
});

return { pre: prelink };
Expand Down
10 changes: 6 additions & 4 deletions scss/_tabs.scss
Expand Up @@ -94,10 +94,10 @@
background-color: $background;
}
.tab-item {
color: rgba($color, $tabs-off-opacity);
color: rgba($color, $tabs-striped-off-opacity);
opacity: 1;
.badge{
opacity:$tabs-off-opacity;
opacity:$tabs-striped-off-opacity;
}
&.tab-item-active,
&.active,
Expand Down Expand Up @@ -166,10 +166,10 @@
@mixin tabs-striped-color($style, $color) {
&.#{$style} {
.tab-item {
color: rgba($color, $tabs-off-opacity);
color: rgba($color, $tabs-striped-off-opacity);
opacity: 1;
.badge{
opacity:$tabs-off-opacity;
opacity:$tabs-striped-off-opacity;
}
&.tab-item-active,
&.active,
Expand Down Expand Up @@ -325,6 +325,8 @@ ion-tabs {
top: $bar-height;
padding-top: 0;
background-position: bottom;
border-top-width: 0;
border-bottom-width: 1px;
.tab-item {
&.tab-item-active,
&.active,
Expand Down
3 changes: 2 additions & 1 deletion scss/_variables.scss
Expand Up @@ -279,7 +279,8 @@ $tabs-default-text: $tabs-stable-text !default;

$tab-item-max-width: 150px !default;

$tabs-off-opacity: 0.4;
$tabs-off-opacity: 0.4 !default;
$tabs-striped-off-opacity: $tabs-off-opacity !default;
$tabs-striped-off-color: #000;
$tabs-striped-border-width: 2px;

Expand Down

0 comments on commit b6e2fba

Please sign in to comment.