Adjust positioning and labels
This commit is contained in:
parent
b877f9aeba
commit
8d5549cef2
2 changed files with 19 additions and 10 deletions
18
index.html
18
index.html
|
|
@ -12,30 +12,32 @@
|
|||
|
||||
<div class="area">
|
||||
<div class="pen-input">
|
||||
<h3 class="tool-labels">Pen Colors</h3>
|
||||
<div class="pen-color">
|
||||
<button class="pen" id="blackColor">Black</button>
|
||||
<button class="pen" id="whiteColor">White</button>
|
||||
<button class="pen" id="rgbColor">RGB</button>
|
||||
|
||||
<div class="col-picker">
|
||||
<label class="color-label" for="custom-color">Pen color:</label>
|
||||
<label class="color-label" for="custom-color">Custom</label>
|
||||
<input class="color-input" type="color" id="custom-color" value="#ff0000">
|
||||
</div>
|
||||
|
||||
<button class="pen" id="erase">Erase</button>
|
||||
</div>
|
||||
|
||||
|
||||
<h3 class="tool-labels">Pen Tools</h3>
|
||||
<div class="pen-tools">
|
||||
<button class="pen" id="shade">Shade</button>
|
||||
<button class="pen" id="tint">Tint</button>
|
||||
<button class="pen" id="opacity">Opacity</button>
|
||||
<button class="pen" id="trans">Transparent</button>
|
||||
<button class="pen" id="tint">Lighten</button>
|
||||
<button class="pen" id="shade">Darken</button>
|
||||
<button class="pen" id="trans">Fade</button>
|
||||
<button class="pen" id="opacity">Opacify</button>
|
||||
<button class="pen" id="erase">Erase</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container"></div>
|
||||
|
||||
<div class="grid-input">
|
||||
<h3 class="tool-labels">Grid Tools</h3>
|
||||
<div class="grid-tools">
|
||||
<div class="slider">
|
||||
<label for="gridSlider">Grid Size: <span id="sliderLabel"></span></label>
|
||||
|
|
|
|||
11
style.css
11
style.css
|
|
@ -8,13 +8,12 @@ body{
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 90vh;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pen-input, .grid-input {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
|
|
@ -25,6 +24,14 @@ body{
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 900px) {
|
||||
.pen-color, .pen-tools, .grid-tools {
|
||||
flex-direction: row; /* Switch to a row layout when wrapping occurs */
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.col-picker, .background-col-picker {
|
||||
margin: 5px;
|
||||
width: 100px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue