Skip to content

Commit eb4db04

Browse files
authored
Reindent Less to 2-space (#12602)
Reindent and unify codebase to 2-space indentation.
1 parent e90e122 commit eb4db04

22 files changed

+5843
-5849
lines changed

.editorconfig

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
root = true
22

33
[*]
4+
indent_style = space
5+
indent_size = 2
6+
tab_width = 2
7+
end_of_line = lf
48
charset = utf-8
5-
insert_final_newline = true
69
trim_trailing_whitespace = true
7-
end_of_line = lf
8-
9-
[*.md]
10-
trim_trailing_whitespace = false
10+
insert_final_newline = true
1111

1212
[*.{go,tmpl,html}]
1313
indent_style = tab
14-
indent_size = 2
15-
16-
[*.{less,css}]
17-
indent_style = space
18-
indent_size = 4
19-
20-
[*.{js,json,yml}]
21-
indent_style = space
22-
indent_size = 2
2314

2415
[Makefile]
2516
indent_style = tab
2617

2718
[*.svg]
2819
insert_final_newline = false
20+
21+
[*.md]
22+
trim_trailing_whitespace = false

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rules:
66
color-hex-length: null
77
comment-empty-line-before: null
88
declaration-empty-line-before: null
9-
indentation: 4
9+
indentation: 2
1010
no-descending-specificity: null
1111
number-leading-zero: never
1212
rule-empty-line-before: null

web_src/less/_admin.less

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
11
.admin {
2-
padding-top: 15px;
2+
padding-top: 15px;
33

4-
.table.segment {
5-
padding: 0;
6-
font-size: 13px;
4+
.table.segment {
5+
padding: 0;
6+
font-size: 13px;
77

8-
&:not(.striped) {
9-
thead {
10-
th:last-child {
11-
padding-right: 5px !important;
12-
}
13-
}
14-
}
15-
16-
th {
17-
padding-top: 5px;
18-
padding-bottom: 5px;
8+
&:not(.striped) {
9+
thead {
10+
th:last-child {
11+
padding-right: 5px !important;
1912
}
13+
}
14+
}
2015

21-
&:not(.select) {
22-
th,
23-
td {
24-
&:first-of-type {
25-
padding-left: 15px !important;
26-
}
27-
}
28-
}
16+
th {
17+
padding-top: 5px;
18+
padding-bottom: 5px;
19+
}
2920

30-
form tbody button[type='submit'] {
31-
padding: 5px 8px;
21+
&:not(.select) {
22+
th,
23+
td {
24+
&:first-of-type {
25+
padding-left: 15px !important;
3226
}
27+
}
3328
}
3429

35-
.ui.header,
36-
.ui.segment {
37-
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
30+
form tbody button[type='submit'] {
31+
padding: 5px 8px;
3832
}
33+
}
3934

40-
&.user {
41-
.email {
42-
max-width: 200px;
43-
}
44-
}
35+
.ui.header,
36+
.ui.segment {
37+
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
38+
}
4539

46-
dl.admin-dl-horizontal {
47-
padding: 20px;
48-
margin: 0;
40+
&.user {
41+
.email {
42+
max-width: 200px;
43+
}
44+
}
4945

50-
dd {
51-
margin-left: 275px;
52-
}
46+
dl.admin-dl-horizontal {
47+
padding: 20px;
48+
margin: 0;
5349

54-
dt {
55-
font-weight: bolder;
56-
float: left;
57-
width: 285px;
58-
clear: left;
59-
overflow: hidden;
60-
text-overflow: ellipsis;
61-
white-space: nowrap;
62-
}
50+
dd {
51+
margin-left: 275px;
6352
}
6453

65-
&.config {
66-
#test-mail-btn {
67-
margin-left: 5px;
68-
}
54+
dt {
55+
font-weight: bolder;
56+
float: left;
57+
width: 285px;
58+
clear: left;
59+
overflow: hidden;
60+
text-overflow: ellipsis;
61+
white-space: nowrap;
6962
}
63+
}
7064

71-
code,
72-
pre {
73-
white-space: pre-wrap;
74-
word-wrap: break-word;
65+
&.config {
66+
#test-mail-btn {
67+
margin-left: 5px;
7568
}
69+
}
7670

77-
#notice-table {
78-
.notice-description {
79-
@media only screen and (max-width: 767px) {
80-
max-width: 80vw;
81-
}
82-
@media only screen and (max-width: 991px) and (min-width: 768px) {
83-
max-width: 360px;
84-
}
85-
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
86-
max-width: 510px;
87-
}
88-
@media only screen and (min-width: 1200px) {
89-
max-width: 640px;
90-
}
91-
}
71+
code,
72+
pre {
73+
white-space: pre-wrap;
74+
word-wrap: break-word;
75+
}
76+
77+
#notice-table {
78+
.notice-description {
79+
@media only screen and (max-width: 767px) {
80+
max-width: 80vw;
81+
}
82+
@media only screen and (max-width: 991px) and (min-width: 768px) {
83+
max-width: 360px;
84+
}
85+
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
86+
max-width: 510px;
87+
}
88+
@media only screen and (min-width: 1200px) {
89+
max-width: 640px;
90+
}
9291
}
92+
}
9393
}

0 commit comments

Comments
 (0)