Skip to content

Commit

Permalink
prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Oct 3, 2020
1 parent 8e68d75 commit 84f518e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions components/Carbon.js
Expand Up @@ -245,13 +245,15 @@ class Carbon extends React.PureComponent {
}
.container .bg {
${this.props.config.backgroundMode === 'image'
? `background: url(${backgroundImage});
${
this.props.config.backgroundMode === 'image'
? `background: url(${backgroundImage});
background-size: cover;
background-repeat: no-repeat;`
: `background: ${this.props.config.backgroundColor || config.backgroundColor};
: `background: ${this.props.config.backgroundColor || config.backgroundColor};
background-size: auto;
background-repeat: repeat;`}
background-repeat: repeat;`
}
position: absolute;
top: 0px;
right: 0px;
Expand All @@ -278,9 +280,11 @@ class Carbon extends React.PureComponent {
position: relative;
z-index: 1;
border-radius: 5px;
${config.dropShadow
? `box-shadow: 0 ${config.dropShadowOffsetY} ${config.dropShadowBlurRadius} 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) {
Expand Down

0 comments on commit 84f518e

Please sign in to comment.