Commit dfc46eb2 authored by RawKStar77's avatar RawKStar77

Rebase to latest master, and implement some of Aron's suggestions.

parent ef978599
###* ###*
# @ngdoc directive # @ngdoc directive
# @name markdown # @name markdown
# @restrict C # @restrict A
# @description # @description
# This directive controls both the rendering and display of markdown in annotations, as well as # This directive controls both the rendering and display of markdown in annotations, as well as
# the markdown editor. # the markdown editor.
...@@ -248,7 +248,7 @@ markdown = ['$filter', '$timeout', ($filter, $timeout) -> ...@@ -248,7 +248,7 @@ markdown = ['$filter', '$timeout', ($filter, $timeout) ->
unless readonly then $timeout -> input.focus() unless readonly then $timeout -> input.focus()
require: '?ngModel' require: '?ngModel'
restrict: 'C' restrict: 'A'
scope: scope:
readonly: '@' readonly: '@'
required: '@' required: '@'
......
...@@ -49,7 +49,7 @@ privacy { ...@@ -49,7 +49,7 @@ privacy {
top: 2px; top: 2px;
} }
.markdown { [markdown] {
.preview { .preview {
overflow: auto; overflow: auto;
border: 1px solid $gray-lighter; border: 1px solid $gray-lighter;
...@@ -59,7 +59,7 @@ privacy { ...@@ -59,7 +59,7 @@ privacy {
resize: vertical; resize: vertical;
} }
.markdowntools { .markdown-tools {
margin-top: 10px; margin-top: 10px;
border-top: 1px solid #D3D3D3; border-top: 1px solid #D3D3D3;
border-left: 1px solid #D3D3D3; border-left: 1px solid #D3D3D3;
...@@ -76,15 +76,15 @@ privacy { ...@@ -76,15 +76,15 @@ privacy {
-ms-user-select: none; -ms-user-select: none;
&.disable { &.disable {
i { .markdown-tools-button {
color: $gray-lighter; color: $gray-lighter;
pointer-events: none; pointer-events: none;
} }
} }
i {padding: 5px;} .markdown-tools-button {padding: 5px;}
i, a { .markdown-tools-button, .markdown-tools-toggle, .icon-markdown {
color: $gray; color: $gray;
&:hover { &:hover {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment