forked from lobehub/dumi-theme-lobehub
-
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.
fix(Previewer): add reset style for Typography of LobeUI
- Loading branch information
Showing
10 changed files
with
189 additions
and
34 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,34 @@ | ||
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui'; | ||
import type { BreadcrumbProps } from 'antd'; | ||
import { Breadcrumb } from 'antd'; | ||
import React from 'react'; | ||
|
||
const items = [ | ||
{ | ||
path: '/apps', | ||
title: 'Application List', | ||
}, | ||
{ | ||
path: '/detail/app-1', | ||
title: 'Detail', | ||
}, | ||
{ | ||
path: '/versions', | ||
title: 'Version', | ||
}, | ||
]; | ||
|
||
export default () => { | ||
const store = useCreateStore(); | ||
const control: BreadcrumbProps | any = useControls( | ||
{ | ||
separator: '/', | ||
}, | ||
{ store } | ||
); | ||
return ( | ||
<StoryBook levaStore={store}> | ||
<Breadcrumb {...control} items={items} /> | ||
</StoryBook> | ||
); | ||
}; |
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,46 @@ | ||
import React from 'react'; | ||
|
||
export default () => { | ||
return ( | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<div> | ||
<span>状态</span> | ||
<span> | ||
<span> | ||
<span>已发布</span> | ||
</span> | ||
</span> | ||
</div> | ||
</td> | ||
<td> | ||
<div> | ||
<span>发布时间</span> | ||
<span> | ||
<span>2024-07-29 19:44:30</span> | ||
</span> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<div> | ||
<span>创建者</span> | ||
<span>Luobo Zhang</span> | ||
</div> | ||
</td> | ||
<td> | ||
<div> | ||
<span>更新时间</span> | ||
<span> | ||
<span>2024-07-29 19:44:30</span> | ||
</span> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { css } from 'antd-style'; | ||
|
||
export const resetStyle = css` | ||
blockquote, | ||
code, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
hr, | ||
img, | ||
kbd, | ||
p, | ||
pre, | ||
strong, | ||
video { | ||
all: unset; | ||
} | ||
details { | ||
all: unset; | ||
summary { | ||
all: unset; | ||
} | ||
} | ||
a { | ||
color: unset; | ||
&:hover { | ||
color: unset; | ||
} | ||
} | ||
ol, | ||
ul { | ||
all: unset; | ||
& > li { | ||
all: unset; | ||
} | ||
} | ||
table { | ||
all: unset; | ||
code, | ||
thead, | ||
tr, | ||
th, | ||
td { | ||
all: unset; | ||
} | ||
} | ||
`; |
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,24 +1,19 @@ | ||
import { createGlobalStyle } from 'antd-style'; | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
#nprogress { | ||
.bar { | ||
background: ${({ theme }) => theme.colorText}; | ||
} | ||
.peg { | ||
display: none !important; | ||
} | ||
.spinner { | ||
display: none; | ||
#nprogress { | ||
.bar { | ||
background: ${({ theme }) => theme.colorText}; | ||
} | ||
.peg { | ||
display: none !important; | ||
} | ||
.spinner { | ||
display: none; | ||
} | ||
} | ||
} | ||
`; | ||
|
||
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