JSFiddle - React, Tailwind, and code Playground
HTML
<div class="window">
<div class="bar">
<nav role="window">
<a href="#close">Close</a>
<a href="#minimize">Minimize</a>
<a href="#maximize">Maximize</a>
</nav>
</div>
</div>
CSS
body {
background: url(http://cl.ly/BHEM/img.jpg) center center;
background-size: cover;
}
.bar {
background: -webkit-linear-gradient(#eee, #ddd 24px, #555 24px, #fff 25px, #f0f0f0);
height: 300px;
margin: 100px;
border-radius: 6px;
box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 15px 2px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.2);
padding: 3px 5px;
}
nav[role=window] a {
display: inline-block;
margin: 3px 2px;
width: 12px;
height: 12px;
border-radius: 100%;
background: #f36;
box-shadow: inset 0 0 1px 1px rgba(0,0,0,.4), 0 1px 1px rgbA(255,255,255,.6);
text-indent: -9999px;
position: relative;
}
nav[role=window] a:after {
content: '';
display: block;
position: absolute;
top: 2px;
left: 1px;
bottom: 1px;
right: 1px;
border-radius: 100%;
background: -webkit-linear-gradient(#fff, rgba(255,255,255,.3) 1px, rgba(255,255,255,0) 50%, rgba(255,255,255,.5));
}
nav[role=window] a[href='#close'] {
background: hsl(0,98%,65%);
}
nav[role=window] a[href='#minimize'] {
background: hsl(36,100%,68%);
}
nav[role=window] a[href='#maximize'] {
background: hsl(120,60%,45%);
}
JavaScript
$(function() {
$('.window').draggable();
});