Skip to content

Commit

Permalink
fix: add scss files to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
schwartzadev committed May 27, 2020
1 parent ac23c52 commit 7aa8f27
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 38 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"clean": "run-p clean:*",
"clean:gatsby": "gatsby clean",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"format": "prettier --write \"**/*.{js,jsx,json,md,scss}\"",
"start": "npm run develop",
"start:gatsby": "gatsby serve",
"storybook": "start-storybook -p 6006",
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/contact-form.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
margin-bottom: 16px;
resize: vertical;
margin-bottom: 50px;
display:block;
font-weight:400;
display: block;
font-weight: 400;
font-size: 1rem;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/blog/author-footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
font-size: 16px;
line-height: 1.75;
font-style: italic;
padding-left: .875rem;
padding-left: 0.875rem;
padding-right: 1.375rem;
p {
margin-bottom: 0;
Expand Down
5 changes: 2 additions & 3 deletions src/components/pages/blog/byline.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
white-space: pre;
}
.author::after {
content: " | ";
content: ' | ';
white-space: pre;
}
* {
Expand Down Expand Up @@ -54,7 +54,6 @@
}
}


.byline--small-margin--image {
@extend .byline-base;
margin-top: 0;
Expand All @@ -74,7 +73,7 @@
font-size: 1rem;
line-height: 2.5;
.author::after {
content: " \2022 ";
content: ' \2022 ';
color: $color-slate-500;
}
.author {
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/blog/categories.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
text-decoration: none;
}
&::after {
content: " | ";
content: ' | ';
white-space: pre;
color: $text;
font-weight: normal;
Expand Down
53 changes: 26 additions & 27 deletions src/pages/search.module.scss
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
@import '~scss/colors.module.scss';

.search-form {
margin-bottom: 2rem;
position: relative;
input {
width: 100%;
padding: .4rem 3.4rem .4rem 6rem;
}
margin-bottom: 2rem;

position: relative;

input {
width: 100%;
padding: 0.4rem 3.4rem 0.4rem 6rem;
}
}

.search-submit {
position: absolute;
right: .4rem;
top: 50%;
transform: translateY(-50%);

appearance: none;
background: none;
border: none;
box-shadow: none;
position: absolute;
right: 0.4rem;
top: 50%;
transform: translateY(-50%);

appearance: none;
background: none;
border: none;
box-shadow: none;
}

.search-icon {
width: 1.25rem;
width: 1.25rem;
}

.label {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);

color: $placeholder;
color: $placeholder;
}

.search-results {
h2 {
margin-bottom: 48px;
}
h2 {
margin-bottom: 48px;
}
}

4 changes: 2 additions & 2 deletions src/scss/colors.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ $color-infobox-sync-dark: #264a8c;
$color-infobox-alert-light: #fedcd2;
$color-infobox-alert-dark: #802509;

$color-error-light: #F9DED9;
$color-error-dark: #E35942;
$color-error-light: #f9ded9;
$color-error-dark: #e35942;

:export {
text: $text;
Expand Down
2 changes: 1 addition & 1 deletion src/templates/blog-post.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
color: $color-plum-600;
border-left: 2px solid $color-plum-600;
padding-left: 1.5rem;
margin-left: .25rem;
margin-left: 0.25rem;
&::before {
content: '';
}
Expand Down

0 comments on commit 7aa8f27

Please sign in to comment.