Skip to content

Commit

Permalink
Update website styles
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Jan 8, 2018
1 parent bf03cf5 commit 0f01810
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Configuration"
title: "Options"
description: "Explore the different configuration options available for html2canvas"
previousUrl: "/getting-started"
previousTitle: "Getting Started"
Expand Down
15 changes: 13 additions & 2 deletions www/src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,25 @@ export default () =>
<footer
css={{
backgroundColor: '#558b2f',
color: 'rgba(255,255,255,0.8)',
color: 'rgba(255,255,255, 0.8)',
fontWeight: 300,
minHeight: '50px',
lineHeight: '50px',
padding: '10px 0px'
}}
>
<div css={{margin: '0 auto', width: '85%'}}>
<div
css={{
margin: '0 auto',
fontSize: '10.5px',
textAlign: 'center',
'@media(min-width: 1000px)': {
textAlign: 'left',
width: '85%',
fontSize: '14.5px'
}
}}
>
Created by{' '}
<a href="https://hertzen.com" css={{color: '#fff', fontWeight: 'bold'}}>
Niklas von Hertzen
Expand Down
13 changes: 13 additions & 0 deletions www/src/layouts/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,22 @@ table {
border: 1px solid #ddd;
}

table tr:nth-child(odd) {
background-color: #f9f9f9;
}

th {
padding: 8px;
border: 1px solid #ddd;
border-bottom-width: 2px;
}

td {
padding: 8px;
}

th:first-child, td:first-child {
padding-left: 8px;
}

:not(pre) > code {
Expand Down
18 changes: 16 additions & 2 deletions www/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ export default ({data}) => {
}
}}
>
<div>
<div
css={{
display: 'none',
'@media(min-width: 1000px)': {
display: 'block'
}
}}
>
<h4>HTML</h4>
<div
css={{marginRight: '5px'}}
Expand All @@ -79,7 +86,14 @@ export default ({data}) => {
}}
/>
</div>
<div>
<div
css={{
display: 'none',
'@media(min-width: 1000px)': {
display: 'block'
}
}}
>
<h4>JavaScript</h4>
<div
css={{marginLeft: '5px'}}
Expand Down

0 comments on commit 0f01810

Please sign in to comment.