[CSS] Make Icon by class css after

Post Reply
tthlan
Quản trị viên
Posts: 65
Joined: Tue Aug 23, 2016 8:13 am

[CSS] Make Icon by class css after

Post by tthlan » Sun Mar 04, 2018 4:21 pm

Code: Select all

.icon=1::after {
    content: '\e955';
    background-color: #6399AE;
    color: #fff;
}

.icon-1::after, .icon-2::after {
    font-family: 'icomoon';
    font-size: 10px;
    display: block;
    position: absolute;
    right: -8px;
    top: -5px;
    width: 18px;
    height: 18px;
    border-radius: 10px;
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    box-shadow: 0 0 0 2px #fff;
}

Post Reply