diff --git a/.all-contributorsrc b/.all-contributorsrc
index 33eaa4d..a48c5c2 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -175,6 +175,15 @@
"bug",
"code"
]
+ },
+ {
+ "login": "rafaelcamaram",
+ "name": "Rafael CΓ’mara",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/9087886?v=4",
+ "profile": "http://www.rafaelcamaram.com/",
+ "contributions": [
+ "code"
+ ]
}
]
}
diff --git a/README.md b/README.md
index 0c65d4c..3f111f5 100644
--- a/README.md
+++ b/README.md
@@ -72,5 +72,5 @@ Thanks goes out to all these wonderful people ([emoji key](https://github.com/ke
| [
briandennis](https://github.com/briandennis)
[π»](https://github.com/dawnlabs/carbon/commits?author=briandennis "Code") [π](https://github.com/dawnlabs/carbon/commits?author=briandennis "Documentation") [π](#infra-briandennis "Infrastructure (Hosting, Build-Tools, etc)") [π](#review-briandennis "Reviewed Pull Requests") | [
mfix22](https://github.com/mfix22)
[π¬](#question-mfix22 "Answering Questions") [π»](https://github.com/dawnlabs/carbon/commits?author=mfix22 "Code") [π€](#ideas-mfix22 "Ideas, Planning, & Feedback") | [
jakedex](https://github.com/jakedex)
[π¬](#question-jakedex "Answering Questions") [π»](https://github.com/dawnlabs/carbon/commits?author=jakedex "Code") [π¨](#design-jakedex "Design") [πΉ](#video-jakedex "Videos") | [
andrewda](https://github.com/andrewda)
[π¬](#question-andrewda "Answering Questions") [π»](https://github.com/dawnlabs/carbon/commits?author=andrewda "Code") [π](https://github.com/dawnlabs/carbon/issues?q=author%3Aandrewda "Bug reports") [π](#review-andrewda "Reviewed Pull Requests") | [
yeskunall](https://github.com/yeskunall)
[π»](https://github.com/dawnlabs/carbon/commits?author=yeskunall "Code") [π](https://github.com/dawnlabs/carbon/commits?author=yeskunall "Documentation") [π§](#tool-yeskunall "Tools") [π](https://github.com/dawnlabs/carbon/issues?q=author%3Ayeskunall "Bug reports") | [
stoshfabricius](https://github.com/stoshfabricius)
[π»](https://github.com/dawnlabs/carbon/commits?author=stoshfabricius "Code") | [
jkling38](https://github.com/jkling38)
[π](https://github.com/dawnlabs/carbon/commits?author=jkling38 "Documentation") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [
otobrglez](https://github.com/otobrglez)
[π»](https://github.com/dawnlabs/carbon/commits?author=otobrglez "Code") | [
darahak](https://github.com/darahak)
[π](https://github.com/dawnlabs/carbon/commits?author=darahak "Documentation") | [
dom96](https://github.com/dom96)
[π»](https://github.com/dawnlabs/carbon/commits?author=dom96 "Code") | [
elrumordelaluz](https://github.com/elrumordelaluz)
[π»](https://github.com/dawnlabs/carbon/commits?author=elrumordelaluz "Code") | [
cjb](https://github.com/cjb)
[π»](https://github.com/dawnlabs/carbon/commits?author=cjb "Code") | [
Krzysztof-Cieslak](https://github.com/Krzysztof-Cieslak)
[π»](https://github.com/dawnlabs/carbon/commits?author=Krzysztof-Cieslak "Code") | [
fernahh](https://github.com/fernahh)
[π](https://github.com/dawnlabs/carbon/commits?author=fernahh "Documentation") |
-| [
g3r4n](https://github.com/g3r4n)
[π»](https://github.com/dawnlabs/carbon/commits?author=g3r4n "Code") | [
Mat Gadd](http://drarok.com/)
[π](https://github.com/dawnlabs/carbon/issues?q=author%3ADrarok "Bug reports") [π»](https://github.com/dawnlabs/carbon/commits?author=Drarok "Code") | [
Brad Davies](https://bradlab.co.uk)
[π](https://github.com/dawnlabs/carbon/issues?q=author%3Avarbrad "Bug reports") [π»](https://github.com/dawnlabs/carbon/commits?author=varbrad "Code") |
+| [
g3r4n](https://github.com/g3r4n)
[π»](https://github.com/dawnlabs/carbon/commits?author=g3r4n "Code") | [
Mat Gadd](http://drarok.com/)
[π](https://github.com/dawnlabs/carbon/issues?q=author%3ADrarok "Bug reports") [π»](https://github.com/dawnlabs/carbon/commits?author=Drarok "Code") | [
Brad Davies](https://bradlab.co.uk)
[π](https://github.com/dawnlabs/carbon/issues?q=author%3Avarbrad "Bug reports") [π»](https://github.com/dawnlabs/carbon/commits?author=varbrad "Code") | [
Rafael CΓ’mara](http://www.rafaelcamaram.com/)
[π»](https://github.com/dawnlabs/carbon/commits?author=rafaelcamaram "Code") |
diff --git a/components/Carbon.js b/components/Carbon.js
index ac6f23b..9148fd4 100644
--- a/components/Carbon.js
+++ b/components/Carbon.js
@@ -22,6 +22,8 @@ const DEFAULT_SETTINGS = {
marginVertical: '45px',
marginHorizontal: '45px',
background: 'rgba(171, 184, 195, 1)',
+ dropShadowOffsetY: '20px',
+ dropShadowBlurRadius: '68px',
theme: 'seti',
windowTheme: 'none',
language: DEFAULT_LANGUAGE
@@ -184,7 +186,11 @@ class Carbon extends React.Component {
position: relative;
z-index: 1;
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) {
@@ -231,6 +237,7 @@ class Carbon extends React.Component {
flex-direction: column;
justify-content: center;
align-items: center;
+ overflow: hidden;
}
/* forces twitter to save images as png β https://github.com/dawnlabs/carbon/issues/86 */
diff --git a/components/Settings.js b/components/Settings.js
index 8948c29..bf901c5 100644
--- a/components/Settings.js
+++ b/components/Settings.js
@@ -44,6 +44,16 @@ class Settings extends React.Component {
enabled={this.props.enabled.dropShadow}
onChange={this.props.onChange.bind(null, 'dropShadow')}
/>
+
+