Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                chevron-rightが前につくパターン
<div>
  <a class="btn chevron-right-before" href="">TOPへ戻る</a>
</div>

chevron-rightが後につくパターン
<div>
  <a class="btn chevron-right-after" href="">TOPへ戻る</a>
</div>

インラインテキストの前につくパターン
<div>
  <a class="linktext chevron-right-before" href="">TOPへ戻る</a>
</div>

インラインテキストの後につくパターン
<div>
  <a class="linktext chevron-right-after" href="">TOPへ戻る</a>
</div>

インラインテキストの後につくパターン(色、サイズ変更)
<div>
  <a class="linktext02 chevron-right02-after" href="">TOPへ戻る</a>
</div>
              
            
!

CSS

              
                div{
  padding: 50px;
}
.btn{
  color: #fff;
  background: #1D559F;
  padding: 20px;
  text-decoration: none;
  border-radius: 8px;
}
.btn.chevron-right-before:before { /*.linkclassはchevronの矢印をつけたいクラスを記載*/
 /*疑似要素:beforeなら手前に矢印がつく*/
  content: "";
  background-color: #fff; /*任意のカラーを指定可能*/
  display: inline-block;
  position: relative;
  bottom: 2px; /*任意の縦方向位置を指定可能*/
  height: 10px; /*任意の高さを指定可能*/
  width: 10px; /*任意の幅を指定可能*/
  -webkit-mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
}
.btn.chevron-right-after:after { /*.linkclassはchevronの矢印をつけたいクラスを記載*/
 /*疑似要素:beforeなら手前に矢印がつく*/
  content: "";
  background-color: #fff; /*任意のカラーを指定可能*/
  display: inline-block;
  position: relative;
  bottom: 2px; /*任意の縦方向位置を指定可能*/
  height: 10px; /*任意の高さを指定可能*/
  width: 10px; /*任意の幅を指定可能*/
  -webkit-mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
}
.linktext{
  color: #1D559F;
  text-decoration: none;
}
.linktext.chevron-right-before:before { 
  content: "";
  background-color: #1D559F; /*任意のカラーを指定可能*/
  display: inline-block;
  position: relative;
  bottom: 2px; /*任意の縦方向位置を指定可能*/
  height: 10px; /*任意の高さを指定可能*/
  width: 10px; /*任意の幅を指定可能*/
  -webkit-mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
}
.linktext.chevron-right-after:after { 
  content: "";
  background-color: #1D559F; /*任意のカラーを指定可能*/
  display: inline-block;
  position: relative;
  bottom: 2px; /*任意の縦方向位置を指定可能*/
  height: 10px; /*任意の高さを指定可能*/
  width: 10px; /*任意の幅を指定可能*/
  -webkit-mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
}
.linktext02{
  color: #f00;
  text-decoration: none;
}
.linktext02.chevron-right02-after:after { 
  content: "";
  background-color: #f00; /*任意のカラーを指定可能*/
  display: inline-block;
  position: relative;
  bottom: 2px; /*任意の縦方向位置を指定可能*/
  height: 15px; /*任意の高さを指定可能*/
  width: 15px; /*任意の幅を指定可能*/
  -webkit-mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  mask: url(https://nanaironanaoto.github.io/tailwind_mini/assets/chevron-right.svg);
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
}
              
            
!

JS

              
                
              
            
!
999px

Console