njpma/app/static/css/partials/_film.scss

277 lines
4.6 KiB
SCSS
Raw Normal View History

2021-09-30 18:33:47 +00:00
.films {
margin: var(--spacing-2);
2021-10-11 12:26:51 +00:00
box-sizing: border-box;
2021-10-11 09:43:07 +00:00
a {
2021-11-21 11:06:08 +00:00
color: #ddd;
2021-11-12 10:21:00 +00:00
font-size: 12px;
2021-10-11 09:43:07 +00:00
text-decoration: none;
}
2021-10-28 16:29:44 +00:00
select {
font-size: 18px;
font-family: "noto_sans", sans-serif;
padding: calc(var(--spacing) /4) var(--spacing);
}
2021-11-12 10:21:00 +00:00
#films-list {
display: flex;
flex-wrap: wrap;
gap: 16px;
2021-11-12 10:49:52 +00:00
justify-content: center;
2021-11-12 10:21:00 +00:00
}
2021-10-28 16:29:44 +00:00
2021-09-30 18:33:47 +00:00
.film {
2021-11-12 10:21:00 +00:00
width: calc(100% / 4 - 16px);
2021-10-28 16:29:44 +00:00
margin-top: var(--spacing-2);
2021-09-30 18:33:47 +00:00
h1 {
font-weight: bold;
font-size: 20px;
}
2021-11-12 10:21:00 +00:00
figure {
2021-11-22 09:20:10 +00:00
div {
aspect-ratio: 4/3;
img {
display: none;
//max-width: 100%;
max-height: 100%;
object-fit: cover;
}
img:first-child {
display: inherit
}
2021-11-12 10:21:00 +00:00
}
2021-11-22 09:20:10 +00:00
figcaption {
img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
2021-11-12 10:21:00 +00:00
}
}
2021-09-30 18:33:47 +00:00
}
@media screen and (max-width: 799px) {
.film {
2021-11-12 10:49:52 +00:00
width: calc(100% / 2 - 8px);
margin-bottom: var(--spacing-2);
2021-09-30 18:33:47 +00:00
h2 {
margin-bottom: var(--spacing);
2021-09-30 18:33:47 +00:00
}
@media screen and (max-width: 799px) {
h1, h2 {
span {
display: block;
line-height: 1.3;
}
}
}
2021-09-30 18:33:47 +00:00
}
}
}
2021-10-11 09:43:07 +00:00
main > .film {
2021-10-22 09:12:59 +00:00
max-width: var(--container-width);
2021-10-11 09:43:07 +00:00
margin: auto;
2021-10-10 15:06:43 +00:00
.info {
2021-10-11 09:43:07 +00:00
margin-bottom: 32px;
2021-10-11 18:03:23 +00:00
text-overflow: ellipsis;
overflow: hidden;
2021-10-16 09:15:46 +00:00
text-align: center;
2021-10-11 18:03:23 +00:00
2021-10-11 09:43:07 +00:00
h1 {
2021-10-16 09:15:46 +00:00
font-size: 20px;
margin: 0 0 24px 0;
2021-10-11 09:43:07 +00:00
}
2021-10-11 18:03:23 +00:00
h2 {
2021-10-16 09:15:46 +00:00
font-size: 18px;
2021-10-11 18:03:23 +00:00
margin: 24px 0;
}
2021-10-11 18:20:13 +00:00
.details {
2021-10-16 09:15:46 +00:00
font-size: 18px;
margin-top: var(--spacing-2);
2021-10-11 18:20:13 +00:00
}
2021-11-12 10:21:00 +00:00
}
2021-11-21 09:09:26 +00:00
.items {
2021-11-12 10:21:00 +00:00
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
2021-11-21 09:09:26 +00:00
.item {
2021-11-12 10:21:00 +00:00
width: calc(100% / 4 - 16px);
2021-11-12 10:42:29 +00:00
a {
2021-11-21 11:06:08 +00:00
color: #ddd;
2021-11-12 10:42:29 +00:00
font-size: 12px;
text-decoration: none;
}
2021-11-12 10:21:00 +00:00
figure {
2021-11-22 16:41:00 +00:00
position: relative;
2021-11-12 10:21:00 +00:00
img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
2021-11-22 16:41:00 +00:00
.overlay {
position: absolute;
height: 100%;
width: 100%;
display: flex;
img {
width: 50%;
margin: auto;
padding-bottom: 64px;
&:hover {
filter: invert(1);
}
}
}
2021-11-12 10:21:00 +00:00
}
}
@media screen and (max-width: 799px) {
2021-11-21 09:09:26 +00:00
.item {
2021-11-12 10:21:00 +00:00
width: 100%;
2021-10-11 18:20:13 +00:00
}
}
2021-10-11 09:43:07 +00:00
}
2021-10-22 11:46:00 +00:00
2021-10-10 15:06:43 +00:00
.play {
text-align: center;
margin-top: var(--spacing-2);
margin-bottom: var(--spacing-2);
2021-10-22 11:46:00 +00:00
max-width: 250px;
2021-10-11 18:03:23 +00:00
2021-10-22 16:20:26 +00:00
}
2021-10-22 16:20:26 +00:00
.texts {
margin-top: var(--spacing-2);
margin-bottom: var(--spacing-2);
.text {
padding-bottom: var(--spacing-2);
2021-10-11 18:03:23 +00:00
}
}
2021-10-22 16:20:26 +00:00
2021-10-11 18:03:23 +00:00
@media screen and (max-width: 799px) {
h1 {
span {
display: block;
margin-bottom: var(--spacing);
2021-10-11 18:03:23 +00:00
}
}
2021-10-10 15:06:43 +00:00
}
}
2021-10-16 09:15:46 +00:00
.info-meta {
display: inline-block;
margin: 0 auto;
2021-10-22 11:46:00 +00:00
position: absolute;
2021-10-16 09:15:46 +00:00
max-width: 600px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: fade_in 1s linear 0.4s forwards;
2021-10-22 11:46:00 +00:00
opacity: 0;
2021-10-16 09:15:46 +00:00
}
2021-10-23 14:09:20 +00:00
main > .film {
2021-11-21 09:09:26 +00:00
.info-meta, .bio-block, .play, .summary-block, .texts, .items {
2021-10-23 14:09:20 +00:00
background: rgba(0, 0, 0, 0.55);
border-radius: 2px;
2021-10-29 11:12:41 +00:00
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
2021-10-23 14:09:20 +00:00
margin-left: auto;
margin-right: auto;
padding: 20px;
font-size: 18px;
2021-10-27 09:18:25 +00:00
z-index: 200;
2021-10-23 14:09:20 +00:00
a {
text-decoration: none;
font-weight: 700;
}
2021-10-22 11:46:00 +00:00
}
2021-10-27 09:18:25 +00:00
2021-11-21 22:50:11 +00:00
.bio-block, .play, .summary-block, .texts, .items {
2021-10-27 09:18:25 +00:00
position: relative;
}
2021-10-16 09:15:46 +00:00
}
2021-10-22 11:46:00 +00:00
.summary-block {
max-width: 1080px;
2021-10-23 12:23:09 +00:00
margin-top: 60vh;
2021-10-24 13:43:02 +00:00
word-break: break-word;
2021-10-16 09:15:46 +00:00
}
2021-10-22 11:46:00 +00:00
.bio-block {
max-width: 1080px;
margin-top: 30px;
margin-bottom: 30px;
}
2021-10-16 09:15:46 +00:00
.video-block {
height: 100vh;
2021-10-27 09:18:25 +00:00
video, .video-fallback-block {
2021-10-16 09:15:46 +00:00
position: fixed;
top: 0;
left: 0;
right: 0;
height: 100vh;
2021-10-22 11:46:00 +00:00
width: 100vw;
object-fit: fill;
2021-10-16 09:15:46 +00:00
margin: 0 auto;
}
2021-10-27 09:18:25 +00:00
video {
z-index: 100;
}
.video-fallback-block {
z-index: 90;
}
2021-10-21 12:57:34 +00:00
}
.icon-play {
color: #fff;
2021-10-23 12:23:09 +00:00
border: 4px solid rgba(#fff, 0.3);
2021-10-22 11:46:00 +00:00
border-radius: 50%;
2021-10-24 13:43:02 +00:00
box-sizing: border-box;
2021-10-21 12:57:34 +00:00
text-decoration: none;
2021-10-24 13:43:02 +00:00
width: 54px;
height: 54px;
2021-10-22 11:46:00 +00:00
display: flex;
align-items: center;
justify-content: center;
margin: auto;
.text {
font-family: "icomoon";
font-size: 42px;
display: block;
}
2021-10-22 11:46:00 +00:00
}
.film-play-block {
text-align: center;
2021-10-24 13:43:02 +00:00
font-size: 18px;
}
.film-play-padma {
font-family: "wrong font";
2021-11-22 09:20:10 +00:00
a {
color: #ddd;
text-decoration: none;
}
2021-10-22 11:46:00 +00:00
}
.film-play-spacer {
padding: var(--spacing);
margin-top: 4px;
font-size: 12px;
font-weight: 700;
2021-10-22 16:20:26 +00:00
}
2021-10-25 08:29:40 +00:00
video.player.fullscreen:-webkit-full-screen {
width: 100%;
height: 100%;
2021-11-12 10:21:00 +00:00
}