JSFiddle - React, Tailwind, and code Playground
by James Doyle
HTML
<nav class="connected">
<ul>
<li>²</li>
<li>p</li>
<li>¹</li>
<li>d</li>
</ul>
</nav>
CSS
@font-face{
font-family: 'WebSymbolsRegular';
src: url('http://www.justbenicestudio.com/fonts/websymbols-regular-webfont.eot');
src: url('http://www.justbenicestudio.com/fonts/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('http://www.justbenicestudio.com/fonts/websymbols-regular-webfont.woff') format('woff'),
url('http://www.justbenicestudio.com/fonts/websymbols-regular-webfont.ttf') format('truetype'),
url('http://www.justbenicestudio.com/fonts/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
}
* {
box-sizing: border-box;
}
body {
margin: 10px;
font-family: 'WebSymbolsRegular';
}
nav.connected ul {
list-style: none;
}
nav.connected li {
display: block;
position: relative;
float: left;
padding: 1.1em;
margin-right: -1px;
text-align: center;
font-size: 0.7em;
font-weight: 100;
border: 1px solid #b3b3b3;
color: #808080;
width: 50px;
height: 40px;
background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(246,246,246,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}
nav.connected li:last-child {
border-radius: 0 5px 5px 0;
}
nav.connected li:first-child {
border-radius: 5px 0 0...