Skip to content

Reindent Less to 2-space #12602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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