Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                %section.landing
  %video{:autoplay=>"true", :loop=>"true", :muted=>"true", :poster=>"", :src=>"https://player.vimeo.com/external/174002664.hd.mp4?s=a9462820bdba3dee151d2ff32e4cbcebd982d77e&profile_id=119&oauth2_token_id=57447761"}
  .dim
  .text
    %h1.animated.slideInLeft
      %span Digital services don't have to be
      %br
      %span "like a box of chocolates."
%section.services
  .container-fluid
    .underlined-title
      %div
        %h1 WHAT WE DO
      %hr
    .col-md-4.col-sm-12.col-xs-12.service
      .col-xs-2
        %span.fa.fa-pencil.icon
      .col-xs-10
        %div
          %h4.serviceName Branding
        %div
          %p.serviceInfo Separate yourself from your competitiors. Help your customers understand what you do and why.
    .col-md-4.col-sm-12.col-xs-12.service
      .col-xs-2
        %span.fa.fa-code.icon
      .col-xs-10
        %div
          %h4.serviceName Web Design
        %div
          %p.serviceInfo We can give your users an engaging experience that keeps them on your site longer.
    .col-md-4.col-sm-12.col-xs-12.service
      .col-xs-2
        %span.fa.fa-comments-o.icon
      .col-xs-10
        %div
          %h4.serviceName Social Media
        %div
          %p.serviceInfo Connect with your consumers in the languages they understand. Twitter, Facebook, Instagram, etc.
    .col-md-4.col-sm-12.col-xs-12.service
      .col-xs-2
        %span.fa.fa-search.icon
      .col-xs-10
        %div
          %h4.serviceName SEO
        %div
          %p.serviceInfo Let us get you to the top of the list, where your customers can see you first. The right words count.
    .col-md-4.col-sm-12.col-xs-12.service
      .col-xs-2
        %span.fa.fa-mobile.icon
      .col-xs-10
        %div
          %h4.serviceName Mobile Apps
        %div
          %p.serviceInfo More than half of your users are on mobile.  Why aren't you?
    .col-md-4.col-sm-12.col-xs-12.service
      .col-xs-2
        %span.fa.fa-bookmark.icon
      .col-xs-10
        %div
          %h4.serviceName Logos
        %div
          %p.serviceInfo We'll create stunning visual imagery that will reinforce your brand to your customers.
%section.testimonials.container-fluid
  %br
  %h1 Testimonials
  .container
    %br
    %blockquote
      %p "Great!" - Bill Gates
    %blockquote
      %p "Spectacular!" - Elon Musk
    %br
%section.contact.container-fluid
  %form.container.col-xs-12{:autocomplete=>"off"}
    %br
    %h1 Contact Us
    %br
    %label.col-xs-12
      Name
    %input.col-xs-12{:type => "text", :name => "name", :value => ""}
    %label.col-xs-12
      Email
    %input.col-xs-12{:type => "text", :name => "email", :value => ""}
    %label.col-xs-12
      Message
    %textarea.message
              
            
!

CSS

              
                // Vars
$green: #4CAF50;

//Override Defaults
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
}
// h1, h2, h3, h4, h5, h6 {
//   margin: 0;
// }

//Style
body {
  font-family: 'Tauri', Helvetica, Arial, sans-serif;
  color: white;
  
  .landing {
    height: 100%;
    width: 100%;
    overflow: hidden;
    
    video {
      height: 100%;
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: -2;
      object-fit: cover;
    }
    .dim {
      height: 100%;
      width: 100%;
      opacity: 0.6;
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
      background-color: black;
    }
    .text {
      position: relative;
      top: calc(50% - 2em);
      text-align: center;
    }
  }
  .services {
    padding: 1rem 0 0.5rem 0;
    background-color: #8E24AA;
    
    .service {
      .serviceName {}
      .serviceName:hover {
        color: black;
        cursor: pointer;
      }
      .serviceInfo {}
      .icon {color: #4CAF50;}
    }
  }
  .testimonials {
    background-color: #222;
  }
  .contact {
    width: 100%;
    background-color: #343434;
    
    form {
      height: 100%;
      width: 100%;
      
      label {
        // height: 2em;
        padding-left: 2px;
      }
      
      input[type="text"] {
        border: 2px solid black;
        background-color: white;
        height: 2em;
        margin-bottom: 1em;
        outline: none;
        color: black;
      }
      .message {
        // height: 5em;
        border: 2px solid black;
        background-color: white;
        width: 100%;
        height: 5em;
        margin-bottom: 1em;
        outline: none;
        color: black;
        
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console