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

237 lines
4.3 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
.track-player {
2016-07-12 01:08:43 +02:00
padding: 0;
2015-09-12 13:19:18 +02:00
.image {
2015-10-25 03:35:37 +01:00
float: left;
2016-07-12 01:08:43 +02:00
width: 64px;
height: 64px;
2015-10-25 03:35:37 +01:00
position: relative;
overflow: hidden;
img {
.box-shadow(none);
display: block;
2016-07-12 01:08:43 +02:00
width: 64px;
height: 64px;
2015-10-25 03:35:37 +01:00
padding: 0px;
}
.loader {
2016-07-12 01:08:43 +02:00
.transition(top 250ms @swift-ease-out);
2015-10-25 03:35:37 +01:00
z-index: 1000;
background: rgba(0, 0, 0, .6);
color: #fff;
position: absolute;
2016-07-12 01:08:43 +02:00
top: -64px;
left: 0;
width: 64px;
height: 66px;
line-height: 65px;
2015-10-25 03:35:37 +01:00
text-align: center;
font-size: 16px;
2016-07-12 01:08:43 +02:00
margin-top: -2px;
2015-10-25 03:35:37 +01:00
&.showing {
top: 2px;
}
}
2015-09-12 13:19:18 +02:00
}
.inner {
2016-07-12 01:08:43 +02:00
margin-left: 75px;
2015-09-12 13:19:18 +02:00
}
.song, .artist {
2015-10-25 03:35:37 +01:00
.ellipsis();
line-height: normal;
display: block;
2016-07-12 01:08:43 +02:00
font-size: 17px;
2015-10-25 03:35:37 +01:00
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;
2016-07-12 01:08:43 +02:00
padding-top: 12px;
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
background: #aaa;
height: 5px;
2016-07-12 01:08:43 +02:00
position: absolute;
2015-10-25 03:35:37 +01:00
cursor: pointer;
2016-07-12 01:08:43 +02:00
bottom: 58px;
left: 64px;
width: 100%;
2016-07-12 01:58:40 +02:00
width: ~"calc(100% - 64px)";
2016-08-07 16:41:58 +02:00
outline: 0;
2015-10-25 03:35:37 +01:00
.bar {
z-index: 500;
background: #84528A;
}
.loader-bar {
z-index: 200;
background: #ddd;
}
.bar, .loader-bar {
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;
2016-07-12 01:08:43 +02:00
margin-top: 12px;
2016-07-12 01:58:40 +02:00
margin-right: 5px;
2015-10-25 03:35:37 +01:00
li.status {
2016-07-12 01:08:43 +02:00
font-size: 14px;
2015-10-25 03:35:37 +01:00
margin-top: 12px;
margin-right: 5px;
strong {
font-weight: normal;
}
}
li {
line-height: normal;
float: left;
margin: 0px;
padding: 0px;
2016-07-12 01:08:43 +02:00
font-size: 24px;
2015-10-25 03:35:37 +01:00
> a {
display: block;
padding: 3px 0px 7px;
2016-07-12 01:08:43 +02:00
width: 44px;
2015-10-25 03:35:37 +01:00
text-align: center;
color: #5A5A5A;
text-decoration: none !important;
2016-07-12 01:08:43 +02:00
.border-radius(22px);
2015-10-25 03:35:37 +01:00
i {
font-size: 30px;
}
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;
}
}
2016-05-16 22:43:55 +02:00
> a.repeat.active {
2016-05-16 18:24:10 +02:00
text-decoration: none;
2016-05-16 22:43:55 +02:00
background: darken(#eee, 5%);
2016-05-16 18:24:10 +02:00
color: #000;
2015-10-25 03:35:37 +01:00
}
&.disabled {
a {
color: #ccc;
cursor: default;
&:hover {
background: transparent;
color: #ccc;
}
}
}
&.volume {
position: relative;
2016-07-12 01:08:43 +02:00
> a {
.border-radius(0);
}
2015-10-25 03:35:37 +01:00
.volume-slider {
display: none;
z-index: 1000;
position: absolute;
left: 0px;
2016-07-12 01:08:43 +02:00
bottom: 44px;
2015-10-25 03:35:37 +01:00
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
}