JSFiddle - React, Tailwind, and code Playground

by Achilles88

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<div class="row" style="padding: 5px 0px;">
	
	<div class="col-md-12" >
		<button type="button" class="btn-sm btn-primary">Choose Filters</button>
		&nbsp;&nbsp;&nbsp;
		<span><label><b>Quick Filters: </b></label></span>
		&nbsp;&nbsp;
		<div  data-toggle="buttons" style="display:inline;">
			<label class="btn btn-default ">
				<input type="checkbox" autocomplete="off" checked> My Jobs 
			</label>
		</div>
		&nbsp;&nbsp;
		
		<button type="button" class="btn btn-success">Success</button>
		&nbsp;
		
		<button type="button" class="btn btn-danger">Failure</button>
    <!--<input data-toggle="toggle" data-on="Success" data-off="Failure" type="checkbox"> -->
    <button type="button" class="btn btn-default" style="float:right;">More Columns</button>
	</div>
</div>

<div id="table-content overlay" style="height:100%;">
	<table class="fold-table table table-hover">
		<thead>
			<tr>
				<th scope="col">Run ID</th>
				<th scope="col">Job Type</th>
				<th scope="col">Job Code</th>
				<th scope="col">Job Status</th>
				<th scope="col">Requested By  System</th>
				<th scope="col">Job Completed Date</th>
			</tr>
		</thead>
		<tbody>
			<tr class="view">
				<td class="toggle-column">
					<a href="#">
				
				<b>10001</b>
			</a>
				</td>
				<td>METLA</td>
				<td>US Load GMPT Policies</td>
				<td><button type="button" class="btn-xs btn-success td-btn-width75" disabled>Success</button></td>
				<td>GMPT</td>
				<td>12/12/2018 18:00:00</td>
			</tr>
			<tr...

SCSS

@import url('https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');

* { box-sizing: border-box; }
body { padding: .2em 2em; }
// Table
table {
  width: 100%;
  th { text-align: left; border-bottom: 1px solid #ccc; font-weight: bold;}
  th, td { padding: .4em; }
}
// fold table 
table.fold-table {
	border: 1px solid #ccc;
  > tbody {
    // view segment
   	> tr.view {
   		> td.toggle-column{
   			a{
   				text-decoration: none;
					&:hover{
   					text-decoration: none;
   				}
					> span{
						&.glyphicon{
							top: 2px;
						}	
					}
   			}
   		}
   	}
    // fold segment
    > tr.fold {
      display: none;
      &.open { display:table-row; }
			&:hover{
				background: none;
			}
    }
  }
}



// fold content 
.fold-content {
  padding: .5em;
  h3 { margin-top:0; }
  > table {
    border: 2px solid #ccc;
    > tbody {
      tr:nth-child(even) {
        background: #eee;
      }
    }
  }
}
.blur-active1{
  /* The image used */
  background-image: -webkit-gradient(linear,left top,right top,from(#c6c6c6),to(#c6c6c8));
    background-image: linear-gradient(to right,#c6c6c6,#c6c6c8);
  
  /* Add the blur effect */
  -webkit-filter: blur(1px);
    -moz-filter: blur(1px);
    -o-filter: blur(1px);
    -ms-filter: blur(1px);
    filter: blur(1px);
  
  /* Full height */
  height: 100%; 
  
  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
	z-index:999;
}

/* Position text in the middle of the page/image */
.bg-text {
	/*background-color: rgba(0,0,0, 0.4);*/
   background-color: rgba(255,255,255,0.9); /* Fallback color */
  
  color: black;
  font-weight: bold;
  border: 3px solid #f1f1f1;
  position: absolute;
  
  
  z-index: 2;
  width: 50%;
  padding: 20px;
  top:0;
	right:0;
	height:100%;
float: right;


}

hr.thick{
	margin-top:0px;
	margin-bottom:0px;
    border: 0;
    height: 1px;
    background-image: -webkit-gradient(linear,left top,right...

JavaScript

$(function(){
$('#toggle-two').bootstrapToggle({
      on: 'Success',
      off: 'Failure'
    });
    
  $(".fold-table tr.view td.toggle-column").on("click", function(){
	
	$(".overlay").show();
   $(".bg-text").show();
	 
	 });
	 
	 $(".close").on("click", function(){
		 $(".overlay").hide();
		 $(".bg-text").hide();
	 });
});