Files
Iris/src/scss/components/_modal.scss

308 lines
4.4 KiB
SCSS
Raw Normal View History

2016-11-11 23:21:51 +13:00
.modal-open {
.body {
@include blur(10px);
}
}
2016-11-11 23:21:51 +13:00
.modal {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 999;
2017-04-21 08:43:20 +12:00
background: $overlay_dark;
2016-11-11 23:21:51 +13:00
overflow-y: scroll;
.close-modal {
@include animate();
position: absolute;
top: 10px;
right: 10px;
opacity: 0.5;
cursor: pointer;
padding: 20px;
z-index: 99;
2016-11-11 23:21:51 +13:00
img {
width: 30px;
}
&:hover {
opacity: 1;
}
}
.content {
padding: 10vh 25%;
2016-11-11 23:21:51 +13:00
margin: 0 auto;
2016-11-14 17:32:36 +13:00
width: 50%;
color: $white;
2016-11-14 11:30:24 +13:00
form {
padding-top: 50px;
2016-11-14 11:30:24 +13:00
.field {
padding-bottom: 30px;
position: relative;
.label {
font-size: 16px;
}
2016-11-14 17:32:36 +13:00
&.text,
&.radio,
&.checkbox {
& > .label {
opacity: 0.5;
width: 100px;
position: absolute;
top: 12px;
left: 0;
pointer-events: none;
padding: 0;
}
}
2016-11-14 17:32:36 +13:00
&.text {
input {
background: transparent;
font-size: 18px;
padding-left: 100px;
padding-right: 0;
width: 100%;
color: $white;
border-bottom: 2px solid $white;
2017-09-28 14:39:22 +13:00
border-radius: 0;
&:focus,
&:active {
border-color: $turquoise;
}
2016-11-14 17:32:36 +13:00
}
}
&.radio,
&.checkbox {
padding-left: 100px;
padding-top: 8px;
2016-11-14 17:32:36 +13:00
}
2016-11-14 11:30:24 +13:00
}
button[type="submit"]{
margin-top: 50px;
}
}
.list {
2016-11-11 23:21:51 +13:00
@include clearfix();
.list-item {
@include animate();
2016-11-11 23:21:51 +13:00
box-sizing: border-box;
display: block;
padding: 14px 12px;
2016-11-21 08:02:46 +13:00
position: relative;
2017-06-21 09:16:26 +12:00
border: 0;
border-radius: 3px;
margin-left: -12px;
margin-right: -12px;
2017-01-30 16:59:37 +13:00
2016-11-21 08:02:46 +13:00
.source {
position: absolute;
top: 18px;
left: 10px;
}
2017-06-21 09:16:26 +12:00
&:hover {
background: rgba(255,255,255,0.1);
2017-06-21 09:16:26 +12:00
}
2016-11-11 23:21:51 +13:00
}
2016-12-12 16:16:17 +13:00
&.playlists {
padding-top: 40px;
.list-item {
margin: 0 0 20px 0;
padding: 5px;
.thumbnail {
float: left;
margin-right: 20px;
}
.source {
position: static;
top: auto;
left: auto;
}
}
}
&.small .list-item {
width: 49%;
float: left;
&:nth-child(2n){
margin-left: 2%;
}
2016-12-12 16:16:17 +13:00
}
2016-11-11 23:21:51 +13:00
}
}
2017-01-24 18:45:04 +13:00
&.image_zoom {
.content {
text-align: center;
padding: 5vh 5%;
width: 90%;
img {
max-height: 90vh;
max-width: 100%;
}
}
}
&.edit_radio {
2017-02-01 10:10:31 +13:00
form {
.field {
position: relative;
margin-top: 50px;
2017-04-18 04:44:39 +12:00
2017-02-05 19:57:29 +13:00
input[type="text"]{
padding-right: 80px;
2017-02-01 10:10:31 +13:00
}
}
}
2017-04-18 04:44:39 +12:00
2017-09-28 14:39:22 +13:00
.add-uri,
.remove-uri {
2017-04-18 04:44:39 +12:00
position: absolute;
top: 5px;
2017-04-18 04:44:39 +12:00
right: 0;
padding: 8px;
2017-04-18 04:44:39 +12:00
margin: 0;
min-width: 0;
color: #FFFFFF;
background: transparent;
&:before {
display: none !important;
}
&:hover {
color: $turquoise;
&.remove-uri {
color: $red;
}
}
2017-04-18 04:44:39 +12:00
}
}
&.kiosk_mode {
background: #000000;
overflow: hidden;
.content {
padding: 5%;
width: 90%;
height: 90%;
text-align: center;
.background {
position: absolute;
2017-06-28 07:38:43 +12:00
top: -5vh;
right: -5vw;
bottom: -5vh;
left: -5vw;
width: auto;
opacity: 0.2;
max-width: none;
.image {
@include blur();
width: 110vw;
padding-bottom: 110vh;
}
}
.foreground {
width: 70vw;
margin: 0 auto;
max-width: 70vh;
max-height: 70vh;
z-index: 2;
}
.current-track {
padding-top: 50px;
font-size: 30px;
.artist-sentence {
opacity: 0.5;
}
}
}
}
2017-07-26 15:24:18 +12:00
&.send_authorization {
.list {
padding-top: 40px;
}
}
&.receive_authorization {
2017-07-05 08:00:57 +12:00
.user-details {
@include clearfix();
padding: 70px 0 0 120px;
min-height: 100px;
position: relative;
.thumbnail {
2017-07-05 08:00:57 +12:00
max-width: 100px;
position: absolute;
top: 50px;
left: 0;
}
}
}
2017-10-09 16:56:09 +13:00
&.track_info {
.lyrics {
font-size: 1.2em;
padding: 60px 0;
}
}
.actions {
padding-top: 50px;
text-align: center;
.button,
button {
margin: 0 3px;
}
}
@include responsive( $bp_medium ){
.content {
padding: 100px 10%;
width: 80%;
.list {
.list-item {
float: none !important;
width: auto;
2016-12-12 16:58:24 +13:00
margin-left: 0 !important;
border-top: 0;
2017-03-27 09:17:05 +13:00
width: auto !important;
margin: 0;
}
}
}
}
2016-11-11 23:21:51 +13:00
}