File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import Highlight , { defaultProps } from 'prism-react-renderer'
3
3
import styled from 'styled-components'
4
- import duotoneLight from 'prism-react-renderer/themes/duotoneLight '
4
+ import duotoneLight from 'prism-react-renderer/themes/oceanicNext '
5
5
6
- // TODO: fix text overflow
7
6
const Pre = styled . pre `
8
- font-family: 'Courier Prime ', monospace;
7
+ font-family: 'Inconsolata ', monospace;
9
8
font-size: .9em;
10
9
overflow: auto;
11
10
text-align: left;
12
- /* margin: 1em 0; */
13
- padding: 0.5em;
11
+ padding: 0.5em 0.5em 0.5em 0;
14
12
& .token-line {
15
13
line-height: 1.4em;
16
14
height: 1.3em;
17
15
}
18
16
`
19
17
const LineNo = styled . span `
20
18
display: inline-block;
21
- padding-right: 1em;
19
+ text-align: right;
20
+ width: 1.5em;
21
+ margin: 0 1em 0 0;
22
22
user-select: none;
23
23
opacity: 0.5;
24
+ color: rgb(144, 210, 245);
24
25
`
25
- // const Line = styled.div`
26
- // display: table-row;
27
- // `
28
- // const LineContent = styled.span`
29
- // display: table-cell;
30
- // `
31
26
32
27
export default function DescriptiveItem ( { section } ) {
33
28
console . log ( 'DescriptiveItem props: ' , section )
Original file line number Diff line number Diff line change 4
4
5
5
@import url ('https://fonts.googleapis.com/css2?family=Barlow:wght@200;300;400;500;600&display=swap' );
6
6
7
- @import url ('https://fonts.googleapis.com/css2?family=Courier+Prime :wght@400;700 &display=swap' );
7
+ @import url ('https://fonts.googleapis.com/css2?family=Inconsolata :wght@300; 400;500 &display=swap' );
8
8
9
9
* {
10
10
padding : 0 ;
@@ -211,7 +211,7 @@ tr th:first-child, tr td:first-child {
211
211
}
212
212
213
213
kbd {
214
- font-family : 'Courier Prime ' , monospace;
214
+ font-family : 'Inconsolata ' , monospace;
215
215
background-color : rgb (34 , 34 , 34 );
216
216
color : white;
217
217
padding : 5px ;
@@ -220,10 +220,6 @@ kbd {
220
220
font-size : .9em ;
221
221
}
222
222
223
- /* pre {
224
- font-family: 'Courier Prime', monospace;
225
- } */
226
-
227
223
footer {
228
224
height : 100px ;
229
225
margin : 40px 0 0 ;
You can’t perform that action at this time.
0 commit comments