Draft screen #20

Merged
hamcha merged 4 commits from feature/draft-ui into master 2019-09-15 11:39:04 +00:00
3 changed files with 24 additions and 5 deletions
Showing only changes of commit 8ad7c273dc - Show all commits

View file

@ -18,8 +18,7 @@ $padding: 10px;
max-height: 100%; max-height: 100%;
display: grid; display: grid;
gap: $padding; gap: $padding;
padding: ($padding * 4) $padding; padding: $padding;
row-gap: $padding * 4;
place-items: stretch; place-items: stretch;
} }
@ -27,9 +26,11 @@ $padding: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
transition: 100ms all; transition: 100ms all;
cursor: pointer;
img { img {
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;
transition: box-shadow 60ms;
} }
&.available:hover img { &.available:hover img {
box-shadow: 0 0 15px 5px rgba(200, 210, 255, 0.5); box-shadow: 0 0 15px 5px rgba(200, 210, 255, 0.5);

View file

@ -103,6 +103,7 @@
.cards { .cards {
display: grid; display: grid;
grid-template-columns: 5% 1fr 5%; grid-template-columns: 5% 1fr 5%;
column-gap: 10px;
} }
.decklist { .decklist {

View file

@ -1,9 +1,14 @@
<template> <template>
<section class="draftview"> <section class="draftview">
<section class="playerlist"> <section class="playerlist">
<b>Players</b> <header>
<h2>Players</h2>
</header>
</section> </section>
<section class="pool"> <section class="pool">
<header>
<h2>Available picks</h2>
</header>
<CardPicker <CardPicker
@picked="cardPicked" @picked="cardPicked"
:columns="columns" :columns="columns"
@ -13,7 +18,9 @@
/> />
</section> </section>
<section class="cardlist"> <section class="cardlist">
<b>Cards</b> <header>
<h2>Cards</h2>
</header>
</section> </section>
</section> </section>
</template> </template>
@ -31,11 +38,21 @@
padding: 10px 20px; padding: 10px 20px;
grid-row: 1; grid-row: 1;
} }
header > h2 {
font-family: $fantasy;
font-weight: 600;
text-align: center;
font-size: 2.5vh;
padding: 1vh;
}
} }
.pool { .pool {
display: flex;
flex-direction: column;
.picker { .picker {
height: 100%; flex: 1;
} }
} }