diff --git a/app/coffee/modules/common/components.coffee b/app/coffee/modules/common/components.coffee index 56d642dc..8b7acdbe 100644 --- a/app/coffee/modules/common/components.coffee +++ b/app/coffee/modules/common/components.coffee @@ -439,7 +439,9 @@ EditableSubjectDirective = ($rootscope, $repo, $confirm, $loading) ->
- + + +
""" @@ -520,7 +522,9 @@ EditableDescriptionDirective = ($rootscope, $repo, $confirm, $compile, $loading) - + + + """ # TODO: i18n noDescriptionMegEditMode = """ @@ -578,7 +582,7 @@ EditableDescriptionDirective = ($rootscope, $repo, $confirm, $compile, $loading) if isEditable() $el.find('.view-description .edit').show() - $el.find('.view-description p').addClass('editable') + $el.find('.view-description .us-content').addClass('editable') $scope.noDescriptionMsg = noDescriptionMegEditMode else $scope.noDescriptionMsg = noDescriptionMegReadMode diff --git a/app/styles/layout/elements.scss b/app/styles/layout/elements.scss index 44f9c1da..c545653b 100644 --- a/app/styles/layout/elements.scss +++ b/app/styles/layout/elements.scss @@ -39,6 +39,10 @@ sup { vertical-align: middle; } +.icon-spinner { + @include animation (spin 1s linear infinite); +} + .clickable { cursor: pointer; } diff --git a/app/styles/layout/us-detail.scss b/app/styles/layout/us-detail.scss index f8185a01..68e85355 100644 --- a/app/styles/layout/us-detail.scss +++ b/app/styles/layout/us-detail.scss @@ -81,7 +81,8 @@ width: 100%; } .icon-edit, - .icon-floppy { + .icon-floppy, + .icon-spinner { @extend %large; color: $gray-light; margin-left: .5rem; @@ -178,23 +179,20 @@ height: 10rem; margin-bottom: 2rem; } - a.save { - color: $blackish; - opacity: .6; + .save-container { position: absolute; right: 1rem; - top: .6rem; + top: .2rem; + .save { + color: $blackish; + opacity: .6; + top: 0; + } &:hover { @include transition(opacity .2s linear); opacity: .3; } } - .save-container { - &.loading span { - @include animation (loading .5s linear); - @include animation (spin 1s linear infinite); - } - } .edit { color: $grayer; diff --git a/app/styles/main.scss b/app/styles/main.scss index f16173d8..7ec716c8 100755 --- a/app/styles/main.scss +++ b/app/styles/main.scss @@ -18,11 +18,11 @@ $prefix-for-spec: true; @import 'dependencies/helpers'; @import 'dependencies/colors'; @import 'dependencies/typography'; +@import 'dependencies/animation'; @import 'dependencies/elements'; @import 'dependencies/mixins'; @import 'dependencies/responsive'; @import 'dependencies/forms'; -@import 'dependencies/animation'; //################################################# // components