Skip to content
Snippets Groups Projects
Unverified Commit 551398f9 authored by Simone's avatar Simone Committed by GitHub
Browse files

Standardize SCSS:`declaration-block-no-redundant-longhand-properties` (#1102)


* Fix stylelint "declaration-block-no-redundant-longhand-properties"

Co-authored-by: default avatarMatt Wang <matt@matthewwang.me>
parent 8e81e214
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
"prettier/prettier": true, "prettier/prettier": true,
"alpha-value-notation": null, "alpha-value-notation": null,
"color-function-notation": null, "color-function-notation": null,
"declaration-block-no-redundant-longhand-properties": null,
"no-descending-specificity": null, "no-descending-specificity": null,
"scss/no-global-function-names": null "scss/no-global-function-names": null
} }
......
...@@ -4,10 +4,7 @@ ...@@ -4,10 +4,7 @@
.btn { .btn {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
padding-top: 0.3em; padding: 0.3em 1em;
padding-right: 1em;
padding-bottom: 0.3em;
padding-left: 1em;
margin: 0; margin: 0;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
......
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
.label, .label,
.label-blue { .label-blue {
display: inline-block; display: inline-block;
padding-top: 0.16em; padding-top: 0.16em 0.56em;
padding-right: 0.56em;
padding-bottom: 0.16em;
padding-left: 0.56em;
margin-right: $sp-2; margin-right: $sp-2;
margin-left: $sp-2; margin-left: $sp-2;
color: $white; color: $white;
......
...@@ -7,11 +7,10 @@ ...@@ -7,11 +7,10 @@
background-color: $sidebar-color; background-color: $sidebar-color;
@include mq(md) { @include mq(md) {
flex-wrap: nowrap; flex-flow: column nowrap;
position: fixed; position: fixed;
width: $nav-width-md; width: $nav-width-md;
height: 100%; height: 100%;
flex-direction: column;
border-right: $border $border-color; border-right: $border $border-color;
align-items: flex-end; align-items: flex-end;
} }
......
...@@ -73,19 +73,13 @@ ...@@ -73,19 +73,13 @@
width: $nav-list-item-height-sm; width: $nav-list-item-height-sm;
height: $nav-list-item-height-sm; height: $nav-list-item-height-sm;
padding-top: #{$nav-list-item-height-sm * 0.25}; padding: #{$nav-list-item-height-sm * 0.25};
padding-right: #{$nav-list-item-height-sm * 0.25};
padding-bottom: #{$nav-list-item-height-sm * 0.25};
padding-left: #{$nav-list-item-height-sm * 0.25};
color: $link-color; color: $link-color;
@include mq(md) { @include mq(md) {
width: $nav-list-item-height; width: $nav-list-item-height;
height: $nav-list-item-height; height: $nav-list-item-height;
padding-top: #{$nav-list-item-height * 0.25}; padding: #{$nav-list-item-height * 0.25};
padding-right: #{$nav-list-item-height * 0.25};
padding-bottom: #{$nav-list-item-height * 0.25};
padding-left: #{$nav-list-item-height * 0.25};
} }
&:hover { &:hover {
...@@ -138,10 +132,7 @@ ...@@ -138,10 +132,7 @@
} }
.nav-category { .nav-category {
padding-top: $sp-2; padding: $sp-2 $gutter-spacing-sm;
padding-right: $gutter-spacing-sm;
padding-bottom: $sp-2;
padding-left: $gutter-spacing-sm;
font-weight: 600; font-weight: 600;
text-align: start; text-align: start;
text-transform: uppercase; text-transform: uppercase;
...@@ -149,8 +140,7 @@ ...@@ -149,8 +140,7 @@
@include fs-2; @include fs-2;
@include mq(md) { @include mq(md) {
padding-right: $gutter-spacing; padding: $sp-2 $gutter-spacing;
padding-left: $gutter-spacing;
margin-top: $gutter-spacing-sm; margin-top: $gutter-spacing-sm;
text-align: start; text-align: start;
......
...@@ -41,10 +41,7 @@ ...@@ -41,10 +41,7 @@
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-top: $sp-2; padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing-sm + $sp-5};
padding-right: $gutter-spacing-sm;
padding-bottom: $sp-2;
padding-left: #{$gutter-spacing-sm + $sp-5};
font-size: 16px; font-size: 16px;
color: $body-text-color; color: $body-text-color;
background-color: $search-background-color; background-color: $search-background-color;
...@@ -55,9 +52,7 @@ ...@@ -55,9 +52,7 @@
border-radius: 0; border-radius: 0;
@include mq(md) { @include mq(md) {
padding-top: $gutter-spacing-sm; padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing + $sp-5};
padding-bottom: $gutter-spacing-sm;
padding-left: #{$gutter-spacing + $sp-5};
font-size: 14px; font-size: 14px;
background-color: $body-background-color; background-color: $body-background-color;
transition: padding-left linear #{$transition-duration * 0.5}; transition: padding-left linear #{$transition-duration * 0.5};
...@@ -128,10 +123,7 @@ ...@@ -128,10 +123,7 @@
.search-result { .search-result {
display: block; display: block;
padding-top: $sp-1; padding-top: $sp-1 $sp-3;
padding-right: $sp-3;
padding-bottom: $sp-1;
padding-left: $sp-3;
&:hover, &:hover,
&.active { &.active {
...@@ -224,10 +216,7 @@ ...@@ -224,10 +216,7 @@
} }
.search-no-result { .search-no-result {
padding-top: $sp-2; padding: $sp-2 $sp-3;
padding-right: $sp-3;
padding-bottom: $sp-2;
padding-left: $sp-3;
@include fs-3; @include fs-3;
} }
......
...@@ -22,10 +22,7 @@ td { ...@@ -22,10 +22,7 @@ td {
@include fs-3; @include fs-3;
min-width: 120px; min-width: 120px;
padding-top: $sp-2; padding: $sp-2 $sp-3;
padding-right: $sp-3;
padding-bottom: $sp-2;
padding-left: $sp-3;
background-color: $table-background-color; background-color: $table-background-color;
border-bottom: $border rgba($border-color, 0.5); border-bottom: $border rgba($border-color, 0.5);
border-left: $border $border-color; border-left: $border $border-color;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment