Skip to content

Commit

Permalink
Reindent Less to 2-space (#12602)
Browse files Browse the repository at this point in the history
Reindent and unify codebase to 2-space indentation.
  • Loading branch information
silverwind authored Aug 25, 2020
1 parent e90e122 commit eb4db04
Show file tree
Hide file tree
Showing 22 changed files with 5,843 additions and 5,849 deletions.
22 changes: 8 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
root = true

[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf

[*.md]
trim_trailing_whitespace = false
insert_final_newline = true

[*.{go,tmpl,html}]
indent_style = tab
indent_size = 2

[*.{less,css}]
indent_style = space
indent_size = 4

[*.{js,json,yml}]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab

[*.svg]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rules:
color-hex-length: null
comment-empty-line-before: null
declaration-empty-line-before: null
indentation: 4
indentation: 2
no-descending-specificity: null
number-leading-zero: never
rule-empty-line-before: null
Expand Down
142 changes: 71 additions & 71 deletions web_src/less/_admin.less
Original file line number Diff line number Diff line change
@@ -1,93 +1,93 @@
.admin {
padding-top: 15px;
padding-top: 15px;

.table.segment {
padding: 0;
font-size: 13px;
.table.segment {
padding: 0;
font-size: 13px;

&:not(.striped) {
thead {
th:last-child {
padding-right: 5px !important;
}
}
}

th {
padding-top: 5px;
padding-bottom: 5px;
&:not(.striped) {
thead {
th:last-child {
padding-right: 5px !important;
}
}
}

&:not(.select) {
th,
td {
&:first-of-type {
padding-left: 15px !important;
}
}
}
th {
padding-top: 5px;
padding-bottom: 5px;
}

form tbody button[type='submit'] {
padding: 5px 8px;
&:not(.select) {
th,
td {
&:first-of-type {
padding-left: 15px !important;
}
}
}

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

&.user {
.email {
max-width: 200px;
}
}
.ui.header,
.ui.segment {
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
}

dl.admin-dl-horizontal {
padding: 20px;
margin: 0;
&.user {
.email {
max-width: 200px;
}
}

dd {
margin-left: 275px;
}
dl.admin-dl-horizontal {
padding: 20px;
margin: 0;

dt {
font-weight: bolder;
float: left;
width: 285px;
clear: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
dd {
margin-left: 275px;
}

&.config {
#test-mail-btn {
margin-left: 5px;
}
dt {
font-weight: bolder;
float: left;
width: 285px;
clear: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}

code,
pre {
white-space: pre-wrap;
word-wrap: break-word;
&.config {
#test-mail-btn {
margin-left: 5px;
}
}

#notice-table {
.notice-description {
@media only screen and (max-width: 767px) {
max-width: 80vw;
}
@media only screen and (max-width: 991px) and (min-width: 768px) {
max-width: 360px;
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
max-width: 510px;
}
@media only screen and (min-width: 1200px) {
max-width: 640px;
}
}
code,
pre {
white-space: pre-wrap;
word-wrap: break-word;
}

#notice-table {
.notice-description {
@media only screen and (max-width: 767px) {
max-width: 80vw;
}
@media only screen and (max-width: 991px) and (min-width: 768px) {
max-width: 360px;
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
max-width: 510px;
}
@media only screen and (min-width: 1200px) {
max-width: 640px;
}
}
}
}
Loading

0 comments on commit eb4db04

Please sign in to comment.