🐛 Fix webkit rendering issues

This commit is contained in:
Joshua Seigler 2019-04-04 11:29:16 -04:00
parent 0db7dec44a
commit 7ff2852360
4 changed files with 939 additions and 304 deletions

View file

@ -110,6 +110,7 @@ var App = {
PAINT.big[Math.floor(tx.paintIndex * 12)] : PAINT.big[Math.floor(tx.paintIndex * 12)] :
PAINT.small[Math.floor(tx.paintIndex * 11)] PAINT.small[Math.floor(tx.paintIndex * 11)]
) + ')'; ) + ')';
paint.style.setProperty('-webkit-mask-image', paint.style.maskImage);
paint.style.setProperty('--x', tx.x); paint.style.setProperty('--x', tx.x);
paint.style.setProperty('--y', tx.y); paint.style.setProperty('--y', tx.y);
paint.style.setProperty('--size', Math.log(1 + tx.value)/Math.log(2)); paint.style.setProperty('--size', Math.log(1 + tx.value)/Math.log(2));

View file

@ -1,6 +1,7 @@
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
font-family: sans-serif; font-family: sans-serif;
font-size: 140%; font-size: 140%;
@ -15,6 +16,7 @@ body {
overflow: hidden; overflow: hidden;
} }
* { * {
-webkit-box-sizing: inherit;
box-sizing: inherit; box-sizing: inherit;
} }
a { a {
@ -38,6 +40,8 @@ a {
top: 50%; top: 50%;
width: 77.5vw; width: 77.5vw;
height: 77.5vw; height: 77.5vw;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%); transform: translate(-50%,-50%);
} }
@media (max-height: 77.5vw) { @media (max-height: 77.5vw) {
@ -49,6 +53,7 @@ a {
.block { .block {
width: 15vw; width: 15vw;
height: 15vw; height: 15vw;
-webkit-box-shadow: 0.1em 0.1em 1em hsla(0, 0%, 0%, 0.5);
box-shadow: 0.1em 0.1em 1em hsla(0, 0%, 0%, 0.5); box-shadow: 0.1em 0.1em 1em hsla(0, 0%, 0%, 0.5);
background-color: #eee; background-color: #eee;
margin: 0 auto 1em; margin: 0 auto 1em;
@ -73,11 +78,16 @@ a {
position: absolute; position: absolute;
left: calc(var(--x) * 90% + 5%); left: calc(var(--x) * 90% + 5%);
top: calc(var(--y) * 90% + 5%); top: calc(var(--y) * 90% + 5%);
-webkit-transform: translate(-50%, -50%) rotate(var(--rotation));
-ms-transform: translate(-50%, -50%) rotate(var(--rotation));
transform: translate(-50%, -50%) rotate(var(--rotation)); transform: translate(-50%, -50%) rotate(var(--rotation));
height: calc(var(--size) * 20% + 20%); height: calc(var(--size) * 20% + 20%);
width: calc(var(--size) * 20% + 20%); width: calc(var(--size) * 20% + 20%);
-webkit-mask-size: contain;
mask-size: contain; mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat; mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center; mask-position: center;
} }
@ -99,7 +109,13 @@ a {
right: 0; right: 0;
border-radius: 0 0 0 0.5em; border-radius: 0 0 0 0.5em;
border-width: 0 0 0.1em 0.1em; border-width: 0 0 0.1em 0.1em;
-webkit-transition: -webkit-transform 0.5s;
transition: -webkit-transform 0.5s;
-o-transition: transform 0.5s;
transition: transform 0.5s; transition: transform 0.5s;
transition: transform 0.5s, -webkit-transform 0.5s;
-webkit-transform: none;
-ms-transform: none;
transform: none; transform: none;
} }
#connectionStatus.is-disconnected:before { #connectionStatus.is-disconnected:before {
@ -115,7 +131,14 @@ a {
color: green; color: green;
} }
#connectionStatus.is-connected { #connectionStatus.is-connected {
-webkit-transition: -webkit-transform 0.5s;
transition: -webkit-transform 0.5s;
-o-transition: transform 0.5s;
transition: transform 0.5s; transition: transform 0.5s;
transition: transform 0.5s, -webkit-transform 0.5s;
-webkit-transition-delay: 2s;
-o-transition-delay: 2s;
transition-delay: 2s; transition-delay: 2s;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0);
} }

View file

@ -8,9 +8,8 @@
"license": "MIT", "license": "MIT",
"private": false, "private": false,
"dependencies": { "dependencies": {
"autoprefixer": "^7.1.4",
"less": "^2.7.2", "less": "^2.7.2",
"socket.io": "^2.0.3" "socket.io": "^2.2.0"
}, },
"scripts": { "scripts": {
"watch": "brunch watch -s", "watch": "brunch watch -s",
@ -19,7 +18,7 @@
}, },
"devDependencies": { "devDependencies": {
"browser-sync-brunch": "^0.0.9", "browser-sync-brunch": "^0.0.9",
"brunch": "^2.10.10", "brunch": "^2.10.17",
"git-directory-deploy": "^1.5.1", "git-directory-deploy": "^1.5.1",
"less-brunch": "^2.10.0" "less-brunch": "^2.10.0"
} }

1192
yarn.lock

File diff suppressed because it is too large Load diff