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 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

              
                <div class="container">
  <nav class="kb-nav">
    <a href="">About</a>
    <a href="">Projects</a>
    <a href="">Writing</a>
    <a href="">Workbench</a>
  </nav>
  <header class="kb-header">
    <div class="kb-header-wrapper">
      <h1 class="kb-header-heading-title">Michael Springer</h1>
      <h2 class="kb-header-heading-subtitle">This is a subtitle</h2>
    </div>
  </header>
  <section class="kb-section">
    <h1 class="kb-section-header">Group Title</h1>
    <div class="kb-section-entry-container">
      <div class="kb-section-entry primary">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
      <div class="kb-section-entry">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
      <div class="kb-section-entry">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
      <div class="kb-section-entry">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
  </section>
  <section class="kb-section">
    <h1 class="kb-section-header">Group Title</h1>
    <div class="kb-section-entry-container">
      <div class="kb-section-entry primary">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
      <div class="kb-section-entry">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
      <div class="kb-section-entry">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
      <div class="kb-section-entry">
        <h2 class="kb-section-entry-title">Section Title</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>
      </div>
  </section>
  </div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap");

:root {
  --black: #1C1D1E;
}

* {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  counter-reset: kb-section;
  background: #f9f9f9;
  background-image: linear-gradient(rgba(43, 43, 38, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(43, 43, 38, 0.05) 1px, transparent 1px);
	background-size: 10px 10px, 10px 10px, 2px 2px, 2px 2px;
  background-position: 0 0, center;
    backdrop-filter: sepia(3px);
}

/* Layout */
.container {
  background: #fff;
  margin: 0 auto;
  padding: 1rem;
  width: 90%;
/*   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); */
  box-shadow: 0px 5px 20px rgba(128, 128, 128, 0.25);
}

/* Modules */
/* Kitbash Nav */

.kb-nav {
  padding: 1rem;
  font-family: "Roboto Mono", monospace;
  background: var(--black);
  color: #fff;
  display:flex;
  text-align: center;
  flex-direction: row;
}

.kb-nav a {
  color: white;
  border: 1px solid transparent;
  text-decoration:none;
  padding: 0.5rem 1rem;
  flex-grow: 1;
  text-align:center;
  text-transform:uppercase;
}

.kb-nav a:hover {
  color: white;
  border: 1px solid #fff;
}

/* Kitbash Header */
.kb-header {
  background: #fff;
  color: var(--black);
  padding: 3rem 0;
  text-align: center;
  width: 100%;
}

.kb-header .kb-header-wrapper {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.kb-header .kb-header-heading-title {
  text-transform: uppercase;
  border: 1rem solid var(--black);
  padding: 1rem;
  font-size: 3rem;
  text-align: center;
  margin: 0 auto 1rem;
}

.kb-header .kb-header-heading-subtitle {
  text-transform: capitalize;
}

/* Kitbash Section */

.kb-section .kb-section-header {
  text-transform: uppercase;
  background: var(--black);
  color: #fff;
  margin: 0;
  padding: 0.5em;
}

/* Kitbash Section Entry */

.kb-section-entry-container {
  display: flex;
  flex-wrap: wrap;
}

.kb-section-entry {
  flex-grow: 1;
  flex-shrink: 0;
}

.kb-section-entry p {
  padding: 0 1em;
}

.kb-section-entry:not(.primary) {
  border-top: 2px solid var(--black);
}

.kb-section-entry.primary {
  min-height: 10em;
}

.kb-section-entry:nth-child(1) {
  flex: initial;
}

.kb-section-entry-title::before {
  padding: 0.25em 0.5em;
  font-family: "Roboto Mono", monospace;
  counter-increment: kb-section;
  content: counter(kb-section);

  display: inline-block;

  background: var(--black);
  color: #fff;
  margin-right: 10px;
}

.kb-section-entry-title {
  margin-top: 0;
}

/* Media Queries */
/* TODO: Fix breakpoints :| */

@media (min-width: 20rem) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ 
  .kb-section-entry {
    flex: initial;
  } 
}

/* wat */
@media (max-width: 40rem) {
  .kb-nav {
   flex-direction: column; 
  }
}

@media (min-width: 50rem) { /* tablet, landscape iPad, lo-res laptops ands desktops */ 
  .kb-section-entry {
    flex-basis: 50%;
  }
}

@media (min-width: 80rem) { /* hi-res laptops and desktops */ 
  .kb-section-entry {
    flex-basis: 33.3333%;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console