Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container error-page">
  <div class="content">
    <div class="cloud-set">
      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/772965/cloud-set.svg" class="svg" />
      <div class="error-number">404</div>
      <div class="error-msg">The page you're looking for was not found.</div>
    </div>
    <div class="cloud-alt">
      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/772965/cloud-alt.svg" class="svg">
      <div class="cta">
        <p>Let's get you back on track</p>
        <p><a href="http://app.apruve.com">Back to Apruve</a></p>
      </div>
    </div>
    <div class="cloud-little">
      <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/772965/cloud-little.svg" class="svg">
    </div>
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/772965/binoculars.svg" class="svg binoculars">
  </div><!-- .content -->
</div>

    
    
              
            
!

CSS

              
                // # Media Queries

$nav-width:      220px;
$nav-breakpoint: 767px;

$media-medium: 550px;
$media-large:  767px;

@mixin media-medium {
  @media (min-width: $media-medium) and (max-width: $nav-breakpoint), (min-width: $nav-width + $media-medium) {
    @content;
  }
}

@mixin media-max-medium {
  @media (max-width: $media-medium), (max-width: $nav-width + $media-medium) and (min-width: $nav-breakpoint) {
    @content;
  }
}

@mixin media-large {
  @media (min-width: $media-large) and (max-width: $nav-breakpoint), (min-width: $nav-width + $media-large) {
    @content;
  }
}

@mixin media-max-large {
  @media (max-width: $media-large), (max-width: $nav-width + $media-large) and (min-width: $nav-breakpoint) {
    @content;
  }
}

$phone-width: 576px;
$tablet-width: 768px;
$laptop-width: 987px;
$desktop-width: 1200px;
$xlarge-width: 1600px;

@mixin phone {
  @media (min-width: #{$phone-width}) {
    @content;
  }
}
@mixin tablet {
  @media (min-width: #{$tablet-width}) {
    @content;
  }
}
@mixin laptop {
  @media (min-width: #{$laptop-width}) {
    @content;
  }
}
@mixin desktop {
  @media (min-width: #{$desktop-width}) {
    @content;
  }
}
@mixin xlarge {
  @media (min-width: #{$xlarge-width}) {
    @content;
  }
}

// # Variables
// Common values used throughout the application. Use “small, medium, large”
// convention for a series of variables.


// ## Colors
$color-offwhite: #f7f8fa; // Light gray
$color-primary:  #1784b0; // Blue
$color-success:  #5B921A; // Green
$color-success-dark: #3F6511; //Dark Green
$color-warning:  #A94442; // Red
$color-warning-dark: #833634; //Dark Red

$color-row-highlight: #dcf2fa; //92% Opacity on Apruve Blue
$color-row-highlight-alt: #CBDDE4;

/* primary */
$apruve-blue: #1784b0;
$apruve-blue-lighten: lighten($apruve-blue, 10%);
$apruve-blue-darken: darken($apruve-blue, 10%);
$white: #fff;

/* secondary */
$medium-blue: #0096db;
$medium-blue-lighten: lighten($medium-blue, 10%);
$medium-blue-darken: darken($medium-blue, 10%);
$orange: #f68c1f;
$orange-lighten: lighten($orange, 10%);
$orange-darken: darken($orange, 10%);

/* tertiary */
$dark-gray: #666;
$dark-gray-lighten: lighten($dark-gray, 10%);
$dark-gray-darken: darken($dark-gray, 10%);
$gray: #999;
$gray-lighten: lighten($gray, 10%);
$gray-darken: darken($gray, 10%);
$light-gray: #e1e1e1;
$light-gray-lighten: lighten($light-gray, 10%);
$light-gray-darken: #c8c8c8;
$green: #76bd22;
$green-lighten: lighten($green, 10%);
$green-darken: darken($green, 10%);
$purple: #b41a83;
$purple-lighten: lighten($purple, 10%);
$purple-darken: darken($purple, 10%);
$red: #A94442;

//## Chart Colors

$chart-color-1: #116283; //Apruve Blue darken
$chart-color-2: #1784b0; //Apruve Blue
$chart-color-3: #5b921a; //Green darken
$chart-color-4: #96c7db; //Light Blue
$chart-color-5: #a6d46f; //Light Green
$chart-color-6: #e1e1e1; //Light gray

/* color helper classes */

.apruve-blue-bg { background-color: $apruve-blue !important; }
.apruve-blue-bg.lighten { background-color: $apruve-blue-lighten !important; }
.apruve-blue-bg.darken { background-color: $apruve-blue-darken !important; }
.apruve-blue-text { color: $apruve-blue !important; }
.apruve-blue-text.lighten { color: $apruve-blue-lighten !important; }
.apruve-blue-text.darken { color: $apruve-blue-darken !important; }
.apruve-blue-border { border-color: $apruve-blue !important; }
.apruve-blue-border.lighten { border-color: $apruve-blue-lighten !important; }

.white-bg { background-color: $white !important; }
.white-text { color: $white !important; }
.white-border { border-color: $white !important; }

.medium-blue-bg { background-color: $medium-blue !important; }
.medium-blue-bg.lighten { background-color: $medium-blue-lighten !important; }
.medium-blue-bg.darken { background-color: $medium-blue-darken !important; }
.medium-blue-text { color: $medium-blue !important; }
.medium-blue-text.lighten { color: $medium-blue-lighten !important; }
.medium-blue-text.darken { color: $medium-blue-darken !important; }
.medium-blue-border { background-color: $medium-blue !important; }

.orange-bg { background-color: $orange !important; }
.orange-bg.lighten { background-color: $orange-lighten !important; }
.orange-bg.darken { background-color: $orange-darken !important; }
.orange-text { color: $orange !important; }
.orange-text.lighten { color: $orange-lighten !important; }
.orange-text.darken { color: $orange-darken !important; }
.orange-border { border-color: $orange !important; }

.dark-gray-bg { background-color: $dark-gray !important; }
.dark-gray-bg.lighten { background-color: $dark-gray-lighten !important; }
.dark-gray-bg.darken { background-color: $dark-gray-darken !important; }
.dark-gray-text { color: $dark-gray !important; }
.dark-gray-text.lighten { color: $dark-gray-lighten !important; }
.dark-gray-text.darken { color: $dark-gray-darken !important; }
.dark-gray-border { border-color: $dark-gray !important; }

.gray-bg { background-color: $gray !important; }
.gray-bg.lighten { background-color: $gray-lighten !important; }
.gray-bg.darken { background-color: $gray-darken !important; }
.gray-text { color: $gray !important; }
.gray-text.lighten { color: $gray-lighten !important; }
.gray-text.darken { color: $gray-darken !important; }
.gray-border { border-color: $gray !important; }

.light-gray-bg { background-color: $light-gray !important; }
.light-gray-bg.lighten { background-color: $light-gray-lighten !important; }
.light-gray-bg.darken { background-color: $light-gray-darken !important; }
.light-gray-text { color: $light-gray !important; }
.light-gray-text.lighten { color: $light-gray-lighten !important; }
.light-gray-text.darken { color: $light-gray-darken !important; }
.light-gray-border { border-color: $light-gray !important; }

.green-bg { background-color: $green !important; }
.green-bg.lighten { background-color: $green-lighten !important; }
.green-bg.darken { background-color: $green-darken !important; }
.green-text { color: $green !important; }
.green-text.lighten { color: $green-lighten !important; }
.green-text.darken { color: $green-darken !important; }
.green-border { border-color: $green !important; }

.purple-bg { background-color: $purple !important; }
.purple-bg.lighten { background-color: $purple-lighten !important; }
.purple-bg.darken { background-color: $purple-darken !important; }
.purple-text { color: $purple !important; }
.purple-text.lighten { color: $purple-lighten !important; }
.purple-text.darken { color: $purple-darken !important; }
.purple-border { border-color: $purple !important; }

.color-offwhite-text { color: $color-offwhite;}
.color-offwhite-bg { background-color: $color-offwhite; }
.color-success-text { color: $color-success; }
.color-success-bg { background-color: $color-success; }
.color-success-dark-text { color: $color-success-dark; }
.color-success-dark-bg { background-color: $color-success-dark; }
.color-warning-text { color: $color-warning; }
.color-warning-bg { background-color: $color-warning; }
.color-warning-dark-text { color: $color-warning-dark; }
.color-warning-dark-bg { background-color: $color-warning-dark; }

//## Chart Colors

$chart-color-1: #116283; //Apruve Blue darken
$chart-color-2: #1784b0; //Apruve Blue
$chart-color-3: #5b921a; //Green darken
$chart-color-4: #96c7db; //Light Blue
$chart-color-5: #a6d46f; //Light Green
$chart-color-6: #e1e1e1; //Light gray

.chart-color-1-bg { background-color: $chart-color-1; }
.chart-color-1-text { color: $chart-color-1; }
.chart-color-2-bg { background-color: $chart-color-2; }
.chart-color-2-text { color: $chart-color-2; }
.chart-color-3-bg { background-color: $chart-color-3; }
.chart-color-3-text { color: $chart-color-3; }
.chart-color-4-bg { background-color: $chart-color-4; }
.chart-color-4-text { color: $chart-color-4; }
.chart-color-5-bg { background-color: $chart-color-5; }
.chart-color-5-text { color: $chart-color-5; }
.chart-color-6-bg { background-color: $chart-color-6; }
.chart-color-6-text { color: $chart-color-6 }

.legend-border {
  &.chart-color-1 { border-color: $chart-color-1 !important; }
  &.chart-color-2 { border-color: $chart-color-2 !important; }
  &.chart-color-3 { border-color: $chart-color-3 !important; }
  &.chart-color-4 { border-color: $chart-color-4 !important; }
  &.chart-color-5 { border-color: $chart-color-5 !important; }
  &.chart-color-6 { border-color: $chart-color-6 !important; }
}





// ## Corners
$corners-small: 4px;


// ## Content colors
// Used for content like text and borders. Transparent values are used to ensure
// legibility against various background colors.
$content-xxlight: rgba(0, 0, 0, 0.04);
$content-xlight:  rgba(0, 0, 0, 0.12);
$content-light:   rgba(0, 0, 0, 0.38);
$content-medium:  rgba(0, 0, 0, 0.54);
$content-dark:    rgba(0, 0, 0, 0.87);
$content-xdark:   rgba(0, 0, 0, 1);

$content-inverse-xlight: rgba(255, 255, 255, 0.12);
$content-inverse-light:  rgba(255, 255, 255, 0.50);
$content-inverse-medium: rgba(255, 255, 255, 0.70);
$content-inverse-dark:   rgba(255, 255, 255, 1);


// ## Font Families

@import url('https://fonts.googleapis.com/css?family=Roboto');

$font-family-default: 'Roboto', Verdana, Arial, sans-serif !default;
$font-family-sans-serif:  'Roboto', Verdana, Arial, sans-serif !default;
$font-family-base: 'Roboto', Verdana, Arial, sans-serif !default;
$font-family-serif:       Georgia, "Times New Roman", Times, serif !default;
$font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace !default;

// ## Font Sizes
$font-xxsmall: 10px;
$font-xsmall:  12px;
$font-small:   14px;
$font-medium:  16px;
$font-large:   20px;
$font-xlarge:  24px;
$font-xxlarge: 32px;

.font-size--xxsmall { font-size: $font-xxsmall; }
.font-size--xsmall { font-size: $font-xsmall; }
.font-size--small { font-size: $font-small; }
.font-size--medium { font-size: $font-medium; }
.font-size--large { font-size: $font-large; }
.font-size--xlarge { font-size: $font-xlarge; }
.font-size--xxlarge { font-size: $font-xxlarge; }



// ## Line Heights
$line-height-small:  16px;
$line-height-medium: 24px;
$line-height-large:  32px;
$line-height-xlarge: 40px;


// ## Shadows
$shadow-small: 0 2px 3px 0 rgba(0, 0, 0, 0.25);

$shadow-inset-small: inset $shadow-small;


// ## Spacing
$spacing-xxsmall:  4px;
$spacing-xsmall:   8px;
$spacing-small:   16px;
$spacing-medium:  24px;
$spacing-large:   32px;
$spacing-xlarge:  48px;
$spacing-xxlarge: 96px;


// ## Spacing Unit
// Can be multiplied by whole numbers to make values not covered by the default
// spacing values above.
$spacing-unit: 12px;


// ## Navigation colors (v2)

$nav-bg: #116283;
$notch-color: #F7F8FA;
$subnav-bg: #0C4E69;

// # Font Size

@mixin font-xsmall {
  font-size: $font-xsmall;
  line-height: $line-height-small;
}

@mixin font-small {
  font-size: $font-small;
  line-height: $line-height-small;
}

@mixin font-medium {
  font-size: $font-medium;
  line-height: $line-height-medium;
}

@mixin font-large {
  font-size: $font-large;
  line-height: $line-height-medium;
}

@mixin font-xlarge {
  font-size: $font-xlarge;
  line-height: $line-height-large;
}

@mixin font-xxlarge {
  font-size: $font-xxlarge;
  line-height: $line-height-xlarge;
}

//## --- SCSS SPECIFIC TO THIS PEN --- ##//

.error-page {
  background: #CBDDE4 url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/772965/mountain-with-flag.svg") no-repeat left bottom;
  background-position: right 0px bottom -300px;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  @include tablet {
    background-color: #4D4D4D;
    background-image: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
  }
  .content {
    @include tablet {
      max-width: 678px;
      min-width: 678px;
      position: relative;
    }
  }
  .cloud-set {
    position: absolute;
    left: 5%;
    top: -10px;
    @include tablet {
      top: 40px;
      left: 60px;
    }
  }
  .error-number {
    color: #CBDDE4;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 45px;
  }
  .error-msg {
    position: absolute;
    top: 100px;
    left: 60px;
    width: 175px;
  }
  .cloud-alt {
      position: absolute;
      right: 37%;
      top: 40%;
      @include tablet {
        left: 450px;
        top: 200px;
      }
    }
    .cta {
      position: absolute;
      width: 125px;
      top: 32px;
      left: 30px;
      p {
        font-size: 14px;
        margin: 0;
        text-align: center;
      }
      a {
        font-size: 18px;
        text-decoration: underline;
      }
    }
  .cloud-little {
    position: absolute;
    bottom: 100px;
    right: 50px;
    @include tablet {
      display: none;
    }
  }
  .binoculars {
    display: none;
    @include tablet {
      display: block;
    }
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console