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.

            
              <html>
  <h1>FriendCanoe Styleguide Lite</h1>
  <h2>Friend List</h2>
  <div>
    <div class="friend-card friend-card--now">
    <div class="friend-card--pic"></div>
    <div class="friend-card--name">
      <div class="name">Rusty Mitchell</div>
      <div class="description">time to take a trip</div>
    </div>
    <div class="friend-card--icon">
    </div>
    <div class="friend-card--status"></div>
  </div>
    <div class="friend-card friend-card--soon">
      <div class="friend-card--pic"></div>
      <div class="friend-card--name">
        <div class="name">Chloe Silver</div>
        <div class="description">coming up next week</div>
      </div>
      <div class="friend-card--icon">
      </div>
      <div class="friend-card--status"></div>
    </div>
    <div class="friend-card friend-card--good">
    <div class="friend-card--pic"></div>
    <div class="friend-card--name">
      <div class="name">Sasha Sirotkin</div>
      <div class="description">a few months away</div>
    </div>
    <div class="friend-card--icon">
    </div>
    <div class="friend-card--status"></div>
  </div>
  </div>
  <h2>Hangout Event Card</h2>
  <div class="hangout">
    <div class="hangout-info">
      <div class="hangout-date">Jan 23, 2016</div>
    </div>
    <div class="hangout-image">
      <img src="http://via.placeholder.com/400x200">
    </div>
   <div class="hangout-description">Hackathon!</div>
  </div>
  <div class="hangout">
    <div class="hangout-info">
      <div class="hangout-date">Jan 20, 2016</div>
    </div>
   <div class="hangout-description">
     <div class="friend-card--pic"></div>
     Sasha boarded your FriendCanoe!
   </div>
  </div>
  <h2>Form (Text)</h2>
  <label for="fname" class="form-label">Friend's Name<span class="required">(required)</span></label>
  <input type="text" id="fname" name="firstname" placeholder="Pierre Aronnax">
  <h2>Image Selector</h2>
  <button class="btn-image">
    <div class="friend-card--pic"></div>
    Click to add a photo
  </button>
  <h2>Button</h2>
  <button class="btn-normal">
    All Aboard!
  </button>
  <h2>Social Button</h2>
  <button class="btn-social">
    <div class="btn-icon"></div>Sign In with Facebook
  </button>
</html>
            
          
!
            
              body {
  background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIxLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzY2IDIxNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTM2NiAyMTU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7b3BhY2l0eTowLjE1O2ZpbGw6Izk1RTNFNTt9Cjwvc3R5bGU+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMzY2LDE5NmMtMTQuNS02LjEtMzYuNC0xOS42LTY4LjgtMzEuMmMtMTMxLjktNDcuMy0zMzcuOSw2LjgtNDg2LjUsMTAuM2MtMTQ4LjYsMy41LTM0My41LTMxLjEtNTMzLjIsOS45CglDOTksMjIzLjYsOS44LDE5OC44LTAuMSwxOTUuN3YxOC44SDEzNjZWMTk2eiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTM2NiwxMjhjLTkwLTExLTE1OC40LDEwLjYtMTU4LjQsMTAuNlMxMDYwLDE5NSw5NTEsMTQ3LjJjLTEzOC45LTYwLjktMjQzLjgtNjcuMi00MDAuOC0yMC43CglDNDA5LjgsMTY4LjEsNzAuNCwxMzUuNC0wLjEsMTI4djg2LjZIMTM2NlYxMjh6Ii8+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMzY2LDYyYy00OSw4LTY2LjMsMzQuNi0xMjUuOSw0My4xQzEwMzksMTMzLjYsOTM0LjQsODYsOTM0LjQsODZzLTE2MC45LTUyLjktMjc3LjksNC43CglzLTI2My44LDMwLjktMjYzLjgsMzAuOUMxODUuNiw1MC44LDM3LjgsNTguNC0wLjEsNjJ2MTUyLjZIMTM2NlY2MnoiLz4KPC9zdmc+")  no-repeat fixed bottom;
  background-color: #EFFBFB;
  margin: 0 auto;
  padding-bottom: 100px;
  width: 90vw;
  font-size: 18px;
  max-width: 400px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

// Friend Card
.friend-card {
  position: relative;
  background-color: white;
  border: 1px solid;
  border-bottom: none;
  min-height: 80px;
  cursor: pointer;
  
  &:last-child {
    border-bottom: 1px solid;
  }
  
  &.friend-card--good {
    border-color: #69947F;
    
    .name,
    .description,
    .friend-card--icon {
      color: #69947F;
    }
  
    .friend-card--status {
      background-color: #69947F;
      width: 25%;
    }
    
//     The following 3 lines will not be needed when Fontawesome is added to the project.
    .friend-card--icon {
      background-color: #69947F;
    }
  }
  
  &.friend-card--soon {
    border-color: #969103;
    
    .name,
    .description,
    .friend-card--icon {
      color: #969103;
    }
  
    .friend-card--status {
      background-color: #969103;
      width: 75%
    }
    
//     The following 3 lines will not be needed when Fontawesome is added to the project.
    .friend-card--icon {
      background-color: #969103;
    }
  }
  
  &.friend-card--now {
    border-color: #DAA751;
    
    .name,
    .description,
    .friend-card--icon {
      color: #DAA751;
    }
    
    .friend-card--status {
      background-color: #DAA751;
      width: 100%;
    }
    
//     The following 3 lines will not be needed when Fontawesome is added to the project.
    .friend-card--icon {
      background-color: #DAA751;
    }
  }
    .friend-card--pic {
    float: left;
    margin: 10px 0 10px 10px;
  }
}

.friend-card--pic {
  width: 50px;
  height: 50px;
  background-color: #06CEFC;
	-moz-border-radius: 50px;
	-webkit-border-radius: 50px;
	border-radius: 50px;
}

.friend-card--name {
  float: left;
  text-align: left;
  padding-left: 10px;
  margin-top: 15px;
  width: calc(100% - 70px);
  
  .name {
    font-weight: 600;
    font-size: 1.1em;
    color: #333 !important;
  }
  
  .description {
    font-size: 0.7em;
    padding-top: 3px;
  }
}

.friend-card--icon {
  position: absolute;
  float: right;
  width: 25px;
  height: 25px;
	-moz-border-radius: 50px;
	-webkit-border-radius: 50px;
	border-radius: 50px;
  right: 15px;
  top: calc(50% - 17px);
}

.friend-card--status {
  height: 10px;
  position: absolute;
  bottom: 0;
}

// Hangout

.hangout {
  width: 100%;
  background: white;
  border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
  border: 1px solid #B4E6FD;
  margin: 20px 0;
}

.hangout-date {
  padding: 10px;
  font-size: 0.9em;
  border-bottom: 1px solid #B4E6FD;
}

.hangout-description {
  padding: 10px;
  float: none;
  text-align: center;
  font-weight: 500;
  
  .friend-card--pic {
    margin: 0 auto;
    margin-bottom: 10px;
    width: 75px;
    height: 75px;
  }
}

// Forms
input[type=text], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #B4E6FD;
  border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
  box-sizing: border-box;
  min-height: 50px;
  font-size: 1em;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ccc;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #ccc;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #ccc;
}
:-moz-placeholder { /* Firefox 18- */
  color: #ccc;
}

.form-label {
  text-align: left !important;
  
  .required {
    padding-left: 5px;
    font-style: italic;
    font-size: 0.7em;
  }
}

// Buttons
button {
  width: 100%;
  cursor: pointer;
  border: none;
  font: inherit;
  outline: inherit !important;
  border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
  min-height: 50px;
  font-weight: 500;
  margin: 10px 0;
  position: relative;
}

.btn-normal {
  padding: 15px;
  background-color: #E2760A;
  color: #FFFAC1;
  border-bottom: 2px solid #bc6207;
  
  &:active {
    border-top: 2px solid #EFFBFB;
    border-bottom-color: #EFFBFB;
    background-color: #bc6207;
  }
}

.btn-image {
  padding: 20px 0;
  background-color: white;
  border: 1px solid #B4E6FD;
  
  .friend-card--pic {
    margin: 0 auto;
    margin-bottom: 10px;
    width: 75px;
    height: 75px;
  }
}
.btn-social {
  padding: 15px;
  background-color: #3b5998;
  color: white;
  border-bottom: 2px solid #29457c;
  
  &:active {
    border-top: 2px solid #EFFBFB;
    border-bottom-color: #EFFBFB;
    background-color: #29457c;
  }
}

.btn-icon {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50px;
  position: absolute;
  top: calc(50% - 10px);
}
            
          
!
999px
Loading ..................

Console