Skip to content

Commit f6d8046

Browse files
committed
Added other fixes
1 parent 7b20427 commit f6d8046

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```
2+
import { Card } from 'react-lite;
3+
import theme from './theme.scss';
4+
5+
const App = (
6+
<Card
7+
header='Card String header'
8+
wrapContent
9+
noPadding
10+
theme={customTheme}>
11+
<span>Card Content</span>
12+
<span>Card Content</span>
13+
<span>Card Content</span>
14+
</Card>
15+
);
16+
17+
export default App;
18+
19+
// In theme.scss Customize any themeable option and pass it as a prop
20+
:local(.card) {
21+
background: #d2d2d2;
22+
}
23+
```
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:local(.code) {
2+
width: 50%;
3+
padding-bottom: 200px;
4+
margin: 0 auto;
5+
.header {
6+
font-size: 24px;
7+
font-weight: bold;
8+
}
9+
.sub-header {
10+
font-size: 18px;
11+
font-weight: bold;
12+
}
13+
.js-code {
14+
padding: 20px;
15+
background: #e2e2e2;
16+
margin-bottom: 20px;
17+
min-width: 300px;
18+
}
19+
20+
.empty-div {
21+
height: 200px;
22+
}
23+
24+
}

docs/client/components/PlaygroundPage/Documentation/styles.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
border: 1px solid #d2d2d2;
3232
border-collapse: collapse;
3333
}
34+
th {
35+
height: 40px;
36+
}
37+
td {
38+
height: 40px;
39+
padding: 5px;
40+
}
3441
.hljs {
3542
padding: 15px 0px;
3643
background: #f1f1f1;

0 commit comments

Comments
 (0)