Skip to content

Commit 7f70ff1

Browse files
committed
Some styling improvements
1 parent d314ae1 commit 7f70ff1

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

demo/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class App extends Component {
1313

1414
render() {
1515
return (
16-
<div className="container">
16+
<div className="react-mde-demo container">
1717
<ReactMde value={this.state.mdeValue} onChange={this.handleValueChange.bind(this)} />
1818
</div>
1919
);

demo/client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import App from './App';
77
import '../node_modules/bootstrap/dist/css/bootstrap.css';
88
import '../node_modules/font-awesome/css/font-awesome.css';
99
import '../src/styles/react-mde.scss';
10+
import './styles/demo.scss';
1011

1112
render(
1213
<App>

demo/styles/demo.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.react-mde-demo {
2+
margin-top: 50px;
3+
}

src/styles/react-mde.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
.mde-text {
2929
textarea {
3030
width: 100%;
31+
min-height: $textarea-min-height;
32+
padding: $textarea-padding;
3133
}
3234
}
3335

src/styles/variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
$default-border-color: rgba(0,0,0,.125) !default; // this defaults to the Bootstrap 4 default border color
1+
$default-border-color: rgba(0,0,0,.125) !default; // this defaults to the Bootstrap 4 default border color
2+
$textarea-min-height: 200px;
3+
$textarea-padding: 8px;

0 commit comments

Comments
 (0)