JSFiddle - React, Tailwind, and code Playground

by jessikwa

HTML

<div class="nav-help-close"></div>

CSS

.nav-help-close {
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
    border: 1px solid #7892a2;
    background-color: #7998ac;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#8fadc0), to(#7998ac));
    background-image: -webkit-linear-gradient(top, #8fadc0, #7998ac);
    background-image: -moz-linear-gradient(top, #8fadc0, #7998ac);
    background-image: -ms-linear-gradient(top, #8fadc0, #7998ac);
    background-image: -o-linear-gradient(top, #8fadc0, #7998ac);
    background-image: linear-gradient(to bottom, #8fadc0, #7998ac);
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#8fadc0, endColorstr=#7998ac);
    border-radius: 4px;
    webkit-border-radius: 4px; 
    -moz-border-radius: 4px;
}

.nav-help-close:hover {
    border: 1px solid #7892a2;
    background-color: #6e8a9d;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#7fa3ba), to(#6e8a9d));
    background-image: -webkit-linear-gradient(top, #7fa3ba, #6e8a9d);
    background-image: -moz-linear-gradient(top, #7fa3ba, #6e8a9d);
    background-image: -ms-linear-gradient(top, #7fa3ba, #6e8a9d);
    background-image: -o-linear-gradient(top, #7fa3ba, #6e8a9d);
    background-image: linear-gradient(to bottom, #7fa3ba, #6e8a9d);
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#7fa3ba, endColorstr=#6e8a9d);
}

.nav-help-close:before, .nav-help-close:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    top: 7px;
}

.nav-help-close:before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    left: 3px;
    
    /* IE8+ - must be on one line, unfortunately */ 
   -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474,...