-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
0ae4d7f
commit 9a9f37b
Showing
9 changed files
with
169 additions
and
207 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
37 changes: 37 additions & 0 deletions
37
docs/src/app/components/pages/components/Paper/ExampleCircle.jsx
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,37 @@ | ||
import React from 'react'; | ||
import Paper from 'material-ui/lib/paper'; | ||
|
||
const style = { | ||
root: { | ||
height: 100, | ||
width: 100, | ||
marginLeft: 40, | ||
textAlign: 'center', | ||
display: 'inline-block', | ||
}, | ||
p: { | ||
lineHeight: '80px', | ||
}, | ||
}; | ||
|
||
const PaperExampleCircle = () => ( | ||
<div> | ||
<Paper style={style.root} zDepth={1} circle={true}> | ||
<p style={style.p}>circle=true</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={2} circle={true}> | ||
<p style={style.p}>circle=true</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={3} circle={true}> | ||
<p style={style.p}>circle=true</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={4} circle={true}> | ||
<p style={style.p}>circle=true</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={5} circle={true}> | ||
<p style={style.p}>circle=true</p> | ||
</Paper> | ||
</div> | ||
); | ||
|
||
export default PaperExampleCircle; |
37 changes: 37 additions & 0 deletions
37
docs/src/app/components/pages/components/Paper/ExampleRounded.jsx
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,37 @@ | ||
import React from 'react'; | ||
import Paper from 'material-ui/lib/paper'; | ||
|
||
const style = { | ||
root: { | ||
height: 100, | ||
width: 100, | ||
marginLeft: 40, | ||
textAlign: 'center', | ||
display: 'inline-block', | ||
}, | ||
p: { | ||
lineHeight: '80px', | ||
}, | ||
}; | ||
|
||
const PaperExampleRounded = () => ( | ||
<div> | ||
<Paper style={style.root} zDepth={1} rounded={false}> | ||
<p style={style.p}>rounded=false</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={2} rounded={false}> | ||
<p style={style.p}>rounded=false</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={3} rounded={false}> | ||
<p style={style.p}>rounded=false</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={4} rounded={false}> | ||
<p style={style.p}>rounded=false</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={5} rounded={false}> | ||
<p style={style.p}>rounded=false</p> | ||
</Paper> | ||
</div> | ||
); | ||
|
||
export default PaperExampleRounded; |
37 changes: 37 additions & 0 deletions
37
docs/src/app/components/pages/components/Paper/ExampleSimple.jsx
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,37 @@ | ||
import React from 'react'; | ||
import Paper from 'material-ui/lib/paper'; | ||
|
||
const style = { | ||
root: { | ||
height: 100, | ||
width: 100, | ||
marginLeft: 40, | ||
textAlign: 'center', | ||
display: 'inline-block', | ||
}, | ||
p: { | ||
lineHeight: '80px', | ||
}, | ||
}; | ||
|
||
const PaperExampleSimple = () => ( | ||
<div> | ||
<Paper style={style.root} zDepth={1}> | ||
<p style={style.p}>zDepth=1</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={2}> | ||
<p style={style.p}>zDepth=2</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={3}> | ||
<p style={style.p}>zDepth=3</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={4}> | ||
<p style={style.p}>zDepth=4</p> | ||
</Paper> | ||
<Paper style={style.root} zDepth={5}> | ||
<p style={style.p}>zDepth=5</p> | ||
</Paper> | ||
</div> | ||
); | ||
|
||
export default PaperExampleSimple; |
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,31 @@ | ||
import React from 'react'; | ||
import CodeExample from '../../../CodeExample'; | ||
import PropTypeDescription from '../../../PropTypeDescription'; | ||
import MarkdownElement from '../../../MarkdownElement'; | ||
|
||
import paperReadmeText from './README'; | ||
import paperCode from '!raw!material-ui/lib/paper'; | ||
import PaperExampleSimple from './ExampleSimple'; | ||
import paperExampleSimpleCode from '!raw!./ExampleSimple'; | ||
import PaperExampleRounded from './ExampleRounded'; | ||
import paperExampleRoundedCode from '!raw!./ExampleRounded'; | ||
import PaperExampleCircle from './ExampleCircle'; | ||
import paperExampleCircleCode from '!raw!./ExampleCircle'; | ||
|
||
const PaperPage = () => ( | ||
<div> | ||
<MarkdownElement text={paperReadmeText} /> | ||
<CodeExample code={paperExampleSimpleCode}> | ||
<PaperExampleSimple /> | ||
</CodeExample> | ||
<CodeExample code={paperExampleRoundedCode}> | ||
<PaperExampleRounded /> | ||
</CodeExample> | ||
<CodeExample code={paperExampleCircleCode}> | ||
<PaperExampleCircle /> | ||
</CodeExample> | ||
<PropTypeDescription code={paperCode}/> | ||
</div> | ||
); | ||
|
||
export default PaperPage; |
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,5 @@ | ||
## Paper | ||
A [Paper](https://www.google.com/design/spec/layout/principles.html#principles-how-paper-works) | ||
element is a basic container that can give depth to the page. | ||
|
||
### Examples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.