mirror of https://github.com/bra1n/townsquare.git
requested changes
This commit is contained in:
parent
081bfbc695
commit
60dcd956e2
|
@ -3,25 +3,24 @@
|
|||
<div class="modal-backdrop" @click="close">
|
||||
<div
|
||||
class="modal"
|
||||
v-bind:class="[isMaximized ? 'maximized' : 'not-maximized']"
|
||||
:class="{ maximized: isMaximized }"
|
||||
role="dialog"
|
||||
aria-labelledby="modalTitle"
|
||||
aria-describedby="modalDescription"
|
||||
@click.stop=""
|
||||
>
|
||||
<div class="top-right-buttons">
|
||||
<font-awesome-icon
|
||||
@click="isMaximized = !isMaximized"
|
||||
class="maximize-toggle"
|
||||
v-if="isMaximized"
|
||||
icon="window-minimize"
|
||||
class="top-right-button"
|
||||
:icon="['fas', isMaximized ? 'window-minimize' : 'window-maximize']"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
@click="isMaximized = !isMaximized"
|
||||
class="maximize-toggle"
|
||||
v-if="!isMaximized"
|
||||
icon="window-maximize"
|
||||
@click="close"
|
||||
class="top-right-button"
|
||||
icon="times-circle"
|
||||
/>
|
||||
<font-awesome-icon @click="close" class="close" icon="times-circle" />
|
||||
</div>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -64,7 +63,8 @@ export default {
|
|||
box-shadow: 2px 2px 20px 1px #000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 60%;
|
||||
max-height: 80%;
|
||||
max-width: 80%;
|
||||
|
||||
.vote-history &,
|
||||
.night-reference &,
|
||||
|
@ -83,31 +83,19 @@ export default {
|
|||
justify-content: center;
|
||||
line-height: 100%;
|
||||
}
|
||||
> .close {
|
||||
> .top-right-buttons {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 20px;
|
||||
cursor: pointer;
|
||||
z-index: 5;
|
||||
&:hover {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
> .maximize-toggle {
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
right: 52px;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
> .top-right-button {
|
||||
cursor: pointer;
|
||||
width: 28px;
|
||||
&:hover {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.not-maximized {
|
||||
max-height: 80%;
|
||||
max-width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.maximized {
|
||||
|
@ -119,7 +107,6 @@ export default {
|
|||
max-height: 100%;
|
||||
display: flex;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
justify-content: safe center;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Modal
|
||||
class="night-reference"
|
||||
@close="toggleModal('nightOrder')"
|
||||
v-show="modals.nightOrder && roles.size"
|
||||
v-if="modals.nightOrder && roles.size"
|
||||
>
|
||||
<font-awesome-icon
|
||||
@click="toggleModal('reference')"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Modal
|
||||
class="characters"
|
||||
@close="toggleModal('reference')"
|
||||
v-show="modals.reference && roles.size"
|
||||
v-if="modals.reference && roles.size"
|
||||
>
|
||||
<font-awesome-icon
|
||||
@click="toggleModal('nightOrder')"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<Modal
|
||||
class="vote-history"
|
||||
v-show="modals.voteHistory && session.voteHistory"
|
||||
v-if="modals.voteHistory && session.voteHistory"
|
||||
@close="toggleModal('voteHistory')"
|
||||
>
|
||||
<font-awesome-icon
|
||||
|
|
Loading…
Reference in New Issue