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

              
                <main id="journal">
  <h1 class="page-title">Minimalist Journal</h1>
  <section id="days" itemprop="events" itemscope itemtype="http://schema.org/Events">
    <article class="day" itemid="https://www.minjour.com/michalkorzonek/20180613/" itemscope itemtype="http://schema.org/SocialMediaPosting">
      <h1 class="headline" itemprop="headline">What did I do today?</h1>
      <p class="date">Date posted: June 13, 2018 <meta itemprop="datePublished" content="2018-06-13" /></p>
      <p class="author">Author:
        <span itemprop="author" itemscope itemtype="http://schema.org/Person">
          <span itemprop="name"><a itemprop="url" href="https://www.minjour.com/michalkorzonek/">Michal Korzonek</a></span>
        </span>
      </p>
      <ol class="event" itemprop="event" itemscope itemtype="http://schema.org/Event">
        <li class="remember" itemprop="post" itemscope itemtype="http://schema.org/SocialMediaPosting"><span class="label">What did I do today? </span><span itemprop="description">Wrote an article about squares</span></li>
        <li class="days-lived" itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="label">Number of days since birth: </span><span itemprop="duration" content="P10642D">10642</span></li>
        <li class="travel" itemprop="location" itemscope itemtype="http://schema.org/Place"><span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span class="label">Where I traveled today: </span><span itemprop="addressLocality"><i class="fas fa-arrow-right"></i> Koh Phangan</span></span></li>
        <li class="dream-remembered" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Remembered dream: </span><span itemprop="value" content="True">Yes</span></li>
        <li class="dream-lucid" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Lucid dream: </span><span itemprop="value" content="True">Yes</span></li>
        <li class="sleep-problems" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Problems sleeping: </span><span itemprop="value" content="True">×</span></li>
        <li class="wake-time" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Wake time: </span><time datetime="2018-06-13 06:15">0615</time></li>
        <li class="sleep-time" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Sleep time: </span><time datetime="2018-06-13 22:00">2200</time></li>
        <li class="self-time" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Self time: </span><span itemprop="value" content="True"><i class="fas fa-user"></i></span></li>
        <li class="meaningful-interactions" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Meaningful interactions: </span><span itemprop="number">2</span></li>
        <li class="wrote-letter" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Wrote a handwritten letter: </span><span itemprop="value" content="True"><i class="fas fa-envelope"></i></span></li>
        <li class="act-of-compassion" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Acted out of compassion: </span><span itemprop="value" content="True"><i class="fas fa-heart"></i></span></li>
        <li class="learning" itemscope itemtype="http://schema.org/ItemList">
          <span class="label" itemprop="name">Learning: </span>
          <span class="list" itemprop="itemListElement"><span itemprop="value" title="Reading">R</span><span itemprop="value" title="Watching a documentary">D</span><span itemprop="value" title="Other forms of learning">L</span></span>
        </li>
        <li class="meditation" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Meditated for at least 30 min: </span><span itemprop="value" content="True">Yes</span></li>
        <li class="social-media" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Used social media outside of allotted time: </span><span itemprop="value" content="True"><i class="fas fa-mobile-alt"></i></span></li>
        <li class="exercise" itemscope itemtype="http://schema.org/ItemList">
          <span class="label" itemprop="name">Physical exercise: </span>
          <span class="list" itemprop="itemListElement"><span itemprop="value" title="Yoga">Y</span><span itemprop="value" title="Swimming">S</span><span itemprop="value" title="Hiking">H</span><span itemprop="value" title="Cycling">O</span><span itemprop="value" title="Workout">E</span><span itemprop="value" title="Run">R</span><span itemprop="value" title="Dance">D</span></span>
        </li>
        <li class="nutrition" itemscope itemtype="http://schema.org/ItemList">
          <span class="label" itemprop="name">Nutrition: </span>
          <span class="list" itemprop="itemListElement"><span itemprop="value" title="Fruits">F</span><span itemprop="value" title="Vegetables">V</span><span itemprop="value" title="Nuts">N</span><span itemprop="value" title="Animal products">A</span><span itemprop="value" title="Coffee">C</span></span>
        </li>
        <li class="raw-food-only" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Ate only raw food: </span><span itemprop="value" content="True">Yes</span></li>
        <li class="bowel-movements" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Bowel movements: </span><span itemprop="value">4</span></li>
        <li class="eating-late" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Ate after 18:00: </span><span itemprop="value" content="True">+</span></li>
        <li class="raw-food-days" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Number of consecutive days eating raw food: </span><span itemprop="value">2</span></li>
        <li class="overeating" itemprop="activity" itemscope itemtype="http://schema.org/PropertyValue"><span class="label" itemprop="name">Overeating: </span><span itemprop="value" content="True"><i class="fas fa-arrow-up"></i></span></li>
      </ol>
      <div class="entry" itemprop="sharedContent" itemscope itemtype="http://schema.org/WebPage">
        <h2 class="headline" itemprop="headline">
          <a itemprop="url" href="https://betterhumans.coach.me/draft-how-to-hack-your-brain-to-achieve-consistency-that-lasts-7f5fdc520d28?source=linkShare-519fb4cbab29-1532352517">
            Minimalist Journaling: A Fun and Effective Tool for Tremendous Habit Change
          </a>
        </h2>
        <p class="author" itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="label">Author:</span>
          <a itemprop="url" href="https://betterhumans.coach.me/@michal.korzonek"><span itemprop="name">Michal Korzonek</span></a>
        </p>
      </div>
    </article>
  </section>
</main>

              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
}

h1 {
  text-align: center;
  margin-bottom: 60px;
}

.day .date,
.day .author,
.day .headline,
.entry {
  display: none;
}

.day {
  width: 260px;
  height: 260px;
  margin: 40px auto;
  padding: 40px;
  position: relative;
}

.day ol {
  padding: 0;
  margin: 0;
}

.day li {
  list-style: none;
  position: absolute;
  padding: 10px;
}

.day .label {
  display: none;
}

.day .remember {
  font-weight: normal;
  font-size: 18px;
  width: 180px;
  height: 180px;
  padding: 40px 24px;
  margin: 0;
  border: 2px solid black;
}

.day .travel {
  top: 0;
  left: 40px;
  width: 180px;
}

.day .days-lived {
  transform: rotate(-90deg);
  transform-origin: 0 0;
  top: 220px;
  left: 0;
}

.day .dream-remembered {
  top: 41px;
  right: 41px;
  background: black;
  display: block;
  padding: 0;
  width: 2px;
  height: 18px;
  text-indent: 100%;
  overflow: hidden;
  transform: rotate(45deg);
  transform-origin: 0 0;
}

.day .dream-lucid {
  display: block;
  top: 53px;
  right: 53px;
  padding: 2px;
  width: 5px;
  height: 5px;
  border: 2px solid black;
  border-radius: 50%;
  text-indent: 100%;
  overflow: hidden;
}

.day .sleep-problems {
  bottom: 0;
  left: 0;
  width: 40px;
  font-size: 22px;
  text-align: center;
}

.day .wake-time {
  top: 220px;
  left: 40px;
}

.day .sleep-time {
  top: 220px;
  right: 40px;
}

.day .self-time {
  top: 41px;
  left: 41px;
}

.day .meaningful-interactions {
  top: 41px;
  left: 75px;
  width: 30px;
  text-align: center;
}

.day .wrote-letter {
  top: 41px;
  left: 105px;
  padding: 10px 5px;
}

.day .act-of-compassion {
  top: 41px;
  left: 130px;
  padding: 10px 5px;
}

.day .meditation {
  top: 41px;
  right: 56px;
  background: black;
  display: block;
  padding: 0;
  width: 2px;
  height: 24px;
  text-indent: 100%;
  overflow: hidden;
  transform: rotate(-45deg);
  transform-origin: 0 0;
}

.day .social-media {
  top: 40px;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 21px;
}

.day .learning {
  top: 41px;
  right: 55px;
}

.day .exercise {
  top: 180px;
  left: 41px;
}

.day .nutrition {
  top: 180px;
  right: 41px;
}

.day .raw-food-only {
  bottom: 41px;
  right: 56px;
  background: black;
  display: block;
  padding: 0;
  width: 2px;
  height: 24px;
  text-indent: 100%;
  overflow: hidden;
  transform: rotate(45deg);
  transform-origin: 0 24px;
}

.day .bowel-movements {
  top: 180px;
  right: 0;
  width: 40px;
  text-align: center;
}

.day .eating-late {
  top: 150px;
  right: 0;
  width: 40px;
  font-size: 22px;
  text-align: center;
}

.day .raw-food-days {
  top: 132px;
  right: 0;
  width: 40px;
  text-align: center;
}

.day .overeating {
  top: 108px;
  right: 0;
  width: 40px;
  text-align: center;
  padding-bottom: 5px;
}

              
            
!

JS

              
                
              
            
!
999px

Console