-
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.
- Loading branch information
1 parent
4d0b371
commit bcad61d
Showing
11 changed files
with
215 additions
and
69 deletions.
There are no files selected for viewing
Empty file.
Empty file.
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 |
---|---|---|
@@ -1,21 +1,26 @@ | ||
import * as React from 'react'; | ||
import { Card, CardContent, CardHeader } from '@bifrostui/react'; | ||
import './Typography.less'; | ||
|
||
export const Typography = () => { | ||
return ( | ||
<> | ||
<h2>文本</h2> | ||
<h3>标题</h3> | ||
<div className="title-1">BUI Title 1</div> | ||
<div className="title-2">BUI Title 2</div> | ||
<div className="title-3">BUI Title 3</div> | ||
<div className="title-4">BUI Title 4</div> | ||
<div className="grid col-span-4"> | ||
<Card className="card-typography"> | ||
<CardHeader title="文本" /> | ||
<CardContent> | ||
<h3>标题</h3> | ||
<div className="title-1">BUI Title 1</div> | ||
<div className="title-2">BUI Title 2</div> | ||
<div className="title-3">BUI Title 3</div> | ||
<div className="title-4">BUI Title 4</div> | ||
|
||
<h3>正文</h3> | ||
<div className="text-1">BUI Content 1</div> | ||
<div className="text-2">BUI Content 2</div> | ||
<div className="text-3">BUI Content 3</div> | ||
<div className="text-4">BUI Content 4</div> | ||
</> | ||
<h3>正文</h3> | ||
<div className="text-1">BUI Content 1</div> | ||
<div className="text-2">BUI Content 2</div> | ||
<div className="text-3">BUI Content 3</div> | ||
<div className="text-4">BUI Content 4</div> | ||
</CardContent> | ||
</Card> | ||
</div> | ||
); | ||
}; |
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,3 +1,49 @@ | ||
.bui-theme-editor { | ||
padding: var(--bui-spacing-md) var(--bui-spacing-lg); | ||
border-radius: var(--bui-shape-radius-card); | ||
background: var(--bui-color-bg-default); | ||
|
||
display: grid; | ||
gap: var(--bui-spacing-md); | ||
grid-template-columns: repeat(12, minmax(0, 1fr)); | ||
} | ||
|
||
.grid { | ||
display: grid; | ||
gap: var(--bui-spacing-md); | ||
} | ||
|
||
.grid-cols-12 { | ||
grid-template-columns: repeat(12, minmax(0, 1fr)); | ||
} | ||
|
||
.col-span-2 { | ||
grid-column: span 2 / span 2; | ||
} | ||
|
||
.col-span-4 { | ||
grid-column: span 4 / span 4; | ||
} | ||
|
||
.col-span-6 { | ||
grid-column: span 6 / span 6; | ||
} | ||
|
||
.col-span-8 { | ||
grid-column: span 8 / span 8; | ||
} | ||
|
||
.col-span-12 { | ||
grid-column: span 12 / span 12; | ||
} | ||
|
||
.card-btn-variations { | ||
display: flex; | ||
|
||
.bui-card-content { | ||
flex: 1 1 auto; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,4 @@ | |
order: 1 | ||
--- | ||
|
||
# 主题定制器 | ||
|
||
<code src="../components/theme-designer/index.tsx" inline="true"></code> |
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