-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #10: Split style file into proper files
- Loading branch information
Showing
21 changed files
with
204 additions
and
168 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,16 @@ | ||
import styled from 'styled-components'; | ||
|
||
export default styled.a` | ||
color: white; | ||
text-decoration: none; | ||
position: relative; | ||
&:before { | ||
content: ''; | ||
position: absolute; | ||
border-bottom: 1px solid white; | ||
left: 0; | ||
right: 0; | ||
bottom: -2px; | ||
} | ||
`; |
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 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { media } from 'styles'; | ||
|
||
export default styled.br` | ||
${media.laptop`display: none`}; | ||
`; |
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,21 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { primaryColor, media } from 'styles'; | ||
|
||
export default styled.footer` | ||
height: 50px; | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
color: white; | ||
text-align: center; | ||
background-color: ${primaryColor}; | ||
padding: 10px; | ||
display: flex; | ||
font-weight: 100; | ||
${media.tablet` | ||
height: 30px; | ||
`}; | ||
`; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import styled from 'styled-components'; | ||
|
||
export default styled.a` | ||
width: 30px; | ||
height: auto; | ||
margin: auto 0; | ||
`; |
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,6 @@ | ||
import styled from 'styled-components'; | ||
|
||
export default styled.p` | ||
display: inline-block; | ||
margin: auto; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { primaryColor, media } from 'styles'; | ||
|
||
export default styled.button` | ||
background-color: ${primaryColor}; | ||
color: white; | ||
border: 0; | ||
font-weight: 700; | ||
padding: .8em; | ||
display: block; | ||
margin: 0 auto 10px auto; | ||
width: 80%; | ||
font-size: 1.5em; | ||
cursor: pointer; | ||
${media.tablet` | ||
width: 300px; | ||
margin: 0 auto 10px auto; | ||
`}; | ||
`; |
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,15 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { secondaryColor, media } from 'styles'; | ||
|
||
export default styled.div` | ||
color: ${secondaryColor}; | ||
font-weight: 700; | ||
text-align: center; | ||
font-size: 5em; | ||
margin-bottom: 5%; | ||
${media.tablet` | ||
margin-bottom: 20px; | ||
`}; | ||
`; |
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,11 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { primaryColor } from 'styles'; | ||
|
||
export default styled.p` | ||
color: ${primaryColor}; | ||
font-weight: 400; | ||
text-align: center; | ||
font-size: 3em; | ||
margin: 0; | ||
`; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { primaryColor, secondaryColor, media } from 'styles'; | ||
|
||
export default styled.input` | ||
display: block; | ||
border: 0; | ||
border-bottom: 1px solid ${primaryColor}; | ||
margin: 10% auto; | ||
width: 80%; | ||
font-size: 1.5em; | ||
background-color: transparent; | ||
&::placeholder { | ||
color: ${secondaryColor}; | ||
opacity: 0.6; | ||
} | ||
${media.tablet` | ||
width: 300px; | ||
margin: 40px auto; | ||
`}; | ||
`; |
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,21 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { primaryColor, media } from 'styles'; | ||
|
||
export default styled.input` | ||
background-color: ${primaryColor}; | ||
color: white; | ||
border: 0; | ||
font-weight: 700; | ||
padding: .8em; | ||
display: block; | ||
margin: auto; | ||
width: 80%; | ||
font-size: 1.5em; | ||
cursor: pointer; | ||
${media.tablet` | ||
margin: 40px auto; | ||
width: 300px; | ||
`}; | ||
`; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { media } from 'styles'; | ||
|
||
export default styled.img` | ||
display: block; | ||
${media.tablet` | ||
display: inline-block; | ||
`}; | ||
`; |
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,16 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { media } from 'styles'; | ||
|
||
export default styled.div` | ||
margin: 10% auto 5% auto; | ||
width: 7.143em; | ||
${media.tablet` | ||
margin: 30px 50px 5vh 50px; | ||
`} ${media.desktop` | ||
margin-bottom: 7vh; | ||
`} ${media.big` | ||
margin-bottom: 18vh; | ||
`}; | ||
`; |
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
Oops, something went wrong.