This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(subheader): add subheader component with sticky scroll
- Loading branch information
1 parent
6162156
commit 7787c9c
Showing
21 changed files
with
817 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
.material-subheader { | ||
position:relative; | ||
} | ||
.material-sticky-invisible { | ||
opacity: 0; | ||
} | ||
|
||
.material-sticky-container { | ||
position: absolute; | ||
z-index: 2; | ||
overflow: hidden; | ||
pointer-events: none; | ||
|
||
.material-sticky-clone { | ||
top: 0; | ||
left: 0; | ||
right: 24px; | ||
position: absolute; | ||
@include transform(translate3d(0, 0, 0)); | ||
&:not(.material-sticky-active) { | ||
@include transform(translate3d(-9999px, -9999px, 0)); | ||
} | ||
} | ||
} |
Oops, something went wrong.