-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,159 @@ | ||
* { | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
scroll-snap-type: y mandatory; | ||
} | ||
|
||
body { | ||
color: white; | ||
background-color: black; | ||
height: 100vh; | ||
display: grid; | ||
place-items: center; | ||
} | ||
|
||
.app__videos { | ||
position: relative; | ||
height: 750px; | ||
background-color: white; | ||
overflow: scroll; | ||
width: 100%; | ||
max-width: 400px; | ||
scroll-snap-type: y mandatory; | ||
border-radius: 20px; | ||
} | ||
|
||
.app__videos::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
.app__videos { | ||
-ms-overflow-style: none; | ||
scrollbar-width: none; | ||
} | ||
|
||
.video { | ||
position: relative; | ||
height: 100%; | ||
width: 100%; | ||
background-color: white; | ||
scroll-snap-align: start; | ||
} | ||
|
||
.video__player { | ||
object-fit: cover; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
@media (max-width: 425px) { | ||
.app__videos { | ||
width: 100%; | ||
height: 100%; | ||
max-width: 100%; | ||
border-radius: 0; | ||
} | ||
} | ||
|
||
/* video header */ | ||
|
||
.videoHeader { | ||
position: absolute; | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.videoHeader * { | ||
padding: 20px; | ||
} | ||
|
||
/* video footer */ | ||
|
||
.videoFooter { | ||
position: relative; | ||
bottom: 100px; | ||
margin-left: 20px; | ||
} | ||
|
||
.videoFooter__text { | ||
position: absolute; | ||
bottom: 0; | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 45px; | ||
} | ||
|
||
.user__avatar { | ||
border-radius: 50%; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
|
||
.videoFooter__text h3 { | ||
margin-left: 10px; | ||
} | ||
|
||
.videoFooter__text h3 button { | ||
color: white; | ||
font-weight: 900; | ||
text-transform: inherit; | ||
background: rgba(0, 0, 0, 0.5); | ||
border: none; | ||
padding: 5px; | ||
} | ||
|
||
.videoFooter__ticker { | ||
width: 60%; | ||
margin-left: 30px; | ||
margin-bottom: 20px; | ||
height: fit-content; | ||
} | ||
|
||
.videoFooter__ticker marquee { | ||
font-size: 12px; | ||
padding-top: 7px; | ||
color: white; | ||
} | ||
|
||
.videoFooter__ticker .material-icons { | ||
position: absolute; | ||
left: 5px; | ||
color: white; | ||
} | ||
|
||
.videoFooter__actions { | ||
display: flex; | ||
position: absolute; | ||
width: 95%; | ||
justify-content: space-between; | ||
color: white; | ||
} | ||
|
||
.videoFooter__actionsLeft .material-icons { | ||
padding: 0 7px; | ||
font-size: 1.6em; | ||
} | ||
|
||
.videoFooter__actionsRight .material-icons { | ||
font-size: 25px; | ||
} | ||
|
||
.videoFooter__actionsRight { | ||
display: flex; | ||
} | ||
|
||
.videoFooter__stat { | ||
display: flex; | ||
align-items: center; | ||
margin-right: 10px; | ||
} | ||
|
||
.videoFooter__stat p { | ||
margin-left: 3px; | ||
} |