Skip to content

Commit 1a6a70b

Browse files
authored
Merge pull request #59 from utilitycss/feat/list-style-pos-type
feat: add list-style position and type
2 parents 414f612 + 77a0ebf commit 1a6a70b

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- stable
3+
- 17
44
cache:
55
yarn: true
66
script:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@utilitycss/utility",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Generator for Utility CSS frameworks",
55
"author": "Andrea Moretti (@axyz) <[email protected]>",
66
"repository": "utilitycss/utility",

src/modules/list-style.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,32 @@ export interface ConfigVariables {
1313
}
1414

1515
const defaultNames = {
16+
"lisp:i": "lisp:i",
17+
"lisp:o": "lisp:o",
18+
"list:n": "list:n",
19+
"list:d": "list:d",
20+
"list:dc": "list:dc",
1621
"li:sy": "lisy",
1722
};
1823

1924
const getRules: GetRules<ConfigVariables> = (names, cfg) => ({
25+
"lisp:i": {
26+
name: names["lisp:i"],
27+
key: "list-style-position",
28+
value: "inside",
29+
},
30+
"lisp:o": {
31+
name: names["lisp:o"],
32+
key: "list-style-position",
33+
value: "outside",
34+
},
35+
"list:n": { name: names["list:n"], key: "list-style-type", value: "none" },
36+
"list:d": { name: names["list:d"], key: "list-style-type", value: "disc" },
37+
"list:dc": {
38+
name: names["list:dc"],
39+
key: "list-style-type",
40+
value: "decimal",
41+
},
2042
"li:sy": {
2143
name: names["li:sy"],
2244
key: "list-style",

0 commit comments

Comments
 (0)