Files
Iris/src/scss/components/_lists.scss

344 lines
4.9 KiB
SCSS
Raw Normal View History

2017-03-13 13:17:11 +13:00
.list {
2017-02-10 09:06:41 +13:00
.list-item {
@include clearfix;
2017-02-10 09:06:41 +13:00
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2017-02-10 09:06:41 +13:00
display: block;
position: relative;
2017-07-24 06:03:09 +12:00
padding: 14px 10px;
2017-06-18 05:47:36 +12:00
margin: 0 -10px -1px -10px;
cursor: pointer;
2017-06-18 05:47:36 +12:00
border-radius: 3px;
2017-07-23 10:15:02 +12:00
border-bottom: 1px solid rgba(255,255,255,0.05);
border-top: 1px solid rgba(255,255,255,0.05);
2017-02-10 09:06:41 +13:00
&.selected {
2017-07-23 10:15:02 +12:00
background: rgba(255,255,255,0.08) !important;
.select-zone {
&::after {
2017-07-23 10:15:02 +12:00
background: $blue;
border-color: $blue;
}
}
}
&.playing {
font-weight: bold;
}
.select-zone,
.drag-zone {
2017-06-18 05:47:36 +12:00
display: none;
}
:root .notouch:not(.dragging) &:not(.header):not(.no-click).hover {
2017-07-23 10:15:02 +12:00
background: rgba(255,255,255,0.03);
2017-02-10 09:06:41 +13:00
cursor: pointer;
}
2017-02-10 09:06:41 +13:00
&.header {
font-size: 10px;
2017-07-23 10:15:02 +12:00
color: $grey;
2017-02-10 09:06:41 +13:00
text-transform: uppercase;
border-top: 0;
padding-bottom: 2px;
}
.source {
color: $mid_grey;
position: absolute;
top: 14px;
right: 12px;
}
2017-03-25 10:21:10 +13:00
&.field {
padding: 0 !important;
& > label {
display: block;
position: relative;
padding: 12px 10px 12px 20px;
cursor: pointer;
}
}
2017-03-13 13:17:11 +13:00
}
2017-04-11 18:08:45 +12:00
&.track-list {
.list-item {
.col {
&.name {
width: 40%;
}
&.artists,
&.album {
width: 25%;
}
&.duration {
width: 5%;
}
2016-11-25 22:49:34 +13:00
}
2016-11-28 07:27:30 +13:00
:root .dragging &.hover,
&.touch-drag-hover {
2017-04-11 18:08:45 +12:00
border-top: 3px solid $blue;
margin-top: -3px;
background: transparent;
}
2017-03-13 13:17:11 +13:00
}
}
&.playlist-list .list-item {
.col {
&.name {
width: 50%;
}
&.owner {
width: 20%
}
&.source,
&.can_edit,
&.tracks_total,
&.popularity {
width: 10%;
}
}
}
&.album-list .list-item {
.col {
&.name,
&.artists {
width: 30%;
}
&.added_at,
&.release_date {
width: 15%;
}
&.tracks_total {
width: 10%;
}
}
}
2017-03-24 23:05:43 +13:00
&.library-local-album-list .list-item{
.col {
&.name,
&.artists {
width: 45%;
}
&.tracks_total {
width: 10%;
}
}
}
&.artist-list .list-item {
.col {
&.name {
width: 70%;
}
&.followers_total,
&.popularity {
width: 15%;
}
}
}
2017-03-13 13:17:11 +13:00
&.queue-track-list {
.col {
&.name,
&.artists,
&.album {
width: 25% !important;
}
&.added {
width: 20%;
}
}
}
&.queue-history-track-list .list-item {
2017-03-13 13:17:11 +13:00
.col {
&.name {
width: 60%;
}
&.played_at,
&.source {
2017-03-13 13:17:11 +13:00
width: 20%;
}
}
}
&.related-artist-list {
padding-bottom: 20px;
2017-02-10 09:06:41 +13:00
.artist {
display: block;
border: 0;
margin-bottom: 5px;
@include clearfix;
.thumbnail {
@include animate();
border-radius: 50%;
2017-02-10 09:06:41 +13:00
width: 50px;
margin-right: 15px;
float: left;
border: 3px solid transparent;
}
2016-10-25 21:36:33 +13:00
2017-02-10 09:06:41 +13:00
.name {
display: block;
padding-top: 20px;
}
2016-10-25 21:36:33 +13:00
}
2017-02-10 09:06:41 +13:00
a.artist:hover {
.thumbnail {
border-color: $turquoise;
2017-07-23 10:15:02 +12:00
opacity: 1;
2017-02-10 09:06:41 +13:00
}
2016-10-25 21:36:33 +13:00
}
2016-11-07 21:21:15 +13:00
}
2016-10-25 21:36:33 +13:00
2017-03-13 13:17:11 +13:00
@include responsive( $bp_medium ){
2017-02-10 09:06:41 +13:00
.list-item {
padding: 12px !important;
2017-03-13 13:17:11 +13:00
2017-03-27 09:17:05 +13:00
.source {
position: static;
float: none;
}
.select-zone {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 38px;
font-size: 8px;
display: block;
.fa {
position: absolute;
top: 20px;
left: 19px;
pointer-events: none;
color: $white;
z-index: 1;
}
&:after {
display: block;
content: '';
2017-07-23 10:15:02 +12:00
border: 1px solid $mid_grey;
border-radius: 50%;
width: 14px;
height: 14px;
position: absolute;
top: 16px;
left: 16px;
}
}
.drag-zone {
position: absolute;
top: 0;
left: 38px;
height: 100%;
width: 38px;
font-size: 14px;
display: block;
2017-07-23 10:15:02 +12:00
color: $mid_grey;
.fa {
position: absolute;
top: 17px;
left: 8px;
pointer-events: none;
}
}
2017-03-13 13:17:11 +13:00
.col {
&.name {
width: auto !important;
2017-03-13 13:17:11 +13:00
padding-right: 10%;
display: block;
float: none;
2017-03-13 13:17:11 +13:00
}
&.duration {
width: auto !important;
2017-03-13 13:17:11 +13:00
position: absolute;
right: 10px;
text-align: right;
}
2017-07-17 08:27:39 +12:00
&:not(.name):not(.duration):not(.album){
2017-03-13 13:17:11 +13:00
color: $mid_grey;
2017-03-27 09:17:05 +13:00
display: inline;
2017-03-13 13:17:11 +13:00
width: auto !important;
2017-03-27 09:17:05 +13:00
float: none !important;
word-wrap: break-word;
2017-03-13 13:17:11 +13:00
}
&.followers_total:after {
content: ' followers';
}
&.tracks_total:after {
content: ' tracks';
}
&.popularity:after {
content: '% popularity';
}
2017-07-17 08:27:39 +12:00
&.album,
2017-03-13 13:17:11 +13:00
&.can_edit,
&.release_date {
display: none;
}
}
2017-03-13 13:17:11 +13:00
&.header {
display: none;
}
2017-04-11 18:08:45 +12:00
}
2017-04-18 04:44:39 +12:00
&.queue-track-list {
.list-item {
.artists {
padding-left: 0 !important;
&:before {
display: none !important;
}
}
.source,
.added {
display: none !important;
}
}
}
&.track-list {
.list-item.can-sort {
2017-07-24 06:03:09 +12:00
padding-left: 78px !important;
}
.list-item:not(.can-sort){
2017-07-24 09:09:13 +12:00
padding-left: 46px !important;
}
}
}
2016-10-25 21:36:33 +13:00
}