Pen Settings

HTML

CSS

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

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

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.

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

              
                <div class="wrapper">
<h2>吹き出し</h2>
<div class="balloon-01">三角をくっつけることで吹き出しっぽく見せています</div>
<div class="balloon-03">まんまる</div>
<div class="balloon-04">枠線付きは:beforeも:afterも使う</div>
<h2>ステップ表示</h2>
<ol class="step-01">
  <li class="is-current">STEP1</li>
  <li>STEP2</li>
  <li>STEP3</li>
</ol>
<ol class="step-02">
  <li class="is-current">STEP1</li>
  <li>STEP2</li>
  <li>STEP3</li>
</ol>
<h2>リボン</h2>
<div class="ribbon-01">三角にカットしたリボン</div>
<div class="ribbon-02">三角の置き方によっては端っこがめくれた感じの紙っぽい表現に。<br>ドックイヤーって呼ぶらしいU・ェ・U</div>
<div class="ribbon-03">ななめにカットしたリボン</div>
<div class="ribbon-04">折り返した感じのリボン</div>
<div class="ribbon-05">折り返した感じ+三角にカットしたリボン</div>
<!--<h2>ワンポイント</h2>
  <div class="item-01"></div>-->
  <div class="item-02"></div>
</div>
              
            
!

CSS

              
                /* base
----------------------------------------------------*/
*{
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  font-size: 87.5%;
  font-family: "Roboto","ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
  line-height: 1.6;
  letter-spacing: .05em;
}
body {
  font-size: 14px;
  font-size: 1rem;
}
h2{
  font-weight:normal;
}
h3{
  font-weight:normal;
  margin-top: 0;
}
.wrapper{
  margin: 0 auto;
  max-width: 712px;
  min-width: 350px;
}
div,
ol{
  margin-bottom: 3em !important;
}
hr{
  border-color: #ddd;
  height: 0;
}
/* balloon
----------------------------------------------------*/
.balloon-01{
  position: relative;
  background: #fde7d1;
  padding: 2em;
}
.balloon-01:after{
  content: "";
  position: absolute;
  right: 0;
  bottom: -20px;
  left: 0;
  width: 0px;
  height: 0px;
  margin: auto;
  border-style: solid;
  border-color: #fde7d1 transparent transparent transparent;
  border-width: 20px 20px 0 20px;
}
.balloon-03{
  position: relative;
  width: 120px;
  height: 120px;
  background: #ef887e;
  padding: 2em;
  line-height: 60px;
  text-align:center;
  border-radius: 50%;
}
.balloon-03:after{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  right: 3px;
  bottom: 3px;
  border-style: solid;
  border-color: transparent transparent transparent #ef887e;
  border-width: 10px 0 10px 17.32px;
  transform: rotate(45deg);
}
.balloon-04{
  position: relative;
  padding: 2em;
  border: 3px solid #ef8f3a;
}
.balloon-04:before,
.balloon-04:after{
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: auto;
}
.balloon-04:before{
  top: -40px;
  border-style: solid;
  border-color: transparent transparent #ef8f3a transparent;
  border-width: 0 45px 40px 0;
}
.balloon-04:after{
  top: -34px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
  border-width: 0 39px 35px 0;
  z-index: 10;
}
/* step
----------------------------------------------------*/
.step-01{
  list-style-type: none;
  padding:0;
  margin:0;
}
.step-01 li{
  position: relative;
  width:100px;
  background: #504944;
  padding: 1em;
  margin-bottom: 1em;
  text-align:center;
  color: #fff;
}
.step-01 li:after{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  bottom: -10px;
  left: 0;
  border-style: solid;
  border-color: #504944 transparent transparent transparent;
  border-width: 10px 50px 0 50px;
  z-index: 1;
}
.step-01 li.is-current{
  background: #9bbb30;
  font-weight: bold;
}
.step-01 li.is-current:after{
  border-color: #9bbb30 transparent transparent transparent;
}
.step-02{
  list-style-type: none;
  display:table;
  width:100%;
  padding:0;
  margin:0;
  overflow:hidden;
}
.step-02 li{
  display:table-cell;
  position:relative;
  background: #504944;
  padding: 1em 0.5em 1em 2em;
  color: #fff;
}
.step-02 li:last-child{
  padding-right: 1em;
}
.step-02 li:last-child:before,
.step-02 li:last-child:after{
  display:none;
}
.step-02 li:before,
.step-02 li:after{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin: auto;
}
.step-02 li:before{
  top:-15px;
  right:-1em;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  border-width: 40px 0 40px 1em;
  z-index: 10;
}
.step-02 li:after{
  top:-15px;
  right:-.8em;
  border-style: solid;
  border-color: transparent transparent transparent #504944;
  border-width: 40px 0 40px 1em;
  z-index: 10;
}
.step-02 li.is-current{
  background: #9bbb30;
  font-weight: bold;
}
.step-02 li.is-current:after{
  border-color: transparent transparent transparent #9bbb30;
}
/* ribbon
----------------------------------------------------*/
.ribbon-01{
  position:relative;
  background: #6aa7cd;
  padding: 1em;
}
.ribbon-01:after{
  content: "";
  position:absolute;
  top:0;
  right:0;
  width:0;
  height:0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
  border-width: 25px 15px 25px 0;
}
.ribbon-02{
  background: #bce4e6;
  padding: 1em;
  position:relative;
}
.ribbon-02:after{
  position:absolute;
  content: '';
  width:0;
  height:0;
  border-style: solid;
  border-color: transparent #fff #94d1d5 transparent;
  border-width: 0 20px 20px 0;
  top:0;
  right:0;
}
.ribbon-03{
  position:relative;
  background: #6aa7cd;
  padding: 1em;
}
.ribbon-03:after{
  content: "";
  position:absolute;
  top:0;
  right:0;
  width:0;
  height:0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
  border-width: 0 30px 50px 0;
}

.ribbon-04{
  position:relative;
  background: #6aa7cd;
  padding: 1em;
}
.ribbon-04:after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent #3a759a transparent transparent;
  border-width: 0 30px 10px 0;
}
.ribbon-05{
  display: inline-block;
  position: relative;
  background: #6aa7cd;
  padding: 1em;
  text-align: center;
}
.ribbon-05:before,
.ribbon-05:after{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}
.ribbon-05:before{
  right: 0;
  bottom: -10px;
  border-style: solid;
  border-color: transparent transparent transparent #3a759a;
  border-width: 0 0 10px 30px;
}
.ribbon-05:after{
  right: -75px;
  bottom: -11px;
  width: 60px;
  z-index: -2;
  border: 22px solid #5191b9;
  border-right-color: transparent;
}
/* paper
----------------------------------------------------*/

/* one point
----------------------------------------------------*/
[class^=item]{
  width: 200px;
  height: 200px;
  background: #ddd;
  position:relative;
  margin:0 auto 3em;
}
.item-01:before {
    content: "";
    top: 0;
    left: 0;
    border-style: solid;
    border-style: solid;
    border-color: transparent transparent transparent #d44d40;
    border-width: 0 0 60px 60px;
    
    position: absolute;
    z-index: 10;
}
.item-01:after {
    content: "New";
    top: 8px;
    transform: rotate(-45deg);
    color: #fff;
    left: 5px;
    position: absolute;
    z-index: 11;
    
}
.item-02:before {
    content: "";
    top: 48px;
    right: 10px;
    border-style: solid;
    border-style: solid;
    border-color: transparent #d44d40 transparent #d44d40;
    border-width: 0 30px 7px 30px;
    position: absolute;
    z-index: 10;
}
.item-02:after {
    content: "New";
  background: #d44d40;
  padding:1em;
    top: -2px;
  width:32px;
  text-align:center;
    color: #fff;
    right: 10px;
    position: absolute;
    z-index: 11;
}
              
            
!

JS

              
                
              
            
!
999px

Console