multiXy: added pointSize option; made default size bigger; points don't overflow the pad anymore

This commit is contained in:
jean-emmanuel 2016-10-25 18:47:38 +02:00
parent dd0c6b896b
commit 80193568d3
4 changed files with 40 additions and 14 deletions

View file

@ -99,11 +99,17 @@
.multixy-container {
> .pad {
--point-size:10rem;
> .wrapper {
padding: calc(var(--point-size) + 1rem);
> canvas {
top:0;
left:0;
}
> .pad {
position: absolute;
width:100%;
height:100%;
width:calc(100% - calc(var(--point-size) * 2 + 2rem));
height:calc(100% - calc(var(--point-size) * 2 + 2rem));
pointer-events: none;
.wrapper {
background: transparent;
@ -116,12 +122,12 @@
position: absolute;
left:0;
bottom:0;
width:24rem;
height: 24rem;
margin:0 0 -12rem -12rem;
width:calc(var(--point-size) * 2 + 4rem);
height: calc(var(--point-size) * 2 + 4rem);
margin:0 0 calc(-1 * var(--point-size) - 2rem) calc(-1 * var(--point-size) - 2rem);
text-align: center;
line-height: 24rem;
border-radius: 24rem;
line-height: calc(var(--point-size) * 2 + 4rem);
border-radius: calc(var(--point-size) * 2 + 4rem);
cursor: -webkit-grab;
opacity: 0;
}