JSFiddle - React, Tailwind, and code Playground
by nimrodsarda
HTML
<div id="timePad">
<input id="time" type="time" />
</div>
<div id="toggler">
<div id="all">
<button id="allBtn">ALL</button>
</div>
<div id="tab">
<button id="tabBtn">TAB</button>
</div>
</div>
<div id="set">
<button id="slpBtn">SLEEP</button>
</div>
CSS
body {
outline :red solid;
display: inline-flex;
justify-content: space-around;
flex-flow: column;
height:215px;
width:350px;
align-items: center;
min-width: 100%;
text-align: center;
font-family:'Montserrat', sans-serif;
background-color: #fff;
color: rgba(0, 0, 0, 0.78);
font-size: 1.5em;
line-height: 40px;
border: 1px solid #272727;
-webkit-border-radius: 3px;
border-radius: 3px;
outline: none;
}
#toggler {
display: inline-flex;
flex-flow: row;
justify-content: space-around;
}
div {
outline: solid black;
height:50px;
width:95%;
}
#tab, #all, #set {
display: inline-flex;
}
button {
flex:1;
color: #272727;
background: #f7f7f7;
font-size: 0.875em;
font-weight: 400;
text-decoration: none;
text-transform: uppercase;
text-align: center;
line-height: 41px;
border: solid 1px #272727;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
}
#time {
width: 80%;
text-align: center;
font-size: 140%;
height:100%;
outline:none;
}
button:hover, span:hover {
color: #fff;
background: #1a1a1a;
cursor: pointer;
}