cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <div class="wrap">
  <div class="lud-12 lud">
    <p class="sub-title">12. 色やフォントウエイトを利用して、文字の階層を作成しよう。</p>
    <p>見出しと本文など文字テキストの階層を定義するときは、太さの異なるフォント用ウェイト以外にも、色も利用することでうまく作成することができます。</p>
    <p>Not only using weight is enough, when you use color you have a well defined hierarchy between the title and the descrpition.</p>
    
    <div class="ex-12 example">
      <div class="col c-1">
        <p class="number">1</p>
        
        <p class="title">見出しタイトル1</p>
        <p class="desc">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Similique quos, veniam, accusamus quo error fuga perspiciatis.</p>
      </div>
      
      <div class="col c-2">
        <p class="number">2</p>
        
        <p class="title">見出しタイトル2</p>
        <p class="desc">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Similique quos, veniam, accusamus quo error fuga perspiciatis.</p>
      </div>
      
      <div class="col c-1">
        <p class="number">3</p>
        
        <p class="title">見出しタイトル3</p>
        <p class="desc">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Similique quos, veniam, accusamus quo error fuga perspiciatis.</p>
      </div>
    </div>
  </div>
</div>
            
          
!
            
              *{
  margin: 0;
  outline: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Open Sans', 'Roboto',YuGothic, "Yu Gothic", 游ゴシック体, 游ゴシック, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Roboto, メイリオ, Meiryo, "MS Pゴシック", Osaka, "MS PGothic", Arial, Helvetica, Verdana, sans-serif;
}

.wrap{
  margin: 2rem auto 0;
  width: 90%;
  max-width: 48rem;
}

h1{
  font-weight: normal;
  margin-bottom: 2rem;
}

.wrap p{
  font-size: 1.125rem;
  color: #444;
  line-height: 2;
  margin-bottom: 1rem;
}

.wrap a{
  color: #4687c9;
}

.wrap p.sub-title{
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.lud{
  margin: 4rem 0 4rem;
}

.lud p:nth-child(3){
  font-size: 12px;
  font-style: italic;
  
  
}

.example{
  margin-top: 2.5rem;
}

/* サンプル用スタイリング */
.ex-12{
  display: flex;
}

.ex-12 .number{
  background: #B4DFEB;
  border: 2px solid #6AA3B4;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34434b;
  font-weight: bold;
}

.ex-12 .title{
  color: #34434b;
  font-size: 1.375rem;
  font-weight: 500;
}

.ex-12 .desc{
  font-size: 1rem;
  color: #586368;
}

.ex-12 .c-2{
  margin: 0 1rem;
}
            
          
!
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