odin-etch-a-sketch/style.css

115 lines
1.9 KiB
CSS
Raw Normal View History

2023-11-11 21:53:24 -07:00
html {
height: 100%;
}
body{
2023-11-11 21:53:24 -07:00
background-image: linear-gradient(160deg, #a50071, #4b588c, #5fa66a, #017070);
background-attachment: fixed;
2023-11-09 22:13:12 -07:00
color: #eee;
text-align: center;
}
.area{
display: flex;
justify-content: center;
align-items: center;
height: 90vh;
2023-11-11 21:00:49 -07:00
flex-wrap: wrap;
}
2023-11-11 07:39:44 -07:00
.pen-input, .grid-input {
display: flex;
flex-direction: column;
margin: 20px;
}
2023-11-11 08:24:33 -07:00
.pen-color, .pen-tools, .grid-tools,
.col-picker, .background-col-picker {
display: flex;
flex-direction: column;
align-items: center;
}
2023-11-11 21:00:49 -07:00
@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;
2023-11-11 21:53:24 -07:00
flex-wrap: wrap;
2023-11-11 21:00:49 -07:00
}
}
2023-11-11 08:24:33 -07:00
.col-picker, .background-col-picker {
margin: 5px;
width: 100px;
}
.color-label {
padding-bottom: 5px;
2023-11-11 19:19:38 -07:00
font-size: 18px;
2023-11-11 08:24:33 -07:00
}
.color-input {
2023-11-11 19:19:38 -07:00
width: 120%
2023-11-11 08:24:33 -07:00
}
button {
display: block;
2023-11-11 19:19:38 -07:00
width: 120px;
2023-11-11 08:24:33 -07:00
margin: 5px;
2023-11-11 19:19:38 -07:00
font-size: 18px;
2023-11-11 08:24:33 -07:00
}
.container{
2023-11-09 19:15:16 -07:00
border: 1px solid #bbb;
height: 500px;
width: 500px;
2023-11-09 15:14:02 -07:00
display: flex;
flex-wrap: wrap;
2023-11-09 22:13:12 -07:00
background: white;
2023-11-09 15:14:02 -07:00
}
.slider {
display: flex;
flex-direction: column;
margin: 0 10px;
align-items: center;
2023-11-11 19:19:38 -07:00
font-size: 18px;
}
#gridSlider {
display: none;
}
2023-11-11 15:09:20 -07:00
.knob {
2023-11-11 19:19:38 -07:00
width: 95px;
height: 95px;
2023-11-11 07:39:44 -07:00
border-radius: 50%;
border: 1px solid #111;
cursor: pointer;
background: #bbb;
box-shadow: 1px 2px 10px 1px #555;
2023-11-11 19:19:38 -07:00
margin-top: 5px;
2023-11-11 07:39:44 -07:00
}
2023-11-11 15:09:20 -07:00
.knotch {
2023-11-11 07:39:44 -07:00
width: 10px;
height: 10px;
border-radius: 50%;
cursor: pointer;
background: #111;
position: relative;
top: 15%;
left: 50%;
transform: translate(-50%, -50%);
}
2023-11-09 15:14:02 -07:00
.grid {
2023-11-09 15:37:47 -07:00
box-sizing: border-box;
2023-11-10 20:10:38 -07:00
}
.grid-on {
border: 1px solid #bbb;
}
.grid-off {
border: none;
}