Add styles
This commit is contained in:
parent
8acb8377a6
commit
9de03d4721
2 changed files with 32 additions and 4 deletions
|
|
@ -18,8 +18,8 @@
|
||||||
<button class="pen" id="rgbColor">RGB</button>
|
<button class="pen" id="rgbColor">RGB</button>
|
||||||
|
|
||||||
<div class="col-picker">
|
<div class="col-picker">
|
||||||
<label for="custom-color">Pen color:</label>
|
<label class="color-label" for="custom-color">Pen color:</label>
|
||||||
<input type="color" id="custom-color" value="#ff0000">
|
<input class="color-input" type="color" id="custom-color" value="#ff0000">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="pen" id="erase">Erase</button>
|
<button class="pen" id="erase">Erase</button>
|
||||||
|
|
@ -46,8 +46,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="background-col-picker">
|
<div class="background-col-picker">
|
||||||
<label for="back-col-picker">Canvas color:</label>
|
<label class="color-label" for="back-col-picker">Canvas color:</label>
|
||||||
<input type="color" id="back-col-picker" value="#ff0000">
|
<input class="color-input" type="color" id="back-col-picker" value="#ff0000">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="gridToggle">Grid</button>
|
<button id="gridToggle">Grid</button>
|
||||||
|
|
|
||||||
28
style.css
28
style.css
|
|
@ -14,9 +14,37 @@ body{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pen-color, .pen-tools, .grid-tools,
|
||||||
|
.col-picker, .background-col-picker {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-picker, .background-col-picker {
|
||||||
|
margin: 5px;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-label {
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-input {
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
display: block;
|
||||||
|
width: 100px;
|
||||||
|
margin: 5px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.container{
|
.container{
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue