Files
Iris/src/scss/components/_modal.scss
2017-02-05 19:57:29 +13:00

184 lines
2.6 KiB
SCSS
Executable File

.modal {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 99;
background: rgba(10, 10, 10, 0.95);
overflow-y: scroll;
.close-modal {
@include animate();
position: absolute;
top: 10px;
right: 10px;
opacity: 0.5;
cursor: pointer;
padding: 20px;
img {
width: 30px;
}
&:hover {
opacity: 1;
}
}
.content {
padding: 100px 25%;
margin: 0 auto;
width: 50%;
color: #FFFFFF;
h4 {
padding-bottom: 40px;
}
form {
.field {
padding-bottom: 20px;
input[type="text"]{
background: transparent;
font-size: 24px;
border-bottom: 2px solid #FFFFFF;
padding-left: 0;
padding-right: 0;
width: 100%;
color: #FFFFFF;
&:focus,
&:active {
border-color: $turquoise;
}
}
.label {
font-size: 16px;
}
}
button[type="submit"]{
margin-top: 50px;
}
}
.list {
@include clearfix();
padding-top: 30px;
.list-item {
box-sizing: border-box;
display: block;
padding: 16px 18px;
border-bottom: 1px solid $mid_grey;
border-top: 0;
position: relative;
&:nth-child(1){
border-top: 1px solid $mid_grey;
}
.source {
position: absolute;
top: 18px;
left: 10px;
}
&:hover {
cursor: pointer;
background: rgba(255,255,255,0.1);
}
}
&.playlists {
padding-top: 0;
.list-item {
padding-left: 30px;
}
}
&.small .list-item {
width: 49%;
float: left;
&:nth-child(2){
border-top: 1px solid $mid_grey;
}
&:nth-child(2n){
margin-left: 2%;
}
}
}
}
&.image_zoom {
.content {
text-align: center;
padding: 5vh 5%;
width: 90%;
img {
max-height: 90vh;
max-width: 100%;
}
}
}
&.edit_radio {
form {
.field {
position: relative;
margin-top: 10px;
button {
position: absolute;
top: 5px;
right: 0;
padding: 14px;
}
input[type="text"]{
font-size: 14px;
padding: 16px 18px;
}
}
}
}
.actions {
padding-top: 50px;
text-align: center;
.button,
button {
margin: 0 3px;
}
}
@include responsive( $bp_medium ){
.content {
padding: 50px 10%;
width: 80%;
.list {
.list-item {
float: none !important;
width: auto;
margin-left: 0 !important;
border-top: 0;
&:nth-child(1){
border-top: 1px solid $mid_grey;
}
}
}
}
}
}