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="li-numb">
<ol>
<li>番号付き箇条書きのサンプル</li>
<li>番号付き箇条書きのサンプル</li>
<li>番号付き箇条書きのサンプル</li>
</ol>
</div>
              
            
!

CSS

              
                /*番号付き箇条書き style.css 2115-2181行目
========================================================================== */
.li-numb ol {
    counter-reset: number;
    /*数字をリセット*/
    list-style-type: none !important;
    /*数字を一旦消す*/
    padding: 0.5em;
    background: #fff;
    margin-bottom: 1.5em;
    padding: 1em 1em 1em 2.5em;
    border-radius: 3px;
    border: solid 1px #ffaf58;
    width: 90%;
    margin: 0 auto 1.5em;
}

.li-numb ol li {
    position: relative;
    padding-left: 30px;
    line-height: 1.5em;
    padding: 0.5em 0.5em 0.5em 30px;
}

.li-numb ol li:before {
    /* 以下数字をつける */
    position: absolute;
    counter-increment: number;
    content: counter(number);
    /*以下数字のデザイン変える*/
    display: inline-block;
    background: #ffaf58;
    color: white;
    font-family: 'Avenir', 'Arial Black', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 15px;
    border-radius: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    /*以下 上下中央寄せのため*/
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);

}

@media (max-width: 763px) {
    .li-numb ol {
        counter-reset: number;
        list-style-type: none !important;
        padding: 0.5em;
        background: #fff;
        margin-bottom: 1.5em;
        padding: 1em 1em 1em 2.5em;
        border-radius: 3px;
        border: solid 1px #ffaf58;
        width: 90%;
        margin: 0 auto 1.5em;
        padding: 8px;
        font-size: 14px;
        margin-top: 1em;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console