Skip to content

Commit 1b9fab4

Browse files
committed
Use tabs instead of spaces
1 parent 7f36e18 commit 1b9fab4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2241
-2248
lines changed

.editorconfig

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
root = true
22

33
[*]
4-
indent_style = space
5-
indent_size = 4
4+
indent_style = tab
65
end_of_line = lf
76
charset = utf-8
87
trim_trailing_whitespace = true
98
insert_final_newline = true
109

11-
[*.{json,yml}]
10+
[{package.json,.travis.yml}]
11+
indent_style = space
1212
indent_size = 2
13-
14-
[*.pcss]
15-
indent_style = tab
16-
end_of_line = lf
17-
charset = utf-8
18-
trim_trailing_whitespace = true
19-
insert_final_newline = true

README.md

Lines changed: 113 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ $ npm install postcss-sorting
2525

2626
```json
2727
{
28-
"sort-order": "default",
29-
"empty-lines-between-children-rules": 0
28+
"sort-order": "default",
29+
"empty-lines-between-children-rules": 0
3030
}
3131
```
3232

@@ -49,14 +49,14 @@ Example: `{ "sort-order": [ "margin", "padding" ] }`
4949
```css
5050
/* before */
5151
p {
52-
padding: 0;
53-
margin: 0;
52+
padding: 0;
53+
margin: 0;
5454
}
5555

5656
/* after */
5757
p {
58-
margin: 0;
59-
padding: 0;
58+
margin: 0;
59+
padding: 0;
6060
}
6161
```
6262

@@ -69,20 +69,20 @@ Example: `{ "sort-order": [ "position", "-webkit-box-sizing", "box-sizing", "wid
6969
```css
7070
/* before */
7171
div {
72-
-moz-box-sizing: border-box;
73-
width: 100%;
74-
box-sizing: border-box;
75-
position: absolute;
76-
-webkit-box-sizing: border-box;
72+
-moz-box-sizing: border-box;
73+
width: 100%;
74+
box-sizing: border-box;
75+
position: absolute;
76+
-webkit-box-sizing: border-box;
7777
}
7878

7979
/* after */
8080
div {
81-
position: absolute;
82-
-webkit-box-sizing: border-box;
83-
-moz-box-sizing: border-box;
84-
box-sizing: border-box;
85-
width: 100%;
81+
position: absolute;
82+
-webkit-box-sizing: border-box;
83+
-moz-box-sizing: border-box;
84+
box-sizing: border-box;
85+
width: 100%;
8686
}
8787
```
8888

@@ -95,19 +95,19 @@ Example: `{ "sort-order": [ [ "margin", "padding" ], [ "border", "background" ]
9595
```css
9696
/* before */
9797
p {
98-
background: none;
99-
border: 0;
100-
margin: 0;
101-
padding: 0;
98+
background: none;
99+
border: 0;
100+
margin: 0;
101+
padding: 0;
102102
}
103103

104104
/* after */
105105
p {
106-
margin: 0;
107-
padding: 0;
106+
margin: 0;
107+
padding: 0;
108108

109-
border: 0;
110-
background: none;
109+
border: 0;
110+
background: none;
111111
}
112112
```
113113

@@ -124,24 +124,24 @@ Example: `{ "sort-order": ["@atrule", "@mixin", "border", "@some-rule hello", "@
124124
```scss
125125
/* before */
126126
.block {
127-
@some-rule hello;
128-
border: none;
129-
@mixin clearfix;
130-
@media (min-width: 100px) {
131-
display: none;
132-
}
133-
@mixin island;
127+
@some-rule hello;
128+
border: none;
129+
@mixin clearfix;
130+
@media (min-width: 100px) {
131+
display: none;
132+
}
133+
@mixin island;
134134
}
135135

136136
/* after */
137137
.block {
138-
@media (min-width: 100px) {
139-
display: none;
140-
}
141-
@mixin island;
142-
border: none;
143-
@some-rule hello;
144-
@mixin clearfix;
138+
@media (min-width: 100px) {
139+
display: none;
140+
}
141+
@mixin island;
142+
border: none;
143+
@some-rule hello;
144+
@mixin clearfix;
145145
}
146146
```
147147

@@ -154,33 +154,33 @@ Example: `{ "sort-order": [ ["position", "top", "width"], ['>child'] ] }`
154154
```scss
155155
/* before */
156156
.block {
157-
position: absolute;
157+
position: absolute;
158158

159-
span {
160-
display: inline-block;
161-
}
159+
span {
160+
display: inline-block;
161+
}
162162

163-
width: 50%;
163+
width: 50%;
164164

165-
&__element {
166-
display: none;
167-
}
165+
&__element {
166+
display: none;
167+
}
168168

169-
top: 0;
169+
top: 0;
170170
}
171171

172172
/* after */
173173
.block {
174-
position: absolute;
175-
top: 0;
176-
width: 50%;
177-
178-
span {
179-
display: inline-block;
180-
}
181-
&__element {
182-
display: none;
183-
}
174+
position: absolute;
175+
top: 0;
176+
width: 50%;
177+
178+
span {
179+
display: inline-block;
180+
}
181+
&__element {
182+
display: none;
183+
}
184184
}
185185
```
186186

@@ -193,23 +193,23 @@ Example: `{ "sort-order": [ ["$variable"], ["position", "top", "width", "height"
193193
```scss
194194
/* before */
195195
.block {
196-
position: absolute;
197-
$width: 10px;
198-
top: 0;
199-
$height: 20px;
200-
height: $height;
201-
width: $width;
196+
position: absolute;
197+
$width: 10px;
198+
top: 0;
199+
$height: 20px;
200+
height: $height;
201+
width: $width;
202202
}
203203

204204
/* after */
205205
.block {
206-
$width: 10px;
207-
$height: 20px;
206+
$width: 10px;
207+
$height: 20px;
208208

209-
position: absolute;
210-
top: 0;
211-
width: $width;
212-
height: $height;
209+
position: absolute;
210+
top: 0;
211+
width: $width;
212+
height: $height;
213213
}
214214
```
215215

@@ -223,13 +223,13 @@ So, with this value:
223223

224224
``` json
225225
{
226-
"sort-order": [
227-
["$variable"],
228-
["position"],
229-
["...", "border"],
230-
["@mixin"],
231-
["font"]
232-
]
226+
"sort-order": [
227+
["$variable"],
228+
["position"],
229+
["...", "border"],
230+
["@mixin"],
231+
["font"]
232+
]
233233
}
234234
```
235235

@@ -257,36 +257,36 @@ Example: `{ "empty-lines-between-children-rules": 1, "sort-order": [ ["..."], ["
257257
```scss
258258
/* before */
259259
.block {
260-
position: absolute;
260+
position: absolute;
261261

262-
span {
263-
display: inline-block;
264-
}
262+
span {
263+
display: inline-block;
264+
}
265265

266266

267-
&__element {
268-
display: none;
269-
}
270-
&:hover {
271-
top: 0;
272-
}
267+
&__element {
268+
display: none;
269+
}
270+
&:hover {
271+
top: 0;
272+
}
273273
}
274274

275275
/* after */
276276
.block {
277-
position: absolute;
277+
position: absolute;
278278

279-
span {
280-
display: inline-block;
281-
}
279+
span {
280+
display: inline-block;
281+
}
282282

283-
&__element {
284-
display: none;
285-
}
283+
&__element {
284+
display: none;
285+
}
286286

287-
&:hover {
288-
top: 0;
289-
}
287+
&:hover {
288+
top: 0;
289+
}
290290
}
291291
```
292292

@@ -313,13 +313,13 @@ var postcss = require('gulp-postcss');
313313
var sorting = require('postcss-sorting');
314314

315315
gulp.task('css', function () {
316-
return gulp.src('./css/src/*.css').pipe(
317-
postcss([
318-
sorting({ /* options */ })
319-
])
320-
).pipe(
321-
gulp.dest('./css')
322-
);
316+
return gulp.src('./css/src/*.css').pipe(
317+
postcss([
318+
sorting({ /* options */ })
319+
])
320+
).pipe(
321+
gulp.dest('./css')
322+
);
323323
});
324324
```
325325

@@ -337,16 +337,16 @@ Enable PostCSS Sorting within your Gruntfile:
337337
grunt.loadNpmTasks('grunt-postcss');
338338

339339
grunt.initConfig({
340-
postcss: {
341-
options: {
342-
processors: [
343-
require('postcss-sorting')({ /* options */ })
344-
]
345-
},
346-
dist: {
347-
src: 'css/*.css'
348-
}
349-
}
340+
postcss: {
341+
options: {
342+
processors: [
343+
require('postcss-sorting')({ /* options */ })
344+
]
345+
},
346+
dist: {
347+
src: 'css/*.css'
348+
}
349+
}
350350
});
351351
```
352352

0 commit comments

Comments
 (0)