Skip to content

Commit

Permalink
CSS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Aug 17, 2015
1 parent a27fe7e commit 7cdc6a7
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 1,222 deletions.
1,304 changes: 150 additions & 1,154 deletions index.html

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions modules/react-docs/components/Code.jsx
Expand Up @@ -94,23 +94,6 @@ class Code extends ReactCSS.Component {
return (
<Raised>

<style>{`
.rendered{
color: #607D8B; // blue grey 500
}
.rendered .hljs-comment {
color: #B0BEC5; // blue grey 200
}
.rendered .hljs-keyword{
color: #EF9A9A; // red 200
}
.rendered .hljs-string{
color: #689F38; // light green 700
}
.rendered .hljs-title{
}
`}</style>

<Tile is="Tile">
<div is="numbers">
{ lines }
Expand Down
71 changes: 63 additions & 8 deletions modules/react-docs/components/Docs.jsx
Expand Up @@ -111,14 +111,69 @@ class Docs extends ReactCSS.Component {
}

return (
<Grid>
<div is="sidebar" ref="sidebar">
<Sidebar files={ this.props.markdown } active={ this.state.visible } primaryColor={ this.props.primaryColor } bottom={ this.props.bottom } fixed={ this.state.sidebarFixed } />
</div>
<div ref="files" is="files">
{ markdownFiles }
</div>
</Grid>
<div>

<style>{`
.rendered{
color: #607D8B; // blue grey 500
}
.rendered .hljs-comment {
color: #B0BEC5; // blue grey 200
}
.rendered .hljs-keyword{
color: #EF9A9A; // red 200
}
.rendered .hljs-string{
color: #689F38; // light green 700
}
.rendered .hljs-title{
}
.text code{
background: #ddd;
padding: 1px 5px 3px;
border-radius: 2px;
box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
font-size: 85%;
vertical-align: bottom;
}
.markdown p{
margin: 15px 24px 15px 0;
}
.markdown h1{
font-size: 38px;
font-weight: 200;
color: rgba(0,0,0,.77);
margin: 0;
padding-top: 54px;
padding-bottom: 5px;
}
.markdown h2{
font-size: 26px;
line-height: 32px;
font-weight: 200;
color: rgba(0,0,0,.57);
padding-top: 20px;
margin-top: 20px;
margin-bottom: 10px;
}
.markdown h3{
font-weight: normal;
font-size: 20px;
padding-top: 20px;
margin-top: 20px;
color: rgba(0,0,0,.67);
}
`}</style>

<Grid>
<div is="sidebar" ref="sidebar">
<Sidebar files={ this.props.markdown } active={ this.state.visible } primaryColor={ this.props.primaryColor } bottom={ this.props.bottom } fixed={ this.state.sidebarFixed } />
</div>
<div ref="files" is="files">
{ markdownFiles }
</div>
</Grid>
</div>
);
}
}
Expand Down
43 changes: 0 additions & 43 deletions modules/react-docs/components/Markdown.jsx
Expand Up @@ -48,50 +48,7 @@ module.exports = class Markdown extends ReactCSS.Component {

return (
<div is="markdown">
<style>{`
.text code{
background: #ddd;
padding: 1px 5px 3px;
border-radius: 2px;
box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
font-size: 85%;
vertical-align: bottom;
}
.markdown p{
margin: 15px 24px 15px 0;
}
.markdown h1{
font-size: 38px;
font-weight: 200;
color: rgba(0,0,0,.77);
margin: 0;
padding-top: 54px;
padding-bottom: 5px;
}
.markdown h2{
font-size: 26px;
line-height: 32px;
font-weight: 200;
color: rgba(0,0,0,.57);
padding-top: 20px;
margin-top: 20px;
margin-bottom: 10px;
}
.markdown h3{
font-weight: normal;
font-size: 20px;
padding-top: 20px;
margin-top: 20px;
color: rgba(0,0,0,.67);
}
`}</style>

{ markdownFile }

</div>
);
}
Expand Down

0 comments on commit 7cdc6a7

Please sign in to comment.