+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
diff --git a/script.js b/script.js
index ca24efe..a34c6c0 100644
--- a/script.js
+++ b/script.js
@@ -36,7 +36,7 @@ colorPicker.addEventListener("change", changeColor);
backColorPicker.addEventListener("input", pickBackground);
reset.addEventListener("click", resetGrid);
gridSlider.addEventListener("input", getGridDimensions);
-
+gridSlider.addEventListener("change", getGridDimensions);
function resetGrid() {
@@ -69,7 +69,6 @@ function createGrid() {
sliderLabel.textContent = numGrid;
grid.classList.add("grid", "grid-on");
- //grid.classList.add("grid-on");
grid.style.width = gridWidth + '%';
grid.style.height = gridWidth + '%';
grid.style.opacity = 0.9;
diff --git a/style.css b/style.css
index ca54a14..950186c 100644
--- a/style.css
+++ b/style.css
@@ -5,11 +5,18 @@ body{
}
.area{
display: flex;
- flex-direction: column;
justify-content: center;
align-items: center;
height: 90vh;
}
+
+.pen-input, .grid-input {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ margin: 20px;
+}
+
.container{
border: 1px solid #bbb;
height: 500px;
@@ -19,12 +26,6 @@ body{
background: white;
}
-.user-input {
- display: flex;
- justify-content: center;
- margin: 20px;
-}
-
.slider {
display: flex;
flex-direction: column;
@@ -32,6 +33,28 @@ body{
align-items: center;
}
+.range-knob {
+ width: 50px;
+ height: 50px;
+ border-radius: 50%;
+ border: 1px solid #111;
+ cursor: pointer;
+ background: #bbb;
+ box-shadow: 1px 2px 10px 1px #555;
+}
+
+.range-knotch {
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ cursor: pointer;
+ background: #111;
+ position: relative;
+ top: 15%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+
.grid {
box-sizing: border-box;
}