Catpow SCSS

background image

cnt

カウンター関連のプロパティを設定します。

Params

s
[selector]

r
counter-reset

i
counter-increment

c
content

Keyword
  • d
    decimal
  • jd
    cjk-decimal
  • r
    upper-roman
  • lr
    lower-roman
  • a
    upper-alpha
  • la
    lower-alpha
  • j
    japanese-formal
  • ji
    japanese-informal
  • h
    hiragana
  • hi
    hiragana-iroha
  • k
    katakana
  • ki
    katakana-iroha
scss
@import 'catpow';

.list{
	@include cnt((r:list-item));
	&__item{
		&::before{
			@include cnt((i:list-item,c:j '.'));
		}
	}
}
css
.list {
  counter-reset: list-item;
}
.list__item::before {
  counter-increment: list-item;
  content: counter(list-item,japanese-formal) ".";
}