-
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.
Merge pull request #73 from nllerandi/Nav-styles#71
Nav styles#71
- Loading branch information
Showing
19 changed files
with
243 additions
and
36 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
Empty file.
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,20 @@ | ||
import {createGlobalStyle} from 'styled-components' | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
body { | ||
margin: 0; | ||
padding: 90px 0 0; | ||
box-sizing: border-box; | ||
font-family: Arial, Helvetica, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
a:link, a:visited { | ||
text-decoration: none; | ||
list-style: none; | ||
color: inherit; | ||
} | ||
`; | ||
|
||
export default GlobalStyle |
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
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,14 @@ | ||
import styled from 'styled-components' | ||
|
||
export const Button = styled.button` | ||
padding: 5px 20px; | ||
border-radius: 4px; | ||
color: white; | ||
font-size: 2rem; | ||
border: none; | ||
background: indigo; | ||
`; | ||
|
||
export const CancelButton = styled(Button)` | ||
background: tomato; | ||
`; |
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,9 @@ | ||
import styled from 'styled-components' | ||
import {above} from '../utils' | ||
|
||
export const Heading = styled.h1` | ||
font-size: 2rem; | ||
${above.large` | ||
color:black; | ||
`} | ||
`; |
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,2 @@ | ||
export * from './Headings' | ||
export * from './Buttons' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
import {css} from 'styled-components' | ||
|
||
const sizes = { | ||
small: 400, | ||
med: 960, | ||
large: 1140 | ||
} | ||
|
||
export const above = Object.keys(sizes).reduce((acc, label) => { | ||
acc[label] = (...args) => css` | ||
@media (min-width: ${sizes[label]}px) { | ||
${css(...args)} | ||
} | ||
` | ||
return acc | ||
}, {}) | ||
|
||
export const below = Object.keys(sizes).reduce((acc, label) => { | ||
acc[label] = (...args) => css` | ||
@media (max-width: ${sizes[label]}px) { | ||
${css(...args)} | ||
} | ||
` | ||
return acc | ||
}, {}) | ||
|
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,5 @@ | ||
export const green = '#92EEC4' | ||
export const blue = '#85DAEF' | ||
export const lightblue = '#8EEEEF' | ||
export const black = '#242729' | ||
export const lightblack = '#848d95' |
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,5 @@ | ||
export default [ | ||
'box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.7)', | ||
'box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)', | ||
'box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)', | ||
] |
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,27 @@ | ||
import {css} from 'styled-components' | ||
|
||
export const fixed = ({ | ||
x = 0, | ||
y = 0, | ||
yProp = 'top', | ||
xProp = 'left' | ||
} = {}) => { | ||
return css` | ||
position: fixed; | ||
${yProp}: ${y}; | ||
${xProp}: ${x}; | ||
`; | ||
} | ||
|
||
export const absolute = ({ | ||
x = 0, | ||
y = 0, | ||
yProp = 'top', | ||
xProp = 'left' | ||
} = {}) => { | ||
return css` | ||
position: absolute; | ||
${yProp}: ${y}; | ||
${xProp}: ${x}; | ||
`; | ||
} |
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 elevation from './Elevation' | ||
|
||
export * from './Breakpoints' | ||
export * from './Colors' | ||
export * from './Position' | ||
|
||
export {elevation}; |