%div.list-container
%h2 Some List
%div.search-wrapper
%div.search
%div.search-icon
%i.fa.fa-search
%input(type="text" placeholder="search")/
%ul.list
%li
%span.circle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer molestie in lectus a facilisis.
%li
%span.circle
Donec sodales ante non massa mollis, quis tempus felis condimentum. Praesent malesuada arcu sed felis vehicula
%li
%span.circle
Donec sodales ante non massa mollis, quis tempus felis condimentum
%li
%span.circle
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
%li
%span.circle
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer molestie in lectus a facilisis. Donec sodales ante non massa mollis, quis tempus felis condimentum. Praesent malesuada arcu sed felis vehicula.
View Compiled
@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,500,300italic,500italic,700italic,900,300);
* {
box-sizing: border-box;
}
body {
font-family: "Roboto", 'Helvetica Neue, Helvetica, Arial';
background: #efefef;
background-image: linear-gradient(45deg, #7e72e2 0%, #5885ec 100%);
height: 100vh;
}
.list-container {
width: 450px;
background: #fff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 10px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
border-radius: 3px;
h2 {
color: #494277;
text-align: center;
font-weight: 500;
}
}
.search-wrapper {
.search {
background: #eee;
border-radius: 4px;
display: flex;
align-items: center;
.search-icon {
.fa {
color: #ccc;
margin: 10px;
}
}
input {
padding: 8px 10px;
border: 0;
background: transparent;
width: 100%;
outline: none;
font-size: 10pt;
color: #808080;
&::-webkit-input-placeholder {
color: #ccc;
}
}
}
}
.list {
list-style: none;
margin: 0;
padding: 0;
margin-top: 10px;
li {
padding: 10px 15px;
border-radius: 4px;
font-size: 10pt;
font-weight: 300;
display: flex;
align-items: center;
cursor: pointer;
color: #656565;
transition: all .3s ease;
&:hover {
background: #5c7fed;
color: #fff;
.circle {
color: #fff;
}
}
.circle {
margin-right: 10px;
align-self: center;
color: #6ecc8b;
&::before {
content: "\2022";
font-size: 23pt;
vertical-align: middle;
}
}
}
}
View Compiled
This Pen doesn't use any external JavaScript resources.