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
6 changes: 4 additions & 2 deletions src/lib/tabs/_tabs-common.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
@import '../core/style/variables';

$mat-tab-bar-height: 48px !default;

$mat-tab-animation-duration: 500ms !default;

// Mixin styles for labels that are contained within the tab header.
@mixin tab-label {
line-height: $mat-tab-bar-height;
height: $mat-tab-bar-height;
padding: 0 12px;
cursor: pointer;
box-sizing: border-box;
opacity: 0.6;
min-width: 160px;
text-align: center;
display: inline-flex;
justify-content: center;
align-items: center;
white-space: nowrap;

&:focus {
outline: none;
Expand Down
3 changes: 1 addition & 2 deletions src/lib/tabs/tab-nav-bar/tab-nav-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// Wraps each link in the header
.mat-tab-link {
@include tab-label;
display: inline-block;
vertical-align: top;
text-decoration: none; // Removes anchor underline styling
position: relative;
Expand All @@ -29,4 +28,4 @@
// Styling for the ink bar that displays near the activated anchor
.mat-ink-bar {
@include ink-bar;
}
}