<div class="element">
<h2>Hue(H) = 350</h2>
<ul id="s">
<li>100%</li>
<li>75%</li>
<li>50%</li>
<li>25%</li>
<li>0%</li>
</ul>
<ul id="l">
<li>100%</li>
<li>75%</li>
<li>50%</li>
<li>25%</li>
<li>0%</li>
</ul>
<ul id="sl">
<li>100%</li>
<li>75%</li>
<li>50%</li>
<li>25%</li>
<li>0%</li>
</ul>
</div>
/* @use postcss-preset-env; */
/* @use postcss-color-function; */
@import url("https://fonts.googleapis.com/css?family=Gochi+Hand");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
background-color: #291642;
font-family: "Gochi Hand", sans-serif;
color: #fff;
font-size: 130%;
letter-spacing: 0.1rem;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100vw;
min-height: 100vh;
}
.element {
width: 50vw;
min-height: 50vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
border-radius: 4vh;
font-size: 2rem;
/**
* <hue> = <number> || <angle>
* rad = (π / 180) * deg
* grad = deg * 400 / 360
* turn = deg / 360
*/
color: hsl(200 100% 50%);
border: 2vh solid hsl(1.047rad, 40%, 20%);
box-shadow: 0px 0px 5px 6px hsl(255.5556grad 40% 80% / 50%);
background-color: hsl(0.52778turn, 50%, 90%, .8);
}
ul, li {
list-style: none outside none;
}
ul {
display: grid;
grid-template-columns: repeat(5, 6vw);
grid-template-rows: 6vw;
gap: 2vw;
margin: 3vh 2vh;
padding: 2vh;
border: 1px dashed hsl(330 90% 50%);
border-radius: 8px;
position: relative;
}
ul::before {
content:"";
position: absolute;
top: 50%;
transform: translate(0, -50%);
right: 100%;
margin-right: 2vh;
font-size: 3rem;
}
#s::before {
content:"S";
}
#l::before {
content:"L";
}
#sl::before {
content:"SL";
}
li {
display: flex;
justify-content: center;
align-items: center;
color: hsl(200 100% 50% / 0);
transition: all .2s ease;
cursor: pointer;
}
li:hover {
color: hsl(200 100% 50% / 1);
border-radius: 2vh;
}
#s li:nth-child(1) {
background-color: hsl(350 100% 40%);
}
#s li:nth-child(2) {
background-color: hsl(350 75% 40%);
}
#s li:nth-child(3) {
background-color: hsl(350 50% 40%);
}
#s li:nth-child(4) {
background-color: hsl(350 25% 40%);
}
#s li:nth-child(5) {
background-color: hsl(350 0% 40%);
}
#l li:nth-child(1) {
background-color: hsl(350 100% 100%);
}
#l li:nth-child(2) {
background-color: hsl(350 100% 75%);
}
#l li:nth-child(3) {
background-color: hsl(350 100% 50%);
}
#l li:nth-child(4) {
background-color: hsl(350 100% 25%);
}
#l li:nth-child(5) {
background-color: hsl(350 100% 0%);
}
#sl li:nth-child(1) {
background-color: hsl(350 100% 100%);
}
#sl li:nth-child(2) {
background-color: hsl(350 75% 75%);
}
#sl li:nth-child(3) {
background-color: hsl(350 50% 50%);
}
#sl li:nth-child(4) {
background-color: hsl(350 25% 25%);
}
#sl li:nth-child(5) {
background-color: hsl(350 0% 0%);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.