Skip to content

Commit

Permalink
Use prettier for stylesheets too
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Jul 25, 2019
1 parent f798598 commit 6d1074b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true

[{*.js,*.jsx,*.json,*.css,*.html}]
[{*.js,*.jsx,*.json,*.css,*.scss,*.html}]
indent_size=2

[Makefile]
Expand Down
20 changes: 10 additions & 10 deletions newdle/client/src/App.module.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@import 'styles/palette.scss';

main {
> * {
padding: 3em;
}
> * {
padding: 3em;
}

.header {
background: linear-gradient($coral, $pink);
display: flex;
height: 250px;
.header {
background: linear-gradient($coral, $pink);
display: flex;
height: 250px;

.title a {
color: white;
}
.title a {
color: white;
}
}
}
38 changes: 19 additions & 19 deletions newdle/client/src/UserMenu.module.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
.user-menu {
margin-left: auto;
height: max-content;
margin-left: auto;
height: max-content;

.user-gravatar {
display: flex;
align-items: center;
color: white;
.user-gravatar {
display: flex;
align-items: center;
color: white;

img {
margin-left: 10px;
border-radius: 50%;
}
img {
margin-left: 10px;
border-radius: 50%;
}
}
}

.anonymous-user {
margin-left: auto;
display: flex;
align-items: center;
color: white;
cursor: pointer;
height: max-content;
margin-left: auto;
display: flex;
align-items: center;
color: white;
cursor: pointer;
height: max-content;

i:global(.user) {
margin-left: 10px;
}
i:global(.user) {
margin-left: 10px;
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "root",
"private": true,
"scripts": {
"prettier": "prettier --write 'newdle/client/src/**/*.js'",
"prettier": "prettier --write 'newdle/client/src/**/*.{js,jsx,json,scss,css}'",
"isort": "isort --recursive setup.py newdle/",
"black": "black setup.py newdle/"
},
"lint-staged": {
"newdle/client/src/**/*.{js,jsx,json}": [
"newdle/client/src/**/*.{js,jsx,json,scss,css}": [
"prettier --write",
"git add"
],
Expand Down

0 comments on commit 6d1074b

Please sign in to comment.