/
tab-group.scss
46 lines (37 loc) · 1.13 KB
/
tab-group.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
@use '../core/style/private';
@use '../core/style/variables';
@use './tabs-common';
@include tabs-common.structural-styles;
.mat-mdc-tab {
@include tabs-common.tab;
// Note that we only want to target direct descendant tabs.
.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs > .mat-mdc-tab-header & {
flex-grow: 1;
}
}
// MDC doesn't support disabled tabs so we need to improvise.
.mat-mdc-tab-disabled {
opacity: 0.4;
pointer-events: none;
}
.mat-mdc-tab-group {
@include tabs-common.paginated-tab-header-with-background('.mat-mdc-tab-header');
display: flex;
flex-direction: column;
// Fixes pagination issues inside flex containers (see #23157).
max-width: 100%;
&.mat-mdc-tab-group-inverted-header {
flex-direction: column-reverse;
.mdc-tab-indicator__content--underline {
align-self: flex-start;
}
}
}
// The bottom section of the view; contains the tab bodies
.mat-mdc-tab-body-wrapper {
@include private.private-animation-noop();
position: relative;
overflow: hidden;
display: flex;
transition: height tabs-common.$mat-tab-animation-duration variables.$ease-in-out-curve-function;
}