first pass at pandora-scroll element
This commit is contained in:
parent
a334dc6b4f
commit
a1eec24f17
5 changed files with 337 additions and 22 deletions
125
app/static/css/partials/_pandora_scroll.scss
Normal file
125
app/static/css/partials/_pandora_scroll.scss
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
.pandora-scroll.player {
|
||||
iframe {
|
||||
width: 100%;
|
||||
min-height: calc(100vh - 64px);
|
||||
}
|
||||
}
|
||||
.pandora-scroll {
|
||||
font-family: "noto_sans";
|
||||
width: 100%;
|
||||
color: #ddd;
|
||||
a {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding-left: var(--spacing-2);
|
||||
padding-right: var(--spacing-2);
|
||||
padding-top: 32px;
|
||||
font-size: 20px;
|
||||
letter-spacing: 1px;
|
||||
font-weight: bold;
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
}
|
||||
h2 {
|
||||
padding: 4px var(--spacing-2);
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
}
|
||||
.intro {
|
||||
padding: 4px var(--spacing-2) 64px;
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
}
|
||||
.vbox {
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
background: red;
|
||||
}
|
||||
.player {
|
||||
position: absolute;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-width: var(--container-width);
|
||||
max-height: 88vh;
|
||||
margin: auto;
|
||||
//transition: opacity 0.4s;
|
||||
|
||||
}
|
||||
.annotation {
|
||||
//min-height: 100vh;
|
||||
.frame {
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
figure {
|
||||
text-align: center;
|
||||
}
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: 88vh;
|
||||
margin: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
figcaption {
|
||||
text-align: right;
|
||||
padding-right: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.text {
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
padding: 20px 20px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
|
||||
a {
|
||||
word-wrap: anywhere;
|
||||
}
|
||||
|
||||
figure {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img {
|
||||
margin: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.annotation-icon-wrapper {
|
||||
border: 3px solid rgba(#fff, 0.8);
|
||||
border-radius: 50%;
|
||||
background: var(--gradient-body);
|
||||
background-size: 300% 100%;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: background_animation 30s ease-in-out infinite;
|
||||
opacity: 0.9;
|
||||
|
||||
&:hover, &:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.annotation-icon {
|
||||
color: rgba(#fff, 1);
|
||||
font-size: 38px;
|
||||
}
|
||||
|
||||
.related-film {
|
||||
padding: calc(var(--spacing) * 4) var(--spacing-2);
|
||||
max-width: var(--container-width);
|
||||
margin: auto;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
@import "partials/film";
|
||||
@import "partials/text";
|
||||
@import "partials/ascroll";
|
||||
@import "partials/pandora_scroll";
|
||||
@import "partials/player";
|
||||
@import "partials/about";
|
||||
@import "partials/contact";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue