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>
|
||||
|
||||
<div class="col-picker">
|
||||
<label for="custom-color">Pen color:</label>
|
||||
<input type="color" id="custom-color" value="#ff0000">
|
||||
<label class="color-label" for="custom-color">Pen color:</label>
|
||||
<input class="color-input" type="color" id="custom-color" value="#ff0000">
|
||||
</div>
|
||||
|
||||
<button class="pen" id="erase">Erase</button>
|
||||
|
|
@ -46,8 +46,8 @@
|
|||
</div>
|
||||
|
||||
<div class="background-col-picker">
|
||||
<label for="back-col-picker">Canvas color:</label>
|
||||
<input type="color" id="back-col-picker" value="#ff0000">
|
||||
<label class="color-label" for="back-col-picker">Canvas color:</label>
|
||||
<input class="color-input" type="color" id="back-col-picker" value="#ff0000">
|
||||
</div>
|
||||
|
||||
<button id="gridToggle">Grid</button>
|
||||
|
|
|
|||
28
style.css
28
style.css
|
|
@ -14,9 +14,37 @@ body{
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
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{
|
||||
border: 1px solid #bbb;
|
||||
height: 500px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue