Skip to content
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

Enable stylelint's shorthand-property-no-redundant-values #11436

Merged
merged 2 commits into from
May 20, 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
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ rules:
number-leading-zero: never
rule-empty-line-before: null
selector-pseudo-element-colon-notation: null
shorthand-property-no-redundant-values: true
4 changes: 2 additions & 2 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ code,
&.container {
&.fluid {
&.padded {
padding: 0 10px 0 10px;
padding: 0 10px;
}
}
}
Expand Down Expand Up @@ -582,7 +582,7 @@ code,
.sha.label {
font-family: @monospaced-fonts, monospace;
font-size: 13px;
padding: 6px 10px 4px 10px;
padding: 6px 10px 4px;
font-weight: normal;
margin: 0 6px;
}
Expand Down
2 changes: 1 addition & 1 deletion web_src/less/_markdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

&.file-view {
padding: 2em 2em 2em !important;
padding: 2em !important;
}

> *:first-child {
Expand Down
14 changes: 7 additions & 7 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,12 @@
}

img {
padding: 5px 5px 0 5px;
padding: 5px 5px 0;
}
}

.plain-text {
padding: 1em 2em 1em 2em;
padding: 1em 2em;

pre {
word-break: break-word;
Expand Down Expand Up @@ -1486,7 +1486,7 @@
height: 12px;
width: 40px;
display: inline-block;
margin: 2px 4px 0 4px;
margin: 2px 4px 0;
vertical-align: text-top;

.add {
Expand Down Expand Up @@ -1638,7 +1638,7 @@
&.file-content {
img {
max-width: 100%;
padding: 5px 5px 0 5px;
padding: 5px 5px 0;
}
img.emoji {
padding: 0;
Expand Down Expand Up @@ -2181,7 +2181,7 @@

> .item {
float: left;
padding: .5rem .5rem !important;
padding: .5rem !important;
font-size: 1.5em;
width: 45px;
left: 13px;
Expand Down Expand Up @@ -2498,7 +2498,7 @@
&:not(:first-child) {
border-top: 1px solid #eaeaea;
padding: 1rem;
margin: 15px -1rem -1rem -1rem;
margin: 15px -1rem -1rem;
}

> .svg {
Expand Down Expand Up @@ -2581,7 +2581,7 @@
.precolors {
padding-left: 0;
padding-right: 0;
margin: 3px 10px auto 10px;
margin: 3px 10px auto;
width: 120px;

.color {
Expand Down
4 changes: 2 additions & 2 deletions web_src/less/_review.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
.ui.active.tab {
border: 1px solid #d4d4d5;
padding: .5em;
border-radius: 0 .28571429rem .28571429rem .28571429rem;
border-radius: 0 .28571429rem .28571429rem;
}

.ui.active.markdown.tab {
Expand All @@ -93,7 +93,7 @@

.footer {
border-top: 1px solid #f1f1f1;
padding: 10px 0 10px 0;
padding: 10px 0;

.markdown-info {
display: inline-block;
Expand Down