Refining modal styles and responsive structures

This commit is contained in:
James Barnsley
2017-06-26 08:32:45 +12:00
parent ff20a23d9a
commit 5a094c82d3
17 changed files with 166 additions and 85 deletions

View File

@ -245,10 +245,25 @@
max-width: 90vw;
position: relative;
z-index: 2;
border-radius: 3px;
.title {
padding: 16px 20px;
box-sizing: border-box;
border-radius: 3px 3px 0 0;
}
& > span {
button,
.button {
color: $white;
font-weight: 800;
}
.dropdown-field {
color: $white;
}
}
.menu-item-wrapper {

View File

@ -56,7 +56,6 @@ main {
top: 0;
left: 0;
width: 100%;
background: rgba(0,0,0,0.1);
color: $white;
z-index: 95;
@ -69,6 +68,7 @@ main {
@include responsive( $bp_medium ){
padding: 10px 10px 10px 0;
margin-bottom: -20px;
.icon {
visibility: hidden;
@ -76,11 +76,11 @@ main {
h1 {
vertical-align: top;
padding-top: 8px;
padding-top: 6px;
}
.options {
top: 10px;
top: 8px;
right: 0;
.context-menu-trigger {

View File

@ -202,8 +202,9 @@
}
@include responsive( $bp_medium ){
.list-item {
padding: 7px 30px 7px 48px !important;
padding: 12px !important;
.source {
position: static;
@ -303,5 +304,11 @@
}
}
}
&.track-list {
.list-item {
padding: 7px 30px 7px 48px !important;
}
}
}
}

View File

@ -5,7 +5,7 @@
left: 0;
bottom: 0;
right: 0;
z-index: 99;
z-index: 999;
background: $overlay_dark;
overflow-y: scroll;
@ -109,6 +109,12 @@
}
}
&.add_to_queue,
&.create_playlist {
h1 {
padding-bottom: 50px;
}
}
&.image_zoom {
.content {
@ -184,6 +190,10 @@
.current-track {
padding-top: 50px;
font-size: 30px;
.artist-sentence {
opacity: 0.5;
}
}
}
}

View File

@ -124,9 +124,9 @@
}
@include responsive( $bp_medium ){
bottom: 48px;
left: 0;
right: 0;
bottom: 60px;
left: 10px;
right: 10px;
width: auto;
.loading {

View File

@ -27,6 +27,45 @@
.thumbnail {
float: left;
margin: 12px;
&:before {
@include animate();
display: block;
content: "\f065";
font-family: "FontAwesome";
position: absolute;
top: 50%;
left: 0;
bottom: 0;
right: 0;
margin-top: -9px;
text-align: center;
font-size: 18px;
color: $white;
z-index: 1;
opacity: 0;
}
&:after {
@include animate();
content: '';
display: block;
background: rgba(0,0,0,0.75);
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 3px;
opacity: 0;
}
&:hover{
&:after,
&:before {
opacity: 1;
}
}
}
.title {

View File

@ -16,59 +16,17 @@ aside{
top: 0;
left: 0;
right: 0;
bottom: 0;
bottom: 120px;
box-sizing: border-box;
z-index: 2;
}
@include responsive( $bp_medium ){
width: 220px;
left: -220px;
position: fixed;
z-index: 98;
.sidebar-open & {
left: 0px;
}
.liner {
bottom: 0 !important;
}
.thumbnail {
display: none;
}
}
@include responsive( null, null, $bp_shallow ){
.liner {
bottom: 60px;
}
}
.thumbnail {
position: absolute;
top: -30px;
right: -30px;
bottom: -30px;
left: -30px;
height: auto;
width: auto;
max-width: none;
z-index: 1;
opacity: 0.2;
.image {
@include blur();
padding-bottom: 0;
height: 100%;
}
overflow-y: auto;
}
nav {
z-index: 2;
position: relative;
padding-top: 25px;
padding-top: 20px;
line-height: 1em;
a {
@include feature_font();
@ -78,15 +36,15 @@ aside{
color: $darkest_grey;
text-decoration: none;
display: block;
padding: 8px 10px 6px;
padding: 9px 10px 5px;
margin: 0 20px;
border-radius: 3px;
line-height: 18px;
.icon {
height: 14px;
padding-right: 8px;
vertical-align: top;
margin-top: 1px;
}
&.active {
@ -127,9 +85,25 @@ aside{
color: $mid_grey;
}
}
}
@include responsive( $bp_medium ){
width: 220px;
left: -220px;
padding-bottom: 0;
position: fixed;
z-index: 100;
.sidebar-open & {
left: 0px;
}
.liner {
bottom: 0 !important;
}
.thumbnail {
display: none;
}
}
}