Files
Iris/src/scss/components/_playback-controls.scss

244 lines
3.5 KiB
SCSS
Raw Normal View History

.playback-controls {
position: fixed;
z-index: 99;
bottom: 0;
right: 0;
left: 0;
2017-06-19 16:53:27 +12:00
height: 50px;
background: $light_grey;
color: $black;
2017-06-19 16:53:27 +12:00
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 {
2017-06-16 09:44:19 +12:00
@include animate();
cursor: pointer;
position: absolute;
2017-06-19 16:53:27 +12:00
bottom: 50px;
width: 220px;
2017-06-18 05:47:36 +12:00
font-size: 14px;
color: $black;
2017-06-16 15:40:39 +12:00
text-decoration: none;
2017-06-16 09:44:19 +12:00
.thumbnail {
float: left;
margin: 12px;
}
.title {
2017-06-18 05:47:36 +12:00
padding-top: 20px;
2017-06-16 09:44:19 +12:00
@include one_line_text;
}
.artist-sentence {
opacity: 0.5;
display: block;
@include one_line_text;
.artist {
color: inherit;
text-decoration: none;
border-bottom: 1px dotted transparent;
}
}
}
.control {
@include animate();
2017-06-18 05:47:36 +12:00
font-size: 12px;
2017-06-19 16:53:27 +12:00
color: $dark_grey;
cursor: pointer;
padding: 8px;
display: inline-block;
2017-06-22 08:59:40 +12:00
vertical-align: bottom;
&.play {
font-size: 24px;
2017-06-22 08:59:40 +12:00
margin-bottom: -6px;
}
&.active {
2017-06-19 07:38:23 +12:00
color: $turquoise !important;
}
&:hover {
2017-06-19 16:53:27 +12:00
color: $black;
}
}
section {
position: absolute;
2017-06-22 08:59:40 +12:00
bottom: 11px;
&.playback {
left: 20px;
width: 120px;
text-align: center;
}
&.progress {
2017-06-22 08:59:40 +12:00
bottom: 12px;
left: 140px;
right: 280px;
padding-left: 20px;
padding-right: 20px;
color: $mid_grey;
.slider {
position: absolute;
2017-06-22 08:59:40 +12:00
bottom: 0;
left: 50px;
right: 50px;
}
.current {
2017-06-18 05:47:36 +12:00
font-size: 11px;
position: absolute;
2017-06-22 08:59:40 +12:00
bottom: 6px;
left: 0;
width: 45px;
text-align: right;
}
.total {
2017-06-18 05:47:36 +12:00
font-size: 11px;
position: absolute;
2017-06-22 08:59:40 +12:00
bottom: 6px;
right: 0;
width: 45px;
}
}
&.settings {
right: 170px;
width: 120px;
text-align: center;
}
&.volume {
2017-06-22 08:59:40 +12:00
bottom: 10px;
right: 20px;
width: 150px;
.modal-trigger {
display: none;
}
.control {
position: absolute;
2017-06-22 08:59:40 +12:00
bottom: 0;
left: 0;
}
.slider-wrapper {
position: absolute;
2017-06-22 08:59:40 +12:00
bottom: 2px;
right: 0;
left: 30px;
}
2017-06-18 05:47:36 +12:00
.muted {
.slider .progress {
background: $mid_grey;
}
}
}
2017-06-22 08:59:40 +12:00
&.triggers {
display: none;
}
}
@include responsive($bp_medium){
.current-track {
width: auto;
bottom: auto;
bottom: 8px;
left: 60px;
right: 60px;
text-align: center;
.title {
padding-top: 0;
}
.thumbnail {
display: none;
}
}
section {
&.playback {
left: 0;
width: 60px;
.control {
&.play {
font-size: 12px;
margin-bottom: 0;
}
&.previous {
display: none;
}
&.stop {
display: none;
}
}
}
&.settings {
display: none;
}
&.volume {
display: none;
}
&.progress {
display: none;
}
&.triggers {
display: block;
right: 10px;
}
}
&.expanded {
height: 150px;
section {
&.settings {
display: block;
right: 20px;
bottom: 60px;
text-align: right;
}
&.volume {
width: auto;
display: block;
right: 130px;
left: 22px;
bottom: 60px;
}
&.progress {
display: block;
bottom: 110px;
left: 0;
right: 0;
}
}
}
}
}