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

              
                  <header>
    <a class="header__nav_btn">
      <i class="fa fa-2x fa-bars"></i>
    </a>
    <div class="container">
      <div class="header__left">
        <div class="logo">
          <a href="#">
            <!--<img src="https://f.cl.ly/items/3o1L3t353c3w1K2m0J0e/vc_logo_lockup-01-01.svg" width="299" height="48">-->
            <img src="//placehold.it/299x48">
          </a>
        </div>
      </div>
      <div class="header__right">
        <!--<div class="search">
          <form method="get" id="search" class="search-form" action="/">
            <input type="search" class="search__field" name="s" id="s" placeholder="Search valleychurch.eu..."/>
          </form>
        </div>-->
        <div class="navigation">
          <nav>
            <ul class="nav">
              <li class="menu menu-item">
                <a>New to Valley?</a>
              </li>
              <li class="menu menu-item">
                <a>Locations</a>
              </li>
              <li class="menu menu-item">
                <a>Church Life</a>
              </li>
              <li class="menu menu-item">
                <a>Be Empowered</a>
              </li>
              <li class="menu menu-item">
                <a>Get Involved</a>
              </li>
            </ul>
          </nav>
        </div>
      </div>
    </div>
  </header>
  <section class="hero">
    <ul id="rslider" class="rslides">
      <li>
        <a href="#">
          <!--<img src="https://cl.ly/VO7Z/hero1.jpg" alt="Welcome" title="Welcome">-->
          <video poster="https://cl.ly/VO7Z/hero1.jpg" preload loop muted>
            <source src="https://f.cl.ly/items/320Z400a3e3l47460e2Z/VC_crop.mp4" type="video/mp4"/>
          </video>
        </a>
      </li>
      <li>
        <a href="#">
          <img src="https://cl.ly/VNTE/6hw.jpg" alt="Six Hot Weekends" title="Six Hot Weekends">
        </a>
      </li>
      <li>
        <a href="#">
          <img src="https://cl.ly/VNzO/lvn.jpg" alt="Leadership Vision Night" title="Leadership Vision Night">
        </a>
      </li>
    </ul>
  </section>
  <section class="main" role="main">
    <div class="rslides-nav container">
      <ul id="rslides-nav">
        <li><a href="#">Welcome</a></li>
        <li><a href="#">Six Hot Weekends</a></li>
        <li><a href="#">Leadership Vision Night</a></li>
      </ul>
    </div>
    <div class="content content--home">
      <div class="ctas">
        <div class="cta cta--sunday">
          <a href="#">
            <span class="caption">Sundays</span>
          </a>
        </div>
        <div class="cta cta--pastors">
          <a href="#">
            <span class="caption">Senior Pastors</span>
          </a>
        </div>
        <div class="cta cta--find">
          <a href="#">
            <span class="caption">Find Us</span>
          </a>
        </div>
      </div>
    </div>
    <div class="latest">
      <div class="latest__blog">
        <h1>The Latest</h1>
        <div class="post">
          <figure class="featured">
            <img src="http://valleychurch.eu/wp-content/uploads/2012/08/believe.jpg">
          </figure>
          <article>
            <h2 class="title"><a href="#">The Answer Really Is Discipline</a></h2>
            <p class="meta milli">
              <span class="meta__category">
                <a href="http://valleychurch.eu/thelatest/category/blogs" title="View all posts in Blogs" rel="category tag">Blogs</a>
              </span>
              &bull;
              <span class="meta__date">
                <time datetime="2014-05-07T13:51:47+00:00">May 7th, 2014</time>
              </span>
              &bull;
              <span class="meta__author">
                By <span class="meta__author__name">Dave Scholes</span>
              </span>
            </p>
            <p>I can’t remember how many times I’ve been told, or told other people, that reading the Bible is key to living a godly life, and doing it daily is something all Christians should endeavour to do.</p>
            
            <p>I think many of us are waiting for some sort of light-bulb moment, some sort of switch that’s flicked that starts us off on a life-time of consistent, life-giving, Bible-reading.</p>
            
            <p>
              <a href="http://valleychurch.eu/thelatest/2014/05/reflections-on-the-psalms#more-7150" class="more-link">Read more</a>
            </p>
          </article>
        </div>
      </div>
      <div class="latest__msg">
        <h1>Messages</h1>
        <div class="post">
          <figure class="featured">
            <img src="http://valleychurch.eu/wp-content/uploads/2014/01/vc_icon_new.png">
          </figure>
          <article>
            <h3 class="epsilon title"><strong>Senior Pastor Ed Carter &#8211; If All I Had Time for Was a Quick Coffee</strong></h3>
            <p>Sunday 4th May 10:30am</h3>
            <audio class="powerpress-mejs-audio" controls="controls" src="http://valleychurch.eu/wp-content/uploads/2014/05/4th-May-AM_mixdown.mp3" preload="none">
              <a href="http://valleychurch.eu/wp-content/uploads/2014/05/4th-May-AM_mixdown.mp3" title="Play" target="_blank"><img src="http://valleychurch.eu/wp-content/plugins/powerpress/play_audio.png" title="Play" alt="Play" style="border:0;" /></a>
            </audio>
          </article>
        </div>
        <div class="post">
          <figure class="featured">
            <img src="http://valleychurch.eu/wp-content/uploads/2014/01/vc_icon_new.png">
          </figure>
          <article>
            <h3 class="epsilon title"><strong>Lisa Greenow &#8211; Stronger In The Battle</strong></h3>
            <p>Sunday 4th May 6pm</p>
            <audio class="powerpress-mejs-audio" controls="controls" src="http://valleychurch.eu/wp-content/uploads/2014/05/4th-May-PM_mixdown.mp3" preload="none">
              <a href="http://valleychurch.eu/wp-content/uploads/2014/05/4th-May-PM_mixdown.mp3" title="Play" target="_blank"><img src="http://valleychurch.eu/wp-content/plugins/powerpress/play_audio.png" title="Play" alt="Play" style="border:0;" /></a>
            </audio>
          </article>
        </div>
      </div>
    </div>
 </section>
              
            
!

CSS

              
                @import "compass/css3";

$base-size: 1rem;
$bp-huge: 90 * $base-size;
$bp-desktop: 70 * $base-size;
$bp-tablet: 48 * $base-size;
$bp-mobile: 30 * $base-size;

@mixin sans {
  font-family: "source-sans-pro", "Helvetica Neue", Arial, sans-serif;
}

*
{
  box-sizing: border-box;
}

%marginbottom,
p, h1, h2, h3, h4, h5, h6
{
  margin-bottom: 1rem;
}

strong, b
{
  font-weight: bold;
}

%cf
{
  *zoom: 1;
  
  &:before,
  &:after
  {
    content: " ";
    display: table;
  }
  
  &:after
  {
    clear: both;
  }
}

%left
{
  float: left;
}

%right
{
  float: right;
}

%threequarters
{
  width: 75%;
}

%twothirds
{
  width: 66.66%;
}

%half
{
  width: 50%;
}

%third
{
  width: 33.33%;
}

%quarter
{
  width: 25%;
}

audio
{
  width: 100%;
}

.container
{
  @extend %cf;
  width: 100%;
  max-width: 90rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Type */
a
{
  color: #009ca6;
  text-decoration: none;
  @include single-transition(color, 0.2s, ease-in-out);
  
  &:hover,
  &:focus
  {
    color: darken(#009ca6, 10%);
  }
}

.btn
{
  display: inline-block;
  color: white;
  padding: 0.5rem 1rem;
  background: #009ca6;
}

h1, .alpha
{
  font-size: $base-size * 2.25;

  @media screen and (max-width: 50rem)
  {
    font-size: $base-size * 1.75;
  }
}

h2, .beta
{
  font-size: $base-size * 2;

  @media screen and (max-width: 50rem)
  {
    font-size: $base-size * 1.5;
  }
}

h3, .gamma
{
  font-size: $base-size * 1.75;

  @media screen and (max-width: 50rem)
  {
    font-size: $base-size * 1.25;
  }
}

h4, .delta
{
  font-size: $base-size * 1.5;

  @media screen and (max-width: 50rem)
  {
    font-size: $base-size * 1.125;
  }
}

h5, .epsilon
{
  font-size: $base-size * 1.25;

  @media screen and (max-width: 50rem)
  {
    font-size: $base-size * 1.125;
  }
}

h6, .zeta
{
  font-size: $base-size;
}

h1, h2, h3, h4, h5, h6,
.alpha, .beta, .gamma, .delta, .epsilon, .zeta
{
  text-rendering: optimizeLegibility;
  @include single-transition(font-size, 0.1s, ease-in-out);
}

h1, h2, h3, h4, h5, h6
{
  font-style: normal;
  font-weight: 300;
  letter-spacing: -1px;
}

/* Main */

html
{
  font-size: 16px;
}

body
{
  @include sans;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5;
  background: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

header
{
  position: absolute;
  z-index: 3;
  max-width: 100%;
  top: 0;
  right: 0;
  left: 0;
  
  padding-top: 1rem;
  padding-bottom: 1rem;
  
  @media screen and (max-width: $bp-mobile) {
    position: relative;
    background: #333;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .header__nav_btn
  {
    display: none;
    z-index: 10;
    background: rgba(255,255,255,0.0);
    
    @media screen and (max-width: $bp-mobile) {
      position: absolute;
      display: block;
      width: 64px;
      height: 64px;
      text-align: center;
      top: 0;
      padding-top: 0.8rem;
      border-right: 1px solid rgba(255,255,255,0.25);
    }
    
    &:hover
    {
      background: rgba(255,255,255,0.25);
      cursor: pointer;
    }
    
    .fa
    {
      color: white;
    }
  }
  
  .header__left 
  {
    @extend %cf;
    @extend %left;
    
    @media screen and (max-width: $bp-mobile) {
      float: none;
      text-align: center;
    }
    
    .logo
    {
      @extend %left;
      margin-top: 0.4rem;
      font-size: 0;
      
      @media screen and (max-width: $bp-mobile) {
        float: none;
        width: 75%;
        margin: 0 auto;
      }
      
      .logo-mark
      {
        width: 3rem;
        height: 3rem;
      }
      
      .logo-word
      {
        
      }
    }
  }
  
  .header__right
  {
    @extend %cf;
    @extend %right;
    
    nav
    {
      @extend %right;
    }
  }    
}

.nav
{
  margin-right: -1rem;
  
  li
  {
    @extend %left;
    position: relative;
    
    &:hover
    {
      background: #111;
      
      & > .sub-menu
      {
        display: block;
      }
    }
    
    a
    {
      display: block;
      padding: $base-size * 0.5 $base-size;
      color: white;
      text-shadow: 0px 0px 3px #333;
      
      &:hover
      {
        cursor: default;
      }
    }
    
    .sub-menu
    {
      background: #111;
      list-style-type: none;
      z-index: 1000;
      display: none;
      position: absolute;
      top: 1rem * 3.5;
      right: 0;
      width: 1rem * 12;
      margin-left: 0;

      .menu-item
      {
        width: 100%;

        a
        {
          padding: 0.1875rem 0.75rem 0.25rem 0.75rem;
          font-weight: 400;
          font-size: 1rem * 0.875;
        }
      }

      .sub-title > a
      {
        color: darken(#CCC, 10%);
        font-size: 1rem * 0.8125;
        padding-top: 1rem * 0.375;

        &:hover
        {
          background: none;
          cursor: default;
        }
      }

      .sub-menu
      {
        display: block !important;
        position: relative;
        top: 0;
      }
    }
  }
}

.hero
{
  min-height: 10rem;
  background: #111;
  width: 100%;
  position: relative;
  
  &:after
  {
    -moz-box-shadow: inset 0 0 10em #000;  
    -webkit-box-shadow: inset 0 0 10em #000;   
    box-shadow: inset 0 0 10em #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    content: "";
  }
  
  .rslides
  {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
    
    li
    {
      -webkit-backface-visibility: hidden;
      position: absolute;
      display: none;
      width: 100%;
      left: 0;
      top: 0;
      
      &:first-child
      {
        position: relative;
        display: block;
        float: left;
      }
      
      a
      {
        display: block;
      }
    }
    
    img,
    video
    {
      display: block;
      height: auto;
      float: left;
      width: 100%;
      border: 0;
    }
  }
}

.main
{
  @extend .container;
  @extend %cf;
  position: relative;
  z-index: 10;
  margin-top: -6rem;
  
  @media screen and (max-width: $bp-mobile) {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.rslides-nav
{
  background: rgba(0, 0, 0, 0.63);
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 0.25rem 0.25rem 0 0;
  
  li
  {
    display: inline-block;
    zoom: 1;
    
    a
    {
      display: block;
      padding: 0.4rem 1rem 0.75rem;
      color: white;
      text-decoration: none;
      
      @media screen and (max-width: 60rem)
      {
        padding: 0.75rem 0.75rem 1rem;
      }
      
      &:hover
      {
        background: rgba(red(#009ca6), green(#009ca6), blue(#009ca6), 1);
      }
      
      &:before
      {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid transparent;
        margin: auto;
        top: -14px;
        position: relative;
      }
    }
    
    &.rslides_here a
    {
      background: rgba(red(#009ca6), green(#009ca6), blue(#009ca6), 1);
      
      &:before
      {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid rgba(red(#009ca6), green(#009ca6), blue(#009ca6), 1);
        margin: auto;
        top: -14px;
        position: relative;
      }
    }
  }
  
  
}

.content
{
  @extend %cf;
  position: relative;
}

.content--home
{
  .ctas
  {
    @extend %cf;
    padding-left: 0.5rem;
    padding-top: 1rem;
    padding-right: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    
    background: white;

    .cta
    {
      @extend %third;
      padding: 0 0.5rem;
      float: left;

      a
      {
        @extend %left;
        display: block;
        width: 100%;
        height: 0;
        padding-bottom: 12rem;
        overflow: hidden;
        position: relative;
        background-color: #cccccc;
        background-position: center center;
        background-size: cover;

        &:before
        {
          content: "";
          display: block;
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          @include background-image(linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.75)));
        }

        &:hover:before
        {
          @include background-image(linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.85)));
        }

        .caption
        {
          @extend .delta;
          position: absolute;
          bottom: 1rem;
          left: 1rem;
          color: white;
        }
      }
    }
    
    .cta--sunday
    {
      a
      {
        background-image: url('http://cdn2.valleychurch.eu/img/home_sunday.jpg');
      }
    }

    .cta--pastors
    {
      a
      {
        background-image: url('http://cdn2.valleychurch.eu/img/home_pastors.jpg');
      }
    }

    .cta--find
    {
      a
      {
        background-image: url('http://cdn2.valleychurch.eu/img/home_find.jpg');
      }
    }
  }
}

.post
{
  @extend %marginbottom;
  
  figure
  {
    font-size: 0;
    
    img
    {
      max-width: 100%;
    }
  }
  
  article
  {
    @extend %cf;
    padding: 2rem 2rem 1rem;
    background: white;
    
    .title
    {
      margin-bottom: 0.5rem;
    }
    
    .more-link
    {
      @extend .btn;
    }
  }
}

.latest__blog
{
  @extend %left;
  @extend %twothirds;
  padding: 0 1rem 0 0.5rem;
}

.latest__msg
{
  @extend %right;
  @extend %third;
  padding: 0 0.5rem 0 1rem;
  
  figure
  {
    background: white;
    text-align: center;
    padding-top: 2rem;
    
    img
    {
      @extend %twothirds;
    }
  }
}
              
            
!

JS

              
                $(function () {
  $("#rslider").responsiveSlides({
    auto: true,
    speed: 500,
    timeout: 8000,
    manualControls: '#rslides-nav',
    before: function() {
      //console.log("Before:");
      //console.log(this);
    },
    after: function() {
      //console.log("After:");
      //console.log(this);
    }
  });
});

$(window).load(function() {
  var video = document.getElementsByTagName("video")[0];
  video.play();
});

try{Typekit.load();}catch(e){}
              
            
!
999px

Console