|
| 1 | +@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap'); |
| 2 | + |
| 3 | +.tracker-container { |
| 4 | + width: 440px; |
| 5 | + box-sizing: border-box; |
| 6 | + font-family: "Lexend Deca", Arial, Helvetica, sans-serif; |
| 7 | + border: 2px solid black; |
| 8 | + border-radius: 4px; |
| 9 | + resize: both; |
| 10 | + |
| 11 | + background-color: #42b149; |
| 12 | + color: white; |
| 13 | +} |
| 14 | + |
| 15 | +.hidden { |
| 16 | + visibility: hidden; |
| 17 | +} |
| 18 | + |
| 19 | +/** Inventory Grid ****************************************************************************************************/ |
| 20 | +.inventory-grid { |
| 21 | + display: grid; |
| 22 | + grid-template-columns: repeat(6, minmax(0, 1fr)); |
| 23 | + padding: 1rem; |
| 24 | + gap: 1rem; |
| 25 | +} |
| 26 | + |
| 27 | +.inventory-grid .item { |
| 28 | + position: relative; |
| 29 | + display: flex; |
| 30 | + justify-content: center; |
| 31 | + height: 48px; |
| 32 | +} |
| 33 | + |
| 34 | +.inventory-grid .dual-item { |
| 35 | + display: flex; |
| 36 | + justify-content: center; |
| 37 | +} |
| 38 | + |
| 39 | +.inventory-grid .missing { |
| 40 | + /* Missing items will be in full grayscale to signify "uncollected". */ |
| 41 | + filter: grayscale(100%) contrast(75%) brightness(75%); |
| 42 | +} |
| 43 | + |
| 44 | +.inventory-grid .item img, |
| 45 | +.inventory-grid .dual-item img { |
| 46 | + display: flex; |
| 47 | + align-items: center; |
| 48 | + text-align: center; |
| 49 | + font-size: 0.8rem; |
| 50 | + text-shadow: 0 1px 2px black; |
| 51 | + font-weight: bold; |
| 52 | + image-rendering: crisp-edges; |
| 53 | + background-size: contain; |
| 54 | + background-repeat: no-repeat; |
| 55 | +} |
| 56 | + |
| 57 | +.inventory-grid .dual-item img { |
| 58 | + height: 48px; |
| 59 | + margin: 0 -4px; |
| 60 | +} |
| 61 | + |
| 62 | +.inventory-grid .dual-item img:first-child { |
| 63 | + align-self: flex-end; |
| 64 | +} |
| 65 | + |
| 66 | +.inventory-grid .item .quantity { |
| 67 | + position: absolute; |
| 68 | + bottom: 0; |
| 69 | + right: 0; |
| 70 | + text-align: right; |
| 71 | + font-weight: 600; |
| 72 | + font-size: 1.75rem; |
| 73 | + line-height: 1.75rem; |
| 74 | + text-shadow: |
| 75 | + -1px -1px 0 #000, |
| 76 | + 1px -1px 0 #000, |
| 77 | + -1px 1px 0 #000, |
| 78 | + 1px 1px 0 #000; |
| 79 | + user-select: none; |
| 80 | +} |
| 81 | + |
| 82 | +/** Regions List ******************************************************************************************************/ |
| 83 | +.regions-list { |
| 84 | + padding: 1rem; |
| 85 | +} |
| 86 | + |
| 87 | +.regions-list summary { |
| 88 | + list-style: none; |
| 89 | + display: flex; |
| 90 | + gap: 0.5rem; |
| 91 | + cursor: pointer; |
| 92 | +} |
| 93 | + |
| 94 | +.regions-list summary::before { |
| 95 | + content: "⯈"; |
| 96 | + width: 1em; |
| 97 | + flex-shrink: 0; |
| 98 | +} |
| 99 | + |
| 100 | +.regions-list details { |
| 101 | + font-weight: 300; |
| 102 | +} |
| 103 | + |
| 104 | +.regions-list details[open] > summary::before { |
| 105 | + content: "⯆"; |
| 106 | +} |
| 107 | + |
| 108 | +.regions-list .region { |
| 109 | + width: 100%; |
| 110 | + display: grid; |
| 111 | + grid-template-columns: 20fr 8fr 2fr 2fr; |
| 112 | + align-items: center; |
| 113 | + gap: 4px; |
| 114 | + text-align: center; |
| 115 | + font-weight: 300; |
| 116 | + box-sizing: border-box; |
| 117 | +} |
| 118 | + |
| 119 | +.regions-list .region :first-child { |
| 120 | + text-align: left; |
| 121 | + font-weight: 500; |
| 122 | +} |
| 123 | + |
| 124 | +.regions-list .region.region-header { |
| 125 | + margin-left: 24px; |
| 126 | + width: calc(100% - 24px); |
| 127 | + padding: 2px; |
| 128 | +} |
| 129 | + |
| 130 | +.regions-list .location-rows { |
| 131 | + border-top: 1px solid white; |
| 132 | + display: grid; |
| 133 | + grid-template-columns: auto 32px; |
| 134 | + font-weight: 300; |
| 135 | + padding: 2px 8px; |
| 136 | + margin-top: 4px; |
| 137 | + font-size: 0.8rem; |
| 138 | +} |
| 139 | + |
| 140 | +.regions-list .location-rows :nth-child(even) { |
| 141 | + text-align: right; |
| 142 | +} |
0 commit comments