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

Enabled the rule and --fix'ed issues.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind 2020-05-20 06:06:04 +02:00 committed by GitHub
parent 34e6a4e057
commit 9e0e2a9fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 12 deletions

View File

@ -14,3 +14,4 @@ rules:
number-leading-zero: never number-leading-zero: never
rule-empty-line-before: null rule-empty-line-before: null
selector-pseudo-element-colon-notation: null selector-pseudo-element-colon-notation: null
shorthand-property-no-redundant-values: true

View File

@ -323,7 +323,7 @@ code,
&.container { &.container {
&.fluid { &.fluid {
&.padded { &.padded {
padding: 0 10px 0 10px; padding: 0 10px;
} }
} }
} }
@ -582,7 +582,7 @@ code,
.sha.label { .sha.label {
font-family: @monospaced-fonts, monospace; font-family: @monospaced-fonts, monospace;
font-size: 13px; font-size: 13px;
padding: 6px 10px 4px 10px; padding: 6px 10px 4px;
font-weight: normal; font-weight: normal;
margin: 0 6px; margin: 0 6px;
} }

View File

@ -9,7 +9,7 @@
} }
&.file-view { &.file-view {
padding: 2em 2em 2em !important; padding: 2em !important;
} }
> *:first-child { > *:first-child {

View File

@ -426,12 +426,12 @@
} }
img { img {
padding: 5px 5px 0 5px; padding: 5px 5px 0;
} }
} }
.plain-text { .plain-text {
padding: 1em 2em 1em 2em; padding: 1em 2em;
pre { pre {
word-break: break-word; word-break: break-word;
@ -1486,7 +1486,7 @@
height: 12px; height: 12px;
width: 40px; width: 40px;
display: inline-block; display: inline-block;
margin: 2px 4px 0 4px; margin: 2px 4px 0;
vertical-align: text-top; vertical-align: text-top;
.add { .add {
@ -1638,7 +1638,7 @@
&.file-content { &.file-content {
img { img {
max-width: 100%; max-width: 100%;
padding: 5px 5px 0 5px; padding: 5px 5px 0;
} }
img.emoji { img.emoji {
padding: 0; padding: 0;
@ -2181,7 +2181,7 @@
> .item { > .item {
float: left; float: left;
padding: .5rem .5rem !important; padding: .5rem !important;
font-size: 1.5em; font-size: 1.5em;
width: 45px; width: 45px;
left: 13px; left: 13px;
@ -2498,7 +2498,7 @@
&:not(:first-child) { &:not(:first-child) {
border-top: 1px solid #eaeaea; border-top: 1px solid #eaeaea;
padding: 1rem; padding: 1rem;
margin: 15px -1rem -1rem -1rem; margin: 15px -1rem -1rem;
} }
> .svg { > .svg {
@ -2581,7 +2581,7 @@
.precolors { .precolors {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
margin: 3px 10px auto 10px; margin: 3px 10px auto;
width: 120px; width: 120px;
.color { .color {

View File

@ -75,7 +75,7 @@
.ui.active.tab { .ui.active.tab {
border: 1px solid #d4d4d5; border: 1px solid #d4d4d5;
padding: .5em; padding: .5em;
border-radius: 0 .28571429rem .28571429rem .28571429rem; border-radius: 0 .28571429rem .28571429rem;
} }
.ui.active.markdown.tab { .ui.active.markdown.tab {
@ -93,7 +93,7 @@
.footer { .footer {
border-top: 1px solid #f1f1f1; border-top: 1px solid #f1f1f1;
padding: 10px 0 10px 0; padding: 10px 0;
.markdown-info { .markdown-info {
display: inline-block; display: inline-block;