zyllian.github.io/site/sass/pet.scss
2024-06-25 00:02:11 -07:00

45 lines
758 B
SCSS

#pet {
#pet-display {
.the-pet {
--color: red;
--width: 250px;
--height: 250px;
background-color: var(--color);
width: var(--width);
height: var(--height);
&.egg {
background-color: white;
// egg shape from https://css-tricks.com/the-shapes-of-css/
width: 126px;
height: 180px;
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
&.square {
border-radius: 2px;
}
&.circle {
border-radius: 50%;
}
&.triangle {
clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
}
}
#debug-section [name] {
font-weight: bold;
}
button {
margin-bottom: 4px;
}
.hidden {
display: none;
}
}