kedao
Version:
Rich Text Editor Based On Draft.js
56 lines (55 loc) • 1.13 kB
CSS
.kedao-emojis-wrap {
position: relative;
width: 210px;
height: 220px;
overflow: hidden;
}
.kedao-emojis-wrap::before, .kedao-emojis-wrap::after {
position: absolute;
z-index: 1;
right: 0;
left: 0;
height: 30px;
border-radius: 2px;
content: "";
pointer-events: none;
}
.kedao-emojis-wrap::before {
top: 0;
background-image: linear-gradient(to top, rgba(33, 36, 42, 0), #21242a);
}
.kedao-emojis-wrap::after {
bottom: 0;
background-image: linear-gradient(rgba(33, 36, 42, 0), #21242a);
}
.kedao-emojis {
box-sizing: content-box;
width: 200px;
height: 195px;
list-style: none;
margin: 0;
padding: 15px 15px 20px;
overflow: auto;
display: flex;
flex-wrap: wrap;
}
.kedao-emojis li {
display: block;
float: left;
width: 30px;
height: 30px;
margin: 0;
padding: 0;
color: #fff;
border-radius: 2px;
font-family: "Apple Color Emoji", "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 18px;
line-height: 32px;
text-align: center;
cursor: pointer;
user-select: none;
transition: transform 0.2s;
}
.kedao-emojis li:hover {
transform: scale(1.5);
}