Keep consistency between icons in multiple markdown editors

stable
Xavier Julián 2014-10-22 13:38:59 +02:00 committed by David Barragán Merino
parent bc31ef2bca
commit bc774ba2d5
3 changed files with 25 additions and 10 deletions

View File

@ -24,6 +24,10 @@
padding: 0; padding: 0;
} }
.markdown {
position: relative;
}
.preview { .preview {
.actions { .actions {
background: $whitish; background: $whitish;

View File

@ -98,7 +98,7 @@
} }
.icon-edit, .icon-edit,
.icon-floppy { .icon-floppy {
right: 4rem; right: 3.5rem;
} }
.icon-delete { .icon-delete {
right: 2rem; right: 2rem;

View File

@ -1,6 +1,5 @@
.history { .history {
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0 1rem;
} }
.changes-title { .changes-title {
display: block; display: block;
@ -66,7 +65,22 @@
} }
.add-comment { .add-comment {
@include clearfix; @include clearfix;
&.active {
.button-green {
display: block;
}
textarea {
@include transition(height .3s ease-in);
height: 6rem;
}
.preview-icon {
opacity: 1;
position: absolute;
right: 1rem;
}
}
textarea { textarea {
background: $white;
float: left; float: left;
height: 41px; height: 41px;
margin-bottom: .5rem; margin-bottom: .5rem;
@ -79,14 +93,11 @@
.button-green { .button-green {
display: none; display: none;
} }
&.active { .edit,
.button-green { .preview-icon {
display: block; opacity: 0;
} position: absolute;
textarea { right: 1rem;
@include transition(height .3s ease-in);
height: 6rem;
}
} }
} }
a.show-more-comments { a.show-more-comments {