Small styling changes, responsiveness modals
This commit is contained in:
parent
2c19d19c41
commit
6215b19b20
@ -59,6 +59,7 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input-cyan {
|
.input-cyan {
|
||||||
|
font-family: $titles;
|
||||||
border: 1px solid $cyan;
|
border: 1px solid $cyan;
|
||||||
background-color: rgba($white, 0.8);
|
background-color: rgba($white, 0.8);
|
||||||
&:focus, &:focus-visible {
|
&:focus, &:focus-visible {
|
||||||
|
@ -24,8 +24,7 @@ import { ref } from 'vue'
|
|||||||
import Modal from '@/components/utilities/Modal.vue'
|
import Modal from '@/components/utilities/Modal.vue'
|
||||||
import AssetManager from '@/components/utilities/assetManager/AssetManager.vue'
|
import AssetManager from '@/components/utilities/assetManager/AssetManager.vue'
|
||||||
|
|
||||||
let toggle = ref('asset-manager');
|
let toggle = ref('asset-manager')
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -34,6 +33,7 @@ let toggle = ref('asset-manager');
|
|||||||
.gm-selector {
|
.gm-selector {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 6px 15px;
|
padding: 6px 15px;
|
||||||
|
@ -205,8 +205,7 @@ function handleResize() {
|
|||||||
|
|
||||||
.modal-header {
|
.modal-header {
|
||||||
cursor: move;
|
cursor: move;
|
||||||
padding: 0 20px;
|
padding: 10px 20px;
|
||||||
min-height: 50px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
@ -216,6 +215,7 @@ function handleResize() {
|
|||||||
.modal-title {
|
.modal-title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
|
@ -21,14 +21,7 @@
|
|||||||
<!-- Assets -->
|
<!-- Assets -->
|
||||||
<div class="assets active" @scroll="onScroll">
|
<div class="assets active" @scroll="onScroll">
|
||||||
<div class="asset">
|
<div class="asset">
|
||||||
<!-- @TODO: can this pls be less html, make input 100% and fix the spacing below -->
|
<input class="input-cyan search-field" placeholder="Search..." />
|
||||||
<div class="modal-form">
|
|
||||||
<div class="form-fields">
|
|
||||||
<div class="form-field">
|
|
||||||
<input class="input-cyan" placeholder="Search..." />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="asset">
|
<div class="asset">
|
||||||
<span class="asset-name">Upload new</span>
|
<span class="asset-name">Upload new</span>
|
||||||
@ -266,6 +259,11 @@ onMounted(() => {
|
|||||||
&.selected {
|
&.selected {
|
||||||
background-color: rgba($cyan, 0.8);
|
background-color: rgba($cyan, 0.8);
|
||||||
}
|
}
|
||||||
|
.search-field {
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
width: calc(100% - 20px);
|
||||||
|
}
|
||||||
.file-upload {
|
.file-upload {
|
||||||
background-color: rgba($cyan, 0.5);
|
background-color: rgba($cyan, 0.5);
|
||||||
border: 1px solid $white;
|
border: 1px solid $white;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
<button class="btn-cyan" @click="zoneEditorStore.setDrawMode('tile')">Decorations</button>
|
<button class="btn-cyan" @click="zoneEditorStore.setDrawMode('tile')">Decorations</button>
|
||||||
<button class="btn-cyan" @click="zoneEditorStore.setDrawMode('tile')">NPC</button>
|
<button class="btn-cyan" @click="zoneEditorStore.setDrawMode('tile')">NPC</button>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<canvas ref="canvas" :width="decorationWidth" :height="decorationHeight" style="display: none"></canvas>
|
<canvas ref="canvas" :width="decorationWidth" :height="decorationHeight" style="display: none"></canvas>
|
||||||
<div class="decorations">
|
<div class="decorations">
|
||||||
<img v-for="(decoration, index) in decorations" :key="index" :src="decoration" alt="Decoration" @click="zoneEditorStore.setSelectedDecoration(index)" :class="{ selected: zoneEditorStore.selectedDecoration && zoneEditorStore.selectedDecoration === index }" />
|
<img v-for="(decoration, index) in decorations" :key="index" :src="decoration" alt="Decoration" @click="zoneEditorStore.setSelectedDecoration(index)" :class="{ selected: zoneEditorStore.selectedDecoration && zoneEditorStore.selectedDecoration === index }" />
|
||||||
@ -111,6 +110,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user