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">
  <div class="sw">
    <form>
      <input type="search" class="search" placeholder="Search..." />
      <button class="go"><span class="entypo-search"></span></button>
      <a href="#" class="logo" title="Tuulkit">
        <svg x="0px" y="0px" viewBox="0 0 322 61.797" enable-background="new 0 0 322 61.797" xml:space="preserve">
          <path fill="#FFFFFF" d="M31,15.312v46H18v-46H0v-13h49v13H31z"></path>
          <path fill="#FFFFFF" d="M73,39.228c0,6.916-4.203,10.214-8.99,10.214c-4.704,0-9.01-3.38-9.01-10.214H41 C41,51.944,51.271,61.02,63.51,61.02C75.812,61.02,86,51.944,86,39.228H73z"></path>
          <path fill="#FFFFFF" d="M121,39.228c0,6.916-4.703,10.214-9.49,10.214c-4.704,0-9.51-3.38-9.51-10.214H89 c0,12.715,9.771,21.792,22.01,21.792c12.302,0,21.99-9.076,21.99-21.792H121z"></path>
          <path fill="#FFFFFF" d="M142,61.312v-60h12v60H142z"></path>
          <path fill="#FFFFFF" d="M186.643,37.546l16.375,23.767h-15.382l-9.63-14.602L174,50.965v10.348h-13v-60h13v32.45l12.395-13.45 h16.293L186.643,37.546z"></path>
          <path fill="#FFFFFF" d="M215.173,0.02c4.135,0,7.443,3.308,7.443,7.361c0,4.053-3.308,7.361-7.443,7.361 c-3.969,0-7.278-3.308-7.278-7.361C207.895,3.328,211.203,0.02,215.173,0.02z M209,61.312v-41h13v41H209z"></path>
          <path fill="#FFFFFF" d="M247,20.312h8v11h-8v15.021c0,3.391,1.391,4.301,4.12,4.301c1.324,0,2.88-0.248,2.88-0.414v10.421 c0,0.248-2.432,1.158-6.403,1.158c-8.518,0-13.597-5.045-13.597-13.232V31.312h-7v-11h1.942c4.301,0,6.058-3.256,6.058-7.06v-4.94 h12V20.312z"></path>
          <path fill="#7C67D4" d="M267.407,49.69c3.063,0,5.633,2.516,5.633,5.578c0,3.008-2.57,5.633-5.633,5.633 c-3.063,0-5.579-2.625-5.579-5.633C261.828,52.206,264.344,49.69,267.407,49.69z"></path>
          <path fill="#7C67D4" d="M282.128,21.047c2.734,0,4.922,2.188,4.922,4.867c0,2.68-2.188,4.868-4.922,4.868 c-2.625,0-4.813-2.188-4.813-4.868C277.315,23.235,279.503,21.047,282.128,21.047z M278,61.312v-27h8v27H278z"></path>
          <path fill="#7C67D4" d="M320.52,46.791c0,8.422-6.289,14.438-14.438,14.438c-8.094,0-14.438-6.016-14.438-14.438 s6.344-14.384,14.438-14.384C314.231,32.408,320.52,38.369,320.52,46.791z M312.207,46.791c0-4.594-2.953-6.727-6.125-6.727 c-3.117,0-6.126,2.133-6.126,6.727c0,4.539,3.008,6.782,6.126,6.782C309.254,53.573,312.207,51.385,312.207,46.791z"></path>
        </svg>
      </a>
    </form>
  </div>
  <div class="content">
    <h1>Material Search</h1>
    <p>View <a href="https://tuulkit.io">Tuulkit.io</a></p>
    <cite>Flexbox, Responsive &amp; No Javascript</cite>
  </div>
</div>
            
          
!
            
              @import url(http://weloveiconfonts.com/api/?family=entypo);
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700);

[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
}

$blue: #533687 ;

*, div {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #e8eaf6;
  -webkit-font-smoothing: antialiased;
}

.container {
  display: block;
  width: 70%;
  margin: 20px auto 0 auto;
  background: #fff;
  height: 100vh;
}

.sw {
  float: left;
  width: 100%;
  height: 80px;
  background: $blue;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 0 0px rgba(#000,.1);

  
  form {
    float: left;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
  }
  
  a.logo {
    display: flex;
    flex: 1 1 auto;
    order: 0;
    width: 100%;
    height: 100%;
    max-width: 80px;
    margin-right: 10px;
    transition: all 0.05s ease-in-out;
    visibility: visible;
    opacity: 1;
    svg {
      max-width: 100%;
      width: 100%;
      margin-top: auto;
      margin-bottom: auto;
    }
  }
  
  .search {
    flex: 1 1 auto;
    order: 2;
    outline: none;
    border: none;
    border-radius: 0;
    background: #fff;
    padding: 10px;
    font-family: 'Roboto', sans-serif;
    height: 50px;
    transition: all 0.05s ease-in-out;
    -webkit-appearance: none;
    &:focus {
      height: 80px;
      margin-left: -15px;
      padding: 10px 15px;
      + .go {
        height: 80px;
        margin-right: -15px;
        max-width: 80px; // Prevent icon from moving
        color: $blue;
        + a.logo {
          visibility: hidden;
          opacity: 0;
          max-width: 0px;
          margin-right: 0;
        }
      }
    }
  }
  
  .go {
    flex: 1 1 auto;
    order: 3;
    max-width: 50px;
    display: inline-block;
    border: none;
    background: #fff;
    color: #ccc;
    height: 50px;
    transition: all 0.05s ease-in-out;
    font-size: 21px;
    outline: none;
  }
}

// Demo Only
.content {
  float: left;
  width: 100%;
  clear: both;
  padding: 15px;
  text-align: center;
  h1 {
    font-family: 'Roboto', sans-serif;
    color: #333;
    padding: 0;
    font-size: 48px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.02em;
    margin-top: 50px 0 0 0;
  }
  p {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #333;
    -webkit-font-smoothing: antialiased;
    a {
      color: $blue;
      text-decoration: none;
      &:hover {
        text-decoration: underline;
      }
    }
  }
  cite {
    color: #aaa;
  }
}
            
          
!
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