Spaces:
Running
Running
File size: 2,185 Bytes
f2bee8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
@import "../../css/units.css";
@import "../../css/colors.css";
.backpack-container {
flex-shrink: 1;
position: relative;
}
.backpack-header {
margin-top: 0.5rem;
border: 1px solid $ui-black-transparent;
background: $ui-white;
padding: 0.25rem;
text-align: center;
font-size: 0.85rem;
color: $text-primary;
transition: 0.2s;
cursor: pointer;
user-select: none;
}
[theme="dark"] .backpack-header {
background: $ui-primary;
}
[dir="ltr"] .backpack-header {
border-top-right-radius: $space;
}
[dir="rtl"] .backpack-header {
border-top-left-radius: $space;
}
.backpack-list {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
border-right: 1px solid $ui-black-transparent;
min-height: 5.5rem;
}
/* Absolute position the inner list to allow scrolling inside flex sized container */
.backpack-list-inner {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
overflow-x: auto;
}
.drag-over:after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.75;
background-color: $drop-highlight;
transition: all 0.25s ease;
}
.status-message {
width: 100%;
text-align: center;
font-size: 0.85rem;
color: $text-primary;
}
.error-message {
font-family: monospace;
}
.backpack-item {
width: 4rem;
height: 4.5rem;
margin: 0 0.25rem;
flex-shrink: 0;
/* Need to hide overflow because of background setting below */
overflow: hidden;
}
.backpack-item > div {
/* Need to set the background to get blend-mode below to work */
background: $ui-primary;
}
.backpack-item img {
mix-blend-mode: multiply; /* Make white transparent for thumnbnails */
}
[theme="dark"] .backpack-item img {
mix-blend-mode: normal;
}
.more {
background: $motion-primary;
color: $ui-white;
border: none;
outline: none;
font-weight: bold;
border-radius: 0.5rem;
font-size: 0.85rem;
padding: 0.5rem;
margin: 0.5rem;
cursor: pointer;
}
|