Files
Iris/src/scss/components/_playback-controls.scss
2018-10-13 14:28:46 +13:00

298 lines
4.4 KiB
SCSS
Executable File

.playback-controls {
position: fixed;
z-index: 99;
bottom: 0;
right: 0;
left: 0;
height: 50px;
background: lighten(colour(dark_grey), 15%);
color: colour(white);
.current-track {
@include animate();
position: absolute;
bottom: 50px;
width: 220px;
font-size: 14px;
color: colour(white);
text-decoration: none;
.light-theme & {
color: colour(darkest_grey);
}
.thumbnail {
float: left;
margin: 12px;
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: colour(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 {
padding-top: 20px;
@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();
@include noselect();
color: colour(white);
cursor: pointer;
padding: 10px 6px;
display: inline-block;
vertical-align: bottom;
opacity: 0.8;
&:not(.sidebar-toggle){
@include click_feedback();
}
.icon {
font-size: 0.9em;
margin-bottom: 0;
}
&.active {
color: colour(turquoise) !important;
}
&:hover {
opacity: 1;
}
}
section {
position: absolute;
bottom: 8px;
&.playback {
bottom: 7px;
left: 10px;
width: 135px;
text-align: center;
.control {
&.play {
font-size: 30px;
margin-bottom: -8px;
}
}
}
&.progress {
bottom: 10px;
left: 130px;
right: 260px;
padding-left: 20px;
padding-right: 20px;
color: colour(mid_grey);
.slider {
position: absolute;
bottom: 2px;
left: 60px;
right: 60px;
}
.current {
font-size: 11px;
position: absolute;
bottom: 6px;
left: 0;
width: 50px;
text-align: right;
}
.total {
font-size: 11px;
position: absolute;
bottom: 6px;
right: 0;
width: 50px;
}
}
&.settings {
right: 170px;
width: 100px;
text-align: center;
}
&.volume {
bottom: 6px;
right: 20px;
width: 150px;
font-size: 18px;
.slider__wrapper {
position: absolute;
bottom: 6px;
right: 0;
left: 30px;
}
}
&.triggers {
display: none;
}
}
@include responsive($bp_medium){
.current-track {
width: auto;
bottom: auto;
bottom: 8px;
left: 80px;
right: 80px;
text-align: center;
font-size: 12px;
color: colour(white) !important;
.title {
padding-top: 0;
}
.thumbnail {
display: none;
}
}
section {
&.playback {
left: 0;
width: 70px;
.control {
&.play {
margin-bottom: -8px;
}
&.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;
}
}
}
}
&.expanded {
height: 135px;
section {
&.settings {
display: block;
right: 0;
bottom: 90px;
padding-right: 10px;
text-align: right;
width: 100px;
}
&.volume {
width: auto;
display: block;
right: 100px;
left: 10px;
bottom: 88px;
}
&.progress {
display: block;
bottom: 55px;
left: -15px;
right: -15px;
}
}
}
}
}