zoomed form in cards and center game div
continuous-integration/drone/push Build is passing Details

master
remrem 2 years ago
parent 397a9de18c
commit cc4eebe0ab

@ -4,8 +4,8 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 6vw; width: 6vw;
min-height: 26vh; min-height: 30vh;
padding: 1.5em; padding: 0.5em 1em 0.5em 1em;
margin: 1.2rem; /* for better display */ margin: 1.2rem; /* for better display */
border: 0.3em solid black; border: 0.3em solid black;
border-radius: 2em; border-radius: 2em;
@ -18,8 +18,8 @@
svg { svg {
rotate: 90deg; rotate: 90deg;
height: 7vh; height: 10vh;
width: 3vw; width: 5vw;
} }
.item { .item {

@ -9,7 +9,7 @@ export default{
return{ return{
card:new Card({"filling":"empty"}), card:new Card({"filling":"empty"}),
id:0, id:0,
deck : new Deck([0,1,2,3],4), deck : new Deck([0,1,2],3),
selectedCards:[], selectedCards:[],
selectedCardsindex:[], selectedCardsindex:[],
nbCardsSelected:0, nbCardsSelected:0,
@ -65,7 +65,7 @@ export default{
<h2>Players: {{connected}}</h2> <h2>Players: {{connected}}</h2>
</div> </div>
<div v-if="!win" v-bind:style="{border: '3px solid black', fontSize: '20px', display:'flex', 'flex-wrap':'wrap',margin:'1rem 20rem 20px 20px'}"> <div v-if="!win" v-bind:style="{border: '3px solid black', fontSize: '20px', display:'flex', 'flex-wrap':'wrap',margin:'1rem 17vw 20px 17vw'}">
<card-module @selected='selected' :id=n :card=this.deck.outputCards[n-1] v-for="n in deck.outputCards.length"/> <card-module @selected='selected' :id=n :card=this.deck.outputCards[n-1] v-for="n in deck.outputCards.length"/>
</div> </div>
<div v-if="win"> <div v-if="win">

Loading…
Cancel
Save