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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                .go-vote
   %h1 GET OUT AND VOTE
   %h3 Tuesday, November 8th
.container-fluid
   .row
      .col-sm-4
         .header
            %h2
               The Issues
         %ul
            %li
               %p.issue
                  Full Employment
            %li
               %p.issue
                  Minimum Wage
            %li
               %p.issue
                  TPP
            %li
               %p.issue
                  Obamacare
            %li
               %p.issue
                  Free Higher Education
            %li
               %p.issue
                  Student Debt
            %li
               %p.issue
                  Legalize Marijuana
            %li
               %p.issue
                  Fracking
            %li
               %p.issue
                  Cut Overblown Pentagon Budget
            %li
               %p.issue
                  Offshore Drilling
            %li
               %p.issue
                  Dakota Access Pipeline
            %li
               %p.issue
                  Path To Citizenship
            %li
               %p.issue
                  Overturn Citizens United
            %li
               %p.issue
                  Gun Background Checks
            %li
               %p.issue
                  Label GMOs
            %li
               %p.issue
                  Abortion Rights
            %li
               %p.issue
                  Private Prisons
            %li
               %p.issue
                  Break Up Big Banks
            %li
               %p.issue
                  Lobbyist Money For Compaign
            %li
               %p.issue
                  Death Penalty
            %li
               %p.issue
                  Binding Climate Treaty
            %li
               %p.issue
                  Unconditional Military Aid to Israel
            %li
               %p.issue
                  Threaten Russia With No-Fly Zone
      .col-sm-2
         .profile-image.trump
            %p.name Donald Trump
         %ul
            %li
               %p.issue
                  No Support
            %li
               %p.issue
                  $10
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Repeal
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Income-Based Cap
            %li
               %p.issue
                  No Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  No Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Takes
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
      .col-sm-2
         .profile-image.clinton
            %p.name Hillary Clinton
         %ul
            %li
               %p.issue
                  No Support
            %li
               %p.issue
                  $12
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Continue
            %li
               %p.issue
                  For Some
            %li
               %p.issue
                  Adjust Interest Rates
            %li
               %p.issue
                  No Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Limited Support
            %li
               %p.issue
                  No Position
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Takes
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
      .col-sm-2
         .profile-image.stein
            %p.name Jill Stein
         %ul
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  $15
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Medicare For All
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Cancel
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Refused
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
      .col-sm-2
         .profile-image.johnson
            %p.name Gary Johnson
         %ul
            %li
               %p.issue
                  No Support
            %li
               %p.issue
                  Eliminate
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Repeal
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  No Help
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Support
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Takes
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
            %li
               %p.issue
                  Oppose
   %p Based off <a href="https://www.facebook.com/drjillstein/photos/a.267467419960122.70392.240944029279128/1334958323211021/?type=3&theater">this image</a> Jill Stein posted on her <a href="https://www.facebook.com/drjillstein/">Official Facebook</a> page.
   %p.small I've changed their color scheme in order to keep this a bit more neutral.
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Raleway:200,300,400,700');
html, body, .overlay {
   height:100%;
   width:100%;
}
body {
   background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/157557/flag.jpg);
   background-size:cover;
   background-position:50% 50%;
   background-attachment:fixed;
   text-align:center;
   color:white;
   font-family: 'Raleway', sans-serif;
   letter-spacing:2px;
}
img {
   width:100%;
}
h1 {
   font-weight:700;
}
h3 {
   font-weight:200;
}
.name {
   transform:translateY(-53px);
   width:100%;
   background:linear-gradient(rgba(black, 0), rgba(black, 1));
   font-weight:700;
   padding:15px 0;
   margin:0;
   font-size:1.2em;
   position:absolute;
   overflow:hidden;
   width:100%;
   bottom:-53px;
   left:0;
}
.go-vote {
   height:70%;
   background-color:rgba(black,.5);
   h1, h3 {
      position:relative;
      top:50%;
      margin-top:0;
      transform:translateY(-50%);
   }
}
.header {
   height:200px;
   margin-top:15px;
   overflow:hidden;
   width:100%;
   background-color:rgba(black, .5);
}
h2 {
   position:relative;
   top:50%;
   transform:translateY(-50%);
   margin:0;
   font-weight:200;
   display:block;
   overflow:hidden;
}
.profile-image {
   margin-top:15px;
   background-size:cover;
   background-position:50% 50%;
   background-repeat:no-repeat;
   height:200px;
   overflow:hidden;
   position:relative;
   &.trump {
      background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/157557/donald.jpg');
   }
   &.clinton {
      background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/157557/hillary.jpg');
   }
   &.stein {
      background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/157557/jill.jpg');
   }
   &.johnson {
      background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/157557/gary.jpg');
   }
}
ul {
   li {
      margin:2px 0;
      font-size:.9em;
      height:50px;
      padding:0 5px;
      position:relative;
      background-color:rgba(black, .5);
      p.issue {
         position:relative;
         top:50%;
         transform:translateY(-50%);
      }
   }
}
.profile-image ~ ul li {
   background-color:rgba(#F3B748,.5);
}
              
            
!

JS

              
                $('p.issue:contains(Support)').parent().css('background-color', 'rgba(71,122,65, .5)');
$('p.issue:contains(Oppose),p.issue:contains(No Support)').parent().css('background-color', 'rgba(209, 50, 80, .5)');
              
            
!
999px

Console