forked from babel/sandboxes
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyles.js
48 lines (39 loc) · 873 Bytes
/
styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import styled from "styled-components";
import ReactMarkdown from "react-markdown";
import { Accordion } from "semantic-ui-react";
import { Editor } from "./Editor";
const Root = styled.div``;
const Wrapper = styled.div``;
const Config = styled(Editor)`
padding: 4px;
`;
const Code = styled(Editor)``;
// AST Viz Components
const StyledAccordion = styled(Accordion)`
font-family: "Lucida Console", Courier, monospace !important;
`;
const StyledAccordionTitle = styled(Accordion.Title)`
font-family: "Lucida Console", Courier, monospace !important;
background: ${props =>
props.highlight ? "#ffff99" : "rgb(221, 221, 221)"} !important;
`;
const Markdown = styled(ReactMarkdown)`
h1,
h2,
h3,
h4,
h5,
h6,
p {
font-size: 15px;
}
`;
export {
Root,
Wrapper,
Config,
Code,
StyledAccordion,
StyledAccordionTitle,
Markdown,
};