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

358 lines
5.3 KiB
SCSS
Raw Normal View History

2017-03-13 13:17:11 +13:00
.list {
2018-09-24 21:37:59 +12:00
&__item {
2018-11-08 17:01:02 +13:00
@include clearfix();
@include animate(0.1s);
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;
display: flex;
2017-02-10 09:06:41 +13:00
position: relative;
2018-11-07 22:02:53 +13:00
margin: 0 -20px 0 -20px;
padding: 16px 16px 16px 20px;
2017-06-18 05:47:36 +12:00
border-radius: 3px;
justify-content: space-between;
align-content: center;
&:before {
pointer-events: none;
content: '';
display: block;
position: absolute;
2018-11-07 17:01:18 +13:00
top: -5px;
left: 0;
bottom: 0;
right: 0;
2018-11-07 17:01:18 +13:00
height: 3px;
background: colour('blue');
2018-11-07 17:01:18 +13:00
opacity: 0;
}
2018-11-07 22:02:53 +13:00
&:not(:first-child){
border-top: 1px solid rgba(128,128,128,0.05);
@include theme('light') {
border-top-color: rgba(128,128,128,0.1);
}
2018-11-07 22:02:53 +13:00
}
:root .notouch:not(.dragging) &:not(.list__item--no-interaction){
cursor: pointer;
2020-02-04 10:44:05 +13:00
2018-11-09 08:33:16 +13:00
&:hover {
cursor: pointer;
2018-12-19 16:27:40 +13:00
background: rgba(255,255,255,0.03);
2018-11-09 08:33:16 +13:00
}
2018-08-24 18:31:56 +12:00
2018-11-09 08:33:16 +13:00
&:active,
&:focus {
@include noanimate();
-moz-transform: scale(0.997);
-webkit-transform: scale(0.997);
transform: scale(0.997);
2018-08-24 18:31:56 +12:00
}
}
:root .light-theme.notouch:not(.dragging) &:not(.list__item--no-interaction){
2018-12-19 16:27:40 +13:00
&:hover {
background: rgba(0,0,0,0.03);
}
}
.select-zone,
.drag-zone {
2017-06-18 05:47:36 +12:00
display: none;
* {
pointer-events: none;
}
}
2019-08-17 21:57:06 +12:00
.drag-zone {
touch-action: none;
}
.context-menu-trigger {
margin: 0 0 0 0.5rem;
}
/*
2018-05-24 21:37:41 +12:00
.icon.source {
color: colour('mid_grey');
2017-11-18 08:15:06 +13:00
position: absolute;
top: 16px;
2018-06-15 19:58:17 +12:00
right: 40px;
}*/
2017-11-18 08:15:06 +13:00
2017-03-25 10:21:10 +13:00
&.field {
padding: 0 !important;
& > label {
display: block;
position: relative;
padding: 12px 10px 12px 20px;
cursor: pointer;
}
}
.uri-placeholder {
word-break: break-all;
}
2018-11-07 17:01:18 +13:00
&--selected {
background: rgba(125, 125, 125, 0.15) !important;
@include theme('light') {
background: rgba(255, 239, 61, 0.35) !important;
}
2018-11-07 17:01:18 +13:00
}
2018-08-27 18:20:43 +12:00
2018-11-07 17:01:18 +13:00
&--playing {
.list__item {
&__column {
&__item {
&--name {
color: colour('turquoise');
2018-11-09 08:33:16 +13:00
.icon {
padding-left: 5px;
font-size: 12px;
@include responsive($bp_medium){
display: none;
}
}
}
}
2017-04-11 18:08:45 +12:00
}
2018-11-07 17:01:18 +13:00
}
}
2018-11-09 22:47:55 +13:00
&--has-drag-zone {
padding-left: 45px;
.list__item {
&__column {
&__item {
&--drag-zone {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 35px;
padding-top: 22px;
text-align: center;
}
}
}
}
}
&--has-thumbnail {
.list__item {
&__column {
&--name {
padding-left: 50px;
position: relative;
}
&__item {
2020-02-15 21:45:29 +13:00
&--details {
min-height: 1em;
}
&--thumbnail {
&,
&.thumbnail {
width: 40px;
position: absolute;
left: 0;
}
}
}
}
}
2018-11-07 17:01:18 +13:00
}
&__column {
align-items: center;
2020-02-04 10:44:05 +13:00
flex: 10;
2018-11-07 17:01:18 +13:00
&--middle {
display: flex;
2020-02-04 10:44:05 +13:00
flex: 5;
}
2018-11-07 17:01:18 +13:00
2018-11-09 22:47:55 +13:00
&--right {
display: flex;
margin-left: auto;
z-index: 9;
2020-02-04 10:44:05 +13:00
flex: 4;
justify-content: flex-end;
2020-12-18 21:54:50 +13:00
order: 2;
2018-11-09 16:45:57 +13:00
.list__item__column__item {
padding-left: 10px;
display: inline-block;
}
}
2018-11-07 17:01:18 +13:00
&__item {
align-items: center;
2018-11-07 17:01:18 +13:00
&--name {
2019-01-06 14:12:57 +13:00
font-size: 1.1em;
}
2018-11-07 17:01:18 +13:00
&--details {
padding: 4px 0 0 0;
margin: 0;
opacity: 0.5;
.details__item {
display: inline;
overflow-wrap: break-word;
&:not(:first-child) {
@include bullet();
}
}
}
2018-11-07 17:01:18 +13:00
2018-11-09 22:47:55 +13:00
&--added {
.by {
opacity: 0.5;
2018-11-09 22:47:55 +13:00
&:before {
content: '(';
}
&:after {
content: ')';
}
&--with-spacing {
padding-left: 0.25em;
}
2018-11-09 22:47:55 +13:00
}
}
2018-11-07 17:01:18 +13:00
&--context-menu-trigger {
font-size: 16px;
position: relative;
z-index: 2;
padding-top: 0;
padding-bottom: 0;
2018-11-07 17:01:18 +13:00
&:before {
display: none !important;
}
2017-04-11 18:08:45 +12:00
}
2018-11-07 17:01:18 +13:00
@include theme('light') {
.flag {
background: colour('light_grey');
color: colour('white');
}
2018-06-15 19:58:17 +12:00
}
2016-11-25 22:49:34 +13:00
}
2018-11-07 17:01:18 +13:00
}
}
2018-11-09 08:33:16 +13:00
&--tracks {
2018-11-07 17:01:18 +13:00
.list__item {
cursor: pointer;
2016-11-28 07:27:30 +13:00
2018-11-09 08:33:16 +13:00
:root .dragging &:hover,
2018-11-09 22:47:55 +13:00
:root .dragging &--hover,
&.touch-drag-hover {
&:before {
2018-11-07 17:01:18 +13:00
opacity: 1;
}
2017-04-11 18:08:45 +12:00
}
&.has-touch-drag-zone {
2020-02-04 10:44:05 +13:00
padding-left: 45px;
.drag-zone {
position: absolute;
top: 0;
2018-11-07 22:02:53 +13:00
left: 5px;
height: 100%;
width: 34px;
font-size: 14px;
display: block;
color: colour('mid_grey');
2018-11-07 22:02:53 +13:00
padding: 0;
2020-02-04 10:44:05 +13:00
2018-05-20 20:42:20 +12:00
.icon {
position: absolute;
top: 50%;
left: 10px;
2018-05-20 20:42:20 +12:00
margin-top: -8px;
pointer-events: none;
}
}
}
2017-03-13 13:17:11 +13:00
}
}
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2018-09-28 07:04:58 +12:00
&__item {
2017-03-13 13:17:11 +13:00
:root .notouch:not(.dragging) &:not(.list__item--no-interaction) {
2018-11-09 22:47:55 +13:00
&:active,
&:focus {
@include noanimate();
-moz-transform: scale(0.98);
-webkit-transform: scale(0.98);
transform: scale(0.98);
}
2018-11-07 22:02:53 +13:00
}
2018-04-03 21:16:10 +12:00
2018-11-09 22:47:55 +13:00
&__column {
2018-11-09 22:47:55 +13:00
&--middle {
2018-11-07 22:02:53 +13:00
display: none;
}
2018-11-09 22:47:55 +13:00
&__item {
2018-11-09 22:47:55 +13:00
&--source {
display: none !important;
2018-11-07 22:02:53 +13:00
}
&--track-number {
span {
display: none;
}
}
2018-11-09 22:47:55 +13:00
&--added {
.by {
display: none;
}
.from {
text-transform: capitalize;
&:before,
&:after {
display: none;
}
}
}
}
}
2018-11-07 17:01:18 +13:00
.context-zone {
top: 14px;
}
}
}
}