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

315 lines
4.4 KiB
SCSS
Raw Normal View History

.playback-controls {
position: fixed;
z-index: 99;
bottom: 0;
right: 0;
left: 0;
height: 50px;
background: lighten($dark_grey, 15%);
2017-07-23 10:15:02 +12:00
color: $white;
.current-track {
2017-06-16 09:44:19 +12:00
@include animate();
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;
2017-07-23 10:15:02 +12:00
color: $white;
2017-06-16 15:40:39 +12:00
text-decoration: none;
2017-06-16 09:44:19 +12:00
.thumbnail {
float: left;
margin: 12px;
2017-07-26 15:24:18 +12:00
cursor: pointer;
&: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;
}
}
2017-06-16 09:44:19 +12:00
}
.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-07-23 10:15:02 +12:00
color: $white;
cursor: pointer;
padding: 10px 8px;
display: inline-block;
2017-06-22 08:59:40 +12:00
vertical-align: bottom;
2017-07-23 10:15:02 +12:00
opacity: 0.8;
2017-07-25 16:33:31 +12:00
.icon {
svg {
height: 12px;
}
2017-07-25 16:33:31 +12:00
}
&.play {
2018-05-13 16:03:51 +12:00
margin-bottom: -6px;
2017-07-25 16:33:31 +12:00
.icon {
2018-05-13 16:03:51 +12:00
font-size: 2em;
2017-07-25 16:33:31 +12:00
}
}
&.active {
color: $turquoise !important;
svg {
fill: $turquoise !important;
}
}
&:hover {
2017-07-23 10:15:02 +12:00
opacity: 1;
}
}
section {
position: absolute;
bottom: 8px;
&.playback {
2018-05-13 16:03:51 +12:00
bottom: 8px;
left: 10px;
width: 125px;
text-align: center;
}
&.progress {
2017-07-26 15:24:18 +12:00
bottom: 10px;
left: 140px;
2018-03-22 16:59:04 +13:00
right: 260px;
padding-left: 20px;
padding-right: 20px;
color: $mid_grey;
.slider {
position: absolute;
2017-07-26 15:24:18 +12:00
bottom: 2px;
2017-07-26 09:27:57 +12:00
left: 60px;
right: 60px;
}
.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;
2017-07-26 09:27:57 +12:00
width: 50px;
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;
2017-07-26 09:27:57 +12:00
width: 50px;
}
}
&.settings {
right: 170px;
2018-03-22 16:59:04 +13:00
width: 100px;
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;
2017-07-26 15:24:18 +12:00
font-size: 12px;
2017-06-22 08:59:40 +12:00
.title {
padding-top: 0;
}
.thumbnail {
display: none;
}
}
section {
&.playback {
left: 0;
width: 60px;
.control {
&.play {
margin-bottom: 0;
2017-07-26 09:27:57 +12:00
.icon {
svg {
height: 12px;
}
2017-07-26 09:27:57 +12:00
}
2017-06-22 08:59:40 +12:00
}
&.previous {
display: none;
}
&.stop {
display: none;
}
}
}
&.settings {
display: none;
}
&.volume {
display: none;
}
&.progress {
display: none;
}
&.triggers {
display: block;
right: 10px;
.sidebar-toggle.open {
opacity: 1 !important;
&:after {
background: rgba(0,0,0,0.8);
content: '';
display: block;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 99;
}
}
2017-06-22 08:59:40 +12:00
}
}
&.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;
}
}
}
}
}