cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <div class="item-1">
  <h1>Grid</h1>
  <p>Responsive. Resize me.</p>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque accumsan euismod mauris, eget ornare erat luctus at. Etiam quis enim sed orci eleifend condimentum. Quisque pulvinar libero ante, non faucibus neque suscipit non.</p>
</div>
<div class="item-2">
  
</div>
<div class="item-3">
  <div>
  <h2>Toronto</h2>
  <p>Diversity Our Strength</p>
    </div>
</div>
<div class="item-4">
</div>
<div class="item-5">
  <div>
  <h2>Sed euismod lectus</h2>
  <p>At dolor auctor efficitur. Aenean dignissim, elit sed facilisis lacinia, velit sem tincidunt mi, ultricies mattis nibh sapien sit amet arcu. <a href="http://store.daniellemlbastien.com">Maecenas a dui ex.</a></p>
  </div>
</div>
<div class="item-6">
  <p>Quisque pulvinar libero ante, non faucibus neque suscipit non.</p>
</div>
<div class="item-7">
</div>
<div class="item-8">
  <p>Proin at neque accumsan, convallis felis sit amet, elementum leo. Proin viverra egestas quam sed interdum.</p>
</div>
<div class="item-9">
</div>
<div class="item-10">
</div>
<div class="item-11">
</div>
<div class="item-12">
</div>
            
          
!
            
              $white: #ffffff;
$blue: #27cbf4;
$purple: #c798f9;
$green: #9dd53a;
$bp-1: 60em;
$bp-2: 40em;

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16pt;
}

body {
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: $blue;
  background-image: url(http://img.daniellemlbastien.com/bg/doodle-blue.jpg);
  background-blend-mode: overlay;
  
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(10, minmax(250px, auto));
}

.item-1 {
  grid-column: span 6;
}

.item-2, .item-9 {
  grid-column: span 2;
}

.item-3 {
  grid-column-start: 4;
}

.item-5 {
  grid-column-start: 3;
  grid-column-end: 5;
}

.item-7 {
  grid-column-start: 2;
}

.item-8 {
  grid-column-start: 5;
  grid-column-end: 7;
  grid-row: span 2;
}


.item-9 {
    grid-row: span 2;
}

.item-10 {
  grid-column-start: 3;
}

.item-11 {
  grid-column-start: 5;
}

.item-12 {
  grid-column-start: 2;
  grid-column-end: 6;
  grid-row: span 2;
}

@media screen and (max-width: $bp-1){
  body {
  grid-template-rows: repeat(12, minmax(250px, auto));
  }
  
  .item-2 {
    grid-column: span 3;
  }
  
  .item-4{
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row: span 2;
  }
  .item-5 {
    grid-column-start: 4;
    grid-column-end: 7;
    grid-row: span 2;
  }
  
  .item-6 {
    grid-column: span 2;
  }
  .item-7 {
    grid-column-start: 5;
    grid-column-end: 7;
  }
  
  .item-8 {
    grid-column-start: 2;
    grid-column-end: 5;
  }
  .item-9 {
    grid-column-start: 1;
    grid-column-end: 4;
  }
  
  .item-10 {
    grid-column-start: 5;
    grid-column-end: 7;
  }
  
  .item-11 {
    grid-column-start: 4;
    grid-column-end: 6;
  }
  
  .item-12 {
    grid-column: span 6;
  }
}

@media screen and (max-width: $bp-2){
  body {
  grid-template-rows: repeat(14, minmax(250px, auto));
  }
 .item-2 {
    grid-column: span 6;
  }
  .item-3 {
    grid-column-start: 2;
  }
  .item-4 {
    grid-column-start: 3;
    grid-column-end: 6;
    grid-row: span 1;
  }
  .item-5 {
    grid-column-start: 2;
  }
  .item-7 {
    grid-column-start: 3;
  }
  .item-9 {
    grid-column: span 6;
    grid-row: span 1;
  }
  
  .item-10{
    grid-column-start: 3;
  }
  .item-11 {
    grid-column-start: 1;
    grid-column-end: 3;
  }
}

a {
  color: $blue;
  &:visited {
    color: $purple;
  }
  &:hover,
  &:active {
    color: $green;
  }
}

[class^=item] {
  background-color: $white;
  padding: .5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.item-1 {
  padding: 2em;
  @supports(backdrop-filter: blur(5px)) {
    background-color: rgba(255, 255, 255, .2);
    backdrop-filter: blur(5px);
  }
}

.item-2{
   background-image: url(https://c1.staticflickr.com/1/666/21478894829_2e269b0ab4_z.jpg);
}

.item-3{
  display: flex;
  align-items: center;
  padding: 0 2em;
  text-align: center;
  font-size: 1.2em;
}

.item-4 {
   background-image: url(https://c1.staticflickr.com/9/8223/29066687271_898cbe585f_z.jpg);
}

.item-5 {
  background-image: url(https://c1.staticflickr.com/4/3875/14656781522_4b881996c3_k.jpg);
  color: $white;
  > div {
    @supports(backdrop-filter: blur(5px)) {
     padding: .5em;
    background-color: rgba(0, 0, 0, .2);
    backdrop-filter: blur(5px);
  }
  }
}

.item-6 {
  background-image: url(https://c1.staticflickr.com/6/5715/21665685345_2f07fb3238_z.jpg);
}

.item-7 {
  background-image: url(https://c1.staticflickr.com/1/593/23376626265_6dabc8a25d_z.jpg);
}

.item-8 {
  background-image: url(https://c1.staticflickr.com/6/5700/30812627926_5e1e6c1589_z.jpg);
}

.item-9 {
  background-image: url(https://c1.staticflickr.com/1/610/23268275592_e05ae73e6e_z.jpg);
}

.item-10 {
  background-image: url(https://c1.staticflickr.com/6/5718/23902785706_4611819021_z.jpg);
}

.item-11 {
  background-image: url(https://c1.staticflickr.com/2/1699/25702260551_93d5181e17_z.jpg);
}

.item-12 {
  background-image: url(https://c1.staticflickr.com/5/4186/34543646895_4b6e4810eb_k.jpg);
}
            
          
!
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.
Loading ..................

Console