-
Notifications
You must be signed in to change notification settings - Fork 9
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 #64 from Giveth/add_lead_large
add lead large font size
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 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 |
---|---|---|
@@ -1,10 +1,28 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Lead = styled.div` | ||
export interface ILeadProps { | ||
size?: 'medium' | 'large'; | ||
} | ||
|
||
const fontSize = { | ||
medium: '20px', | ||
large: '24px', | ||
}; | ||
|
||
export const Lead = styled.div<ILeadProps>` | ||
/* Body/Lead */ | ||
font-family: Red Hat Text; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-size: 20px; | ||
line-height: 150%; | ||
${props => { | ||
switch (props.size) { | ||
case 'medium': | ||
return `font-size: ${fontSize.medium};`; | ||
case 'large': | ||
return `font-size: ${fontSize.large};`; | ||
default: | ||
return `font-size: ${fontSize.medium};`; | ||
} | ||
}} | ||
`; |
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