Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions src/components/tab-group/tab-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
@import 'default-theme';

$md-tab-bar-height: 48px !default;
$md-tab-content-min-height: 200px !default;

:host {
display: block;
display: flex;
flex-direction: column;
font-family: $md-font-family;
min-height: $md-tab-bar-height + $md-tab-content-min-height;
}

/** The top section of the view; contains the tab labels */
Expand All @@ -15,6 +18,7 @@ $md-tab-bar-height: 48px !default;
display: flex;
flex-direction: row;
border-bottom: 1px solid md-color($md-background, status-bar);
flex-shrink: 0;
}

/** Wraps each tab label */
Expand All @@ -41,14 +45,18 @@ $md-tab-bar-height: 48px !default;
/** The bottom section of the view; contains the tab bodies */
.md-tab-body-wrapper {
position: relative;
height: 200px;
overflow: hidden;
padding: 12px;
flex-grow: 1;
display: flex;
}

/** Wraps each tab body */
.md-tab-body {
display: none;
overflow: auto;
box-sizing: border-box;
flex-grow: 1;
flex-shrink: 1;
&.md-active {
display: block;
}
Expand Down
3 changes: 3 additions & 0 deletions src/demo-app/tab-group/tab-group-demo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
.md-tab-header {
background: #f9f9f9;
}
.md-tab-body {
padding: 12px;
}
}