This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docz-theme-default): use theme getter instead of literal obj access
- Loading branch information
1 parent
8d300ab
commit 89e1d03
Showing
20 changed files
with
86 additions
and
86 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
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
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
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,6 +1,7 @@ | ||
import styled from '@emotion/styled' | ||
import { get } from '@utils/theme' | ||
import { mq } from '@styles/responsive' | ||
|
||
export const H3 = styled('h3')` | ||
${p => p.theme.docz.mq(get('styles.h3')(p))}; | ||
${p => mq(get('styles.h3')(p))}; | ||
` |
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,6 +1,7 @@ | ||
import styled from '@emotion/styled' | ||
import { get } from '@utils/theme' | ||
import { mq } from '@styles/responsive' | ||
|
||
export const H4 = styled('h4')` | ||
${p => p.theme.docz.mq(get('styles.h4')(p))}; | ||
${p => mq(get('styles.h4')(p))}; | ||
` |
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,6 +1,7 @@ | ||
import styled from '@emotion/styled' | ||
import { get } from '@utils/theme' | ||
import { mq } from '@styles/responsive' | ||
|
||
export const H5 = styled('h5')` | ||
${p => p.theme.docz.mq(get('styles.h5')(p))}; | ||
${p => mq(get('styles.h5')(p))}; | ||
` |
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,6 +1,7 @@ | ||
import styled from '@emotion/styled' | ||
import { get } from '@utils/theme' | ||
import { mq } from '@styles/responsive' | ||
|
||
export const H6 = styled('h6')` | ||
${p => p.theme.docz.mq(get('styles.h6')(p))}; | ||
${p => mq(get('styles.h6')(p))}; | ||
` |
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,12 +1,12 @@ | ||
import styled from '@emotion/styled' | ||
import { get } from '@utils/theme' | ||
import { mq } from '@styles/responsive' | ||
|
||
export const Hr = styled('hr')` | ||
border: none; | ||
border-top: 1px dashed ${get('colors.border')}; | ||
${p => | ||
p.theme.docz.mq({ | ||
margin: ['30px 0', '50px 0'], | ||
})}; | ||
${mq({ | ||
margin: ['30px 0', '50px 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import styled from '@emotion/styled' | ||
import { get } from '@utils/theme' | ||
import { mq } from '@styles/responsive' | ||
|
||
export const InlineCode = styled('code')` | ||
background: ${get('colors.codeBg')}; | ||
color: ${get('colors.codeColor')}; | ||
${p => p.theme.docz.mq(p.theme.docz.styles.code)}; | ||
${p => mq(get('styles.code')(p))}; | ||
` |
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
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.