File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,13 @@ export const Tabs = styled(ReactTabs)`
60
60
background: ${ ( { theme } ) => theme . codeSample . backgroundColor } ;
61
61
& > div,
62
62
& > pre {
63
- padding: 20px ;
63
+ padding: ${ props => props . theme . spacing . unit * 4 } px ;
64
64
margin: 0;
65
65
}
66
+
67
+ & > div > pre {
68
+ padding: 0;
69
+ }
66
70
}
67
71
` ;
68
72
@@ -93,8 +97,7 @@ export const SmallTabs = styled(Tabs)`
93
97
> .react-tabs__tab-panel {
94
98
& > div,
95
99
& > pre {
96
- padding: 10px 0;
97
- margin: 0;
100
+ padding: ${ props => props . theme . spacing . unit * 2 } 0;
98
101
}
99
102
}
100
103
` ;
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const StyledMarkdownBlock = styled(PrismDiv as StyledComponent<
82
82
white-space:${ ( { theme } ) => ( theme . typography . code . wrap ? 'pre-wrap' : 'pre' ) } ;
83
83
background-color: #263238;
84
84
color: white;
85
- padding: 12px 14px 15px 14px ;
85
+ padding: ${ props => props . theme . spacing . unit * 4 } px ;
86
86
overflow-x: auto;
87
87
line-height: normal;
88
88
border-radius: 0px
You can’t perform that action at this time.
0 commit comments