block construstor

by eawe_

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  
    <h2>Directory List</h2>

<div class="box vertmenu">

  <ul class="directory-list">
  
    <li class="folder">
          
      <span class="active">assets</span>
      <input type="checkbox" class="subCat" id="0" checked="checked" />
      <label class="chka" for="0"></label>   
      
      <ul>
               
        <li class="folder active">
        
          <span>css</span>
          <input type="checkbox" class="subCat" id="0.0" checked="checked" />
      <label class="chka" for="0.0"></label>
        
          <ul>
            <li>typography.css</li>
            <li>layout.css</li>
            <li>modules.css</li>
            <li>states.css</li>
            <li>theme.css</li>
          </ul>
          
        </li>       
        
      </ul>
      
    </li>
    
  </ul>
</div>
  
</body>
</html>

CSS

/* Demo page styles
-------------------------------------------------------------- */

body {
  background: #eee;
  font-family: "times new roman", serif;
  line-height: 30px;
}

h2 {
  color: #aaa;
  font-size: 30px;
  line-height: 40px;
  font-style: italic;
  font-weight: 200;
  margin: 40px;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);
}

.box {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
  margin: 30px 5%;
  padding: 5%;
}

@media (min-width: 544px) {
  .box {
    margin: 40px auto;
    max-width: 440px;
    padding: 40px;
  }
}


/* The list style
-------------------------------------------------------------- */

.directory-list ul {
  margin-left: 10px;
  padding-left: 20px;
  border-left: 1px dashed #ddd;
}

.directory-list li {
  list-style: none;
  color: #888;
  font-size: 17px;
  font-style: italic;
  font-weight: normal;
}

.directory-list a {
  border-bottom: 1px solid transparent;
  color: #888;
  text-decoration: none;
  transition: all 0.2s ease;
}

.directory-list a:hover {
  border-color: #eee;
  color: #000;
}

.directory-list .folder,
.directory-list .folder > a {
  color: #777;
  font-weight: bold;
}


/* The icons
-------------------------------------------------------------- */

.directory-list li:before {
  margin-right: 10px;
  content: "";
  height: 20px;
  vertical-align: middle;
  width: 20px;
  background-repeat: no-repeat;
  display: inline-block;  
  background-position: center 2px;
  background-size: 60% auto;
}

.directory-list li.folder:before {  
  background-position: center top;
  background-size: 75% auto;
}

/* Group
-------------------------------------------------------------- */

           			
.vertmenu {
margin: 0 20px;
font-family: 'Open Sans', sans-serif;    
}
.vertmenu ul {
list-style: none;
margin: 0;
padding: 0;
}
.vertmenu ul li {
position: relative;
margin: 0;
line-height: 30px;
text-transform: uppercase;    
}
.vertmenu ul li li...