Add markdown help to comments
parent
496ad1245a
commit
bf0134bf3d
|
@ -233,6 +233,10 @@ HistoryDirective = ($log, $loading) ->
|
|||
ng-model="<%- ngmodel %>.comment" tg-markitup="tg-markitup">
|
||||
</textarea>
|
||||
<% if (mode !== "edit") { %>
|
||||
<a class="help-markdown" href="https://taiga.io/support/taiga-markdown-syntax/" target="_blank" title="Mardown syntax help">
|
||||
<span class="icon icon-help"></span>
|
||||
<span>Markdown syntax help</span>
|
||||
</a>
|
||||
<a href="" title="Comment" class="button button-green save-comment">Comment</a>
|
||||
<% } %>
|
||||
</div>
|
||||
|
|
|
@ -73,6 +73,10 @@
|
|||
@include transition(height .3s ease-in);
|
||||
height: 6rem;
|
||||
}
|
||||
.help-markdown {
|
||||
@include transition(opacity .3s linear);
|
||||
opacity: 1;
|
||||
}
|
||||
.preview-icon {
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
|
@ -86,6 +90,25 @@
|
|||
margin-bottom: .5rem;
|
||||
min-height: inherit;
|
||||
}
|
||||
.help-markdown {
|
||||
@extend %small;
|
||||
color: $gray-light;
|
||||
opacity: 0;
|
||||
&:hover {
|
||||
span {
|
||||
@include transition(color .2s linear);
|
||||
color: $grayer;
|
||||
}
|
||||
.icon {
|
||||
@include transition(color .2s linear);
|
||||
color: $fresh-taiga;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
color: $gray-light;
|
||||
margin-right: .2rem;
|
||||
}
|
||||
}
|
||||
.save-comment {
|
||||
color: $white;
|
||||
float: right;
|
||||
|
|
Loading…
Reference in New Issue