mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 21:12:13 +00:00
124 lines
2.4 KiB
Text
124 lines
2.4 KiB
Text
// Copyright (C) 2017-2024 Smart code 203358507
|
|
|
|
@import (reference) '~stremio/common/screen-sizes.less';
|
|
|
|
:import('~stremio/common/MetaPreview/styles.less') {
|
|
action-buttons-container: action-buttons-container;
|
|
}
|
|
|
|
@padding: 1rem;
|
|
|
|
.overlay {
|
|
visibility: hidden;
|
|
|
|
&.open {
|
|
visibility: visible;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
.side-drawer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
padding: @padding;
|
|
height: 100dvh;
|
|
max-width: 35rem;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
|
|
.close-button {
|
|
display: none;
|
|
position: absolute;
|
|
top: 1.3rem;
|
|
left: 1.3rem;
|
|
padding: 0.5rem;
|
|
background-color: transparent;
|
|
cursor: pointer;
|
|
z-index: 2;
|
|
border-radius: var(--border-radius);
|
|
transition: 0.3s all ease-in-out;
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
.icon {
|
|
color: var(--primary-foreground-color);
|
|
width: 2rem;
|
|
height: 2rem;
|
|
opacity: 0.6;
|
|
transition: 0.3s opacity ease-in-out;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--overlay-color);
|
|
|
|
.icon {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.info {
|
|
padding: @padding;
|
|
overflow-y: auto;
|
|
flex: none;
|
|
|
|
.side-drawer-meta-preview {
|
|
.action-buttons-container {
|
|
padding-top: 0;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
flex: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.videos {
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: @small) {
|
|
.side-drawer {
|
|
max-width: 40dvw;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) and (max-width: @xsmall) {
|
|
.side-drawer {
|
|
max-width: 100dvw;
|
|
|
|
.close-button {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-width: @xsmall) {
|
|
.side-drawer {
|
|
max-width: 50dvw;
|
|
|
|
.info {
|
|
max-height: 30dvh;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: @xxsmall) {
|
|
.side-drawer {
|
|
padding: calc(@padding / 2);
|
|
|
|
.info {
|
|
padding: calc(@padding / 2);
|
|
}
|
|
}
|
|
}
|