Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	File size: 2,607 Bytes
			
			| 6bcb42f | 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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | @import "../../css/units.css";
@import "../../css/colors.css";
/* @todo: refactor this class name, and component: `sprite-selector` to `sprite` */
.sprite-selector-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    color: $text-primary;
    border-width: 2px;
    border-style: solid;
    border-color: $ui-black-transparent;
    border-radius: $space;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.sprite-selector-item.is-selected {
    box-shadow: 0px 0px 0px 4px $motion-transparent;
    border: 2px solid $motion-primary;
    background: $ui-white;
}
[theme="dark"] .sprite-selector-item.is-selected {
    background: $ui-primary;
}
.sprite-selector-item:hover {
    border: 2px solid $motion-primary;
    background: $ui-white;
}
[theme="dark"] .sprite-selector-item:hover {
    background: $ui-primary;
}
.sprite-selector-item:hover .sprite-image, .is-selected .sprite-image {
    filter: drop-shadow(0px 0px 2px  $ui-black-transparent);
}
/* Outer/Inner chicanery is to prevent layouts when sprite image changes */
.sprite-image-outer {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
}
.sprite-image-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sprite-image {
    user-select: none;
    pointer-events: none;
    max-width: 32px;
    max-height: 32px;
}
.sprite-info {
    padding: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    font-size: 0.625rem;
    color: $text-primary;
    user-select: none;
}
.sprite-name, .sprite-details {
    /*
        For truncating overflowing text gracefully
        Min-width is for a bug: https://css-tricks.com/flexbox-truncated-text
    */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.sprite-details {
    margin-top: 0.125rem;
    font-size: 0.5rem;
}
.is-selected .sprite-info {
    background: $motion-primary;
    color: $ui-white;
}
.delete-button {
    position: absolute;
    top: -.625rem;
    z-index: auto;
}
[dir="ltr"] .delete-button {
    right: -.625rem;
}
[dir="rtl"] .delete-button {
    left: -.625rem;
}
.number {
    position: absolute;
    top: 0.15rem;
    font-size: 0.625rem;
    font-weight: bold;
    z-index: 2;
}
[dir="ltr"] .number {
    left: 0.15rem;
}
[dir="rtl"] .number {
    right: 0.15rem;
}
 | 
