JSFiddle - React, Tailwind, and code Playground

by secretgspot

HTML

<ul>
      <li class="current"><a href="#">Home</a></li>
      <li><a href="#">About</a></li>
      <li><a href="#">Products</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Contact</a></li>
    </ul>

CSS

html {
  background:#efefef;
}

body {
  margin:0;
  padding:0;
  color:#222;
  font:13px "Helvetica Neue", Helvetica, Arial, sans-serif;
}

ul {
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:30px;
  background:#959DA5;
  border-bottom:1px solid #333;
  margin:0;
  padding:10px 16px 0;
  list-style:none;
}

ul li {
  float:left;
  margin:0 20px 0 0;
  padding:0;
}

ul a {
  display:block;
  color:#fff;
  text-decoration:none;
  padding:0 15px;
  line-height:29px;
  height:29px;
  font-weight:bold;
  background:#464646;
  border:1px solid #333;
  border-bottom:none;
  -webkit-font-smoothing:antialiased;
  -webkit-border-top-left-radius:8px;
  -webkit-border-top-right-radius:8px;
  -moz-border-radius:8px 8px 0 0;
  border-top-left-radius:8px;
  border-top-right-radius:8px;
  text-shadow:#000 0 -1px 0;
  /* This is to prevent jagged borders in Webkit. */ 
  -webkit-background-clip: padding-box;
}

ul li.current a {
  background:#efefef;
  color:#222;
  height:30px;
  text-shadow:#fff 0 1px 0;
  /* This is to prevent jagged borders in Webkit. */ 
  -webkit-background-clip: padding-box;
}

ul li {
  position:relative;
}

ul li:before, ul li:after {
  content:'';
  width:9px;
  height:8px;
  position:absolute;
  z-index:2;
  bottom:0;
  background:#464646;
}

ul li:before {
  left:-8px;
}

ul li:after {
  right:-8px;
}

ul li.current:before, ul li.current:after {
  background:#efefef;
  bottom:0;
  -webkit-background-clip: padding-box;
}

ul a {
  position:relative;
}

ul a:before, ul a:after {
  content:'';
  width:10px;
  height:8px;
  position:absolute;
  z-index:3;
  bottom:-1px;
  background:#959DA5;
  overflow:hidden;
  border-bottom:1px solid #333;
  -webkit-background-clip: padding-box;

}

ul a:before {
  left:-11px;
  border-bottom-right-radius:8px;
  -webkit-border-bottom-right-radius:8px;
  -moz-border-radius-bottomright:8px;
  border-right:1px solid #222;
}

ul a:after {
  right:-11px;
  border-bottom-left-radius:8px;
 ...