odin-etch-a-sketch/style.css
2023-11-12 13:09:20 -07:00

185 lines
No EOL
3 KiB
CSS

html {
height: 100%;
}
body{
background-image: linear-gradient(160deg, #a50071, #4b588c, #5fa66a, #017070);
background-attachment: fixed;
color: #eee;
text-align: center;
font-family: "Andale Mono", monospace;
display: flex;
flex-direction: column;
height: 100vh;
margin: 0;
}
header {
display: flex;
justify-content: center;
align-items: center;
font-size: 30px;
background: #111;
opacity: .8;
width: 100%;
flex: 0 0 auto;
}
main {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
flex: 1;
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #111;
opacity: .8;
}
button, .container, .color-input {
box-shadow: 1px 2px 10px 1px #555;
cursor: pointer;
}
.pen-input, .grid-input {
display: flex;
flex-direction: column;
justify-content: space-between;
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;
padding: 0 10px;
}
.color-label {
padding-bottom: 5px;
font-size: 18px;
}
.color-input {
width: 120%;
height: 25px;
}
button {
display: block;
width: 120px;
height: 25px;
margin: 5px;
font-size: 18px;
}
.container{
border: 1px solid #bbb;
height: 500px;
width: 500px;
display: flex;
flex-wrap: wrap;
background: rgb(180, 254, 235);
will-change: contents;
}
.grid {
box-sizing: border-box;
}
.grid-on {
border: 1px solid #bbb;
}
.grid-off {
border: none;
}
.slider {
display: flex;
flex-direction: column;
margin: 0 10px;
align-items: center;
font-size: 18px;
}
#gridSlider {
display: none;
}
.knob-container {
position: relative;
}
.knob-shadow {
width: 95px;
height: 95px;
border-radius: 50%;
box-shadow: 1px 2px 10px 1px #555;
position: absolute;
top: 5%;
left: 1%;
z-index: -1;
}
.knob {
width: 95px;
height: 95px;
border-radius: 50%;
cursor: pointer;
background: #bbb;
margin-top: 5px;
position: relative;
z-index: 1;
transform-style: preserve-3d;
will-change: transform;
}
.knotch {
width: 10px;
height: 10px;
border-radius: 50%;
cursor: pointer;
background: #111;
box-shadow: 1px 2px 1px 1px #555;
position: relative;
top: 15%;
left: 50%;
transform: translate(-50%, -50%);
box-shadow: 1px 1px 1px #555;
}
@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;
flex-wrap: wrap;
}
.knob {
width: 50px;
height: 50px;
}
.knob-shadow {
width: 50px;
height: 50px;
top: 8%;
left: 1%;
}
}