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

              
                %h2 @counter-style 仅仅能在firefox上良好工作
.container
  - 8.times do |i|
    %ul{class: "list"}
      %li 努力更新博客,名词进入前1000
      %li 写作论文《盗版追踪的数据库指纹协议研究》和《基于虚拟学习社区的翻转课堂研究》
      %li 编写教材《界面设计实战手册》,完成核心架构和至少前五章
      %li 全家过一个温馨的春节
      %li 照顾好老爸,腿快快好起来
      %li 女儿快生日了,拍套写真
      %li last not least,老婆我爱你
              
            
!

CSS

              
                body{
   background:#333;
}
h2{
  color:#fff;
  font:bold 2em/1.5em simhei,arial,sans-serif;
  margin:1em;
  text-shadow:4px 4px 2px #000;
}
ul{
  padding:3vw 20vw;
  color:#fff;
  border-bottom:1px dashed rgba(255,255,255,.2);
  li{
    line-height: 1.5em;
  }
}
/*汉字数字*/
@counter-style cjk-decimal {
  system: numeric;
  range: 0 infinite;
  symbols: '\3007'  '\4E00'  '\4E8C'  '\4E09'  '\56DB'  '\4E94'  '\516D'  '\4E03'  '\516B'  '\4E5D';
  /* 〇 一 二 三 四 五 六 七 八 九 */
  suffix: "\3001";
  /* "、" */
}
ul:nth-child(1){
  list-style:cjk-decimal;
}
/*天干*/
@counter-style cjk-heavenly-stem {
  system: alphabetic;
  symbols: "\7532" "\4E59" "\4E19" "\4E01" "\620A" "\5DF1" "\5E9A" "\8F9B" "\58EC" "\7678";
  /* 甲 乙 丙 丁 戊 己 庚 辛 壬 癸 */
  suffix: "、";
}
ul:nth-child(2){
  list-style:cjk-heavenly-stem;
}
/*地支*/
@counter-style cjk-earthly-branch {
  system: alphabetic;
  symbols: "\5B50" "\4E11" "\5BC5" "\536F" "\8FB0" "\5DF3" "\5348" "\672A" "\7533" "\9149" "\620C" "\4EA5";
  /* 子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥 */
  suffix: "、";
}
ul:nth-child(3){
  list-style:cjk-earthly-branch;
}
/*带圈字*/
@counter-style circled-ideograph {
system: numeric;
symbols: '\3279' '\3280' '\3281' '\3282' '\3283' '\3284' '\3285' '\3286' '\3287' '\3288' '\3289';
/* symbols: '' '㊀' '㊁' '㊂' '㊃' '㊄' '㊅' '㊆' '㊇' '㊈' '㊉'; */
suffix: ' '; 
}
ul:nth-child(4){
  list-style:circled-ideograph;
}
@counter-style filled-circled-decimal {
system: fixed;
symbols: '\2776' '\2777' '\2778' '\2779' '\277a' '\277b' '\277c' '\277d' '\277e' '\277f' '\24EB' '\24EC' '\24ED' '\24EE' '\24EF' '\24F0' '\24F1' '\24F2' '\24F3' '\24F4';
/* symbols: '❶' '❷' '❸' '❹' '❺' '❻' '❼' '❽' '❾' '❿' '⓫' '⓬' '⓭' '⓮' '⓯' '⓰' '⓱' '⓲' '⓳' '⓴'; */
suffix: ' ';
}
ul:nth-child(5){
  list-style:filled-circled-decimal;
}
/*使用extends*/
@counter-style filled-circled-decimal-custom {
  system: extends decimal;
  prefix: "{";
  suffix: "}";
  pad: 2 "0";
}
ul:nth-child(6){
  list-style:filled-circled-decimal-custom;
}
/*试试*/
@counter-style abc{
  system: cyclic; 
  symbols: 'a' 'b' 'c';
  range: 1 2,4 6;
}
ul:nth-child(7){
  list-style:abc;
}
@counter-style simp-chinese-formal {
/* this is a predefined complex style in the CSS3 Counter Styles specification */
system: additive;
range: -9999 9999;
additive-symbols: 9000 \7396\4EDF, 8000 \634c\4EDF, 7000 \67d2\4EDF, 6000 \9646\4EDF, 5000 \4f0d\4EDF, 4000 \8086\4EDF, 3000 \53C1\4EDF, 2000 \8CB3\4EDF, 1000 \58F9\4EDF, 900 \7396\4F70, 800 \634C\4F70, 700 \67D2\4F70, 600 \9646\4F70, 500 \4f0d\4F70, 400 \56DB\4F70, 300 \53C1\4F70, 200 \8CB3\4F70, 100 \58F9\4F70, 90 \7396\62FE, 80 \634C\62FE, 70 \67D2\62FE, 60 \9646\62FE, 50 \4f0d\62FE, 40 \8086\62FE, 30 \53C1\62FE, 20 \8CB3\62FE, 10 \58F9\62FE, 9 \7396, 8 \634C, 7 \67D2, 6 \9646, 5 \4f0d, 4 \8086, 3 \53C1, 2 \8CB3, 1 \58F9, 0 \96F6;
suffix:'、 ';
negative: "\8D1F";
}
ul:nth-child(8){
  list-style:simp-chinese-formal;
}
@counter-style abc-style {
       system: cyclic;
       negative: symbolic;
       prefix: numeric;
       suffix: additive;
       range: override;
       pad: cjk-decimal;
       fallback: disclosure-open;
       symbols: disclosure-closed;
       additive-symbols: simp-chinese-informal;
       speak-as: simp-chinese-formal;
       display: trad-chinese-informal;
       display: trad-chinese-formal;
       display: ethiopic-numeric;
       display: symbols("*" "\2020" "\2021" "\A7");
       }
              
            
!

JS

              
                
              
            
!
999px

Console