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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!DOCTYPE html>
<html>
<head>
    <title>Design & Lifestyle</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="design-lifestyle.css">
    <script src="https://use.fontawesome.com/70936cc9cd.js"></script>
</head>
<body>
<main class="inner">
<div class="top">
<header>
  <div class="logo">
      <a href="#"><img src="https://lotincorp.biz/assets/dl/logo-design-lifestyle-white.svg" /></a>
  </div>
  <nav role="navigation">
  <div id="menuToggle">
    <input type="checkbox" />
    <span></span>
    <span></span>
    <span></span>    
  <ul class="main-menu" id="menu">
    <li class="current"><a href="#">Current</a></li>
    <li><a href="#">Archives</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
  </ul>
  </div>
  </nav>
</header>
<article class="content">
  <section class="hero">
    <div class="hero-text">
      <h2>The magazine differently!</h2>
      <p>Dare the online/offline reading experience.</p>
      <p>Download it every last friday of the month or read it directly here, and enjoy it during your weekend.</p>
      <p>Learn a little bit more about design and designers; and discover some night out locations to party with your friends!</p>
      <p><a class="button red-button" href="#">Get the app</a> or <a class="button yel-button" href="#">Get the PDF</a></p>
    </div><!-- end div .hero-text -->
    <div class="hero-image">
      <img src="https://lotincorp.biz/assets/dl/design-and-lifestyle-home-iPad.png" />
    </div><!-- end div .hero-image --> 
  </section><!-- end section .hero -->
  <section class="design">
    <h2>Design</h2>
    <div class="card-container-design">
    <div class="card">
        <div class="card__thumbnail">
            <img src="https://lotincorp.biz/assets/dl/pics-featured-articles-01.jpg">
        </div>
        <header class="card__title">
            <h3>Design Matters</h3>
        </header>
        <div class="card__description">
            Alain Ngann: Amazing photographer in Douala.
        </div>
        <a href="#" class="button yel-button">Read article</a>
    </div>
    <div class="card">
        <div class="card__thumbnail">
            <img src="https://lotincorp.biz/assets/dl/pics-featured-articles-02.jpg">
        </div>
        <header class="card__title">
            <h3>Design Professionalism</h3>
        </header>
        <div class="card__description">
            Andy Rutledge on design professionalism.
        </div>
        <a href="#" class="button yel-button">Read article</a>
    </div>
    <div class="card">
        <div class="card__thumbnail">
            <img src="https://lotincorp.biz/assets/dl/pics-featured-articles-03.jpg">
        </div>
        <header class="card__title">
            <h3>Design Ethics</h3>
        </header>
        <div class="card__description">
            Dennis Khardys on ethics in the design profession.
        </div>
        <a href="#" class="button yel-button">Read article</a>
    </div>
  </div><!-- end of div .card-container-design -->
  </section><!-- end of section .design -->
</article><!-- end of article .content -->
<aside class="sidebar">
    <form class="search-form" role="search">
        <input class="search-form-input" type="search" placeholder="Search">
        <span class="fa fa-search" aria-hidden="true"></span>
    </form>
    <div class="widget">
        <img src="https://lotincorp.biz/assets/dl/banner-ad-design-lifestyle-01.jpg" />
    </div>
</aside>
</div><!-- end div .top -->
<div class="bottom">
<article class="content">
    <section class="lifestyle">
    <h2>Lifestyle</h2>
    <div class="card-container-lifestyle">
    <div class="card">
        <div class="card__thumbnail">
            <img src="https://lotincorp.biz/assets/dl/pics-featured-articles-04.jpg">
        </div>
        <header class="card__title">
            <h3>Fashion Insights</h3>
        </header>
        <div class="card__description">
            A deep insight on fashion drawing design.
        </div>
        <a href="#" class="button red-button">Read article</a>
    </div>
    <div class="card">
        <div class="card__thumbnail">
            <img src="https://lotincorp.biz/assets/dl/pics-featured-articles-05.jpg">
        </div>
        <header class="card__title">
            <h3>Beauty Advices</h3>
        </header>
        <div class="card__description">
            Want to softening your skin naturally?
        </div>
        <a href="#" class="button red-button">Read article</a>
    </div>
    <div class="card">
        <div class="card__thumbnail">
            <img src="https://lotincorp.biz/assets/dl/pics-featured-articles-06.jpg">
        </div>
        <header class="card__title">
            <h3>Night Out</h3>
        </header>
        <div class="card__description">
            Loïck Food: Eat fast and balanced in Deïdo.
        </div>
        <a href="#" class="button red-button">Read article</a>
    </div>
  </div><!-- end of div .card-container-lifestyle -->
  </section><!-- end of section .lifestyle -->
  </article><!-- end of article .content -->
<footer>
    <div class="newsletter">
        <h2>Subscribe to our Newsletter</h2>
      <img class="icon" src="https://lotincorp.biz/assets/dl/opened-mail-icon.png" />
      <form>
        <input name="email" type="text" placeholder="Your e-mail adress">
        <button type="button" onclick="alert('Hello World!')">Subscribe</button>
        </form><!-- end of form -->
    </div><!-- end of div .newsletter -->
    <div class="footer-buttons">
    <ul class="downloads">
        <li class="button yel-button"><a href="#">Download current issue</a></li>
        <li class="button red-button"><a href="#">Download past issue</a></li>
    </ul><!-- end of ul .downloads -->
    <ul class="social">
      <li class="button button-tw"><a href="#">Follow on Twitter</a></li>
      <li class="button button-fb"><a href="#">Like on Facebook</a></li>
      <li class="button button-is"><a href="#">Read on Issuu</a></li>
    </ul><!-- end of ul .social -->
    </div><!-- end of div .footer-buttons -->
    <div class="credits">
        <p>© 2013 Design & Lifestyle – Lotin Corp.</p>
    </div>
</footer><!-- end of footer -->
</div><!-- end of div .bottom -->
</main><!-- end of main .inner -->
</body>
</html>
              
            
!

CSS

              
                /* ---------- GENERAL ---------- */
html {
    font-size: 16px;
    font-family: 'Open Sans', 'Helvetica Neue', 'Arial', sans-serif;
    margin: 0;
}
body {
    background-color: #fff;
}
* {
    box-sizing: border-box;
}
h1, h2, h3 {
    font-family: 'Unna', serif;
}
h1 {
    font-size: 2.4rem;
}
h2 {
    font-size: 1.8rem;
}
h3 {
    font-size: 1.4rem;
}
.top h1, .top h2, .top h3 {
    color: #f9b233;
}
.bottom h1, .bottom h2, .bottom h3 {
    color: #e12580;
}
.button,
button {
    display: inline-block;
    background-color: transparent;
    font-family: 'Open Sans', 'Helvetica Neue', 'Arial', sans-serif;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: .3s ease-out;
    &:hover {
        transform: scale(1.2, 1.2);
    }
}
.main-menu li a,
.button a,
button a {
    color: white;
    text-decoration: none;
    }
.red-button {
    background-color: #e12580;
    &:hover {
        background-color: #e12580;
    }
}
.yel-button {
    background-color: #f9b233;
    color: #000;
    &:hover {
        background-color: #f9b233;
    }
}
.button-tw {
    background-color: #00acee;
    &:hover {
        background-color: #00acee;
    }
}
.button-fb {
    background-color: #3b5998;
    &:hover {
        background-color: #3b5998;
    }
}
.button-is {
    background-color: #f36d5d;
    &:hover {
        background-color: #f36d5d;
    }
}
input, select, textarea {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 18px;
    font-weight: 300;
    padding: 8px;
    width: 100%;
}
input {
    line-height: normal;
}
button, input, optgroup, select, textarea {
    color: #333;
    font: inherit;
    margin: 0;
}
*, input[type="search"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
img {
    max-width: 100%;
}

/* ---------- STRUCTURE ---------- */

.top, .bottom {
    padding: 15px 6%;
}
.top {
    width: 100%;
    float: left;
    background-image: url('https://lotincorp.biz/assets/dl/bg-top.svg');
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    color: #fff;
}
.bottom {
    width: 100%;
    float: left;
    background-image: url('https://lotincorp.biz/assets/dl/bg-bottom.jpg');
    background-repeat: repeat;
}
.content {
    float: left;
    width: 75%;
    }

aside {
    float: left;
    width: 25%;
    color: #fff;
    padding-left: 1%;
    }
footer {
    width: 100%;
    float: left;
}
.newsletter, .footer-buttons {
    float: left;
    width: 75%;
}
.credits {
    float: left;
    width: 100%;
    text-align: left;
}

/* ---------- HEADER ---------- */

header {
    float: left;
    width: 100%;
    padding: 25px 0;
    }
.logo {
    float: left;
    width: 18.75%;
}
nav {
    float: left;
    width: 81%;
}
.main-menu {
    font-family: 'Unna', serif;
    font-size: 1.2rem;
    text-align: right;
}
.main-menu li {
    display: inline-block;
    list-style-type: none;
    padding: 15px;
}
.current a {
    color: #f9b233 !important;
}
 #menuToggle input {
     display: none;
}

/* ----- HERO ----- */

.hero {
    float: left;
    width: 100%;
    }
.hero-text {
    float: left;
    width: 58.33%;
}
.hero-text .button {
    width: 46.5%;
}
.hero-image {
    float: left;
    width: 41.66%;
}

/* ----- DESIGN + LIFESTYLE ----- */

.design {
    float: left;
    width: 100%;
    }
.card-container-design,
.card-container-lifestyle {
    display: block;
    width: 100%;
}
.card {
    display: grid;
    background-color: transparent;
    width: 33.33%;
    float: left;
    padding: 10px 2px;
}
.card img {
    box-shadow: 2px 2px 3px rgba(136,136,136, 0.9);
}
.card:hover, .card:focus {
    transform: translateY(-10px);
    }
.card__title {
    padding: .5rem;
    text-align: center;
}
.card__description {
    padding: .5rem;
    line-height: 1.6em;
    text-align: center;
}
.card .button {
    align-self: end;
}

/* ---------- ASIDE ---------- */

.search-form {
    margin-bottom: 55px;
}
.search-form span {
    color: #000;
    float: right;
    margin: -30px 10px 0 0;
    z-index: 1300;
}

/* ---------- FOOTER ---------- */

footer ul {
    padding-inline-start: 0;
}
.downloads li {
    min-width: 49.5%;
}
.social li {
    float:left;
    min-width: 33.2%;
}
.credits {
    margin-top: 25px;
}

/* ----- NEWSLETTER ----- */

.newsletter {
    margin-left: 33%;
}

.icon, input, button {
    float: left;
}
footer input {
    width: 32%;
    height: 44px;
    margin: 0 5px;
}
footer form {
    margin-top: 20px;
}
footer button {
    background-color: #00ace4;
    border: none;
    color:  #fff;
}
.icon {
    margin-top: -10px;
}

/* ---------- MEDIA QUERIES ---------- */

@media only screen and (max-width: 1200px) {
	.content {
		width: 620px;
	}
}

@media only screen and (max-width: 960px) {
	.content, aside, .newsletter, .footer-buttons {
		width: 100%;
	}
}

@media only screen and (max-width: 800px) {

/* ----- RESPONSIVE MENU ----- */
    #menuToggle {
      display: block;
      position: relative;
      top: 20px;
      right: -85%;
      z-index: 1;
      -webkit-user-select: none;
      user-select: none;
    }
    #menuToggle input {
      display: block;
      width: 40px;
      height: 32px;
      position: absolute;
      top: -7px;
      left: -5px;
      cursor: pointer;
      opacity: 0; /* hide this */
      z-index: 2; /* and place it over the hamburger */
      -webkit-touch-callout: none;
    }
    #menuToggle span {
      display: block;
      width: 33px;
      height: 4px;
      margin-bottom: 5px;
      position: relative;
      background: #cdcdcd;
      border-radius: 3px;
      z-index: 1;
      transform-origin: 4px 0px;
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  opacity 0.55s ease;
    }
    #menuToggle span:first-child {
      transform-origin: 0% 0%;
    }
    #menuToggle span:nth-last-child(2) {
      transform-origin: 0% 100%;
    }
    #menuToggle input:checked ~ span {
      opacity: 1;
      transform: rotate(45deg) translate(-2px, -1px);
      background: #232323;
    }
    #menuToggle input:checked ~ span:nth-last-child(3) {
      opacity: 0;
      transform: rotate(0deg) scale(0.2, 0.2);
    }
    #menuToggle input:checked ~ span:nth-last-child(2) {
      transform: rotate(-45deg) translate(0, -1px);
    }
    #menu {
      position: absolute;
      width: 300px;
      margin: -85px 0 0 450px;
      padding: 100px 50px;
      background-color: #000;
      height: 100vh;
      -webkit-font-smoothing: antialiased;
      transform-origin: 0% 0%;
      transform: translate(-100%, 0);
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }
    #menu li {
      display: block;
      padding-right: 25px;
    }
    #menuToggle input:checked ~ ul {
      transform: translate(-215%, 0);
    }
    .logo {
        width: 45%;
    }
    nav {
        width: 55%;
    }
    .hero-text .button {
        width: 100%;
    }
    .hero-image {
        margin-top: 50px;
    }
    .hero-text, .hero-image {
        width: 50%;
    }
    .card {
        width: 49.75%;
        padding: 10px;
    }
    .card__description {
        height: 100px;
    }
    .newsletter {
        margin-left: 0;
    }
    .icon {
        display: none;
    }
    footer input {
        width: 64%;
    }
    .downloads li, .social li {
        min-width: 49.5%;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 500px) {
    .hero-text, .hero-image, .hero-text .button {
        width: 100%;
    }
    .card {
        width: 100%;
        padding: 10px;
    }
    footer input {
        width: 50%;
    }
    .downloads li, .social li {
        min-width: 100%;
        margin-bottom: 15px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console