nakome
10/25/2014 - 5:20 PM

A Pen by Moncho Varela.

A Pen by Moncho Varela.

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background-color: #fff;
}
::-webkit-scrollbar-thumb {
    background-color: #95A5A6;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #ddd;
}
::selection {
    color: #31373D;
    background: #fff;
}   

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  line-height: 18px;
  font-size: 13px;
  color: #31373D;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  overflow:hidden;
  background: #EBEEF0;
}

.wrapper,.sidebar,.main,.content,.header,.footer,h1,h3,h2{
  animation: ch1 1.5s 1 ease;
  box-sizing: border-box;
}


.wrapper {
  min-height: 100%;
  min-width: calc(100% - 197px);
  margin: 0 auto;
  position: relative;
}

.sidebar {
  position: fixed;
  top: 0px;
  bottom: 0px;
  width: 197px;
  overflow: hidden;
  padding: 0;
  z-index: 220;
  background: #444;
  box-sizing: border-box;
  border-right:1px solid #222;
}

.main {
  padding-bottom: 0;
  padding-top: 0;
  position: absolute;
  top: 60px;
  left: 197px;
  height: calc(100% - 110px);
  width: calc(100% - 200px);
}

.header {
  position: fixed;
  top: 0px;
  z-index: 200;
  width: calc(100% - 197px);
  height: 55px;
  background: #fff;
  border-bottom: 1px solid #EAEAEA;
}

.content{
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  margin: 0 auto;
  margin-bottom: 15px;
  padding: 10px;
  padding-top: 10px;
  background-color: #FFF;
  border-radius: 3px;
  color: #798C9C;
  border: 1px solid #EAEAEA;
  overflow-y:auto;
}
.footer {
  position: fixed;
  bottom: 0px;
  z-index: 200;
  width: calc(100% - 197px);
  height: 55px;
  background: #fff;
  border-top: 1px solid #EAEAEA;
}

h1,h3{
  color: #95A5A6;
  text-align:center;
}
h2 {
  transform: rotate(-90deg) translate(-100%,34%);
  min-height: 20px;
  color: #95A5A6;
}


@media (max-width:700px){
  .wrapper,.sidebar,.main,.content,.header,.footer,h1,h3,h2{
    animation: ch3 1.5s 1 ease;
  }
  .sidebar {
    background:#E74C3C;
    border-color:#E74C3C;
  }
  .header,.footer {
    background:white;
  }
  h1,h3{
    color:#E74C3C;
  }
  h2 {
    color:white;
  }
}


@media (max-width:550px){
  
  .wrapper,.sidebar,.main,.content,.header,.footer,h1,h3,h2{
    animation: ch2 1.5s 1 ease;
  }
  .wrapper {  
    min-width: 100%
  }
  .sidebar {
    top: 54px;
    left:0;
    bottom: 0px;
    width: 100%;
    height: 56px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
    background:#E74C3C;
  }
  .main{
    top: 115px;
    left: 0;
    height: calc(100% - 155px);
    width: 100%;
  }
  .content {
    left: 0;
    padding: 5px;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
  }
  .header,.footer {
    padding-left:0;
    margin-left: 0;
    width: 100%;
    min-width: 100%;
    z-index:999;
    background:white;
  }
  h1,h3{
    text-align: center;
    margin-left: 0;
    color:#E74C3C;
  }
  h2 {
    transform: rotate(0) translate(0,0);
    min-height: auto;
    text-align: center;
    color:white;
  }
}


@keyframes ch1{
    0%{    
      opacity:0;
    }
  100{
    opacity:1;
  }
}

@keyframes ch2{
    0%{    
      opacity:0;
    }
  100{
    opacity:1;
  }
}
@keyframes ch3{
    0%{    
      opacity:0;
    }
  100{
    opacity:1;
  }
}
<!-- Wrapper -->
<div class="wrapper">
  
  <!-- Sidebar -->
  <div class="sidebar">
    <h2>SIDEBAR</h2>
  </div>
  
  <!-- Main content -->
  <div class="main">
    
    <!-- Header  -->
    <header class="header">
      <h1>HEADER</h1>
    </header>
    
    <!-- Content -->
    <section class="content">
        <h3> CONTENT</h3>
        <p>Please Resize to see changes.</p>
    </section>
    
    <!-- Footer -->
    <footer class="footer">
      <h3>FOOTER</h3>
    </footer>
    
  </div>
  
</div>