|
|
@@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="character-layout"> |
|
|
<div class="character-layout"> |
|
|
|
|
|
<button @click="$emit('exit')" class="profile-exit">Exit</button> |
|
|
<div class="character-items"> |
|
|
<div class="character-items"> |
|
|
<button @click="$emit('exit')" class="profile-exit">Exit</button> |
|
|
|
|
|
<ItemView :item="item" v-for="(item, index) in world.player.items" :key="'item-' + index" /> |
|
|
<ItemView :item="item" v-for="(item, index) in world.player.items" :key="'item-' + index" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="character-containers"> |
|
|
<div class="character-containers"> |
|
|
@@ -41,31 +41,27 @@ export default class Explore extends Vue { |
|
|
position: relative; |
|
|
position: relative; |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-areas: |
|
|
grid-template-areas: |
|
|
|
|
|
"exit void" |
|
|
"items stats" |
|
|
"items stats" |
|
|
"containers containers"; |
|
|
"containers containers"; |
|
|
grid-template-rows: 1fr 0.25fr; |
|
|
|
|
|
|
|
|
grid-template-rows: 100px 1fr 0.25fr; |
|
|
grid-template-columns: 1fr 1fr; |
|
|
grid-template-columns: 1fr 1fr; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
max-width: 1500px; |
|
|
max-width: 1500px; |
|
|
margin: auto; |
|
|
margin: auto; |
|
|
overflow: hidden; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.character-items { |
|
|
.character-items { |
|
|
background: #222; |
|
|
background: #222; |
|
|
grid-area: items; |
|
|
grid-area: items; |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-columns: repeat(3, 1fr); |
|
|
|
|
|
grid-template-rows: repeat(100, 1fr); |
|
|
|
|
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); |
|
|
|
|
|
grid-template-rows: repeat(10, 1fr); |
|
|
justify-items: center; |
|
|
justify-items: center; |
|
|
align-items: start; |
|
|
align-items: start; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 800px) { |
|
|
|
|
|
.character-items { |
|
|
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
overflow-x: hidden; |
|
|
|
|
|
overflow-y: scroll; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.character-items > .item-view { |
|
|
.character-items > .item-view { |
|
|
@@ -89,8 +85,24 @@ export default class Explore extends Vue { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.profile-exit { |
|
|
.profile-exit { |
|
|
position: absolute; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
|
|
|
grid-area: exit; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
padding: 4pt; |
|
|
|
|
|
flex: 0 1; |
|
|
|
|
|
background: #333; |
|
|
|
|
|
border-color: #666; |
|
|
|
|
|
border-style: outset; |
|
|
|
|
|
user-select: none; |
|
|
|
|
|
color: #eee; |
|
|
|
|
|
font-size: 36px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.profile-exit:hover { |
|
|
|
|
|
background: #444; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.profile-exit:active { |
|
|
|
|
|
background: #666; |
|
|
|
|
|
border-style: inset; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |