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

              
                <header>
  <h1>Trespass Button <span class="amp">&amp;</span> Link Styling</h1>
  <p>Light and dark versions of standard size Trespass buttons &amp; text links</p>
</header>
<h2 class="darkhead">Main Navigation</h2>
<nav class="light">
  <ul>
    <li class="link link1"><a href="#0">women</a></li>
    <li class="link link2"><a href="#0">men</a></li>
    <li class="link link3"><a href="#0">girls</a></li>
    <li class="link link4"><a href="#0">boys</a></li>
    <li class="link link5"><a href="#0">equipment</a></li>
    <li class="link link5"><a href="#0">activities</a></li>
    <li class="link search"><a href="#"><i class="fa fa-search"></i></a></li>
  </ul>
</nav>
<nav class="dark">
  <ul>
    <li class="link link1"><a href="#0">women</a></li>
    <li class="link link2"><a href="#0">men</a></li>
    <li class="link link3"><a href="#0">girls</a></li>
    <li class="link mini-logo">
      <a href="#0"><img src="https://trespass.thesixbysix.co.uk/skin/frontend/indez/trespass/images/logo_motif.svg" /></a>
    </li>
    <li class="link link4"><a href="#0">boys</a></li>
    <li class="link link5"><a href="#0">equipment</a></li>
    <li class="link link5"><a href="#0">activities</a></li>
    <li class="link search"><a href="#"><i class="fa fa-search"></i></a></li>
  </ul>
</nav>
<h2 class="darkhead">Miscellaneous Links</h2>
<div class="misc-links">
  <ul class="col">
    <li class="link link1"><a href="#0"><i class="fa fa-facebook"></i>link with icon</a></li>
  </ul>
  <ul class="col misc-list">
    <li><a href="#0">Footer Link</a></li>
    <li><a href="#0">Footer Link</a></li>
    <li><a href="#0">Footer Link</a></li>
    <li><a href="#0">Footer Link</a></li>
    <li><a href="#0">Footer Link</a></li>
  </ul>
  <ul class="col social-list">
    <li><a href="#"><i class="fa fa-facebook"></i></a></li>
    <li><a href="#"><i class="fa fa-twitter"></i></a></li>
    <li><a href="#"><i class="fa fa-pinterest"></i></a></li>
    <li><a href="#"><i class="fa fa-vimeo-square"></i></a></li>
  </ul>
</div>
<div class="text-links-light">
  <h3>Inline text links</h3>
  <p>Next level man bun air plant heirloom, venmo cold-pressed everyday carry. Raw denim seitan leggings air plant, pork belly drinking vinegar tacos viral blog farm-to-table DIY meh ramps. Tattooed <a href="#0" class="cl-effect-3">fingerstache officia</a>    edison bulb synth prism, chambray cronut chicharrones 3 wolf moon. Asymmetrical bushwick tumblr, chicharrones cray vice vape ethical organic pork belly tacos bitters tousled. Poke actually portland artisan sriracha tacos, ramps chillwave. Enamel pin
    quinoa keffiyeh, drinking vinegar keytar fanny pack synth. Butcher VHS bushwick sriracha tbh, helvetica cardigan scenester.</p>
  <h3>Text Links on light background</h3>
  <ul class="links-light">
    <li><a href="#0">Link One</a></li>
    <li><a href="#0">Link Two</a></li>
    <li><a href="#0">Link Three</a></li>
  </ul>
  <h3>Megamenu main category links</h3>
  <ul class="links-light">
    <li class="mega"><a href="#0">Link One</a></li>
    <li class="mega"><a href="#0">Link Two</a></li>
    <li class="mega"><a href="#0">Link Three</a></li>
  </ul>
</div>
<h2 class="alt-pad">Buttons</h2>
<p class="aside">Please note that button text should be set in Trenda/Light/16px</p>
<div class="light-bg">
  <h2 class="darkhead">On light backgrounds</h2>
  <a href="#0" class="btn btn-lb">btn-lightblue</a>
  <a href="#0" class="btn btn-db">btn-darkblue</a>
  <a href="#0" class="btn btn-lb-g">btn-lightblueghost</a>
  <a href="#0" class="btn btn-db-g">btn-darkblueghost</a>
</div>
<div class="dark-bg">
  <h2 class="lighthead">On image backgrounds</h2>
  <a href="#0" class="btn btn-d">btn-dark</a>
  <a href="#0" class="btn btn-l">btn-light</a>
  <a href="#0" class="btn btn-g">btn-ghost</a>
  <a href="#0" class="btn btn-d-g">btn-ghost</a>
</div>



<div class="light-bg">
  <h2 class="darkhead">Mobile Banner Stacked</h2>
  <a href="#0" class="btn-stacked mob btn-lb">view styles</a>
  <a href="#0" class="btn-stacked mob btn-db">buy now</a>
  <a href="#0" class="btn-stacked mob btn-lb-g">view more</a>
  <a href="#0" class="btn-stacked mob btn-db-g">view womens</a>
</div>
              
            
!

CSS

              
                @font-face {
    font-family: 'trenda-heavy';
    src: url("https://trespass.thesixbysix.co.uk/skin/frontend/indez/trespass/fonts/trenda/trenda-heavy-webfont.woff2") format("woff2"), url("https://trespass.thesixbysix.co.uk/skin/frontend/indez/trespass/fonts/trenda/trenda-heavy-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Colours */

$primary: #1E3154;
$primary-hover: lighten(#1E3154, 4%);
$secondary: #45A8D6;
$secondary-hover: lighten(#45A8D6, 4%);

$dark: #070707;
$dark-hover: lighten(#070707, 8%);

$light: #fff;
$light-hover: darken(#fff, 3%);

$light-grey: #EEF0F5;
$light-grey-hover: #D1D8E5;

$ghost-bg: rgba(0,0,0,0.1);
$foot-link: #BBC4D5;
$off-black: #2d2d2d;

/* Typography */

$button-text-reg: normal 16px Arial,sans-serif;
$button-text-lrg: normal 18px Arial,sans-serif;
$button-text-sml: normal 16px Arial,sans-serif;

/* Shadows */

$box-shadow-bottom-heavy: 0 15px 20px rgba(0,0,0,0.2);

/* Mixins */

@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
  border-radius: $radius;
  background-clip: padding-box;
}

@mixin transition($args...) {
  -webkit-transition: $args;
  -moz-transition: $args;
  -ms-transition: $args;
  -o-transition: $args;
  transition: $args;
}

a {
  text-decoration: none;
  @include transition(all 600ms ease-in-out);
}

a:hover {
  @include transition(all 60ms ease-in-out);
}

body {
  font-family: arial, sans-serif;
  text-align: center;
}

/* Global Typography */

h1 {
  color: $off-black;
  font: 900 3rem 'trenda-heavy', sans-serif;
  padding: 10px 0;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

h2 {
  padding: 0 0 30px 0;
  font: 900 2rem 'trenda-heavy', sans-serif;
  text-transform: uppercase;
}

h2.alt-pad { padding: 0 0 10px 0; }

h3 {
  padding: 0 0 10px 0;
  font: 900 1.2rem 'trenda-heavy', sans-serif;
  text-transform: uppercase;
}

h2.lighthead { color: $light; }

h2.darkhead { color: $off-black; }

p {
  color: $primary;
  font: .8rem 'arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  padding: 10px 0;
}

.aside {
  text-transform: none;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: red;
  padding: 0 0 50px 0;
}

.amp {
  font-family: 'Libre Baskerville', serif;
  font-size: 6rem;
  font-style: italic;
  position: relative;
  top: .12em;  
  line-height: 0.6em;
}

/* Sections */

/* ---- Header ---- */

header { padding: 100px 30px; }

/* ---- Nav (light) ---- */

nav {
  background: $light-grey;
  text-align: center;
  margin: 0 0 50px 0;
}

li.link {
  display: inline-block;
  font: 400 15px Arial, sans-serif;
  text-transform: uppercase;
}

li.link a {
  color: $primary;
  display: inline-block;
  line-height: 50px;
  padding: 0 40px;
  margin-right: -4px;
}

li.link a:hover { color: $secondary; }

li.search a {
  background: $secondary;
  height: 50px;
  padding: 0 15px;
  margin-left: 40px;
}

li.search a:hover { background: $secondary-hover; }

li.search .fa {
  color: $light;
  font-size: 1.4rem;
  margin: 0;
}

/* ---- Nav (dark) ---- */

nav.dark { background: $primary; }

nav.dark li.link a {
  color: $light;
  line-height: 50px;
  padding: 0 40px;
}

nav.dark li.link a:hover { color: $secondary; }

nav.dark li.search a { padding: 0 15px; }

.mini-logo img { vertical-align: middle; }

/* ---- Misc Links ---- */

.misc-links {
  background: $primary;
  text-align: center;
  margin: 0 auto 50px auto;
  padding: 50px 0;
  width: 70%;
  @include border-radius(16px);
}

.misc-links li.link {
  display: inline-block;
  font: 400 11px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.misc-links li.link a {
  color: $light;
  display: inline-block;
  margin-right: -4px;
}

.misc-links li.link a:hover { color: $light-grey-hover; }

ul.misc-list { margin: 0; padding: 0; }

ul.misc-list li {
  font: 400 15px Arial, sans-serif;
  padding: 0 0 20px 0;
}

ul.misc-list li a { color: $foot-link; }

ul.misc-list li a:hover { color: #fff; }

/* ---- Text Links ---- */

.text-links-light {
  background: $light-grey;
  margin: 0 auto 50px auto;
  padding: 50px 0;
  width: 70%;
  @include border-radius(16px);
}

.text-links-light p {
  color: $dark;
  font: 300 1rem 'arial', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
  padding: 30px 150px;
}

.text-links-light p a {
  color: $secondary;
  display: inline-block;
}

.text-links-light p a:hover {
  box-shadow: inset 0 -2px 0 $secondary-hover;
}

ul.links-light { margin: 20px 0 30px 0; }

ul.links-light li { display: inline-block; }

ul.links-light li a {
  color: $secondary;
  display: inline-block;
  line-height: 1.5;
  margin: 0 0 0 30px;
  padding: 0 5px 0;
}

ul.links-light li a:hover {
  box-shadow: inset 0 -2px 0 $secondary-hover;
}

li.mega {
  font: 900 1rem 'trenda-heavy', sans-serif;
  text-transform: uppercase;
}

li.mega a:hover {
  box-shadow: none !important;
  color: lighten(#45A8D6, 10%);
}

/* ---- Buttons (light bg) ---- */

.light-bg {
  background: $light-grey;
  padding: 100px 0;
  overflow: hidden;
  margin-bottom: 30px;
  text-align: center;
}

.btn {
  display: inline-block;
  margin: 20px;
  padding: 20px 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font: $button-text-reg;
  @include border-radius(2px);
  @include transition(all .2s ease-in-out);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.btn-lb { background: $secondary; color: $light; }

.btn-lb:hover { background: $secondary-hover; }

.btn-db { background: $primary; color: $light; }

.btn-db:hover { background: $primary-hover; }

.btn-lb-g {
  box-shadow: inset 0 0 0 3px $secondary;
  color: $secondary;
}

.btn-lb-g:hover {
  box-shadow: inset 0 0 0 5px $secondary-hover;
  color: $secondary-hover;
}

.btn-db-g {
  box-shadow: inset 0 0 0 3px $primary;
  color: $primary;
}

.btn-db-g:hover {
  box-shadow: inset 0 0 0 5px $primary-hover;
  color: $primary-hover;
}

.btn-d { background: $dark; color: $light; }

.btn-d:hover { background: $dark-hover; }

.btn-l { background: $light; color: $dark; }

.btn-l:hover { background: $light-hover; }

.btn-g {
  background: $ghost-bg;
  box-shadow: inset 0 0 0 3px #fff;
  color: $light;
}

.btn-g:hover {
  box-shadow: inset 0 0 0 5px $light-hover;
  color: $light-hover;
}

.btn-d-g {
  background: $ghost-bg;
  box-shadow: inset 0 0 0 3px $dark;
  color: $dark;
}

.btn-d-g:hover {
  box-shadow: inset 0 0 0 5px $dark-hover;
  color: $dark-hover;
}

/* ---- Buttons (dark bg) ---- */

.dark-bg {
  background: url(https://unsplash.it/1920/1080/?random);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: $primary;
  padding: 100px 0;
  overflow: hidden;
}

.btn-lightblue { background: $secondary; color: $light; }

.btn-lightblue:hover { background: $secondary-hover; }

.btn-darkblue { background: $primary; color: $light; }

.btn-darkblue:hover { background: $primary-hover; }

.btn-darkblueghost {
  box-shadow: inset 0 0 0 3px $primary;
  color: $primary;
}

.btn-darkblueghost:hover {
  box-shadow: inset 0 0 0 5px $primary-hover;
  color: $primary-hover;
}

.btn-lightblueghost {
  box-shadow: inset 0 0 0 3px $secondary;
  color: $secondary;
}

.btn-lightblueghost:hover {
  box-shadow: inset 0 0 0 5px $secondary-hover;
  color: $secondary-hover;
}

.fa {
  font-size: 1rem;
  margin-right: 8px;
  color: $secondary;
}

ul.col {
  display: inline-block;
  vertical-align: middle;
  padding: 0 50px;
}

ul.social-list li { display: inline-block; }

.social-list .fa { font-size: 1.8em; }

ul.social-list .fa {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #FFF;
  color: rgba(255, 255, 255, 1);
  @include transition(all 0.2s ease-in-out);
  -webkit-transform: translateZ(0);
}

.social-list .fa:hover,
.social-list .fa:active {
  color: $secondary;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

.btn-stacked {
  display: block;
  margin: 20px auto;
  width: 240px;
  padding: 20px 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font: $button-text-reg;
  @include border-radius(2px);
  @include transition(all .2s ease-in-out);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.mob {
  padding: 20px 10px;
  width: 140px;
}
              
            
!

JS

              
                
              
            
!
999px

Console