css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <body class="home" id="show-grid">

  <ul class="display-controls">
    <li class="toggle-grid-wrap">
      <a href="#show-grid" class="toggle-grid toggle-grid-on">Show Grid</a>
      <a href="#" class="toggle-grid toggle-grid-off">Hide Grid</a>
    </li>
  </ul>

  <div class="container">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
    <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <h1>Heading Level One</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <h2>Heading Level Two</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <h3>Heading Level Three</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <h4>Heading Level Four</h4>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <h5>Heading Level Five</h5>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <h6>Heading Level Six</h6>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <figure class="blockquote">
      <blockquote>I don't believe I'll ever get credit for anything I do in foreign affairs, no matter how successful it is, because I didn't go to Harvard.</blockquote>
      <figcaption>Lyndon B. Johnson</figcaption>
    </figure>
    <ol>
      <li>Ordered List</li>
      <li>List Item</li>
      <li>List Item</li>
      <li>List Item</li>
      <li>List Item</li>
    </ol>
    <ul>
      <li>Unordered List</li>
      <li>List Item</li>
      <li>List Item</li>
      <li>List Item</li>
      <li>List Item</li>
    </ul>
    <ul class="inline-list">
      <li>List Item</li>
      <li>List Item</li>
      <li>List Item</li>
      <li>List Item</li>
    </ul>
    <p>This sentence has an abbreviation in it: <abbr title="Hyper Text Markup Language">HTML</abbr>.</p>
    <p>Today is the 2<sup>nd</sup> of May. (superscript)</p>
    <p>H<sub>2</sub>O is the chemical formula for water. (subscript)</p>
    <hr /><!-- a horizontal rule, if you're into that sort of thing -->
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-12">Text Scale Up 12 (84px / 84px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-11">Text Scale Up 11 (77px / 84px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-10">Text Scale Up 10 (63px / 70px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-9">Text Scale Up 9 (55px / 56px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-8">Text Scale Up 8 (48px / 56px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-7">Text Scale Up 7 (42px / 42px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-6">Text Scale Up 6 (36px / 42px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-5">Text Scale Up 5 (32px / 42px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-4">Text Scale Up 4 (28px / 28px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-3">Text Scale Up 3 (24px / 28px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-2">Text Scale Up 2 (21px / 28px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-up-1">Text Scale Up 1 (18px / 28px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-base">Text Scale Base (16px / 28px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-down-1">Text Scale Down 1 (14px / 14px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <div class="txt-down-2">Text Scale Down 2 (12px / 14px)</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  </div><!-- end of div.container -->

</body>
            
          
!
            
              // Variables ================================================================ //
// ========================================================================== //
$txt-color:         #5e5e5e;
$txt-link-color:    #a51c30;
$txt-accent-color:  #bac5c6;

// Scale : http://spencermortensen.com/articles/typographic-scale/ ========== //
$txt-up-12:  5.25;   // 84px
$txt-up-11:  4.8125; // 77px
$txt-up-10:  3.9375; // 63px
$txt-up-9:   3.4375; // 55px
$txt-up-8:   3;      // 48px
$txt-up-7:   2.625;  // 42px
$txt-up-6:   2.25;   // 36px
$txt-up-5:   2;      // 32px
$txt-up-4:   1.75;   // 28px
$txt-up-3:   1.5;    // 24px
$txt-up-2:   1.3125; // 21px
$txt-up-1:   1.125;  // 18px
$txt-base:   1;      // 16px
$txt-down-1: 0.875;  // 14px
$txt-down-2: 0.75;   // 12px

$base-line-height: $txt-up-4;
$vertical-measure: $txt-down-1; // 14px for finer line-height adjustment
// ========================================================================== //



// Type Scale =============================================================== //
// ========================================================================== //
@mixin txt-up-12($vm: "") { // 84px/84px
  font-size: #{$txt-up-12}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1;
    padding: 0.4375rem 0 1.3125rem 0;
  }
}

@mixin txt-up-11($vm: "") { // 77px/84px
  font-size: #{$txt-up-11}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.1;
    padding: 0.5625rem 0 1.1875rem 0;
  }
}

@mixin txt-up-10($vm: "") { // 63px/70px
  font-size: #{$txt-up-10}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.12;
    padding: 0.4375rem 0 0.4375rem 0;
  }
}

@mixin txt-up-9($vm: "") { // 55px/56px
  font-size: #{$txt-up-9}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.02;
    padding: 0.125rem 0 0.75rem 0;
  }
}

@mixin txt-up-8($vm: "") { // 48px/56px
  font-size: #{$txt-up-8}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.17;
    padding: 0.25rem 0 0.625rem 0;
  }
}

@mixin txt-up-7($vm: "") { // 42px/42px
  font-size: #{$txt-up-7}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1;
    padding: 0.8125rem 0 0.9375rem 0;
  }
}

@mixin txt-up-6($vm: "") { // 36px/42px
  font-size: #{$txt-up-6}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.16667;
    padding: 0.0625rem 0 0.8125rem 0;
  }
}

@mixin txt-up-5($vm: "") { // 32px/42px
  font-size: #{$txt-up-5}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.3125;
    padding: 0.125rem 0 0.75rem 0;
  }
}

@mixin txt-up-4($vm: "") { // 28px/28px
  font-size: #{$txt-up-4}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.5;
    padding: 0.25rem 0 0.625rem 0;
  }
}

@mixin txt-up-3($vm: "") { // 24px/28px
  font-size: #{$txt-up-3}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.17;
    padding: 0.75rem 0 1rem 0;
  }
}

@mixin txt-up-2($vm: "") { // 21px/28px
  font-size: #{$txt-up-2}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.35;
    padding: 0.8125rem 0 0.9375rem 0;
  }
}

@mixin txt-up-1($vm: "") { // 18px/28px
  font-size: #{$txt-up-1}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 1.56;
    padding: 0rem 0 0.875rem 0;
  }
}

@mixin txt-base($vm: "") { // 16px/28px
  font-size: #{$txt-base}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: $base-line-height;
    padding: 0rem 0 0.875rem 0;
  }
}

@mixin txt-down-1($vm: "") { // 14px/28px
  font-size: #{$txt-down-1}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 2;
    padding: 0.0625rem 0 0.8125rem 0;
  }
}

@mixin txt-down-2($vm: "") { // 12px/14px
  font-size: #{$txt-down-2}rem;
  @if $vm == "vm" { // add baseline grid vertical metrics
    line-height: 2.35;
    padding: 0.125rem 0 0.75rem 0;
  }
}
// ========================================================================== //



/* Base ===================================================================== */
/* ========================================================================== */
* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Merriweather', 'Times New Roman', serif;
  font-weight: 300;
  font-size: 100%;
  color: $txt-color;
  -webkit-font-feature-settings: 'liga' 1, 'onum' 1;
       -o-font-feature-settings: 'liga' 1, 'onum' 1;
     -moz-font-feature-settings: 'liga' 1, 'onum' 1;
      -ms-font-feature-settings: 'liga' 1, 'onum' 1;
          font-feature-settings: 'liga' 1, 'onum' 1;
}

.container {
  width: 100%;
  max-width: 39em; /* 624px */
  padding: 9px 1rem 0 1rem; /* top padding is just to demo baseline grid */
  position: relative;
}
/* ========================================================================== */



/* Typography =============================================================== */
/* ========================================================================== */
p {
  margin: 0;
  padding: 0 0 #{$vertical-measure * 2}rem 0; /* 28px */
  line-height: $base-line-height; /* 28px */
  -webkit-hyphens: auto;
     -moz-hyphens: auto;
      -ms-hyphens: auto;
          hyphens: auto;
}

h1, .txt-h1,
h2, .txt-h2,
h3, .txt-h3,
h4, .txt-h4,
h5, .txt-h5,
h6, .txt-h6, {
  margin: 0;
  font-style: normal;
}

h1, .txt-h1,
h2, .txt-h2,
h3, .txt-h3,
h6, .txt-h6, {
  font-family: 'Merriweather', 'Times New Roman', serif;
}

h4, .txt-h4,
h5, .txt-h5, {
  font-family: 'Merriweather Sans', Arial, sans-serif;
}

h1, .txt-h1 {
  font-weight: 300;
  @include txt-up-8(vm);
}

h2, .txt-h2 {
  font-weight: 400;
  @include txt-up-5(vm);
}

h3, .txt-h3 {
  font-weight: 700;
  @include txt-up-2(vm);
}

h4, .txt-h4 {
  font-weight: 700;
  @include txt-up-1(vm);
}

h5, .txt-h5 {
  font-weight: 700;
  @include txt-base(vm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h6, .txt-h6 {
  font-weight: 400;
  @include txt-base(vm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

cite {
  font-style: normal;
}

small {
  font-size: 80%;
}

a {
  color: rgba($txt-link-color, 1);
  text-decoration: none;
  border-bottom: 2px solid rgba($txt-link-color, .3);
  transition: all 0.2s linear;
}

a:hover {
  color: rgba($txt-link-color, 1);
  border-bottom: 2px solid rgba($txt-link-color, .8);
}

a:focus {
  outline: thin dotted;
}

a:active,
a:hover {
  outline: 0;
}

ul, ol {
  margin: 0;
  padding: 0 0 #{$vertical-measure * 2}rem 1.5rem;
}

li {
  line-height: $base-line-height;
}

ul ul, ul ol, ol ol, ol ul {
  padding-bottom: 0;
}

.inline-list {
  padding-left: 0;
}

hr {
  border: 0;
  border-top: 1px solid rgba($txt-color, 0.4);
  border-bottom: 1px solid transparent;
  margin: 1.125rem 0 1.375rem 0; /* get on baseline grid */
}

abbr[title] {
  cursor: help;
  border-bottom: 1px dotted $txt-color;
  text-decoration: none;
}

sub,sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -.5em;
}

sub {
  bottom: -.25em;
}

.inline-list > li {
  zoom: 1;
  display: inline;
  vertical-align: auto;
  margin-left: .5rem;
  margin-right: .5rem;
}

.inline-list li:first-child {
  margin-left: 0;
}

.inline-list li:last-child {
  margin-right: 0;
}

.blockquote { // apply to a <figure> wrapping a <blockquote>
  font-weight: 300;
  font-style: italic;
  padding: 0.25rem 0 0.875rem 0;
  margin: 0;
  position: relative;

  &:before {
    content: '\0022';
    font-size: 36px;
    color: $txt-accent-color;
    background-color: #fff;
    position: absolute;
    top: -7px; left: 0;
    height: 20px;
    width: 24px;
  }

  blockquote {
    @include txt-up-3();
    // include vertical metrics manually to adjust for 1px difference
    line-height: 1.75;
    padding: 0.54167em 0 0.58333em 0;
    border: 1px solid $txt-accent-color;
    border-width: 1px 0;
    margin: 0;
  }

  figcaption {
    font-weight: 300;
    @include txt-up-1();
    padding: 0.55556em 0 1em 0;

    cite {
      font-weight: 300;
      font-style: italic;
    }

    &:before,
    &:after {
      content: '\2014';
    }
  }
}
/* ========================================================================== */



/* Demo stuff =============================================================== */
/* ========================================================================== */
body {
  padding: 4em 1em;
}

.display-controls {
  list-style-type: none;
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: .5;
  transition: opacity 0.2s ease-in-out;

  &:hover {
    opacity: 1;
  }

  li {
    margin: 0;
    padding: 0;
    display: inline-block;
  }
}

#show-grid:target .container {
  background-image: linear-gradient(transparent 90%, rgba(0, 0, 255, 0.3) 100%);
  background-size: 100% 14px;
}

.toggle-grid-on {
  display: block;
}

#show-grid:target .toggle-grid-on {
  display: none;
}

.toggle-grid-off {
  display: none;
}

#show-grid:target .toggle-grid-off {
  display: block;
}

.txt-up-12 {  @include txt-up-12(vm); }
.txt-up-11 {  @include txt-up-11(vm); }
.txt-up-10 {  @include txt-up-10(vm); }
.txt-up-9 {   @include txt-up-9(vm); }
.txt-up-8 {   @include txt-up-8(vm); }
.txt-up-7 {   @include txt-up-7(vm); }
.txt-up-6 {   @include txt-up-6(vm); }
.txt-up-5 {   @include txt-up-5(vm); }
.txt-up-4 {   @include txt-up-4(vm); }
.txt-up-3 {   @include txt-up-3(vm); }
.txt-up-2 {   @include txt-up-2(vm); }
.txt-up-1 {   @include txt-up-1(vm); }
.txt-base {   @include txt-base(vm); }
.txt-down-1 { @include txt-down-1(vm); }
.txt-down-2 { @include txt-down-2(vm); }

.txt-up-12,
.txt-up-11,
.txt-up-10,
.txt-up-9,
.txt-up-8,
.txt-up-7,
.txt-up-6,
.txt-up-5,
.txt-up-4,
.txt-up-3,
.txt-up-2,
.txt-up-1,
.txt-base,
.txt-down-1,
.txt-down-2 {
  white-space: nowrap;
}
/* ========================================================================== */
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console