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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              .other-component
  a.button(href='#') Join now!

  .other-component__image
    img(src='http://www.petsworld.in/blog/wp-content/uploads/2015/03/How-To-Make-Your-Puppy-Gain-Weight.jpg')
  .other-component__content
    h2 Puppies are cute!
    p Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat semper viverra nam libero justo laoreet sit. Integer enim neque volutpat ac tincidunt. Justo donec enim diam vulputate ut pharetra sit amet. Volutpat consequat mauris nunc congue nisi vitae. Vitae tortor condimentum lacinia quis vel. Lacinia quis vel eros donec ac odio. Vehicula ipsum a arcu cursus vitae congue mauris rhoncus. Egestas purus viverra accumsan in. Etiam dignissim diam quis enim lobortis scelerisque fermentum dui faucibus. Aliquet enim tortor at auctor urna nunc id cursus metus. Lacus vestibulum sed arcu non odio euismod lacinia at.

    p Augue neque gravida in fermentum et sollicitudin ac. Mauris pharetra et ultrices neque. Tellus in metus vulputate eu scelerisque felis imperdiet proin fermentum. Non quam lacus suspendisse faucibus. Nisi quis eleifend quam adipiscing vitae proin sagittis. Nunc faucibus a pellentesque sit amet. Semper eget duis at tellus at urna condimentum mattis pellentesque. Turpis cursus in hac habitasse platea dictumst quisque. Nullam non nisi est sit amet facilisis. Purus faucibus ornare suspendisse sed nisi lacus sed viverra. Aliquam id diam maecenas ultricies. Eget nunc lobortis mattis aliquam faucibus.

            
          
!
            
              /* other-component component file */
.other-component {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;

  &__content {
    margin-left: 20px;
    grid-column: 2;
    grid-row: 1 / span 2; 
  }
  
  &__image {
    grid-row: 2;
  }
}

/* button component file */
.button {
  /* styles that we want to appear on every button by default */
  padding: 10px;
  background: darkgreen;
  color: #fff;
  border: 0;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  
  /* Oh... this is a problem now :( */
  grid-column: 3;
}

/* resets file */
img { width: 100%; }
h2 { margin-top: 0; }
            
          
!
999px
Loading ..................

Console