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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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-21 lud">
    <p class="sub-title">21. ボーダー線を利用せずに、背景色を活用しよう。</p>
    <p>ボーダー線がたくさんありすぎると、UIデザインがごちゃごちゃした印象になりがちです。ユーザーの目的(コンテンツを探すなど)を妨げる原因となるかもしれません。</p>
    <p>Too many borders can make a piece of UI look cluttered. This may be distracting the user from the main goal.</p>
    
    <div class="ex-22 example">
      <div class="modal">
        <div class="upper">
          <p class="title">Contacts</p>
          <div class="input-wrapper">
            <i class="fa fa-search"></i>
            <input type="text" placeholder="Search teams or members">
          </div>
          
          <div class="users">
            <div class="row">
              <div>
                <div class="state"></div>
                <p>Tighten Co.</p>
              </div>
              <p>Team</p>
            </div>
            
            <div class="row">
              <div>
                <div class="state on"></div>
                <p>Taylor Otwell.</p>
              </div>
              <p>Member</p>
            </div>
            
            <div class="row">
              <div>
                <div class="state"></div>
                <p>Adam Whatan.</p>
              </div>
              <p>Member</p>
            </div>
            
            <div class="row">
              <div>
                <div class="state"></div>
                <p>Duke Street Studio Inc.</p>
              </div>
              <p>Team</p>
            </div>
            
            <div class="row">
              <div>
                <div class="state on"></div>
                <p>Jeffrey Way</p>
              </div>
              <p>Member</p>
            </div>
          </div>
        </div>
        <div class="lower">
          <button class="b-1">キャンセル</button>
          <button class="b-2">招待する</button>
        </div>
      </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-22{
  background: #ddd;
  padding: 2rem;
}

.ex-22 .modal{
  max-width: 32rem;
  width: 100%;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
}

.ex-22 .upper{
  background: #fff;
  border-radius: 5px 5px 0 0;
  padding: 1rem;
}

.ex-22 .upper .title{
  font-weight: 500;
}

.ex-22 .input-wrapper{
  background: #f1f1f1;
  padding: .5rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.ex-22 .input-wrapper i{
  color: #888;
  width: 1.5rem;
  text-align: center;
  display: inline-block;
}

.ex-22 input{
  border: none;
  background: transparent;
  width: calc(100% - 1.875rem);
  padding: .25rem;
}

.ex-22 input::placeholder{
  color: #aaa;
}

.ex-22 .row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  cursor: pointer;
}

.ex-22 .row .state{
  width: 7px;
  height: 7px;
  background: #ddd;
  display: inline-block;
  border-radius: 100%;
  margin-left: 1rem;
}

.ex-22 .row .state.on{
  background: #44B572;
}

.ex-22 .row:hover{
  background: #E7F0F7;
}

.ex-22 .row:hover div > p{
  color: #6682B1;
}

.ex-22 .row > div{
  display: flex;
  align-items: center;
}

.ex-22 .row div > p{
  display: inline-block;
  margin-bottom: 0;
  margin-left: 1rem;
  font-weight: 500;
  font-size: 1rem;
}

.ex-22 .row > p{
  font-size: .875rem;
  color: #888;
  margin-bottom: 0;
  margin-right: 1rem;
}

.ex-22 .lower{
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 0 0 5px 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ex-22 button{
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.ex-22 .b-1{
  background: transparent;
  margin-right: .5rem;
  color: #888;
}

.ex-22 .b-1:hover{
  color: #444;
}

.ex-22 .b-2{
  background: -moz-linear-gradient(top,  hsl(204, 63%, 62%) 0%, hsl(212, 66%, 56%) 100%);
  background: -webkit-linear-gradient(top,  hsl(204, 63%, 62%) 0%,hsl(212, 66%, 56%) 100%);
  background: linear-gradient(to bottom,  hsl(204, 63%, 62%) 0%,hsl(212, 66%, 56%) 100%);
  color: #fff;
  padding: .5rem 1.5rem;
  border-radius: 5px;
}

.ex-22 .b-2:hover{
  background: -moz-linear-gradient(top,  hsl(204, 63%, 56%) 0%, hsl(212, 66%, 50%) 100%);
  background: -webkit-linear-gradient(top,  hsl(204, 63%, 56%) 0%,hsl(212, 66%, 50%) 100%);
  background: linear-gradient(to bottom,  hsl(204, 63%, 56%) 0%,hsl(212, 66%, 50%) 100%);
}
            
          
!
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