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-1 lud">
    <p class="sub-title">1. アイコンはラベルよりも少しだけ明るくしよう。</p>
    <p>文字ラベルの横にアイコンを配置するときは、少しだけ色を明るくしてみましょう。こうすることで、もっとも重要な情報(文字ラベル)をうまく強調することができます。</p>
    <p>If you have icons next to labels, you can color them slightly lighter than the text that goes with them. This will make the most important info (the label) pop out.</p>
    
    <div class="ex-1 example">
      <ul>
        <li><i class="fa fa-home"></i><span>ホーム</span></li>
        <li class="active"><i class="fa fa-bed"></i><span>ホテル</span></li>
        <li><i class="fa fa-plane"></i><span>飛行機</span></li>
        <li><i class="fa fa-bath"></i><span>レジャー</span></li>
      </ul>
    </div>
  </div>
</div><!-- wrap -->
            
          
!
            
              *{
  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-1 ul{
  width: 100%;
  display: flex;
  border-bottom: 1px solid #ddd;
  border-top: 4px solid #11B8AB;
}

.ex-1 ul li{
  width: 25%;
  text-align: center;
  list-style: none;
  padding: 1.5rem 0;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  position: relative;
}

.ex-1 ul li i{
  color: #bbb;
  font-size: 1.5rem;
  padding-right: .5rem;
  vertical-align: -2px;
}

.ex-1 ul li.active:after{
  width: 100%;
  content: '';
  height: 3px;
  bottom: -1px;
  left: 0;
  display: block;
  position: absolute;
  background: #11B8AB;
}

.ex-1 ul li.active{
  color: #444;
}

.ex-1 ul li.active i{
  color: #11B8AB;
}

.ex-1 ul li:hover{
  background: #f9f9f9;
}

            
          
!
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