cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - 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="offer-banner has-absolute-elements">
        <div class="background-shape"></div>

        <div class="offer-content">
          <div class="document-container">
        <div class="document-img-wrapper">
            <img class="document" src="https://www.dropbox.com/s/l516ai23ewu3tno/resume-example%402x.png?raw=1" alt="Resume Preview"/>  
        </div>
<!--         <div class="document-info">
          <button id="resume-zoom" class="button outline pill button-sm icon-button"><span class="icon-zoom">
            </span>View</button>
           <p class="label-text">2 Pages</p>
        </div> -->
      </div>
          <div class="offer-details">
            <p class="label-text">Science &amp; Engineering &middot; United States</p>
            <p class="offer-headline">Rocket Scientist, Aerospace Engineer, Astrophysicist</p>

            <div class="order-details">
              <div class="items-container">
                <div class="icon-orderItems">
                  <svg style="width:24px;height:24px" viewBox="0 0 24 24">
    <path fill="#2c2f3e" d="M17,18C15.89,18 15,18.89 15,20A2,2 0 0,0 17,22A2,2 0 0,0 19,20C19,18.89 18.1,18 17,18M1,2V4H3L6.6,11.59L5.24,14.04C5.09,14.32 5,14.65 5,15A2,2 0 0,0 7,17H19V15H7.42A0.25,0.25 0 0,1 7.17,14.75C7.17,14.7 7.18,14.66 7.2,14.63L8.1,13H15.55C16.3,13 16.96,12.58 17.3,11.97L20.88,5.5C20.95,5.34 21,5.17 21,5A1,1 0 0,0 20,4H5.21L4.27,2M7,18C5.89,18 5,18.89 5,20A2,2 0 0,0 7,22A2,2 0 0,0 9,20C9,18.89 8.1,18 7,18Z" />
</svg>
                </div>
                <ul class="no-bullet-list">
                  <li>Standard Resume</li>
                  <li>Phone Call</li>
                  <li>LinkedIn Profile</li>
                </ul>
              </div>
              <div class="date-container">
                <div class="icon-dueDate">
                  <svg style="width:24px;height:24px" viewBox="0 0 24 24">
    <path fill="#2c2f3e" d="M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1" />
</svg>
                </div>
                <div>
                    <p class="semi">Due Due 4:15pm ET
Thursday, October 11</p>
                    <p class="label-text">In 7 Days</p>
                </div>
              </div>
            </div>
           
            <div class="actions-container">
              <button class="button pill">
                  I'll Take This Order!</button>
              <button class="text-button">I do not want this order</button>
            </div>
          </div>
        </div>
      </div>
            
          
!
            
              //Colors 
$standardTextColor: #2c2f3e;
$labelColor: #6D6E71;
$actionColor: #3F51B5;
$white: #fff;
$warning: #F5A623;
$error: #CE0505;

//Text Styles 
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
$font-sans: 'Open Sans', sans-serif;

@mixin bodyText {
    $font-sans: 'Open Sans', sans-serif;
    font-size: 14px;
    font-size: 1em;
    line-height: 1.5em;
    margin: 0.5em 0em;
    color: $standardTextColor;
}
@mixin labelText {
    font-size: 13px;
    font-size: 0.75em;
    line-height: 1.25em;
    margin: 0.5em 0em;
    color: $labelColor;
}
@mixin offerHeadline {
    font-size: 30px;
    font-size: 2.2em;
    line-height: 1.5em;
    font-weight: 700;
    margin: 0.5em 0em;
    color: $standardTextColor;
    max-width: 750px;
}
@mixin offerSubheadline {
    font-size: 16px;
    line-height: 1.5em;
    margin: .5em 0em 2em;
    color: $standardTextColor;
    max-width: 750px;
}
@mixin semiText {
    font-weight: 600;
}
@mixin warningText {
    font-weight: 600;
    color: $warning;
}
@mixin errorText {
    font-weight: 600;
    color: $error;
}
//Flexbox
@mixin flex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}
@mixin flex-direction($direction) {
    -webkit-flex-direction: $direction;
    -ms-flex-direction: $direction;
    flex-direction: $direction;
}
@mixin flex-align($alignment) {
    -webkit-align-items: $alignment;
    -ms-align-items: $alignment;
    align-items: $alignment
}
@mixin flex-justify($justify) {
    -webkit-justify-content: $justify;
    -ms-justify-content: $justify;
    justify-content: $justify;
}
//Animations 
@keyframes Gradient {
	0% {
		background-position: 0% 50%
	}
	50% {
		background-position: 100% 50%
	}
	100% {
		background-position: 0% 50%
	}
}
//Icons 
.icon-orderItems {
    display: inline-block;
    width: 22px;
    height: 20px;
    margin: 12px 12px 12px 0px;
}
.icon-dueDate {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 12px 12px 12px 0px;
}
.icon-zoom {
    background: url(https://www.dropbox.com/s/qlbpgte28hapwep/icon-zoom.svg?raw=1) no-repeat;
    background-size: contain;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    transition: all 0.35s;
}

//Buttons 
.button {
    background: $actionColor;
    color: $white;
    font-size: 15px;
    font-size: 1em;
    line-height: 1.5em;
    letter-spacing: 0.02em;
    padding: 16px 50px;
    box-shadow: rgba(#000, 0.2) 1px 2px 10px 1px;
    cursor: pointer;
    transition: all 0.35s;
    
    &.pill {
        border-radius: 2em;
    }
    &:hover {
      background: darken($actionColor, 15%);
      transform: scale(1.1);
    }
    
    &.outline {
        border: 2px solid $actionColor;
        background: none;
        color: $actionColor;
        transition: all 0.35s;
        
        &:hover {
            background: $actionColor;
            color: $white;
        }
    }
}
.text-button {
    color: $actionColor;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    transition: color 0.35s;
    
    &:hover {
        color: darken($actionColor, 10%);
        text-decoration: underline;
    }
}
.icon-button {
    @include flex;
    @include flex-direction(row);
    @include flex-align(center);
}
.button-sm.icon-button {
    font-size: 12px;
    padding: 4px 12px;
    letter-spacing: normal;
    
    &.outline {
        box-shadow: none;
        border-width: 1px;
    }
}
#resume-zoom {
    transition: all 0.35s;
    
    &:hover {
        .icon-zoom {
            background: url(https://www.dropbox.com/s/bf7e7c7vm8v1ny7/icon-zoom-hover.svg?raw=1) no-repeat;
            background-size: contain;
        }
    }
}

//Lists 
ul {
    @include bodyText;
    
    &.no-bullet-list {
        list-style-type: none;
        font-weight: 600;
        padding-left: 0;
        
        li {
            margin-bottom: 6px;
        }
    }
}

//General styles
body {
  background: #969BB0;
  padding: 40px;
  @include flex;
  @include flex-direction(column);
  @include flex-align(center);
  @include flex-justify(center);
}
p {
    @include bodyText;
}
.label-text {
    @include labelText;
}
.semi {
    @include semiText;
}
.warning {
    @include warningText;
}
.error {
    @include errorText;
}
.offer-banner {
    padding: 20px 40px 40px 40px;
    position: relative;
    background: $white;
    border-radius: 6px;
    box-shadow: (rgba(#000, 0.15) 1px 4px 22px 4px);
    font-family: $font-sans;
    margin-bottom: 40px;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 850px;
    max-width: 1000px;
    
    &.has-absolute-elements {
        padding: 0px;
    }
}
//default styles when clip-path not supported
.background-shape {
    position: absolute;
    top:0;
    left: 0;
    bottom: 0;
    width: 33%;
    border-radius: 6px 0px 0px 6px;
    z-index: 1;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(-90deg, rgba(255,255,255,1) 0%, rgba(222,220,250,1) 100%);
    background: -webkit-linear-gradient(-90deg, rgba(255,255,255,1) 0%, rgba(222,220,250,1) 100%);
    background: linear-gradient(-90deg, rgba(255,255,255,1) 0%, rgba(222,220,250,1) 100%);
}
// If clip-path is supported by the browser, clip shape and use animating background gradient 
@supports (-webkit-clip-path: polygon(0 0, 42% 0, 100% 100%, 0% 100%)) or (clip-path: polygon(0 0, 42% 0, 100% 100%, 0% 100%)) {
  .background-shape {
    width: 40%;
    -webkit-clip-path: polygon(0 0, 42% 0, 100% 100%, 0% 100%);
    clip-path: polygon(0 0, 42% 0, 100% 100%, 0% 100%);
    //animating background gradient
    background: -moz-linear-gradient(25deg, #a0e4c1, lighten($actionColor, 40%), lighten($actionColor, 55%));
    background: -webkit-linear-gradient(25deg, #a0e4c1, lighten($actionColor, 40%), lighten($actionColor, 55%));
    background: linear-gradient(25deg, #a0e4c1, lighten($actionColor, 40%), lighten($actionColor, 55%));
    background-size: 400% 400%;
    animation: Gradient 5s ease infinite;
  }
}
.offer-content {
    padding: 40px;
    @include flex;
    @include flex-direction(row);
    @include flex-align(flex-start);
    position: relative;
    z-index: 9998;
}
.document-container {
    margin-right: 40px;
    display: block;
    box-shadow:(rgba(#000, 0.3) 2px 3px 10px 0px);
    @include flex;
    @include flex-direction(column);
    @include flex-justify(flex-end);
    background: $white;
    border-radius: 2px;
    width: auto;
    height: 100%;
}
.document-img-wrapper {
    overflow: hidden;
}
.document {
    margin: 12px 12px 0px 12px;
    max-height: 320px;
    width: auto;
    transition: all 0.3s;
    cursor: pointer;
    transition: all 0.5s;
    
    &:hover {
        transform: scale(1.1);
    }
}
.document-info {
    padding: 10px 12px;
    @include flex;
    @include flex-direction(row);
    @include flex-align(center);
    @include flex-justify(space-between);
    min-width: 150px;
    box-shadow: 0px -1px 2px 0px rgba(#000, 0.1);
    z-index: 9998;
    
    .icon-button {
        padding: 4px 10px;
    }
}
.offer-headline {
    @include offerHeadline;
}
.offer-subheadline {
    @include offerSubheadline;
}
.offer-details {
    width: 100%;
    
    .offer-headline {
        @include offerHeadline;
        margin-top: 0px;
        
        &::first-letter {
            text-transform: uppercase;
        }
    }
}
.order-details {
    margin-bottom: 30px;
    @include flex;
    @include flex-direction(row);
    @include flex-align(flex-start);
    
    .items-container, .date-container {
        @include flex;
        @include flex-direction(row);
        @include flex-align(flex-start);
    }
    .items-container {
        margin-right: 50px;
        
        ul {
            margin-top: 0.5em;
        }
    }
}
.actions-container {
    margin-top: 40px;
    @include flex;
    @include flex-direction(row);
    @include flex-align(flex-end);
    @include flex-justify(space-between); 
    
    .p {
        text-shadow: 1px 1px 1px $white; //helpful when postitioned on top of background-shape
    }
    #view-another {
        margin-right: 14px;
    }
}
.offer-pay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 16px 16px 30px;
    background: #B8E986;
    color: #417505;
    z-index: 1;
    text-align: center;
    border-radius: 0px 6px 0px 100%;
    
    p:first-of-type {
        font-size: 1.25em;
        line-height: 1.25em;
        margin-bottom: 0px;
    }
    .label {
        margin-top: 0px;
    }
}
.feedback-form-container {
    max-width: 750px;
    
    form {
        margin: 30px 0px;
    }
}
.form-block {
    margin-bottom: 20px;
}
.textarea-container {
    textarea {
        display: block;
        width: 100%;
        @include bodyText;
    }
}
.checkboxes-column {
    @include flex;
    @include flex-direction(column);
    @include flex-align(flex-start);
    margin-top: 10px;   
}

//Fancy checkboxes
/* Customize the label (the container) */
.checkbox-container-fancy {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  
  &:last-of-type {
      margin-bottom: 0px;
  }
  
  /* Hide the browser's default checkbox */
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #eee;
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* On mouse-over, add a grey background color */
.checkbox-container-fancy:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container-fancy input:checked ~ .checkmark {
  background-color: #27AAE1;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container-fancy input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container-fancy .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid $white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
            
          
!
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