Skip to content

Commit 9e0e2a9

Browse files
Enable stylelint's shorthand-property-no-redundant-values (#11436)
Enabled the rule and --fix'ed issues. Co-authored-by: techknowlogick <[email protected]>
1 parent 34e6a4e commit 9e0e2a9

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.stylelintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ rules:
1414
number-leading-zero: never
1515
rule-empty-line-before: null
1616
selector-pseudo-element-colon-notation: null
17+
shorthand-property-no-redundant-values: true

web_src/less/_base.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ code,
323323
&.container {
324324
&.fluid {
325325
&.padded {
326-
padding: 0 10px 0 10px;
326+
padding: 0 10px;
327327
}
328328
}
329329
}
@@ -582,7 +582,7 @@ code,
582582
.sha.label {
583583
font-family: @monospaced-fonts, monospace;
584584
font-size: 13px;
585-
padding: 6px 10px 4px 10px;
585+
padding: 6px 10px 4px;
586586
font-weight: normal;
587587
margin: 0 6px;
588588
}

web_src/less/_markdown.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
&.file-view {
12-
padding: 2em 2em 2em !important;
12+
padding: 2em !important;
1313
}
1414

1515
> *:first-child {

web_src/less/_repository.less

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@
426426
}
427427

428428
img {
429-
padding: 5px 5px 0 5px;
429+
padding: 5px 5px 0;
430430
}
431431
}
432432

433433
.plain-text {
434-
padding: 1em 2em 1em 2em;
434+
padding: 1em 2em;
435435

436436
pre {
437437
word-break: break-word;
@@ -1486,7 +1486,7 @@
14861486
height: 12px;
14871487
width: 40px;
14881488
display: inline-block;
1489-
margin: 2px 4px 0 4px;
1489+
margin: 2px 4px 0;
14901490
vertical-align: text-top;
14911491

14921492
.add {
@@ -1638,7 +1638,7 @@
16381638
&.file-content {
16391639
img {
16401640
max-width: 100%;
1641-
padding: 5px 5px 0 5px;
1641+
padding: 5px 5px 0;
16421642
}
16431643
img.emoji {
16441644
padding: 0;
@@ -2181,7 +2181,7 @@
21812181

21822182
> .item {
21832183
float: left;
2184-
padding: .5rem .5rem !important;
2184+
padding: .5rem !important;
21852185
font-size: 1.5em;
21862186
width: 45px;
21872187
left: 13px;
@@ -2498,7 +2498,7 @@
24982498
&:not(:first-child) {
24992499
border-top: 1px solid #eaeaea;
25002500
padding: 1rem;
2501-
margin: 15px -1rem -1rem -1rem;
2501+
margin: 15px -1rem -1rem;
25022502
}
25032503

25042504
> .svg {
@@ -2581,7 +2581,7 @@
25812581
.precolors {
25822582
padding-left: 0;
25832583
padding-right: 0;
2584-
margin: 3px 10px auto 10px;
2584+
margin: 3px 10px auto;
25852585
width: 120px;
25862586

25872587
.color {

web_src/less/_review.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
.ui.active.tab {
7676
border: 1px solid #d4d4d5;
7777
padding: .5em;
78-
border-radius: 0 .28571429rem .28571429rem .28571429rem;
78+
border-radius: 0 .28571429rem .28571429rem;
7979
}
8080

8181
.ui.active.markdown.tab {
@@ -93,7 +93,7 @@
9393

9494
.footer {
9595
border-top: 1px solid #f1f1f1;
96-
padding: 10px 0 10px 0;
96+
padding: 10px 0;
9797

9898
.markdown-info {
9999
display: inline-block;

0 commit comments

Comments
 (0)