Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(tabs): fixes styles for md-border-bottom and md-align-tabs
Browse files Browse the repository at this point in the history
Closes #2119
  • Loading branch information
Robert Messerle committed Apr 13, 2015
1 parent 942d0b9 commit 9affd12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/tabs/js/tabsDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
dynamicHeight: '=?mdDynamicHeight',
centerTabs: '=?mdCenterTabs',
selectedIndex: '=?mdSelected',
stretchTabs: '@?mdStretchTabs'
stretchTabs: '@?mdStretchTabs'
},
transclude: true,
template: '\
Expand Down
30 changes: 15 additions & 15 deletions src/components/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ md-tabs {
}
}
}
&[md-align-tabs="bottom"] {
md-tabs-wrapper {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: $tabs-header-height;
}
}
&[md-border-bottom] {
md-tabs-wrapper {
border-width: 0 0 1px;
border-style: solid;
}
}
}
md-tabs-wrapper {
display: block;
Expand Down Expand Up @@ -88,21 +103,6 @@ md-tabs-wrapper {
transform: translate3d(-50%, -50%, 0) rotate(180deg);
}
}
&[md-align-tabs="bottom"] {
md-tabs-wrapper {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: $tabs-header-height;
}
}
&[md-border-bottom] {
md-tabs-wrapper {
border-width: 0 0 1px;
border-style: solid;
}
}
&.md-stretch-tabs {
md-pagination-wrapper {
width: 100%;
Expand Down

1 comment on commit 9affd12

@ThomasBurleson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.

Please sign in to comment.