Pony.fm/resources/assets/styles/components/player.less

231 lines
4.1 KiB
Text
Raw Normal View History

/**
* Pony.fm - A community for pony fan music.
* Copyright (C) 2015 Peter Deltchev
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@import '../variables';
@import '../mixins';
2015-09-12 13:19:18 +02:00
body.is-logged {
.track-player {
2015-10-25 03:35:37 +01:00
margin-right: 75px;
2015-09-12 13:19:18 +02:00
}
}
.track-player {
padding: 10px;
.image {
2015-10-25 03:35:37 +01:00
float: left;
width: 43px;
height: 43px;
position: relative;
overflow: hidden;
padding: 1px;
img {
.box-shadow(none);
display: block;
width: 40px;
height: 40px;
padding: 0px;
border: 1px solid #bcbcbc;
}
.loader {
.transition(top 250ms linear);
z-index: 1000;
background: rgba(0, 0, 0, .6);
color: #fff;
position: absolute;
top: -50px;
left: 2px;
width: 42px;
height: 42px;
line-height: 43px;
text-align: center;
font-size: 16px;
&.showing {
top: 2px;
}
}
2015-09-12 13:19:18 +02:00
}
.inner {
2015-10-25 03:35:37 +01:00
margin-left: 55px;
2015-09-12 13:19:18 +02:00
}
.song, .artist {
2015-10-25 03:35:37 +01:00
.ellipsis();
line-height: normal;
display: block;
a {
color: #555;
&:hover {
text-decoration: none;
color: #111;
}
}
2015-09-12 13:19:18 +02:00
}
.song {
2015-10-25 03:35:37 +01:00
font-weight: bold;
2015-09-12 13:19:18 +02:00
}
.volume-slider {
2015-10-25 03:35:37 +01:00
display: none;
2016-02-14 18:59:53 +01:00
padding-top: 15px;
padding-bottom: 15px;
2015-09-12 13:19:18 +02:00
}
.transport {
2015-10-25 03:35:37 +01:00
.border-radius(4px);
background: #aaa;
height: 5px;
position: relative;
cursor: pointer;
margin-top: 4px;
.bar {
z-index: 500;
background: #84528A;
}
.loader-bar {
z-index: 200;
background: #ddd;
}
.bar, .loader-bar {
.border-radius(4px);
position: absolute;
top: 0px;
left: 0px;
height: 100%;
}
2015-09-12 13:19:18 +02:00
}
.buttons {
2015-10-25 03:35:37 +01:00
list-style: none;
margin: 0px;
padding: 0px;
float: right;
li.status {
font-size: 10pt;
margin-top: 12px;
margin-right: 5px;
strong {
font-weight: normal;
}
}
li {
line-height: normal;
float: left;
margin: 0px;
padding: 0px;
font-size: 15pt;
> a {
display: block;
padding: 5px 0px;
width: 40px;
text-align: center;
color: #5A5A5A;
text-decoration: none !important;
2015-10-25 03:35:37 +01:00
&:hover {
text-decoration: none;
background: darken(#eee, 10%);
color: #000;
}
2016-05-16 18:24:10 +02:00
&:active {
background: darken(#eee, 20%) !important;
}
}
> a.active {
text-decoration: none;
background: darken(#eee, 10%);
color: #000;
2015-10-25 03:35:37 +01:00
}
&.disabled {
a {
color: #ccc;
cursor: default;
&:hover {
background: transparent;
color: #ccc;
}
}
}
&.volume {
position: relative;
.volume-slider {
display: none;
z-index: 1000;
position: absolute;
left: 0px;
top: 33px;
width: 100%;
height: 150px;
background: #ddd;
.bar {
background: @pfm-purple;
width: 10px;
margin: auto;
height: 100%;
position: relative;
}
.knob {
position: absolute;
top: 0px;
left: -3px;
background: darken(@pfm-purple, 20%);
width: 16px;
height: 16px;
}
}
&:hover, &.keep-open {
.volume-slider {
display: block;
}
background: #ddd;
}
}
}
2015-09-12 13:19:18 +02:00
}
2015-10-25 03:35:37 +01:00
}