|
|
@ -22,6 +22,8 @@ const DEFAULT_SETTINGS = {
|
|
|
|
marginVertical: '45px',
|
|
|
|
marginVertical: '45px',
|
|
|
|
marginHorizontal: '45px',
|
|
|
|
marginHorizontal: '45px',
|
|
|
|
background: 'rgba(171, 184, 195, 1)',
|
|
|
|
background: 'rgba(171, 184, 195, 1)',
|
|
|
|
|
|
|
|
dropShadowOffsetY: '20px',
|
|
|
|
|
|
|
|
dropShadowBlurRadius: '68px',
|
|
|
|
theme: 'seti',
|
|
|
|
theme: 'seti',
|
|
|
|
windowTheme: 'none',
|
|
|
|
windowTheme: 'none',
|
|
|
|
language: DEFAULT_LANGUAGE
|
|
|
|
language: DEFAULT_LANGUAGE
|
|
|
@ -184,7 +186,11 @@ class Carbon extends React.Component {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
z-index: 1;
|
|
|
|
border-radius: 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
${config.dropShadow ? 'box-shadow: 0 20px 68px rgba(0, 0, 0, 0.55);' : ''};
|
|
|
|
${config.dropShadow
|
|
|
|
|
|
|
|
? `box-shadow: 0 ${config.dropShadowOffsetY} ${
|
|
|
|
|
|
|
|
config.dropShadowBlurRadius
|
|
|
|
|
|
|
|
} rgba(0, 0, 0, 0.55)`
|
|
|
|
|
|
|
|
: ''};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#container :global(.CodeMirror__container .CodeMirror) {
|
|
|
|
#container :global(.CodeMirror__container .CodeMirror) {
|
|
|
@ -231,6 +237,7 @@ class Carbon extends React.Component {
|
|
|
|
flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* forces twitter to save images as png β https://github.com/dawnlabs/carbon/issues/86 */
|
|
|
|
/* forces twitter to save images as png β https://github.com/dawnlabs/carbon/issues/86 */
|
|
|
|