Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="page-wrap">
  
  <div class="screen">
    <div class="header">
      <div class="header__greeting pull-left">
        Welcome back, Zach. Your usual this morning?
      </div>
      <div class="header__controls pull-right">
        <i class="fa fa-fw fa-sliders"></i>
      </div>
    </div>
    <div class="main">
      <div class="main__sidebar">
        <ul class="main__sidebar__postlist">
          <li>Update about someone doing something
          <li>Lonely cry for help
          <li>Cat picture
          <li>Uninformed political statement
          <li>Update about someone doing something
          <li>Lonely cry for help
          <li>Cat picture
          <li>Uninformed political statement
          <li>Update about someone doing something
        </ul>
      </div>
      <div class="main__content__wrap">
        <div class="main__content__planning">
          <div class="planning__calendar">
            <div class="planning__titlebar">
              November
            </div>
            <div class="planning__calendar__dates">
              <div class="day-square day-name">SUN</div>
              <div class="day-square day-name">MON</div>
              <div class="day-square day-name">TUE</div>
              <div class="day-square day-name">WED</div>
              <div class="day-square day-name">THU</div>
              <div class="day-square day-name">FRI</div>
              <div class="day-square day-name">SAT</div>
              <div class="day-square"></div>
              <div class="day-square"></div>
              <div class="day-square">1</div>
              <div class="day-square">2</div>
              <div class="day-square">3</div>
              <div class="day-square">4</div>
              <div class="day-square">5</div>
              <div class="day-square">6</div>
              <div class="day-square">7</div>
              <div class="day-square">8</div>
              <div class="day-square">9</div>
              <div class="day-square">10</div>
              <div class="day-square">11</div>
              <div class="day-square">12</div>
              <div class="day-square">13</div>
              <div class="day-square">14</div>
              <div class="day-square">15</div>
              <div class="day-square active">16</div>
              <div class="day-square">17</div>
              <div class="day-square">18</div>
              <div class="day-square">19</div>
              <div class="day-square">20</div>
              <div class="day-square">21</div>
              <div class="day-square">22</div>
              <div class="day-square">23</div>
              <div class="day-square">24</div>
              <div class="day-square">25</div>
              <div class="day-square">26</div>
              <div class="day-square">27</div>
              <div class="day-square">28</div>
              <div class="day-square">29</div>
              <div class="day-square">30</div>
              <div class="day-square">31</div>
            </div>
          </div>
          <div class="planning__agenda">
            <div class="planning__titlebar">
              Friday 9:20am
            </div>
            <div class="planning__agenda__schedule">
              <ul>
                <li class="appt--done">
                  <span class="appt--time morning">8</span>
                  <span class="appt">Breakfast meeting</span>
                <li class="appt--active">
                  <span class="appt--time morning">9</span>
                  <span class="appt">Flog interns</span>
                <li>
                  <span class="appt--time morning">10</span>
                  <span class="appt">Swallow sadness</span>
                <li>
                  <span class="appt--time morning">11</span>
                  <span class="appt">Lunch meeting</span>
                <li>
                  <span class="appt--time afternoon">1</span>
                  <span class="appt">Berate underlings</span>
                <li>
                  <span class="appt--time afternoon">2</span>
                  <span class="appt">Motivate, delegate</span>
                <li>
                  <span class="appt--time afternoon">3</span>
                  <span class="appt">Delegate</span>
                <li>
                  <span class="appt--time afternoon">4</span>
                  <span class="appt">Ponder existence</span>
                <li>
                  <span class="appt--time afternoon">7</span>
                  <span class="appt">Dinner party</span>
              </ul>
            </div>
          </div>
          <div class="planning__weather">
            <span class="planning__weather--location">
              Boston
            </span>
            <span class="planning__weather--conditions">
              Raining Sideways
            </span>
            <span class="planning__weather--precip">
              <i class="fa fa-cloud"></i> 82%
            </span>
            <span class="planning__weather--temp">
              54
            </span>
          </div>
        </div>
        <div class="main__content__menu">
          <div class="main__content__menu__section">
            <div class="main__content__menu__section--title">
              Coffee
            </div>
            <div class="main__content__menu__section--items">
              <ul class="menu__items">
                <li class="menu__item active">
                  <span class="menu__item__name">Espresso</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">2</span>
                    <span class="menu__item__cost--cents">75</span>
                    <span class="menu__item__cost--quantity">2</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Cafe Latte</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">3</span>
                    <span class="menu__item__cost--cents">95</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Cafe Americano</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">3</span>
                    <span class="menu__item__cost--cents">50</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Cappuccino</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">3</span>
                    <span class="menu__item__cost--cents">75</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Cafe Mocha</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">4</span>
                    <span class="menu__item__cost--cents">25</span>
                  </span>
              </ul>
            </div>
          </div>
          <div class="main__content__menu__section">
            <div class="main__content__menu__section--title">
              Breakfast
            </div>
            <div class="main__content__menu__section--items">
              <ul class="menu__items">
                <li class="menu__item">
                  <span class="menu__item__name">Scrambled Eggs</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">8</span>
                    <span class="menu__item__cost--cents">75</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Flapjacks</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">6</span>
                    <span class="menu__item__cost--cents">25</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">French Toast</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">7</span>
                    <span class="menu__item__cost--cents">50</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Eggs Benedict</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">3</span>
                    <span class="menu__item__cost--cents">75</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Crab Cakes</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">11</span>
                    <span class="menu__item__cost--cents">25</span>
                  </span>
              </ul>
              <ul class="menu__items">
                <li class="menu__item">
                  <span class="menu__item__name">Steak &amp; Eggs</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">8</span>
                    <span class="menu__item__cost--cents">75</span>
                  </span>
                <li class="menu__item active">
                  <span class="menu__item__name">Biscuits &amp; Gravy</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">6</span>
                    <span class="menu__item__cost--cents">25</span>
                    <span class="menu__item__cost--quantity">1</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Lou&apos;s Breakfast</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">7</span>
                    <span class="menu__item__cost--cents">50</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Spanish Omelette</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">3</span>
                    <span class="menu__item__cost--cents">75</span>
                  </span>
                <li class="menu__item">
                  <span class="menu__item__name">Crab Cakes</span>
                  <span class="menu__item__cost">
                    <span class="menu__item__cost--dollars">11</span>
                    <span class="menu__item__cost--cents">25</span>
                  </span>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <div class="social">
        <ul class="social__tiles">
          <li class="social__tile active"><i class="fa fa-fw fa-twitter"></i>
          <li class="social__tile active"><i class="fa fa-fw fa-facebook"></i>
          <li class="social__tile active"><i class="fa fa-fw fa-pinterest"></i>
          <li class="social__tile"><i class="fa fa-fw fa-linkedin"></i>
          <li class="social__tile"><i class="fa fa-fw fa-plus"></i>
        </ul>
      </div>
      <div class="pos">
        <div class="pos__location">
          <i class="fa fa-bullseye"></i>
          Lou&apos;s Breakfast Hole
        </div>
        <div class="pos__cart">
          <i class="fa fa-shopping-cart"></i>
          3
        </div>
        <div class="pos__total">
          Total $11.75
        </div>
        <div class="pos__payment">
          <i class="fa fa-cc-visa"></i>
          Order
        </div>
      </div>
    </div>
  </div>
    
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600);
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: url(https://images.pexels.com/photos/230482/pexels-photo-230482.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb) center center no-repeat;
  background-size: cover;
  font-family: 'Open Sans';
  font-size: 16px;
  font-weight: 300;
  character-height: 90%;
}
._pull-left {
  float: left;
}
._pull-right {
  float: right;
}

.screen {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(236,233,192,0.25);
  border-radius: 0.5em;
  color: #FED;
  height: 440px;
  margin: 2em auto;
  overflow: hidden;
  position: relative;
  width: 800px;
}

.header, .footer, .main {
  position: absolute;
  left: 0;
  right: 0;
}
.header {
  background: rgba(252, 185, 84, 0.1);
  height: 2.75em;
}
.footer {
  height: 2.25em;
}
.header {
  letter-spacing: 2px;
  padding: 5px 10px;
  top: 0;
}
.header__greeting {
  font-size: 1.5em;
  line-height: 35px;
  vertical-align: middle;
}
.header__controls {
  color: rgba(41, 20, 0, 0.5);
  font-size: 1.35em;
}

.main {
  border-style: solid;
  border-color: rgba(236,233,192,0.25);
  border-width: 1px 0;
  top: 2.75em;
  bottom: 2.25em;
}
.main__sidebar {
  border-right: 1px solid rgba(236,233,192,0.25);
  float: left;
  height: 100%;
  overflow: hidden;
  width: 25%;
}
.main__sidebar__postlist {
  height: 100%;
}
.main__sidebar__postlist li {
  border-bottom: 1px solid rgba(236,233,192,0.1);
  font-size: 0.7em;
  padding: 1em;
}
.main__content__wrap {
  height: 100%;
  overflow: hidden;
  width: 75%;
}
.main__content__planning {
  border-bottom: 1px solid rgba(236,233,192,0.25);
  height: 50%;
  overflow: hidden;
}
.main__content__planning > div {
  float: left;
  height: 100%;
}
.planning__calendar {
  width: 45%;
  border-right: 1px solid rgba(236,233,192,0.1);
}
.planning__calendar__dates .day-square {
  float: left;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.85em;
  height: 1.85em;
  text-align: center;
  width: 14.2857142857143%;
}
.planning__calendar__dates .day-square.active {
  background: #F2AA61;
  color: #494339;
}
.day-square.day-name {
  font-weight: 300;
}
.planning__agenda {
  width: 30%;
  border-right: 1px solid rgba(236,233,192,0.25);
}
.planning__titlebar {
  background: rgba(236,233,192,0.1);
  border-bottom: 1px solid rgba(236,233,192,0.25);
  font-size: 0.85em;
  letter-spacing: 2px;
  line-height: 2em;
  text-align: center;
  width: 100%;
}
.planning__agenda__schedule ul {
  font-size: 0.8em;
  list-style: none;
}
.planning__agenda__schedule ul li {
  display: block;
  float: left;
  padding: 0.25em;
  width: 100%;
}
.appt--done {
  background: rgba(50, 0, 0, 0.2);
  color: #8c8073;
  text-decoration: line-through;
}
.appt--time {
  font-weight: 600;
  display: inline-block;
  width: 20%;
}
.appt--time:after {
  font-size: 0.6em;
  font-weight: 300;
  margin: 0.25em;
  text-transform: uppercase;
}
.appt--done .appt--time {
  text-decoration: line-through;
}
.appt--time.morning:after {
  content: 'am';
}
.appt--time.afternoon:after {
  content: 'pm';
}
.appt--active {
  background: rgba(252, 185, 84, 0.2);
  color: #fcb954;
}
.planning__weather {
  background: rgba(0, 0, 24, 0.45);
  padding-top: 1em;
  text-align: center;
  width: 25%;
}
.planning__weather > span {
  display: block;
}
.planning__weather--location {
  color: #3C68A0;
  font-size: 1.5em;
}
.planning__weather--conditions {
  color: #999;
  font-size: 0.85em;
}
.planning__weather--precip {
  color: #999;
  font-size: 0.85em;
  font-weight: 400;
  line-height: 3em;
  margin: 0.5em 0 0.25em;
  position: relative;
}
.planning__weather--precip i {
  color: #5B83B7;
  position: absolute;
  left: 35%;
  font-size: 3em;
  z-index: -1;
}
.planning__weather--temp {
  color: #ccc;
  font-size: 2.5em;
  line-height: 1em;
}
.planning__weather--temp:after {
  content: '\00b0';
  position: absolute;
}

.main__content__menu {
  overflow: hidden;
  padding-left: 1em;
}
.main__content__menu__section {
  float: left;
  height: 100%;
}
.main__content__menu__section--title {
  font-weight: 600;
  padding: 5px;
  text-align: center;
}
.menu__items {
  float: left;
  list-style: none;
  padding: 5px;
  width: 12em;
}
.menu__item {
  border-radius: 1em;
  float: left;
  font-size: 0.85em;
  padding: 0.25em 1em;
  white-space: nowrap;
  width: 100%;
}
.menu__item.active {
  background: #3C68A0;
}
.menu__item__name {
  display: inline-block;
  font-weight: 400;
  width: 8em;
}
.menu__item__cost {
  display: inline-block;
  font-weight: 600;
}
.menu__item__cost--cents {
  font-size: 0.7em;
  line-height: 1.7em;
  vertical-align: top;
}
.menu__item__cost--quantity {
  background: #fff;
  border-radius: 100%;
  color: #000;
  display: inline-block;
  margin-left: 0.5em;
  text-align: center;
  height: 1.5em;
  width: 1.5em;
}

.footer {
  bottom: 0;
}
.social {
  float: left;
  height: 100%;
  overflow: hidden;
  width: 25%;
}
.social__tiles {
  height: 100%;
  list-style: none;
}
.social__tile {
  border-right: 1px solid rgba(236,233,192,0.25);
  color: #666;
  float: left;
  height: 100%;
  line-height: 2em;
  text-align: center;
  width: 20%;
  vertical-align: middle;
}
.social__tile.active {
  color: #8FAFAF;
}
.pos {
  float: right;
  font-weight: 600;
  height: 100%;
  width: 75%;
}
.pos > div {
  float: left;
  padding: 5px;
  height: 100%;
}
.pos__location {
  width: 50%;
}
.pos__location i {
  margin: auto 0.5em auto 2em;
}
.pos__cart {
  width: 10%;
}
div.pos__payment {
  background: rgba(60, 104, 160, 0.25);
  border-left: 1px solid #133D74;
  color: #133D74;
  float: right;
  font-size: 0.8em;
  
  letter-spacing: 1px;
  line-height: 1.75em;
  padding: 0.5em 1em;
  text-transform: uppercase;
  vertical-align: absmiddle;
}
.pos__payment i {
  font-size: 1.25em;
  margin-right: 5px;
}


              
            
!

JS

              
                // Exercise to recreate this using CSS
// http://graphicdesign.stackexchange.com/questions/28769/how-create-this-glass-effect-in-photoshop

              
            
!
999px

Console