css low effort

main
km0 2 years ago
parent e8a2afb017
commit 43a4e2142b

@ -25,9 +25,9 @@
enable-background="new 0 0 500 500" enable-background="new 0 0 500 500"
xml:space="preserve" xml:space="preserve"
></svg> ></svg>
<button id="submit">Send</button>
</div> </div>
<button id="submit">Send</button>
<script> <script>
const theme = document.querySelector("#theme"); const theme = document.querySelector("#theme");
@ -51,6 +51,7 @@
}, },
"" ""
); );
if (paths == "") return;
socket.send(JSON.stringify({ type: "drawings", paths: paths })); socket.send(JSON.stringify({ type: "drawings", paths: paths }));
for (const path of document.querySelectorAll("#svgElement path")) { for (const path of document.querySelectorAll("#svgElement path")) {

@ -1,8 +1,25 @@
html, html,
body { body {
font-family: sans-serif;
background-color: dodgerblue; background-color: dodgerblue;
} }
#svgElement { #svgElement {
background-color: white; background-color: white;
} }
button {
display: block;
background-color: white;
border: 2px solid currentColor;
padding: 16px 32px;
border-radius: 32px;
font-size: 32px;
margin-top: 16px;
}
#theme {
font-weight: bold;
-webkit-text-stroke: 1px black;
-webkit-text-fill-color: white;
}

Loading…
Cancel
Save