File tree Expand file tree Collapse file tree 1 file changed +29
-4
lines changed
Expand file tree Collapse file tree 1 file changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,12 @@ a { color: red; }
6565
6666# ## block-indent
6767
68+ ** Note** : better to use with [rule-indent](# rule-indent)
69+
6870Available values:
69- * ` {Boolean}` true
71+ * ` {Boolean}` true (means 4 spaces)
7072 * ` {Number}` of spaces
71- * ` {String}` of whitespace characters (` /[ \t ]/ * ` )
73+ * ` {String}` of whitespace characters (` /[ \t ]* / ` )
7274
7375Example: ` { " block-indent" : 2 }`
7476
@@ -78,9 +80,11 @@ Example: `{ "block-indent": 2 }`
7880 @media all { a { color: green } }
7981
8082/* after * /
81- a { color: red }
83+ a { color: red
84+ }
8285@media all {
83- a { color: green }
86+ a { color: green
87+ }
8488}
8589` ` `
8690
@@ -168,6 +172,27 @@ p { padding: 0.5em }
168172p { padding: .5em }
169173` ` `
170174
175+ # ## rule-indent
176+
177+ ** Note** : better to use with [block-indent](# block-indent)
178+
179+ Available values:
180+ * ` {Boolean}` true (means 4 spaces)
181+ * ` {Number}` of spaces
182+ * ` {String}` of whitespace characters (` /[ \t ]* /` )
183+
184+ Example: ` { " rule-indent" : 2 }`
185+
186+ ` ` ` css
187+ /* before * /
188+ a { color:red; margin:0 }
189+
190+ /* after * /
191+ a {
192+ color:red;
193+ margin:0 }
194+ ` ` `
195+
171196# # Tests
172197
173198Run ` npm test` for tests.
You can’t perform that action at this time.
0 commit comments