-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
_tabs-common.scss
47 lines (39 loc) · 976 Bytes
/
_tabs-common.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@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;
&:focus {
outline: none;
opacity: 1;
}
&.mat-tab-disabled {
cursor: default;
pointer-events: none;
}
}
// Mixin styles for the top section of the view; contains the tab labels.
@mixin tab-header {
overflow: hidden;
position: relative;
flex-shrink: 0;
}
// Mixin styles for the ink bar that displays near the active tab in the header.
@mixin ink-bar {
position: absolute;
bottom: 0;
height: 2px;
transition: $mat-tab-animation-duration $ease-in-out-curve-function;
.mat-tab-group-inverted-header & {
bottom: auto;
top: 0;
}
}