2
2
const black = '#293238' ,
3
3
darkGray = '#878e91' ,
4
4
red = '#ce1126' ,
5
+ redTransparent = 'rgba(206, 17, 38, 0.05)' ,
5
6
lightRed = '#fccfcf' ,
6
7
yellow = '#fbf5b4' ,
8
+ yellowTransparent = 'rgba(251, 245, 180, 0.3)' ,
7
9
white = '#ffffff' ;
8
10
9
11
const iframeStyle = {
@@ -122,26 +124,21 @@ const omittedFramesExpandedStyle = {
122
124
'margin-bottom' : '0.6em' ,
123
125
} ;
124
126
125
- const primaryPreStyle = {
127
+ const _preStyle = {
126
128
display : 'block' ,
127
129
padding : '0.5em' ,
128
130
'margin-top' : '0.5em' ,
129
131
'margin-bottom' : '0.5em' ,
130
132
'overflow-x' : 'auto' ,
131
133
'white-space' : 'pre-wrap' ,
132
134
'border-radius' : '0.25rem' ,
133
- 'background-color' : 'rgba(206, 17, 38, .05)' ,
134
- } ;
135
- const secondaryPreStyle = {
136
- display : 'block' ,
137
- padding : '0.5em' ,
138
- 'margin-top' : '0.5em' ,
139
- 'margin-bottom' : '0.5em' ,
140
- 'overflow-x' : 'auto' ,
141
- 'white-space' : 'pre-wrap' ,
142
- 'border-radius' : '0.25rem' ,
143
- 'background-color' : 'rgba(251, 245, 180,.3)' ,
144
135
} ;
136
+ const primaryPreStyle = Object . assign ( { } , _preStyle , {
137
+ 'background-color' : redTransparent ,
138
+ } ) ;
139
+ const secondaryPreStyle = Object . assign ( { } , _preStyle , {
140
+ 'background-color' : yellowTransparent ,
141
+ } ) ;
145
142
146
143
const toggleStyle = {
147
144
'margin-bottom' : '1.5em' ,
@@ -162,25 +159,23 @@ const groupStyle = {
162
159
} ;
163
160
164
161
const _groupElemStyle = {
165
- 'background-color' : 'inherit' ,
166
- 'border- color' : '#ddd' ,
167
- ' border-width' : '1px ' ,
162
+ 'background-color' : redTransparent ,
163
+ color : red ,
164
+ border : 'none ' ,
168
165
'border-radius' : '4px' ,
169
- 'border-style' : 'solid' ,
170
166
padding : '3px 6px' ,
171
167
cursor : 'pointer' ,
172
168
} ;
173
169
174
170
const groupElemLeft = Object . assign ( { } , _groupElemStyle , {
175
171
'border-top-right-radius' : '0px' ,
176
172
'border-bottom-right-radius' : '0px' ,
177
- 'margin-right' : '0px ' ,
173
+ 'margin-right' : '1px ' ,
178
174
} ) ;
179
175
180
176
const groupElemRight = Object . assign ( { } , _groupElemStyle , {
181
177
'border-top-left-radius' : '0px' ,
182
178
'border-bottom-left-radius' : '0px' ,
183
- 'margin-right' : '-1px' ,
184
179
} ) ;
185
180
186
181
const footerStyle = {
0 commit comments