Tracks to one side... perhaps

This commit is contained in:
James Barnsley
2017-06-19 16:53:27 +12:00
parent e6bafd7267
commit b6d0cd77b9
14 changed files with 87 additions and 53 deletions

View File

@ -14,7 +14,7 @@
<link rel="shortcut icon" type="image/x-icon" href="/iris/assets/favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="/iris/assets/favicon.ico" />
<link rel="shortcut-icon" href="/iris/assets/favicon.ico" /> <link rel="shortcut-icon" href="/iris/assets/favicon.ico" />
<link href="//fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Lato:400,400i,700|Overpass:400,400i,600|Montserrat:400|500|600|News+Cycle:400,700|PT+Sans+Narrow:400,700" rel="stylesheet"> <link href="//fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Lato:400,400i,700|Overpass:400,400i,600,700,800|Montserrat:400|500|600|News+Cycle:400,700|PT+Sans+Narrow:400,700" rel="stylesheet">
<link href="/iris/app.css" rel="stylesheet" /> <link href="/iris/app.css" rel="stylesheet" />
<link rel="manifest" href="/iris/assets/manifest.json"> <link rel="manifest" href="/iris/assets/manifest.json">

View File

@ -262,14 +262,39 @@
} }
.context-menu-trigger { .context-menu-trigger {
padding: 8px 12px; display: inline-block;
padding: 9px 10px 7px;
font-size: 18px; font-size: 18px;
cursor: pointer; cursor: pointer;
vertical-align: middle; vertical-align: top;
margin-left: 10px; margin-left: 10px;
position: relative;
border-radius: 3px;
&:before {
@include animate();
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
z-index: 9;
background: -webkit-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -moz-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -o-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
}
&:hover{ &:hover{
color: $turquoise; cursor: pointer;
box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
&:before {
opacity: 0.15;
}
} }
} }

View File

@ -21,7 +21,7 @@
} }
.options { .options {
color: $grey; color: $black;
position: absolute; position: absolute;
top: 46px; top: 46px;
right: 10px; right: 10px;
@ -42,7 +42,7 @@
height: 0; height: 0;
border-left: 5px solid transparent; border-left: 5px solid transparent;
border-right: 5px solid transparent; border-right: 5px solid transparent;
border-bottom: 6px solid $light_grey; border-bottom: 6px solid $mid_grey;
} }
.option { .option {

View File

@ -29,20 +29,15 @@ main {
.button, .button,
button { button {
font-size: 13px;
font-weight: 600;
font-family: "Overpass";
background: transparent; background: transparent;
text-transform: none; text-transform: none;
padding: 13px 10px; padding: 13px 10px;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
border: 0;
color: $black; color: $black;
font-size: 13px;
font-weight: 600;
font-family: "Overpass";
&:active {
color: $blue;
}
} }
} }

View File

@ -2,7 +2,7 @@
.notifications { .notifications {
position: fixed; position: fixed;
bottom: 55px; bottom: 65px;
right: 15px; right: 15px;
z-index: 97; z-index: 97;
pointer-events: none; pointer-events: none;

View File

@ -5,16 +5,20 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
left: 0; left: 0;
height: 40px; height: 50px;
background: $faint_grey; background: $light_grey;
color: $black; color: $black;
border-top: 1px solid $light_grey;
background: -webkit-linear-gradient(to bottom left, $faint_grey, $light_grey);
background: -moz-linear-gradient(to bottom left, $faint_grey, $light_grey);
background: -o-linear-gradient(to bottom left, $faint_grey, $light_grey);
background: linear-gradient(to bottom left, $faint_grey, $light_grey);
.current-track { .current-track {
@include animate(); @include animate();
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
bottom: 41px; bottom: 50px;
width: 220px; width: 220px;
font-size: 14px; font-size: 14px;
color: $black; color: $black;
@ -43,14 +47,14 @@
} }
&:hover { &:hover {
background: $light_grey; background: darken($light_grey, 5%);
} }
} }
.control { .control {
@include animate(); @include animate();
font-size: 12px; font-size: 12px;
color: $mid_grey; color: $dark_grey;
cursor: pointer; cursor: pointer;
padding: 8px; padding: 8px;
display: inline-block; display: inline-block;
@ -66,13 +70,13 @@
} }
&:hover { &:hover {
color: $dark_grey; color: $black;
} }
} }
section { section {
position: absolute; position: absolute;
top: 6px; top: 11px;
&.playback { &.playback {
left: 20px; left: 20px;
@ -81,7 +85,7 @@
} }
&.progress { &.progress {
top: 7px; top: 12px;
left: 140px; left: 140px;
right: 280px; right: 280px;
padding-left: 20px; padding-left: 20px;
@ -120,7 +124,7 @@
} }
&.volume { &.volume {
top: 7px; top: 12px;
right: 20px; right: 20px;
width: 150px; width: 150px;

View File

@ -69,16 +69,16 @@ aside{
z-index: 2; z-index: 2;
position: relative; position: relative;
padding-top: 8px; padding-top: 8px;
font-family: "Overpass";
a { a {
font-size: 15px; @include animate();
@include feature_font();
font-weight: 800;
font-size: 16px;
color: $black; color: $black;
text-decoration: none; text-decoration: none;
display: block; display: block;
padding: 4px 18px 4px 14px; padding: 6px 25px;
border-left: 4px solid transparent;
font-weight: 600;
.icon { .icon {
height: 14px; height: 14px;
@ -102,16 +102,16 @@ aside{
} }
&:hover:not([disabled]) { &:hover:not([disabled]) {
opacity: 0.75; opacity: 0.65;
} }
} }
section { section {
padding: 10px 0; padding: 15px 0;
title { title {
display: block; display: block;
padding: 0 18px 2px 14px; padding: 0 26px 5px 26px;
font-size: 10px; font-size: 10px;
text-transform: uppercase; text-transform: uppercase;
opacity: 0.5; opacity: 0.5;

View File

@ -5,7 +5,7 @@
.track { .track {
position: absolute; position: absolute;
background: $light_grey; background: darken($light_grey, 5%);
border-radius: 2px; border-radius: 2px;
.progress { .progress {

View File

@ -84,15 +84,15 @@ main {
} }
h1 { h1 {
@include feature_font();
font-weight: 700; font-weight: 700;
font-size: 2.8rem; font-size: 2.8rem;
font-family: "Overpass";
} }
h2 { h2 {
@include feature_font();
font-size: 2rem; font-size: 2rem;
font-weight: 700; font-weight: 700;
font-family: "Overpass";
} }
h3 { h3 {

View File

@ -44,15 +44,14 @@ button,
input[type="button"], input[type="button"],
input[type="submit"] { input[type="submit"] {
@include animate(); @include animate();
@include feature_font();
display: inline-block; display: inline-block;
padding: 9px 20px 7px; padding: 9px 30px 7px;
margin: 0 20px 10px 0; margin: 0 20px 10px 0;
color: $white; color: $white;
background: $dark_grey; background: $dark_grey;
font-size: 14px; font-size: 14px;
font-weight: 700;
box-sizing: border-box; box-sizing: border-box;
font-family: "Overpass";
border-radius: 3px; border-radius: 3px;
vertical-align: middle; vertical-align: middle;
position: relative; position: relative;

View File

@ -178,3 +178,9 @@ $bp_shallow: 650px;
} }
} }
} }
@mixin feature_font(){
font-family: "Overpass";
letter-spacing: -0.04em;
font-weight: 600;
}

View File

@ -1,7 +1,9 @@
.album-view { main .album-view {
padding-left: 400px;
.title { .title {
padding: 0 40px 30px; padding-bottom: 30px;
h3 { h3 {
color: $mid_grey; color: $mid_grey;
@ -17,7 +19,7 @@
} }
.actions { .actions {
@include clearfix(); padding-bottom: 30px;
} }
.description { .description {
@ -25,9 +27,10 @@
} }
.thumbnail { .thumbnail {
float: left; position: absolute;
max-width: 200px; max-width: 320px;
margin: 0 30px 30px 0; top: 40px;
left: 40px;
} }
@include responsive( $bp_medium ){ @include responsive( $bp_medium ){

View File

@ -109,7 +109,7 @@
.discover-new-releases-view { .discover-new-releases-view {
.intro { .intro {
position: relative; position: relative;
padding-top: 120px; padding-top: 80px;
.parallax { .parallax {
position: absolute; position: absolute;

View File

@ -1,8 +1,9 @@
.playlist-view { main .playlist-view {
padding-left: 400px;
.title { .title {
padding: 0 40px 30px; padding-bottom: 30px;
h3 { h3 {
color: $mid_grey; color: $mid_grey;
@ -18,7 +19,7 @@
} }
.actions { .actions {
@include clearfix(); padding-bottom: 30px;
} }
.description { .description {
@ -26,9 +27,10 @@
} }
.thumbnail { .thumbnail {
float: left; position: absolute;
max-width: 200px; max-width: 320px;
margin: 0 30px 30px 0; top: 40px;
left: 40px;
} }
@include responsive( $bp_medium ){ @include responsive( $bp_medium ){