|
95 | 95 | } |
96 | 96 | </script> |
97 | 97 |
|
98 | | -<div class="dialog_container"> |
| 98 | +<div class="dialog-container"> |
99 | 99 | <LineInput |
100 | 100 | label={translate('dialog.variant_config.variant_display_name')} |
101 | 101 | bind:value={displayName} |
|
154 | 154 | }} |
155 | 155 | /> |
156 | 156 | </div> |
157 | | - <lu class="texture_map_container"> |
| 157 | + <lu class="texture-map-container"> |
158 | 158 | {#key textureMapUpdated} |
159 | 159 | {#each [...textureMap.map.entries()] as entry, index} |
160 | | - <div class="texture_mapping_item"></div> |
161 | | - <li class="texture_mapping_item"> |
162 | | - <div class="texture_mapping_item_dropdown_container"> |
163 | | - <img src={getTextureSrc(entry[0])} alt="" /> |
| 160 | + <div class="texture-mapping-item"></div> |
| 161 | + <li class="texture-mapping-item"> |
| 162 | + <div class="texture-mapping-item-dropdown-container"> |
| 163 | + <div class="img-container"> |
| 164 | + <img src={getTextureSrc(entry[0])} alt="" /> |
| 165 | + </div> |
164 | 166 | <select |
165 | | - class="texture_mapping_item_dropdown" |
| 167 | + class="texture-mapping-item-dropdown" |
166 | 168 | on:change={e => selectNewPrimaryTexture(e, entry[0])} |
167 | 169 | > |
168 | 170 | <!-- svelte-ignore missing-declaration --> |
|
176 | 178 |
|
177 | 179 | <i class="material-icons icon">east</i> |
178 | 180 |
|
179 | | - <div class="texture_mapping_item_dropdown_container"> |
180 | | - <img src={getTextureSrc(entry[1])} alt="" /> |
| 181 | + <div class="texture-mapping-item-dropdown-container"> |
| 182 | + <div class="img-container"> |
| 183 | + <img src={getTextureSrc(entry[1])} alt="" /> |
| 184 | + </div> |
181 | 185 | <select |
182 | | - class="texture_mapping_item_dropdown" |
| 186 | + class="texture-mapping-item-dropdown" |
183 | 187 | on:change={e => selectNewSecondaryTexture(e, entry[0])} |
184 | 188 | > |
185 | 189 | <!-- svelte-ignore missing-declaration --> |
|
198 | 202 | > |
199 | 203 | </li> |
200 | 204 | {:else} |
201 | | - <div class="no_mappings"> |
202 | | - {translate('dialog.variant_config.texture_map.no_mappings')} |
| 205 | + <div class="no-mappings"> |
| 206 | + {translate('dialog.variant_config.texture_map.no-mappings')} |
203 | 207 | </div> |
204 | 208 | {/each} |
205 | 209 | {/key} |
|
225 | 229 | </div> |
226 | 230 |
|
227 | 231 | <style> |
228 | | - .dialog_container { |
| 232 | + .dialog-container { |
229 | 233 | display: flex; |
230 | 234 | flex-direction: column; |
231 | 235 | } |
|
236 | 240 | font-size: 14px; |
237 | 241 | user-select: all; |
238 | 242 | } |
239 | | - .no_mappings { |
| 243 | + .no-mappings { |
240 | 244 | color: var(--color-subtle_text); |
241 | 245 | font-style: italic; |
242 | 246 | text-align: center; |
243 | 247 | } |
244 | | - img { |
| 248 | + .img-container { |
| 249 | + display: flex; |
| 250 | + align-items: flex-start; |
245 | 251 | width: 128px; |
246 | 252 | height: 128px; |
247 | 253 | pointer-events: none; |
| 254 | + background: repeating-conic-gradient(var(--color-dark) 0% 25%, transparent 0% 50%) 50% / |
| 255 | + 16px 16px; |
| 256 | + } |
| 257 | + img { |
| 258 | + width: 128px; |
| 259 | + pointer-events: none; |
248 | 260 | } |
249 | | - .texture_mapping_item { |
| 261 | + .texture-mapping-item { |
250 | 262 | display: flex; |
251 | 263 | align-items: center; |
252 | 264 | justify-content: space-between; |
253 | 265 | } |
254 | | - .texture_mapping_item_dropdown_container { |
| 266 | + .texture-mapping-item-dropdown-container { |
255 | 267 | position: relative; |
256 | 268 | flex-grow: 1; |
257 | 269 | height: 164px; |
|
260 | 272 | align-items: center; |
261 | 273 | justify-content: center; |
262 | 274 | } |
263 | | - .texture_mapping_item_dropdown { |
| 275 | + .texture-mapping-item-dropdown { |
264 | 276 | display: flex; |
265 | 277 | flex-direction: column; |
266 | 278 | align-items: center; |
267 | 279 | max-width: 128px; |
268 | 280 | } |
269 | | - .texture_map_container { |
| 281 | + .texture-map-container { |
270 | 282 | display: flex; |
271 | 283 | flex-direction: column; |
272 | 284 | border: 1px solid var(--color-border); |
|
0 commit comments