<div class="container">
<div class="items">
<div class="items-head">
<p>UX DESIGN</p>
<hr>
</div>
<div class="items-body">
<div class="items-body-content">
<span>Web Usabilty Testing</span>
<i class="fa fa-angle-right"></i>
</div>
<div class="items-body-content">
<span>Design of Everyday Things</span>
<i class="fa fa-angle-right"></i>
</div>
<div class="items-body-content">
<span>Practical Empathy: For Collaboration & Creativity in Your Work</span>
<i class="fa fa-angle-right"></i>
</div>
<div class="items-body-content">
<span>About Face: The Essentials of Interaction Design</span>
<i class="fa fa-angle-right"></i>
</div>
</div>
</div>
</div>
$pri: #128CFC;
$sec: #fffffe;
$dark-pri: #0B5AA2;
* {
box-sizing: border-radius;
font-family: 'Rubik', sans-serif;
}
.container {
border: 1px solid black;
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
margin: auto;
display: grid;
place-items: center;
background-color: $pri;
}
.items {
width: 300px;
background: $sec;
box-shadow: 0 3px 6px rgba(black,0.16), 0 3px 6px rgba(black,0.23);
border-top: 10px solid $dark-pri;
}
.items-head p{
padding: 5px 20px;
margin: 10px;
color: #0B5AA2;
font-weight: bold;
font-size: 20px;
}
.items-head hr {
width: 20%;
margin: 0px 30px;
border: 1px solid $dark-pri;
}
.items-body {
padding: 10px;
margin: 10px;
display: grid;
grid-gap: 10px;
}
.items-body-content {
padding: 10px;
padding-right: 0px;
display: grid;
grid-template-columns: 10fr 1fr;
// background-color: lightblue;
font-size: 13px;
grid-gap: 10px;
border: 1px solid transparent;
cursor: pointer;
}
.items-body-content:hover {
border-radius: 15px;
border: 1px solid $dark-pri;
}
.items-body-content i {
align-self: center;
font-size: 15px;
color: $dark-pri;
font-weight: bold;
animation: icon 1.5s infinite forwards;
}
@keyframes icon {
0%,100%{
transform: translate(0px);
}
50% {
transform: translate(3px);
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.