Skip to content

Commit

Permalink
fix(vx-demo/Chord): move non-sandbox styles back into Example tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed May 9, 2020
1 parent 95b8bb0 commit fa29050
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
19 changes: 19 additions & 0 deletions packages/vx-demo/src/docs-v2/examples/vx-chord/Example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,25 @@ export default function Example({ width, height, centerSize = 20, events = false
Based on Mike Bostock's <a href="https://bl.ocks.org/mbostock/4062006">Chord Diagram</a>
</div>
</div>
<style jsx>{`
.chords {
display: flex;
flex-direction: column;
user-select: none;
}
svg {
margin: 1rem 0;
cursor: pointer;
}
.deets {
display: flex;
flex-direction: row;
font-size: 12px;
}
.deets > div {
margin: 0.25rem;
}
`}</style>
</div>
);
}
20 changes: 0 additions & 20 deletions packages/vx-demo/src/docs-v2/examples/vx-chord/sandbox-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,3 @@ body,
'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 2em;
}

.chords {
display: flex;
flex-direction: column;
user-select: none;
}

svg {
margin: 1rem 0;
cursor: pointer;
}

.deets {
display: flex;
flex-direction: row;
font-size: 12px;
}
.deets > div {
margin: 0.25rem;
}

0 comments on commit fa29050

Please sign in to comment.