forked from thenewboston-blockchain/Website
-
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.
refactor: RequiredAsterisk, Shadow & Slideup (thenewboston-blockchain…
…#2095) * RequiredAsterisk, Shadow & Slideup
- Loading branch information
1 parent
727efa4
commit 722863c
Showing
11 changed files
with
70 additions
and
66 deletions.
There are no files selected for viewing
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,7 @@ | ||
import styled from 'styled-components'; | ||
import colors from 'styles/colors'; | ||
|
||
export const RequiredAsterisk = styled.span` | ||
color: ${colors.alert}; | ||
margin-left: 3px; | ||
`; |
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 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,9 @@ | ||
import styled from 'styled-components'; | ||
import colors from 'styles/colors'; | ||
|
||
export const Shadow = styled.div` | ||
background: ${colors.palette.gray['005']}; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06); | ||
height: 1px; | ||
width: 100vw; | ||
`; |
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,9 +1,7 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import {SFC} from 'types/generic'; | ||
import * as S from './Style'; | ||
|
||
import './Shadow.scss'; | ||
|
||
const Shadow: SFC = ({className}) => <div className={clsx('Shadow', className)} />; | ||
const Shadow: SFC = ({className}) => <S.Shadow className={className} />; | ||
|
||
export default Shadow; |
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,36 @@ | ||
import styled, {keyframes} from 'styled-components'; | ||
import zIndex from 'styles/zIndex'; | ||
import colors from 'styles/colors'; | ||
|
||
export const SlideUp = styled.div` | ||
bottom: 0; | ||
position: absolute; | ||
width: 100vw; | ||
z-index: ${zIndex.slideup}; | ||
`; | ||
|
||
export const SlideUpContent = styled.div` | ||
background: ${colors.white}; | ||
box-shadow: 0px -3px 12px rgba(4, 34, 53, 0.25); | ||
padding: 24px 30px 40px; | ||
`; | ||
|
||
const addOverlay = keyframes` | ||
from { | ||
background: rgba(0, 0, 0, 0); | ||
} | ||
to { | ||
background: rgba(0, 0, 0, 0.3); | ||
} | ||
} | ||
`; | ||
|
||
export const SlideUpOverlay = styled.div` | ||
animation: ${addOverlay} 0.3s forwards; | ||
height: 100vh; | ||
left: 0; | ||
position: fixed; | ||
top: 0; | ||
width: 100vw; | ||
z-index: ${zIndex.slideupOverlay}; | ||
`; |
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