Add markdown help to comments
parent
496ad1245a
commit
bf0134bf3d
|
@ -233,6 +233,10 @@ HistoryDirective = ($log, $loading) ->
|
||||||
ng-model="<%- ngmodel %>.comment" tg-markitup="tg-markitup">
|
ng-model="<%- ngmodel %>.comment" tg-markitup="tg-markitup">
|
||||||
</textarea>
|
</textarea>
|
||||||
<% if (mode !== "edit") { %>
|
<% 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>
|
<a href="" title="Comment" class="button button-green save-comment">Comment</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -73,6 +73,10 @@
|
||||||
@include transition(height .3s ease-in);
|
@include transition(height .3s ease-in);
|
||||||
height: 6rem;
|
height: 6rem;
|
||||||
}
|
}
|
||||||
|
.help-markdown {
|
||||||
|
@include transition(opacity .3s linear);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
.preview-icon {
|
.preview-icon {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -86,6 +90,25 @@
|
||||||
margin-bottom: .5rem;
|
margin-bottom: .5rem;
|
||||||
min-height: inherit;
|
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 {
|
.save-comment {
|
||||||
color: $white;
|
color: $white;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
Loading…
Reference in New Issue