Skip to content

Commit

Permalink
fix md editor height issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 30, 2016
1 parent 72cf070 commit a514514
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions public/css/react-md-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,23 @@
border-radius: 4px;
overflow: hidden;
position: relative;
height: 100%;
}

.MDEditor_editor textarea {
height: 100%;
width: 100%;
}

.MDEditor_editor .CodeMirror {
height: 100%;
}

.MDEditor_toolbar {
margin-bottom: 4px;
margin-top: 4px;
}

.MDEditor_toolbarButton {
background: #eee;
border: 1px solid transparent;
Expand All @@ -25,6 +37,7 @@
transition: all 180ms;
-webkit-transition: all 180ms;
}

.MDEditor_toolbarButton:hover,
.MDEditor_toolbarButton:focus {
background-color: white;
Expand All @@ -34,28 +47,34 @@
transition: none;
-webkit-transition: none;
}

.MDEditor_toolbarButton:active,
.MDEditor_toolbarButton--pressed {
background-color: rgba(0, 0, 0, 0.15);
border-color: rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.MDEditor_toolbarButton:active:hover,
.MDEditor_toolbarButton--pressed:hover {
background: rgba(0, 0, 0, 0.2);
}

.MDEditor_toolbarButton_icon {
display: inline-block;
height: 16px;
width: 16px;
}

.MDEditor_toolbarButton_icon > svg {
height: 16px;
width: 16px;
}

.MDEditor_toolbarButton_label {
display: none;
}

.MDEditor_toolbarButton_label-icon {
display: inline-block;
font-size: 16px;
Expand Down

0 comments on commit a514514

Please sign in to comment.