1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/client/resources/sass/components/_modal.scss

198 lines
2.8 KiB
SCSS
Raw Normal View History

.overlay {
background: rgba(#333, .7);
height: 100vh;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 50;
}
.modal-wrap {
left: 50%;
max-width: 550px;
position: fixed;
top: 10%;
transform: translateX(-50%);
width: 100%;
box-shadow: 0 5px 20px 0 rgba(#000, .6);
z-index: 100;
@include media(4) {
top: 0;
}
}
.modal-header {
background: $main2;
background: linear-gradient(to right, $main1, $main2);
color: #fff;
float: left;
font-size: 20px;
width: 100%;
padding: 10px 15px;
}
.close-modal {
float: right;
padding: 7px;
cursor: pointer;
opacity: .8;
2016-12-12 09:18:13 +01:00
margin: 0 -5px 0 0px;
&:active {
opacity: .5;
}
}
.icon-close {
background: url(../../../public/assets/img/close.png) no-repeat;
float: left;
width: 14px;
height: 14px;
}
.season-tabs {
float: left;
width: 100%;
background: #464646;
}
.season-number {
float: left;
cursor: pointer;
font-size: 16px;
color: #a9a9a9;
padding: 10px 0;
width: 10%;
text-align: center;
@include media(6) {
width: 20%;
}
@include transition(background);
&.active,
&:hover {
background: #2f2f2f;
}
}
.completed {
color: $rating1;
}
.modal-content {
float: left;
width: 100%;
position: relative;
background: #2f2f2f;
max-height: calc(60vh - 100px);
overflow: auto;
@include media(4) {
max-height: calc(100vh - 150px);
}
}
2016-11-28 12:20:50 +01:00
.item-header {
float: left;
width: 100%;
2016-11-30 15:26:38 +01:00
padding: 10px;
background: #2f2f2f;
2016-11-28 12:20:50 +01:00
span {
float: left;
color: rgba(#fff, .4);
font-size: 14px;
}
}
.header-episode {
width: 35px;
margin: 0 10px 0 0;
text-align: right;
}
2016-11-30 15:26:38 +01:00
.header-seen {
float: right !important;
cursor: pointer;
@include transition(color);
&:hover {
color: rgba(#fff, .8);
}
&:active {
color: rgba(#fff, .4);
}
}
.modal-content-loading {
padding: 100px 0;
}
.modal-item {
float: left;
width: 100%;
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #444;
@include transition(background);
&:hover {
background: darken(#2f2f2f, 5%);
}
&:active {
.logged & {
background: darken(#2f2f2f, 3%);
}
}
&:last-child {
border: none;
}
}
.modal-episode {
float: left;
width: 35px;
text-align: right;
2016-11-28 12:20:50 +01:00
color: rgba(#fff, .4);
font-size: 15px;
margin: 0 10px 0 0;
}
.modal-name {
float: left;
2016-11-28 12:20:50 +01:00
color: rgba(#fff, .7);
max-width: calc(100% - 100px);
font-size: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2016-12-12 09:18:13 +01:00
&.spoiler-protect {
background: rgba(#fff, .4);
color: transparent;
}
}
.episode-seen {
float: right;
i {
float: left;
width: 22px;
height: 22px;
background: url(../../../public/assets/img/seen.png) no-repeat;
}
&.seen i {
background: url(../../../public/assets/img/seen-active.png) no-repeat;
}
}