forked from plouc/nivo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(code style): add prettier formatting
- Loading branch information
Raphaël Benitte
authored and
Raphaël Benitte
committed
Dec 5, 2017
1 parent
e4cf806
commit 9a550eb
Showing
66 changed files
with
545 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
printWidth: 100 | ||
tabWidth: 4 | ||
bracketSpacing: true | ||
semi: false | ||
trailingComma: es5 | ||
singleQuote: true | ||
arrowParens: avoid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,24 @@ init: ##@init cleanup/install/bootstrap | |
@make packages-build | ||
@cd website && yarn install | ||
|
||
######################################################################################################################## | ||
# | ||
# GLOBAL | ||
# | ||
######################################################################################################################## | ||
|
||
fmt: ##@global format code using prettier (js, css, md) | ||
@./node_modules/.bin/prettier --color --write \ | ||
"packages/*/{src,stories,tests}/**/*.js" \ | ||
"packages/*/README.md" \ | ||
"website/src/**/*.{js,css}" \ | ||
"examples/*/src/**/*.{js,css}" \ | ||
"README.md" | ||
|
||
deploy-all: ##@global deploy website & storybook | ||
@make website-deploy | ||
@make storybook-deploy | ||
|
||
######################################################################################################################## | ||
# | ||
# CLEANUP | ||
|
@@ -134,8 +152,3 @@ storybook-deploy: ##@storybook build and deploy storybook | |
|
||
@echo "${YELLOW}Deploying storybook${RESET}" | ||
@./node_modules/.bin/gh-pages -d storybook-static -r [email protected]:plouc/nivo.git -b gh-pages -e storybook | ||
|
||
|
||
deploy-all: ##@deploy deploy website & storybook | ||
@make website-deploy | ||
@make storybook-deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,87 @@ | ||
.Background { | ||
position: fixed; | ||
top: -5px; | ||
right: -5px; | ||
bottom: -5px; | ||
left: -5px; | ||
z-index: 10; | ||
opacity: 1; | ||
position: fixed; | ||
top: -5px; | ||
right: -5px; | ||
bottom: -5px; | ||
left: -5px; | ||
z-index: 10; | ||
opacity: 1; | ||
} | ||
|
||
.App { | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
z-index: 100; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-rows: 1fr 1fr 1fr; | ||
grid-column-gap: 30px; | ||
grid-row-gap: 20px; | ||
padding: 30px; | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
z-index: 100; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-rows: 1fr 1fr 1fr; | ||
grid-column-gap: 30px; | ||
grid-row-gap: 20px; | ||
padding: 30px; | ||
} | ||
|
||
.App > div { | ||
overflow: hidden; | ||
display: flex; | ||
overflow: hidden; | ||
display: flex; | ||
} | ||
|
||
.Title { | ||
border: 3px solid #000; | ||
width: 52px; | ||
background: #f2e7c8; | ||
writing-mode: vertical-rl; | ||
display: flex; | ||
align-items: center; | ||
text-orientation: sideways; | ||
padding: 20px 0; | ||
font-family: 'Montserrat', sans-serif; | ||
font-weight: 600; | ||
border: 3px solid #000; | ||
width: 52px; | ||
background: #f2e7c8; | ||
writing-mode: vertical-rl; | ||
display: flex; | ||
align-items: center; | ||
text-orientation: sideways; | ||
padding: 20px 0; | ||
font-family: 'Montserrat', sans-serif; | ||
font-weight: 600; | ||
} | ||
|
||
.Info { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
|
||
.Brand { | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'Montserrat', sans-serif; | ||
font-size: 96px; | ||
font-weight: 900; | ||
color: #000; | ||
line-height: 70px; | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'Montserrat', sans-serif; | ||
font-size: 96px; | ||
font-weight: 900; | ||
color: #000; | ||
line-height: 70px; | ||
} | ||
|
||
.Links { | ||
width: 100%; | ||
display: flex; | ||
border: 3px solid #000; | ||
background: #f2e7c8; | ||
font-family: 'Montserrat', sans-serif; | ||
font-weight: 600; | ||
font-size: 14px; | ||
width: 100%; | ||
display: flex; | ||
border: 3px solid #000; | ||
background: #f2e7c8; | ||
font-family: 'Montserrat', sans-serif; | ||
font-weight: 600; | ||
font-size: 14px; | ||
} | ||
|
||
.Links a { | ||
flex: 1; | ||
border-left: 1px solid #000; | ||
text-align: center; | ||
padding: 12px 0; | ||
cursor: pointer; | ||
flex: 1; | ||
border-left: 1px solid #000; | ||
text-align: center; | ||
padding: 12px 0; | ||
cursor: pointer; | ||
} | ||
|
||
.Links a:first-child { | ||
border-left: none; | ||
border-left: none; | ||
} | ||
|
||
.Links a:hover { | ||
background: #000; | ||
color: #f2e7c8; | ||
} | ||
background: #000; | ||
color: #f2e7c8; | ||
} |
Oops, something went wrong.