Pony.fm/public/styles/content.less

301 lines
3.8 KiB
Text
Raw Normal View History

2013-07-31 13:47:16 +02:00
@import-once 'base/bootstrap/bootstrap';
@import-once 'mixins';
2013-08-13 07:11:14 +02:00
@import-once 'variables';
2013-07-28 23:51:35 +02:00
2013-08-27 08:53:37 +02:00
.albums-listing, .playlists-listing, .artist-listing {
margin: 0px;
padding: 0px;
list-style: none;
li {
.box-sizing(border-box);
float: left;
width: 16.6666%;
padding: 5px;
line-height: normal;
a {
background: #ddd;
display: block;
img {
display: block;
}
.title, .published {
display: block;
color: #444;
padding: 5px;
}
.title {
.ellipsis();
font-weight: bold;
font-size: 12pt;
padding-bottom: 0px;
}
.published {
color: #777;
font-size: 10pt;
}
&:hover {
text-decoration: none;
}
}
}
}
.resource-details {
&.track-details {
> header {
h2, h1 {
margin-left: 47px;
}
}
}
2013-08-23 02:48:40 +02:00
> header {
padding: 5px;
background: #eee;
overflow: hidden;
margin-bottom: 10px;
h1 {
margin: 0px;
}
h2 {
margin: 0px;
padding: 0px;
font-weight: normal;
clear: none;
line-height: normal;
display: block;
float: none;
font-size: 8pt;
color: #777;
border: none;
a {
display: inline;
float: none;
color: #111;
}
}
}
h2 {
color: #C2889C;
font-size: 10pt;
border-bottom: 2px solid #ddd;
padding: 5px 0px;
margin: 0px;
margin-bottom: 5px;
line-height: normal;
}
.resource-toolbar {
.clearfix();
background: #eee;
list-style: none;
padding: 0px;
margin: 0px;
margin-bottom: 5px;
> li {
padding: 5px;
float: left;
margin: 0px;
}
}
}
2013-08-16 01:49:20 +02:00
@icon-size: 42px;
2013-08-13 07:11:14 +02:00
.tracks-listing.four-columns {
li {
float: left;
width: 25%;
}
}
2013-08-01 10:57:08 +02:00
2013-08-13 07:11:14 +02:00
.tracks-listing.three-columns {
li {
float: left;
width: 33.3333%;
}
}
2013-08-01 10:57:08 +02:00
2013-08-13 07:11:14 +02:00
.tracks-listing.two-columns {
li {
float: left;
width: 50%;
2013-08-01 10:57:08 +02:00
}
}
2013-08-23 02:48:40 +02:00
html .single-player .play-button {
display: block;
}
2013-08-16 01:49:20 +02:00
.single-player, .tracks-listing li .image {
float: left;
width: @icon-size;
height: @icon-size;
position: relative;
.play-button {
.transition(background 250ms ease-out);
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
2013-08-27 08:53:37 +02:00
line-height: 45px;
2013-08-16 01:49:20 +02:00
text-align: center;
font-size: 12pt;
color: #fff;
text-decoration: none;
background: rgba(0, 0, 0, .4);
display: none;
2013-08-13 07:11:14 +02:00
2013-08-16 01:49:20 +02:00
&:hover {
background: rgba(0, 0, 0, .8);
}
}
img {
display: block;
width: 100%;
}
}
.tracks-listing {
2013-07-28 23:51:35 +02:00
margin: 0px;
padding: 0px;
list-style: none;
li {
2013-08-13 07:11:14 +02:00
.box-sizing(border-box);
2013-08-27 08:53:37 +02:00
overflow: hidden;
2013-07-28 23:51:35 +02:00
2013-08-16 01:49:20 +02:00
&.empty {
.border-radius(0px);
background: lighten(@pfm-purple, 30%);
border: 1px solid lighten(@pfm-purple, 10%);
color: lighten(@pfm-purple, 3%);
float: none !important;
width: auto !important;
display: block;
margin-top: 5px;
padding: 5px;
font-size: 9pt;
&:hover {
background-color: lighten(@pfm-purple, 30%);
}
}
2013-08-13 07:11:14 +02:00
line-height: normal;
2013-08-19 05:39:29 +02:00
padding: 0px;
margin: 5px 0px;
2013-08-13 07:11:14 +02:00
padding-right: 10px;
2013-08-18 06:18:41 +02:00
position: relative;
2013-08-01 10:57:08 +02:00
2013-07-28 23:51:35 +02:00
.icons {
float: right;
2013-08-13 07:11:14 +02:00
display: block;
margin-top: 5px;
2013-07-28 23:51:35 +02:00
2013-08-13 07:11:14 +02:00
i.icon-microphone-off {
opacity: .5;
2013-08-01 10:57:08 +02:00
}
2013-08-13 07:11:14 +02:00
i.icon-microphone-off, i.icon-microphone {
color: #777;
2013-07-28 23:51:35 +02:00
}
2013-08-13 07:11:14 +02:00
a {
text-decoration: none;
2013-07-28 23:51:35 +02:00
}
}
2013-08-13 07:11:14 +02:00
a.info {
2013-07-31 13:47:16 +02:00
display: block;
2013-08-13 07:11:14 +02:00
margin-left: (@icon-size + 10);
2013-07-28 23:51:35 +02:00
2013-08-13 07:11:14 +02:00
&:hover {
2013-07-28 23:51:35 +02:00
text-decoration: none;
}
2013-08-13 07:11:14 +02:00
> span {
2013-07-28 23:51:35 +02:00
display: block;
}
}
2013-08-01 04:47:21 +02:00
2013-08-13 07:11:14 +02:00
.title {
.ellipsis();
2013-08-01 04:01:41 +02:00
2013-08-13 07:11:14 +02:00
color: #000;
margin-top: 5px;
2013-08-01 04:01:41 +02:00
}
2013-08-18 06:18:41 +02:00
.artist, .stats, .genre, .stats-expanded {
2013-08-13 07:11:14 +02:00
color: #777;
font-size: 80%;
2013-08-01 04:01:41 +02:00
}
2013-08-18 06:18:41 +02:00
.stats {
2013-08-13 07:11:14 +02:00
float: right;
2013-08-18 06:18:41 +02:00
padding: 3px;
strong {
2013-08-21 04:40:11 +02:00
color: #C1889E;
2013-08-18 06:18:41 +02:00
}
}
2013-08-01 04:47:21 +02:00
2013-08-18 06:18:41 +02:00
.artist, .stats {
2013-08-13 07:11:14 +02:00
margin-top: 2px;
}
2013-08-13 07:11:14 +02:00
&:hover {
2013-08-18 06:18:41 +02:00
background: #dedede;
2013-08-01 10:57:08 +02:00
2013-08-13 07:11:14 +02:00
.image {
.play-button {
display: block;
}
2013-08-01 10:57:08 +02:00
}
}
2013-08-13 07:11:14 +02:00
&.is-playing {
background: #ddd;
2013-08-01 10:57:08 +02:00
}
2013-08-19 05:39:29 +02:00
&.has-played {
background: red;
}
2013-08-13 07:11:14 +02:00
&.is-favourited {
.icons {
a.icon-favourite {
color: @orange;
text-decoration: none;
2013-08-01 04:01:41 +02:00
2013-08-13 07:11:14 +02:00
i {
color: #FFD76E;
text-shadow: 0px 0px 2px rgba(0,0,0,0.8);
2013-08-01 04:01:41 +02:00
2013-08-13 07:11:14 +02:00
&:before {
content: "\f005"
}
}
}
2013-08-01 04:01:41 +02:00
}
}
}
2013-07-28 23:51:35 +02:00
}