JSFiddle - React, Tailwind, and code Playground

by humanzing

HTML

<div class="page">
    <ul>
    <li><a>Exchanges :</a></li>
        <li>
            <label class="a" class="tab" for="tab2">Refresh</label>
            <input type="radio" name="tabset1" id="tab2" checked/>
            <div>

            </div>
        </li>
        <li>
            <label class="a" class="tab" for="tab3">Listes</label>
            <input type="radio" name="tabset1" id="tab3" />
            <div>

            </div>
        </li>
        <li>
            <label class="a" class="tab" for="tab4">Add</label>
            <input type="radio" name="tabset1" id="tab4" />
            <div>

            </div>
        </li>
    </ul>
</div>

CSS

body{
  background: #262626;
  width:100%;
  height:100%;
}
header {
  
}
.page {
 margin: 75px 0; 
}
.page > .open,.page > #open{
  display:none;
}
.page > ul{
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    padding-left: 5px;
    padding-right: 5px;
    margin: 24px 0;
}
.page > ul > li{
  margin-left:30px;
  font-size:18px;
  color:white;
}
.page > ul > li > a{
  margin-left:30px;
  font-size:18px;
  color:white;
}
.page > ul > li >label {
  cursor: pointer;
  display: block;
    height: 25px;
    width: 100%;
    line-height: 30px;
    font-size: 16px;
    font-weight: 200;
    color: rgba(255, 255, 255, .6);
    position: relative;
}
.page > ul > li >label:hover {
  font-size: 21px;
  margin-left: 5px;
  -webkit-transition: all 0.3s; /* Safari prior 6.1 */
  transition: all 0.3s;
}
.page > ul > li > input {
  display:none;
}
.page > ul > li > div {
  display: none;
  position: fixed;
  background-color: #F1F1F1;
  top:50px;
  height: calc(100% - 100px);
  margin-left: 150px;
  border-radius: 3px;
  width: calc(100% - 250px);
  color:#000;
}
.page > ul > li > input:checked + div {
    display:block;
}
.block {
  display: block;
  position:relative;
  border: 1px solid #eee;
  border-radius: 4px;
  height: auto;
}
.block > .head {
  margin::10px;
  padding:10px;
}
.block > .head a {
  padding-left: 5px;
   margin::0;
   font-size: 22px;
}
.block > .body {
  position:relative;
  display: block;
   border: 1px solid #eee;
  border-radius: 4px;
  font-size:16px;
}
.flex_v{
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 10px;

}
.flex_v{
    margin: 0 auto;
  width: 90%!important;
  text-align:center;


}
.left{
  text-align:left!important;
  display:inline-block;
}
.item {padding: 10px;}
.item input[type=text] {}
select, input[type=text] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius:...

JavaScript

document.getElementById("custom").addEventListener("click", display_child); 
 function display_child(event)
 {
 	var laCible = event.target;
 	if(laCible.value == 0)
  {
   document.getElementById("Indicators_value").style.display = "none";
  	 document.getElementById("price").style.display = "none";
  	 document.getElementById("Indicators").style.display = "none";
  }
  else if(laCible.value == 1)
  {
   document.getElementById("Indicators_value").style.display = "none";
  document.getElementById("price").style.display = "none";
  	 document.getElementById("Indicators").style.display = "inline-block";

  }
  else if(laCible.value == 2)
  {
   document.getElementById("Indicators_value").style.display = "none";
  	 	 document.getElementById("Indicators").style.display = "none";
  	 document.getElementById("price").style.display = "inline-block";
  }
 }
 document.getElementById("custom_inds").addEventListener("click", display_child_indicators); 
 function display_child_indicators(event)
 {
 	var laCible = event.target;
 	if(laCible.value == 0)
  {
  	 document.getElementById("Indicators_value").style.display = "none";
  }
  else if(laCible.value == 1)
  {
  	 document.getElementById("Indicators_value").style.display = "inline-block";
  }
  else if(laCible.value == 2)
  {
  		 document.getElementById("Indicators_value").style.display = "none";
  }
 }