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 class='site-header'>
  <h6 class='site-title'>
    orange daisy
    <span>
      &nbsp;cordelia smythe murder mysteries
    </span>
  </h6>
</header>
<main class='site-content'>
  <section>
    <h1 class='section-title'>brand profile</h1>
    <p>With this redesign, we aim to bring life to the Cordelia Smythe character, and transform these murder mysteries from simple party games to a collection of events she witnessed.</p>
  </section>
  <section>
    <h1 class='section-title'>colors</h1>
    <p>When Cordelia wishes to communicate with her audience, she chooses the popular forms of her time: letters, postcards, and telegrams. Her available color profile, then, is understandably restricted to black and white. She is occasionally afforded the luxury of using red for a dash of color.</p>
    <div class='color-section'>
      <div class='row crimson'>
        <div class='color-block--crimson'></div>
        <div class='color-block--crimson'></div>
        <div class='color-block--crimson'></div>
        <div class='color-block--crimson'></div>
        <div class='color-block--crimson'></div>
        <div class='color-block--crimson'></div>
        <div class='color-block--crimson'></div>
      </div>
      <h3 class='section-title--small'>cordelia crimson</h3>
      <ul>
        <li>#b12d2f</li>
        <li>R177, G45, B47</li>
        <li>PMS 1805 C</li>
      </ul>
    </div>
    <div class='color-section'>
      <div class='color-block--silver'></div>
      <h3 class='section-title--small'>smythe silver</h3>
      <ul>
        <li>#f0f0f0</li>
        <li>R240, G240, B240</li>
        <li>PMS 663 C</li>
      </ul>
    </div>
    <div class='color-section'>
      <div class='color-block--midnight'></div>
      <h3 class='section-title--small'>midnight mystery</h3>
      <ul>
        <li>#303030</li>
        <li>R48, G48, B48</li>
        <li>PMS Black C</li>
      </ul>
    </div>
  </section>
  <section>
    <h1 class='section-title'>typefaces</h1>
    <p>To compliment Cordelia's color scheme, we have chosen two typefaces that eloquently capture Cordelia's personality.</p>
    <h2 class='brand-head-font'>cordelia smythe murder mysteries</h2>
    <h3 class='section-title--small'>calligraffitti</h3>
    <p>Calligraffitti serves as Cordelia's primary headlining font. It delivers a feeling of being handwritten, without having too many ornate flourishes. Because of the details in this font, it should be reserved strictly for large point sizes.</p>
    <p class='brand-body-font goudy'>Catastrophe in Cairo:  Set in the winter of 1922, the Egyptian archaeological season is about to begin. Two rival archeologists hunt for the find of the century. One knows where the Lost Pharaoh's Tomb is, the other has digging rights but no clue. One last dinner in civilization before the parties venture into the African desert &ndash; someone will become a permanent Egyptian artifact.</p>
    <h3 class='section-title--small'>lora</h3>
    <p>Lora is our workhorse typeface. Available in regular, regular italic, and bold, it has all the options necessary to allow Cordelia to express herself without getting in the way of the message. Lora is fit for use everywhere on the site. When a dash of extra personality is needed, consider using Calligraffitti instead.</p>
  </section>
  <section>
    <h1 class='section-title'>components</h1>
    <p>Information on the website is displayed through a number of "paper"-based components.</p>
    <h3 class='section-title--small'>telegram, postcard, note</h3>
    <p>
      <a href='https://codepen.io/reverendgeneral/full/11c6c967c145ee4704ddecfa79c5f9fe' target='_blank'>Example</a>
    </p>
    <p>Telegrams are used when Cordelia is sending invitations ("Events" page).</p>
    <p>Postcards are used for exerpts of long-form content, like on the list of blog posts and list of mysteries.</p>
    <p>Notes are small, one or two sentence notes that draw the visitor's attention to a particular item or reminder.</p>
    <h3 class='section-title--small'>site header, letter, individual mystery page</h3>
    <p>
      <a href='https://codepen.io/reverendgeneral/full/5b567986fce6c909b3ad1b0d2052a3ac' target='_blank'>Example</a>
    </p>
    <p>The site's header is prominently displayed on each page, and will feature an ink-drawing as its background.</p>
    <p>For long-form content, we use a large "piece of paper" with a simple white background and black text. Letters are versatile components in that they can contain simple paragraphs, or complex grids for dividing lots of information.</p>
    <p>Individual mystery pages feature a large, themed image that fades into the light grey background. The mystery title is set in Calligraffitti, above the letter. Inside the letter are a brief description, and two columns for quick actions and long-form reading.</p>
  </section>
</main>
              
            
!

CSS

              
                @import 'bourbon';

// ----------
// |Variables
// ----------

//colors
$c-smythe-silver:    #f0f0f0;
$c-midnight-mystery: #303030;
$c-cordelia-crimson: #b12d2f;

//fonts
$f-brand:  'Calligraffitti', cursive;
$f-body-1: 'Lora', serif;

//mixins
@mixin debug {
  border: 1px solid cornflowerblue;
}


// ----------
// |Styles
// ----------

* {
  @include box-sizing(border-box);
  //@include debug;
}

html {
  background: $od-c-slate-light;
  color: $od-c-slate-dark;
  line-height: 1.5;
}

p {
  font: {
    family: $od-f-brand;
    size: 1.5rem;
  }
}

a {
  border-bottom: 1px solid $od-c-slate-dark;
  color: $od-c-slate-dark;
  padding: .25rem 0;
  text-decoration: none;
  
  &:hover,&:focus {
    background: $od-c-slate-medium;
  }
  &:active {
    border-bottom-width: 2px;
  }
}

.row {
  @include clearfix;
  &.crimson {
    box-shadow: 0 2px 6px rgba($od-c-slate-dark,.25);
  }
}

.site-header {
  background: $od-c-slate-dark;
  padding: 1.5rem;
}

.site-title {
  color: $od-c-brand;
  font: {
    family: $od-f-brand;
    size: 1.5rem;
    weight: 400;
  }
  margin: 0;
  
  span {
    color: $od-c-slate-light;
    font: {
      family: $od-f-sans;
      size: 1rem;
    }
    letter-spacing: 0.35rem;
    text-transform: uppercase;
  }
}

.site-content {
  margin: 5.063rem auto;
  max-width: 72em;
  width: 75%;
}

section {
  display: flow-root;
  
  & + & {
    margin-top: 5.063rem;
  }
}

.section-title,
.section-title--small {
  border-bottom: 2px solid $od-c-slate-dark;
  font: {
    family: $od-f-sans;
    weight: 400;
  }
  letter-spacing: 0.35rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  &--small {
    font-size: 1.25rem;
    padding-bottom: .25rem;
    margin-bottom: 0;
  }
}

.color-section {
  font-family: $od-f-sans;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  
  ul {
    list-style-type: none;
    margin: .5rem auto 1.5rem;
    padding: 0;
  }
  &:nth-of-type(2),
  &:nth-of-type(3) {
    @include column(1/2);
  }
}

.color-block--crimson,
.color-block--silver,
.color-block--midnight {
  display: block;
}

.color-block--crimson {
  float: left;
  height: 7.594rem;
  width: calc(100% / 7);
  
  &:nth-of-type(1) {
    background: shade($c-cordelia-crimson,30%);
  }
  &:nth-of-type(2) {
    background: shade($c-cordelia-crimson,20%);
  }
  &:nth-of-type(3) {
    background: shade($c-cordelia-crimson,10%);
  }
  &:nth-of-type(4) {
    background: $c-cordelia-crimson;
    border: 4px solid $od-c-slate-dark;
  }
  &:nth-of-type(5) {
    background: tint($c-cordelia-crimson,10%);
  }
  &:nth-of-type(6) {
    background: tint($c-cordelia-crimson,20%);
  }
  &:nth-of-type(7) {
    background: tint($c-cordelia-crimson,30%);
  }
}

.color-block--silver,
.color-block--midnight {
  box-shadow: 0 2px 6px rgba($od-c-slate-dark,.25);
  height: 7.594rem;
  width: 100%;
}

.color-block--silver {
  background: $c-smythe-silver;
}

.color-block--midnight {
  background: $c-midnight-mystery;
}

.brand-head-font {
  font: {
    family: $f-brand;
    size: 3.375rem;
    weight: 400;
  }
  margin-bottom: 0;
  text-transform: capitalize;
}

.brand-body-font {
  margin-top: 5.063rem;
  &.goudy {
    font-family: $f-body-1;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console