Basic responsive

This commit is contained in:
James Barnsley
2016-11-22 11:10:30 +13:00
parent 8ba3ef3b46
commit d827f181b7
10 changed files with 174 additions and 91 deletions

View File

@ -47,9 +47,61 @@
.slider.horizontal {
margin-bottom: 0;
&.animating {
.progress{
/* @include animate(10s); */
.progress{
@include animate(1s);
}
}
aside & {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 2;
padding: 14px;
color: #FFFFFF;
.artist-sentence {
.artist:hover {
border-color: #FFFFFF !important;
}
}
@include responsive( $bp_medium, $bp_shallow ){
position: fixed;
background: $dark_grey;
.controls {
position: absolute;
top: 10px;
left: 10px;
a {
padding: 13px;
}
.volume-control {
display: none;
}
}
.slider.progress {
position: absolute;
top: 0;
left: 0;
right: 0;
margin: 0;
height: 2px;
.track {
top: 0px;
background: transparent;
}
}
.current-track {
font-size: 12px;
padding-bottom: 0;
}
}
}

View File

@ -9,6 +9,11 @@
color: #FFFFFF;
font-size: 18px;
cursor: pointer;
display: none;
@include responsive( $bp_medium ){
display: block;
}
&.open {
.open {

View File

@ -1,16 +1,27 @@
aside{
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 95;
background: #111111;
width: 200px;
overflow: hidden;
box-shadow: inset -20px 0px 30px -20px rgba(0, 0, 0, 0.5);
@include responsive( 800px ){
.liner {
overflow-y: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
z-index: 2;
}
@include responsive( $bp_medium ){
width: 50%;
left: -50%;
@ -18,6 +29,12 @@ aside{
left: 0px;
}
}
@include responsive( null, $bp_shallow ){
.liner {
bottom: 60px;
}
}
.thumbnail {
position: absolute;
@ -87,20 +104,4 @@ aside{
}
}
.player {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 2;
padding: 14px;
color: #FFFFFF;
.artist-sentence {
.artist:hover {
border-color: #FFFFFF !important;
}
}
}
}