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

293 lines
4.9 KiB
SCSS
Raw Normal View History

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