123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container">
  
  <header class="nav">
  <nav class="nav-left"> 
    <logo class="logo">Logo
    </logo>
    <search class="search">Search
    </search>
    <right-nav class="nav-right">
    Default Navigation
    </right-nav>
    <right-sm-nav class="nav-sm-right">
    Min Navigation 
    </right-sm-nav>
  </nav>
  </header>
 <sticky-nav class="nav-mobile-web">
   Mobile Web Navigation
  </sticky-nav>
  <panel class="left">
    Left Panel
  </panel>
  <main class="main">
    <share class="share">
    Share
    </share>
    <item class="feed">
     Feed Item
      <action class="feed-reaction">
        Feed Reaction
      </action>
      <action class="feed-actionbar">
        Feed Actionbar
      </action>
      
    </item>
    <item class="feed">
     Feed Item
      <action class="feed-reaction">
        Feed Reaction
      </action>
    </item>
    <item class="feed">
     Feed Item
      <action class="feed-reaction">
        Feed Reaction
      </action>
    </item>
  </main>
  
  <aside class="right">
    Right
  </aside>
  
  <footer class="footer">
    Footer
  </footer>
</div>
            
          
!
            
              
.container {
  margin: 0 auto;
  display: -ms-grid;
  display: grid;
  grid-template-columns: 268px auto 348px;
  grid-column-gap: 32px;
  grid-auto-rows: minmax(0px, auto);
  max-width: 2560px; /* imac 5k, chromebox 30 */
  min-width: 360px;
}

.nav {
  grid-column: 1/4;
  grid-row: 1/2;
  background: #fff;
  max-height: 50px;
  border-bottom: 1px solid #E9E9E9;
  margin-bottom: 12px;
  overflow: auto;
}
.nav-left {
  margin-left:left;
}
.nav-right {
  float:right;
  width: 640px;
  height: 50px;
  background-color:rgba(100, 100, 100, 1.0);
}
.nav-sm-right {
  float:right;
  right:0px;
  width:360px;
  height: 50px;
  background-color:rgba(100, 100, 100, 1.0);
  display: none;
}
.nav-mobile-web {
  position: fixed; 
  bottom:0px;
  width: 100%;
  height: 50px;
  background-color:rgba(100, 100, 100, 1.0);
  display:none;
}
.logo {
  float: left;
  width: 150px;
  height: 50px;
  color: white;
  background-color:rgba(3, 99, 205, 1.0);
}
.share {
  background-color:rgba(255, 255, 255, 0.5);
  width: 100%;
  margin-bottom: 16px;
  height: 100px;
  float: left;
}
.search {
  border: 1px solid;
  width: 10%;
  padding: 8px;
  margin-left: 12px;
  margin-top: 6px;
  float:left;
  vertical-align: middle;
}
.left {
  grid-column: 1;
  grid-row: 2 / 4;
  background-color:rgba(254, 211, 189, 0.5);
  height:100%;
}

.main {
  grid-column: 2;
  grid-row: 2 / 4;
  grid-row-gap: 20px;
  background-color:rgba(191, 243, 255, 0.5);
  min-width: 375px;
}
.feed {
  grid-column: 1/4;
  grid-row: 1 / 4;
  background-color:rgba(255, 255, 255, 0.5);
  width: 100%;
  margin-bottom: 16px;
  height: 250px;
  float: left;
  left: 30px;
  -webkit-box-shadow:inset 0px 0px 0px 1px #ddd;
    -moz-box-shadow:inset 0px 0px 0px 1px #ddd;
    box-shadow:inset 0px 0px 0px 1px #ddd;
  
}
.feed-reaction {
 float:right;
 margin-right:0px;
 clear:both;
 height:100%;
 width: 150px;
 background-color:rgba(50, 50, 50, 0.5);
}
  .feed-actionbar {
display:none;   
}
.right {
  grid-column: 3;
  grid-row: 2 / 4;
  background-color:rgba(254, 211, 189, 0.5);
  height: 100%;
}

.footer {
  grid-column: 1/4;
  grid-row: 4;
   max-height: 50px;
  border-top: 1px solid #E9E9E9;
  margin-bottom: 12px;
  width: 100%;
}
@media only screen and (max-width:1440px) {
  /* For large desktop */
  .container {
    width:100%;
    grid-column-gap: 24px;
  }
}
@media only screen and (max-width:855px) {
  /* For tablet */
  .right {
    display: none;
  } 
  .container {
    grid-template-columns: 268px auto 0px;
    grid-column-gap: 16px;
  }
  .nav-right {
    display: none;
  }
  .nav-sm-right {
    display: block;
  }
.main {
  grid-column: 2;
  grid-row: 2 / 4;
  grid-row-gap: 20px;
  background-color:rgba(191, 243, 255, 0.5);
  min-width: 360px;
}
  .feed-reaction {
 float:right;
 margin-right:0px;
 clear:both;
 height:100%;
 width: 64px;
 background-color:rgba(50, 50, 50, 0.5);
}
}
@media only screen and (max-width:540px) {
  /* For medium mobile and small tablet */
  .left {
    display: none;
  }
  .container {
      grid-template-columns: 0px auto 0px;
    grid-column-gap: 0px;
  }
  .nav-sm-right {
    display: none;
  }
  .nav-mobile-web {
    display:block;
  }
  .logo {
    width: 40px;
  }
  .search {
    width: 80%;
  }
}
body {
    display: block;
    margin: 0px;
}

@media only screen and (max-width:375px) {
  /* For small mobile */
  .search {
    margin-top:4px;
    width: 32px;
    height:24px;
  }
  .feed-reaction {
    display: none;
  }
  .feed-actionbar {
display:block;   
 width: 100%;
    height: 48dp;
    background-color:rgba(50, 50, 50, 0.5); bottom:0;
    float:left;
    
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console