JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
HTML Settings
Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
<div class="wrap">
<div class="lud-19 lud">
<p class="sub-title">19. ボタンにも階層を作成しよう。</p>
<p>メインとなるボタンが、警告や二次ボタンなどに比べ、もっとも目立つように重要度に応じて階層を作成しましょう。</p>
<p>Your primary action button should stand out more than secondary/danger buttons.</p>
<div class="ex-19 example">
<button class="b-1">キャンセル</button>
<button class="b-2">戻る</button>
<button class="b-3">次へ</button>
</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-19{
background: #f1f1f1;
padding: 2rem;
display: flex;
align-items: center;
justify-content: flex-end;
}
.ex-19 button{
border: none;
padding: .875rem 2rem;
border-radius: 5px;
margin-left: 1rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
}
.ex-19 .b-1{
background: transparent;
padding: .875rem .25rem;
color: #888;
}
.ex-19 .b-1:hover{
color: #222;
}
.ex-19 .b-2{
background: transparent;
border: 2px solid #aaa;
color: hsl(200, 71%, 40%);
}
.ex-19 .b-2:hover{
background: #ddd;
color: #666;
}
.ex-19 .b-3{
background: hsl(200, 71%, 46%);
border: 2px solid hsl(200, 71%, 46%);
color: #fff;
}
.ex-19 .b-3:hover{
background: hsl(200, 71%, 40%);
border: 2px solid hsl(200, 71%, 40%);
}
Also see: Tab Triggers