css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

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

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.

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>
  <h3>Custom Unordered List (CUL)</h3>
  <p>by <a href="https://techmagus.ninja">techmagus Yuki</a> | URL: <a href="https://techmagus.ninja/styling-unordered-lists/">Styling Unordered Lists</a> | Download <a href="https://gist.github.com/techmagus/e335c3b3197a0883c2aa/archive/master.zip">here</a>.</p>
  <p>License: <i>Mozilla Public License Version 2.0</i> ("MPL 2.0"), <i>GNU LESSER GENERAL PUBLIC LICENSE Version 3</i> ("LGPLv3")</p>
  <ul>
    <li>ordinary</li>
    <li>list</li>
  </ul>
  <ul class="cul-list checkmark-heavy list-green">
    <li>green checkmark-heavy</li>
    <li class="list-red">red checkmark-heavy
      <ul class="cul-list xmark-heavy list-red">
        <li>red xmark-heavy</li>
        <li class="list-green">green xmark-heavy
          <ul class="cul-list omark-black list-blue">
            <li>red omark-black</li>
            <li class="omark-white list-green">green omark-white
              <ul class="cul-list markhack">
                <li class="xmark-heavy list-magenta">magenta xmark-heavy</li>
                <li class="xmark-heavy list-pink">pink xmark-heavy</li>
                <li class="omark-black list-yellow">yellow omark-black
                  <ul>
                    <li>ordinary</li>
                    <li>list</li>
                  </ul>
                </li>
                <li class="omark-black list-gold">gold omark-black</li>
              </ul>
            </li>
            <li class="list-blue">blue omark-black</li>
          </ul>
        </li>
        <li>red xmark-heavy</li>
      </ul>
      <ul>
        <li>ordinary</li>
        <li>list</li>
      </ul>
    </li>
    <li>green checkmark-heavy</li>
  </ul>
  Hello world
</div>

            
          
!
            
              @charset "UTF-8";
/*
 * BGN: CodePen styling only
 *   not part of CUL code
 *   do not copy from here
 */
html,
:root {
  background: rgba(29,31,32,1);
  color: rgba(255,255,255,1);
}
a {
  color: rgba(0,128,0,1);
}
/* END: CodePen styling only
 *   do not copy up to here
 */

/*
 * Custom Unordered List (CUL)
 * by techmagus Yuki
 * https://techmagus.ninja/styling-unordered-lists/
 *
 * Source code: https://gist.github.com/techmagus/e335c3b3197a0883c2aa
 *
 * Copyright © 2015, 2016 JC John Sese Cuneta
 *
 * License: Mozilla Public License Version 2.0 ("MPL 2.0")
 *   This Source Code Form is subject to the terms of the Mozilla Public
 *   License, v. 2.0. If a copy of the MPL was not distributed with this
 *   file, You can obtain one at https://mozilla.org/MPL/2.0/.
 *
 * License: GNU LESSER GENERAL PUBLIC LICENSE Version 3 ("LGPLv3")
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the Lesser GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   Lesser GNU General Public License for more details.
 *
 *   You should have received a copy of the Lesser GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 **/

/* Global List Classes */
.cul-list > li {
  list-style-type: none !important;
}

/* Custom UL */
ul[class*="mark"] {
  margin-left: 0;
  padding-left: 0;
}
ul[class*="mark"] > li {
  margin-left: 23px;
}
/*
 * Optional:
 *   1. Use only if ordinary UL lists inside custom UL lists are not positioning correctly
 *   2. Do not forget to add class="ordfix" in the affected UL lists
 */
[class*="mark"] .ordfix {
  margin-left: 40px;
}

/*
 * Override order:
 *   hyphen-bullet < omark-black < omark-white < checkmark < checkmark-heavy < xmark < xmark-heavy
 */
[class~="hyphen-bullet"] > li::before,
li[class~="hyphen-bullet"]::before {
  content: "\2043\20";
}
[class~="omark-black"] > li::before,
li[class~="omark-black"]::before {
  content: "\25cf\20";
}
[class~="omark-white"] > li::before,
li[class~="omark-white"]::before {
  content: "\25cb\20";
}
[class~="checkmark"] > li::before,
li[class~="checkmark"]::before {
  content: "\2713\20";
}
[class~="checkmark-heavy"] > li::before,
li[class~="checkmark-heavy"]::before {
  content: "\2714\20";
}
[class~="xmark"] > li::before,
li[class~="xmark"]::before {
  content: "\2717\20";
}
[class~="xmark-heavy"] > li::before,
li[class~="xmark-heavy"]::before {
  content: "\2718\20";
}

/*
 * Colours
 *
 * 1. Colour override order: red < green < blue < yellow < gold < magenta < pink
 * 2. CUL-LIST Element override order: parent-declared < li-declared
 */
.list-red > li::before {
  color: rgba(255,0,0,1);
}
.list-green > li::before {
  color: rgba(0,127,0,1);
}
.list-blue > li::before {
  color: rgba(0,0,255,1);
}
.list-yellow > li::before {
  color: rgba(255,255,0,1);
}
.list-gold > li::before {
  color: rgba(255,215,0,1);
}
.list-magenta > li::before {
  color: rgba(255,0,255,1);
}
.list-pink > li::before {
  color: rgba(255,192,203,1);
}

/*
 * To make colour override work for our CUL-LIST
 *   we have to separate the li-level colours.
 *
 * Chained classes is not advisable, as it will color the text in CUL-LIST
 */
li.list-red::before {
  color: rgba(255,0,0,1);
}
li.list-green::before {
  color: rgba(0,128,0,1);
}
li.list-blue::before {
  color: rgba(0,0,255,1);
}
li.list-yellow::before {
  color: rgba(255,255,0,1);
}
li.list-gold::before {
  color: rgba(255,215,0,1);
}
li.list-magenta::before {
  color: rgba(255,0,255,1);
}
li.list-pink::before {
  color: rgba(255,192,203,1);
}

            
          
!
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