JSFiddle - React, Tailwind, and code Playground
by ryanbrill
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Button Test</title>
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body>
<span class="button">
<div><span></span></div><strong>Home</strong>
</span>
</body>
</html>
CSS
span.button div {
height: 29px;
width: 16px;
overflow: hidden;
position: relative;
float: left;
margin-right: -1px;
}
span.button span {
position: absolute;
top: 2px;
left: 6px;
display: block;
height: 21px;
width: 20px;
border: 1px solid #375075;
background: #ccc;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background: -moz-linear-gradient(135deg, #087d63 0%, #37957e 52%, #7ab4a2 52%, #95c1b3 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#087d63), color-stop(52%, #37957e), color-stop(52%,#7ab4a2), color-stop(100%,#95c1b3));
-moz-box-shadow: inset 1px 0 1px rgba(0,0,0,.5), 0 1px 1px #fff;
-webkit-box-shadow: inset 1px 0 1px rgba(0,0,0,.5), 0 1px 1px #fff;
}
span.button strong {
float: left;
height: 26px;
line-height: 26px;
padding: 0 10px 0 5px;
border: 1px solid #375075;
border-left: 0;
color: #fff;
font-family: "Helvetica Neue", helvetica, arial, sans-serif;
font-size: 12px;
font-weight: bold;
background: -moz-linear-gradient(90deg, #087d63 0%, #37957e 50%, #7ab4a2 50%, #95c1b3 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#087d63), color-stop(50%, #37957e), color-stop(50%,#7ab4a2), color-stop(100%,#95c1b3));
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
text-shadow: 0 -1px 1px rgba(0,0,0,.5);
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.5), 0 1px 1px #fff;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.5), 0 1px 1px #fff;
}