From bd4fbcb8fb4edb3e617ec6f334953a2a191ba154 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Sat, 30 Apr 2016 13:20:10 +0200 Subject: [PATCH] Add hovering button --- app/assets/stylesheets/editor.css.scss | 6 ++++++ app/views/exercises/_editor_frame.html.slim | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/app/assets/stylesheets/editor.css.scss b/app/assets/stylesheets/editor.css.scss index efcf1d25..661958b5 100644 --- a/app/assets/stylesheets/editor.css.scss +++ b/app/assets/stylesheets/editor.css.scss @@ -88,3 +88,9 @@ button i.fa-spin { color: #777; font-size: 0.8em; } + +#requestCommentsButton { + position: relative; + margin-top: -50px; + float: right; +} diff --git a/app/views/exercises/_editor_frame.html.slim b/app/views/exercises/_editor_frame.html.slim index dc077e02..29c78bd3 100644 --- a/app/views/exercises/_editor_frame.html.slim +++ b/app/views/exercises/_editor_frame.html.slim @@ -13,3 +13,7 @@ - else .editor-content.hidden data-file-id=file.ancestor_id = file.content .editor data-file-id=file.ancestor_id data-indent-size=file.file_type.indent_size data-mode=file.file_type.editor_mode data-read-only=file.read_only data-id=file.id + + button.btn class='btn-primary' id='requestCommentsButton' type='button' + i.fa.fa-comment-o + = t('exercises.editor.requestComments') \ No newline at end of file