This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +36
-0
lines changed
packages/docz-theme-default Expand file tree Collapse file tree 6 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ const config = {
105
105
codeBg: colors .grayExtraLight ,
106
106
codeColor: colors .gray ,
107
107
preBg: colors .grayExtraLight ,
108
+ blockquoteBg: colors .grayExtraLight ,
109
+ blockquoteBorder: colors .grayLight ,
110
+ blockquoteColor: colors .gray ,
108
111
},
109
112
/**
110
113
* Styles
@@ -173,6 +176,12 @@ const config = {
173
176
fontFamily: ' "Source Code Pro", monospace' ,
174
177
fontSize: 14 ,
175
178
},
179
+ blockquote: {
180
+ margin: ' 25px 0' ,
181
+ padding: ' 20px' ,
182
+ fontStyle: ' italic' ,
183
+ fontSize: 18 ,
184
+ },
176
185
}
177
186
}
178
187
```
Original file line number Diff line number Diff line change
1
+ import styled from 'react-emotion'
2
+
3
+ export const Blockquote = styled ( 'blockquote' ) `
4
+ background: ${ p => p . theme . docz . colors . blockquoteBg } ;
5
+ border-left: 5px solid ${ p => p . theme . docz . colors . blockquoteBorder } ;
6
+ color: ${ p => p . theme . docz . colors . blockquoteColor } ;
7
+ ${ p => p . theme . docz . styles . blockquote } ;
8
+
9
+ & > p {
10
+ margin: 0;
11
+ color: ${ p => p . theme . docz . colors . blockquoteColor } ;
12
+ }
13
+ `
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export { H3 } from './H3'
4
4
export { H4 } from './H4'
5
5
export { H5 } from './H5'
6
6
export { H6 } from './H6'
7
+ export { Blockquote } from './Blockquote'
7
8
export { InlineCode } from './InlineCode'
8
9
export { Link } from './Link'
9
10
export { List } from './List'
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const Theme = () => (
19
19
page : components . Page ,
20
20
notFound : components . NotFound ,
21
21
render : components . Render ,
22
+ blockquote : components . Blockquote ,
22
23
h1 : components . H1 ,
23
24
h2 : components . H2 ,
24
25
h3 : components . H3 ,
Original file line number Diff line number Diff line change @@ -62,4 +62,10 @@ export const styles = {
62
62
fontFamily : '"Source Code Pro", monospace' ,
63
63
fontSize : 14 ,
64
64
} ,
65
+ blockquote : {
66
+ margin : '25px 0' ,
67
+ padding : '20px' ,
68
+ fontStyle : 'italic' ,
69
+ fontSize : 18 ,
70
+ } ,
65
71
}
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ export const light = {
19
19
codeBg : lighten ( 0.02 , colors . grayExtraLight ) ,
20
20
codeColor : colors . gray ,
21
21
preBg : colors . grayExtraLight ,
22
+ blockquoteBg : colors . grayExtraLight ,
23
+ blockquoteBorder : colors . grayLight ,
24
+ blockquoteColor : colors . gray ,
22
25
}
23
26
24
27
export const dark = {
@@ -39,4 +42,7 @@ export const dark = {
39
42
codeBg : colors . gray ,
40
43
codeColor : colors . grayExtraLight ,
41
44
preBg : colors . grayDark ,
45
+ blockquoteBg : colors . grayDark ,
46
+ blockquoteBorder : colors . gray ,
47
+ blockquoteColor : colors . gray ,
42
48
}
You can’t perform that action at this time.
0 commit comments