Commit 35c59e71 authored by quentin.vrel's avatar quentin.vrel

Finally proper overlapping css rules on the tiles

parent 9acb5d44
...@@ -22,20 +22,20 @@ export default { ...@@ -22,20 +22,20 @@ export default {
}, },
mounted(){ mounted(){
this.Hand= new Hand(); this.Hand= new Hand();
this.Hand.draw(new TileModel(8)); this.Hand.draw(new TileModel(8));
this.Hand.draw(new TileModel(11)); this.Hand.draw(new TileModel(11));
this.Hand.draw(new TileModel(11)); this.Hand.draw(new TileModel(11));
this.Hand.draw(new TileModel(14)); this.Hand.draw(new TileModel(14));
this.Hand.draw(new TileModel(16)); this.Hand.draw(new TileModel(16));
this.Hand.draw(new TileModel(7)); this.Hand.draw(new TileModel(7));
this.Hand.draw(new TileModel(4)); this.Hand.draw(new TileModel(4));
this.Hand.draw(new TileModel(5)); this.Hand.draw(new TileModel(5));
this.Hand.draw(new TileModel(20)); this.Hand.draw(new TileModel(20));
this.Hand.draw(new TileModel(21)); this.Hand.draw(new TileModel(21));
this.Hand.draw(new TileModel(22)); this.Hand.draw(new TileModel(22));
this.Hand.draw(new TileModel(6)); this.Hand.draw(new TileModel(6));
this.Hand.draw(new TileModel(0)); this.Hand.draw(new TileModel(0));
this.Hand.sort(); this.Hand.sort();
}, },
updated(){ updated(){
......
...@@ -42,21 +42,27 @@ export default { ...@@ -42,21 +42,27 @@ export default {
height: 1px; height: 1px;
} }
.tile-symbol{ .tile-symbol{
height: 1px; position: relative;
border-radius: 10px; border-radius: 10px;
background: transparent; background: transparent;
border: none; border: none;
display: inline-block; display: inline-block;
} }
.tile-background{ .tile-background{
position: absolute;
top: 0;
left: 0;
display: inline-block; display: inline-block;
z-index: 1;
} }
.tile-front{ .tile-front{
position: relative;
top: 0;
left: 0;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline-block; display: inline-block;
transform: translateY(-100%); z-index: 2;
-webkit-transform: translateY(-100%);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment