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

              
                .container-fluid
  .row.cards
    .card-single.card-offshore.col-md-12.col-lg-6
      .row
        .col-xs-12.col-sm-6.card-img.offshore-img2
          #offshoreCharter.carousel.slide{"data-ride" => "carousel"}
            %ol.carousel-indicators
              %li.active{"data-target" => "#offshoreCharter", "data-slide-to" => "0"}
              %li{"data-target" => "#offshoreCharter", "data-slide-to" => "1"}
              %li{"data-target" => "#offshoreCharter", "data-slide-to" => "2"}
            .carousel-inner
              .carousel-item.active{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-offshore-01.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-offshore-02.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-offshore-03.jpg');"}
        .col-xs-12.col-sm-6.card-content
          .card-height.d-flex.align-items-center.justify-content-center
            .card-text
              %h2 Offshore Fishing Charters
              %p Offshore six to eight hour tours are available. These trips can consist of trolling for mahi, sailfish, kingfish, & Wahoo.
              %p We also offer offshore bottom fishing trips for grouper, snapper, seabass, cobia, and flounder.
              %button Learn More
    .card-single.card-inshore.col-md-12.col-lg-6
      .row
        .col-xs-12.col-sm-6.card-img.order-md-1.order-lg-0
          #inshoreCharter.carousel.slide{"data-ride" => "carousel"}
            %ol.carousel-indicators
              %li.active{"data-target" => "#inshoreCharter", "data-slide-to" => "0"}
              %li{"data-target" => "#inshoreCharter", "data-slide-to" => "1"}
              %li{"data-target" => "#inshoreCharter", "data-slide-to" => "2"}
            .carousel-inner
              .carousel-item.active{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yoellow-dawg-fishing-inshore-01.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-inshore-02.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-inshore-03.jpg');"}
        .col-xs-12.col-sm-6.card-content.order-md-0.order-lg-1
          .card-height.d-flex.align-items-center.justify-content-center
            .card-text
              %h2 Inshore Fishing Charters
              %p Praesent et purus mi. Morbi hendrerit magna placerat risus imperdiet pharetra. Duis mi nisi, tempus non aliquet sed, iaculis dictum justo. Donec vulputate dignissim quam, quis varius purus. In dapibus libero ligula, sit amet ultrices lectus venenatis et.
              %button Learn More
    .card-single.card-bird-watching.col-md-12.col-lg-6
      .row
        .col-xs-12.col-sm-6.card-content.order-md-1.order-lg-0
          .card-height.d-flex.align-items-center.justify-content-center
            .card-text
              %h2 Hook N Cook
              %p We specialize in the full experience by putting you on the fish and then work with local restaurants to cook your catch!
              %button Learn More
        .col-xs-12.col-sm-6.card-img.order-md-0.order-lg-1
          #birdTour.carousel.slide{"data-ride" => "carousel"}
            %ol.carousel-indicators
              %li.active{"data-target" => "#birdTour", "data-slide-to" => "0"}
              %li{"data-target" => "#birdTour", "data-slide-to" => "1"}
              %li{"data-target" => "#birdTour", "data-slide-to" => "2"}
            .carousel-inner
              .carousel-item.active{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-eat-what-you-catch-01.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-eat-what-you-catch-02.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-eat-what-you-catch-03.jpg');"}
    .card-single.card-manatee-tour.col-md-12.col-lg-6
      .row
        .col-xs-12.col-sm-6.card-content
          .card-height.d-flex.align-items-center.justify-content-center
            .card-text
              %h2 Private Sunset Wildlife Tours
              %p These tours are a fun activity for families and individuals wanting a special, memorable experience. Just show up at the specified time, bring a camera, snacks and beverages ( Beer & wine is permitted ). Tours run about two hours long and give customers many opportunities to see local populations and pods of dolphins. 
              %button Learn More
        .col-xs-12.col-sm-6.card-img
          #manateeTour.carousel.slide{"data-ride" => "carousel"}
            %ol.carousel-indicators
              %li.active{"data-target" => "#manateeTour", "data-slide-to" => "0"}
              %li{"data-target" => "#manateeTour", "data-slide-to" => "1"}
              %li{"data-target" => "#manateeTour", "data-slide-to" => "2"}
            .carousel-inner
              .carousel-item.active{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-wildlife-dolphin.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-wildlife-manatee.jpg');"}
              .carousel-item{:style => "background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/yellow-dawg-fishing-wildlife-bird.jpg');"}
 
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Anton|Open+Sans:300,400,600,700');

$yellow: #ffca28;
$grey: #212121;
$white: #fff;
$cardHeight: 550px;

html, body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  line-height: 24px;
  font-size: 16px;
}

h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
}

button {
  cursor: pointer;
  background: $yellow;
  border: 0;
  padding: 7px 40px;
  color: $white;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  margin-top: 20px;
  transition: all .5s ease-in-out;
  
  &:hover {
    background: $white;
    color: $grey;
  }
}

.cards {
  background: $grey;
  
  &:hover 
    .card-single {
      opacity: 0.15;
    }
}

.cards .card-single {
  background: $grey;
  transition: opacity .5s ease-in-out;
  
  &:hover {
    opacity: 1;
  }
}

.card-content {
  height: $cardHeight;
  padding: 40px;
  color: $white;
  background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/319606/stripe-pattern.png');
  
  h2 {
    color: $yellow;
    margin-bottom: 20px;
  }
}

.card-text {
  max-width: 600px;
}

.card-height {
  height: 100%;
}

.card-img {
  padding: 0;
  
  .carousel-item {
    height: $cardHeight;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

.carousel-indicators li {
  height: 10px;
  width: 10px;
  border-radius: 50%;
}
              
            
!

JS

              
                
              
            
!
999px

Console