diff --git a/static/style.css b/static/style.css index f179883..7d1436b 100644 --- a/static/style.css +++ b/static/style.css @@ -113,13 +113,6 @@ pre .value, code .value, code.value { box-shadow: 0 0 .5em 1.5em var(--fg); } -#front-form { - margin-bottom: 0; - padding-bottom: 2em; - background-color: transparent; /* topology animation is behind */ - box-shadow: none; -} - .text-outline { text-shadow: -2px -2px 0 var(--bg), 2px -2px 0 var(--bg), -2px 2px 0 var(--bg), 2px 2px 0 var(--bg); /* this is easier and supported in major browsers but draws the outline *inside* diff --git a/static/topology.js b/static/topology.js index 3d96633..1642317 100644 --- a/static/topology.js +++ b/static/topology.js @@ -166,6 +166,10 @@ let sketch = function(p) { let myQ5Sketch = new p5(sketch, document.getElementById('topology')); +// canvas is behind #front-form +const frontForm = document.getElementById('front-form'); +frontForm.style.backgroundColor = 'transparent'; +frontForm.style.boxShadow = 'none'; // tried setting this inside the sketch with p.windowResized = ... // but that didn't work. diff --git a/templates/index.html b/templates/index.html index 4ad17bc..301c935 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@ -
+