css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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="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>
          <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>
                <p class="semi">Standard Resume, Phone Call, LinkedIn Profile</p>
              </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">
                  Claim This Order Now</button>
              <button class="text-button">Skip this order</button>
            </div>
          </div>
        </div>
      </div>
            
          
!
            
              //Colors 
$standardTextColor: #2c2f3e;
$labelColor: #6D6E71;
$actionColor: #3F51B5;
$white: #fff;
$warning: #F5A623;
$error: #CE0505;

//Text Styles 
$font-sans: 'Montserrat', sans-serif;

@mixin bodyText {
    font-family: $font-sans;
    font-size: 1em;
    line-height: 1.5em;
    font-weight: 300;
    margin: 0.5em 0em;
    color: $standardTextColor;
}
@mixin labelText {
    font-size: 1em;
    line-height: 1.25em;
    margin: 0.5em 0em;
    color: $labelColor;
}
@mixin offerHeadline {
    font-size: 2em;
    line-height: 1.35em;
    font-weight: 800;
    margin: 0.5em 0em;
    color: $standardTextColor;
    max-width: 750px;
}
@mixin offerSubheadline {
    font-size: 1em;
    line-height: 1.5em;
    margin: .5em 0em 2em;
    color: $standardTextColor;
    max-width: 750px;
}
@mixin semiText {
    font-weight: 400;
}
@mixin warningText {
    font-weight: 400;
    color: $warning;
}
@mixin errorText {
    font-weight: 400;
    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: 28px;
    height: 28px;
    margin: 12px 16px 12px 0px;
}
.icon-dueDate {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin: 12px 16px 12px 0px;
}

//Buttons 
.button {
    background: $actionColor;
    color: $white;
    font-size: 1.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;
    }
}

//General styles
body {
  background: $standardTextColor;
  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;
}
.offer-banner {
    padding: 2em 4em;
    position: relative;
    background: $white;
    border-radius: 6px;
    box-shadow: (rgba(#000, 0.25) 1px 10px 50px 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: 45%;
    -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 3s 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: 400px;
    width: auto;
    transition: all 0.3s;
    cursor: pointer;
    transition: all 0.5s;
    
    &:hover {
        transform: scale(1.1);
    }
}
.offer-headline {
    @include offerHeadline;
}
.offer-details {
    width: 100%;
    
    .offer-headline {
        @include offerHeadline;
        margin-top: 0px;
    }
}
.order-details {
    margin-bottom: 30px;
    @include flex;
    @include flex-direction(column);
    @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); 
}
            
          
!
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