From 6f22f088f27689652c09bfe39110a556b7437cc0 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Thu, 15 Nov 2018 20:18:46 -0800 Subject: [PATCH] viewport --- data/scripts/main.js | 18 +++++++++--------- index.html | 19 +++++++++++++++---- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 2ef57122..d4570247 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -6,15 +6,15 @@ //============================================// //The following bits of code are run immediatly to initialize the program while allowing the variables to remain global. //Setup viewport! -var minimumWidth = 800 -var viewport = document.createElement("meta") -viewport.setAttribute("name", "viewport") -if (screen.width < minimumWidth) { - viewport.setAttribute("content", "width=" + minimumWidth) -} else { - viewport.setAttribute("content", "width=device-width", "initial-scale=1") -} -document.head.appendChild(viewport) +// var minimumWidth = 800 +// var viewport = document.createElement("meta") +// viewport.setAttribute("name", "viewport") +// if (screen.width < minimumWidth) { +// viewport.setAttribute("content", "width=" + minimumWidth) +// } else { +// viewport.setAttribute("content", "width=device-width", "initial-scale=1") +// } +// document.head.appendChild(viewport) //Define initial variables var borderPath var secondColor diff --git a/index.html b/index.html index 7f697561..f86b239c 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,17 @@ + + +
@@ -398,8 +408,9 @@ * { font-family: belerenb; font-size: 6vw; + /*font-size: 24px;*/ user-select: none; - color: #dddddd; + color: #ddd; } html { /*background: linear-gradient(#252522, #101010) no-repeat center center fixed;*/ @@ -500,7 +511,7 @@ html { position: absolute; top: 0px; left: 0px; - background: var(--color-d); + background: var(--color-e); cursor: pointer; } .checkbox input:checked ~ label:after { @@ -510,8 +521,8 @@ html { content: "X"; position: absolute; display: none; - left: 0.2em; - top: -0.05em; + left: 0.18em; + top: -0.075em; } .checkbox input { opacity: 0;