bad CSS demo for timeline
This commit is contained in:
parent
d314ceb7ae
commit
226cbb031d
4 changed files with 88 additions and 31 deletions
|
|
@ -35,22 +35,24 @@
|
|||
|
||||
|
||||
main > .film {
|
||||
max-width: 1080px;
|
||||
|
||||
margin: auto;
|
||||
.info {
|
||||
margin: var(--spacing) var(--spacing-2);
|
||||
margin-bottom: 32px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
margin: 24px 0;
|
||||
font-size: 20px;
|
||||
margin: 0 0 24px 0;
|
||||
}
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
margin: 24px 0;
|
||||
}
|
||||
.details {
|
||||
font-size: 18px;
|
||||
margin-top: var(--spacing-2);
|
||||
}
|
||||
.bio {
|
||||
|
|
@ -60,9 +62,9 @@ main > .film {
|
|||
}
|
||||
}
|
||||
}
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
//video {
|
||||
//width: 100%;
|
||||
//}
|
||||
.play {
|
||||
text-align: center;
|
||||
margin: var(--spacing);
|
||||
|
|
@ -85,3 +87,48 @@ main > .film {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background: linear-gradient(to bottom, #002bdb 0%,#8fc800 99%);
|
||||
}
|
||||
|
||||
.info-meta {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
margin: 0 auto;
|
||||
max-width: 600px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.info-meta, .bio-block {
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
border-radius: 2px;
|
||||
//margin: var(--spacing) var(--spacing-2);
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.bio-block {
|
||||
font-size: 18px;
|
||||
margin-top: 400px;
|
||||
}
|
||||
|
||||
.video-block {
|
||||
height: 100vh;
|
||||
padding-bottom: 50px;
|
||||
padding-top: 50px;
|
||||
|
||||
video {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: -9999;
|
||||
height: 100vh;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue