This repository was archived by the owner on Aug 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
[Enhancement] Timber Styles #127
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
63523ca
allow choice of syntax highlighter
d011b0f
add simple divider component, update markdown styling
22dfa30
update search styles, add icons, responsive widths
d8f3f8c
add search scrolling, toc, and better empty state
21a9ccb
linting fixes
c912368
remove comment
5b21c7c
adjust monospace styles
2396228
ellipsify in css
3cb10e4
pull out toc logic, fix config casing, don't parse JSON when we don't…
f9fad76
adjust content wrapper
dad5247
update background
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 @@ | ||
| import styled from 'react-emotion' | ||
|
|
||
| export default styled('div')` | ||
| width: 1024px; | ||
| margin: 0 auto; | ||
| ` |
This file contains hidden or 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 hidden or 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,14 +1,134 @@ | ||
| import React from 'react' | ||
| import ContentLoader from 'react-content-loader' | ||
| import { Wrapper } from './styles' | ||
|
|
||
| // @TODO: Make this a little more responsive by passing in 400 for the height | ||
| // on smaller screens | ||
| export default function (props) { | ||
| return ( | ||
| <Wrapper> | ||
| <div /> | ||
| <div /> | ||
| <div /> | ||
| <div /> | ||
| <div /> | ||
| <ContentLoader | ||
| height={160} | ||
| width={800} | ||
| speed={1} | ||
| primaryColor="#F4F5F6" | ||
| secondaryColor="#ececf1" | ||
| {...props} | ||
| > | ||
| <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> | ||
| <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> | ||
| <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> | ||
| </ContentLoader> | ||
| <ContentLoader | ||
| height={160} | ||
| width={800} | ||
| speed={1} | ||
| primaryColor="#F4F5F6" | ||
| secondaryColor="#ececf1" | ||
| {...props} | ||
| > | ||
| <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> | ||
| <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> | ||
| <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> | ||
| </ContentLoader> | ||
| <ContentLoader | ||
| height={140} | ||
| width={800} | ||
| speed={1} | ||
| primaryColor="#F4F5F6" | ||
| secondaryColor="#ececf1" | ||
| {...props} | ||
| > | ||
| <rect x="0" y="0" rx="3" ry="3" width="70" height="13" /> | ||
| <rect x="80" y="0" rx="3" ry="3" width="100" height="13" /> | ||
| <rect x="190" y="0" rx="3" ry="3" width="10" height="13" /> | ||
| <rect x="15" y="30" rx="3" ry="3" width="130" height="13" /> | ||
| <rect x="155" y="30" rx="3" ry="3" width="130" height="13" /> | ||
| <rect x="15" y="60" rx="3" ry="3" width="90" height="13" /> | ||
| <rect x="115" y="60" rx="3" ry="3" width="60" height="13" /> | ||
| <rect x="185" y="60" rx="3" ry="3" width="60" height="13" /> | ||
| <rect x="0" y="90" rx="3" ry="3" width="30" height="13" /> | ||
| <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> | ||
| </ContentLoader> | ||
| <ContentLoader | ||
| height={160} | ||
| width={800} | ||
| speed={1} | ||
| primaryColor="#F4F5F6" | ||
| secondaryColor="#ececf1" | ||
| {...props} | ||
| > | ||
| <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> | ||
| <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> | ||
| <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> | ||
| </ContentLoader> | ||
| <ContentLoader | ||
| height={140} | ||
| width={800} | ||
| speed={1} | ||
| primaryColor="#F4F5F6" | ||
| secondaryColor="#ececf1" | ||
| {...props} | ||
| > | ||
| <rect x="0" y="0" rx="3" ry="3" width="70" height="13" /> | ||
| <rect x="80" y="0" rx="3" ry="3" width="100" height="13" /> | ||
| <rect x="190" y="0" rx="3" ry="3" width="10" height="13" /> | ||
| <rect x="15" y="30" rx="3" ry="3" width="130" height="13" /> | ||
| <rect x="155" y="30" rx="3" ry="3" width="130" height="13" /> | ||
| <rect x="15" y="60" rx="3" ry="3" width="90" height="13" /> | ||
| <rect x="115" y="60" rx="3" ry="3" width="60" height="13" /> | ||
| <rect x="185" y="60" rx="3" ry="3" width="60" height="13" /> | ||
| <rect x="0" y="90" rx="3" ry="3" width="30" height="13" /> | ||
| <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> | ||
| </ContentLoader> | ||
| <ContentLoader | ||
| height={160} | ||
| width={800} | ||
| speed={1} | ||
| primaryColor="#F4F5F6" | ||
| secondaryColor="#ececf1" | ||
| {...props} | ||
| > | ||
| <rect x="0" y="0" rx="3" ry="3" width="10%" height="13" /> | ||
| <rect x="12%" y="0" rx="3" ry="3" width="25%" height="13" /> | ||
| <rect x="0" y="30" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="30" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="30" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="60" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="60" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="60" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="90" rx="3" ry="3" width="30%" height="10" /> | ||
| <rect x="32%" y="90" rx="3" ry="3" width="55%" height="10" /> | ||
| <rect x="89%" y="90" rx="3" ry="3" width="10%" height="10" /> | ||
| <rect x="0" y="130" rx="3" ry="3" width="100%" height="1" /> | ||
| </ContentLoader> | ||
| </Wrapper> | ||
| ) | ||
| } |
This file contains hidden or 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,40 +1,4 @@ | ||
| import styled, { keyframes } from 'react-emotion' | ||
|
|
||
| const stretch = keyframes` | ||
| 0%, | ||
| 40%, | ||
| 100% { | ||
| transform: scaleY(0.4); | ||
| } | ||
| 20% { | ||
| transform: scaleY(1.0); | ||
| } | ||
| ` | ||
| import styled from 'react-emotion' | ||
|
|
||
| export const Wrapper = styled('div')` | ||
| width: 50px; | ||
| height: 40px; | ||
| text-align: center; | ||
| font-size: 10px; | ||
| div { | ||
| background: #E6E9EB; | ||
| height: 100%; | ||
| width: 5px; | ||
| display: inline-block; | ||
| animation: ${stretch} 1.2s infinite ease-in-out; | ||
| margin: 0 1px; | ||
| &:nth-child(2) { | ||
| animation-delay: -1.1s; | ||
| } | ||
| &:nth-child(3) { | ||
| animation-delay: -1.0s; | ||
| } | ||
| &:nth-child(4) { | ||
| animation-delay: -0.9s; | ||
| } | ||
| &:nth-child(5) { | ||
| animation-delay: -0.8s; | ||
| } | ||
| } | ||
| }), | ||
| ` |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely don't think the user should have to specify prism or highlight. We should automatically default to one or the other depending on which one supports the language.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but let's roll that up into the language detection epic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we do default to Highlight.js now.