File tree Expand file tree Collapse file tree 5 files changed +14
-17
lines changed Expand file tree Collapse file tree 5 files changed +14
-17
lines changed Original file line number Diff line number Diff line change
1
+ // This mixin ensures an element spans to fill the nearest ancestor with defined positioning.
2
+ @mixin md-fill {
3
+ position : absolute ;
4
+ top : 0 ;
5
+ left : 0 ;
6
+ right : 0 ;
7
+ bottom : 0 ;
8
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
// TODO(kara): animation for menu opening
3
3
4
4
@import ' ../core/style/button-common' ;
5
- @import ' ../core/style/sidenav -common' ;
5
+ @import ' ../core/style/layout -common' ;
6
6
@import ' ../core/style/menu-common' ;
7
7
8
8
$md-menu-vertical-padding : 8px !default ;
Original file line number Diff line number Diff line change 1
1
@import ' ../core/style/variables' ;
2
2
@import ' ../core/style/elevation' ;
3
- @import ' ../core/style/sidenav -common' ;
3
+ @import ' ../core/style/layout -common' ;
4
4
5
5
6
6
// Mixin to help with defining LTR/RTL 'transform: translate3d()' values.
@@ -57,7 +57,7 @@ md-sidenav-layout {
57
57
58
58
// TODO(hansl): Update this with a more robust solution.
59
59
& [fullscreen ] {
60
- @include md-fullscreen ();
60
+ @include md-fill ();
61
61
62
62
& .md-sidenav-opened {
63
63
overflow : hidden ;
@@ -66,7 +66,7 @@ md-sidenav-layout {
66
66
}
67
67
68
68
.md-sidenav-backdrop {
69
- @include md-fullscreen ();
69
+ @include md-fill ();
70
70
71
71
display : block ;
72
72
Original file line number Diff line number Diff line change 1
1
@import ' ../core/style/variables' ;
2
+ @import ' ../core/style/layout-common' ;
2
3
@import ' tabs-common' ;
3
4
4
5
:host {
@@ -38,12 +39,8 @@ md-ink-bar {
38
39
39
40
// Wraps each tab body
40
41
md-tab-body {
42
+ @include md-fill ;
41
43
display : block ;
42
- position : absolute ;
43
- top : 0 ;
44
- right : 0 ;
45
- bottom : 0 ;
46
- left : 0 ;
47
44
overflow : hidden ;
48
45
& .md-tab-body-active {
49
46
position : relative ;
You can’t perform that action at this time.
0 commit comments