summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@yahoo.com>2018-02-21 23:47:46 +0530
committerhaseeb <haseebeqx@yahoo.com>2018-02-28 18:48:26 +0530
commit20cebb8f2804273e0c9cefe23ae78ac5f584dd14 (patch)
tree535da3ecc82deae9f7711f943f320ed534ec2c77
parent6520e2c78ff87f68029a7d71c616073ec640f130 (diff)
downloadgitlab-ce-20cebb8f2804273e0c9cefe23ae78ac5f584dd14.tar.gz
snippet page modifications
-rw-r--r--app/assets/stylesheets/framework/snippets.scss10
-rw-r--r--app/views/shared/snippets/_header.html.haml6
2 files changed, 13 insertions, 3 deletions
diff --git a/app/assets/stylesheets/framework/snippets.scss b/app/assets/stylesheets/framework/snippets.scss
index 69828532bef..be060422b47 100644
--- a/app/assets/stylesheets/framework/snippets.scss
+++ b/app/assets/stylesheets/framework/snippets.scss
@@ -29,8 +29,10 @@
}
.snippet-title {
- font-size: 24px;
+ color: $gl-text-color;
+ font-size: 2em;
font-weight: $gl-font-weight-bold;
+ min-height: $header-height;
}
.snippet-edited-ago {
@@ -62,6 +64,12 @@
cursor: auto;
width: 101%;
border-left: 0;
+ outline: none;
+ box-shadow: none;
+
+ &:active {
+ box-shadow: none;
+ }
}
.embed-toggle {
diff --git a/app/views/shared/snippets/_header.html.haml b/app/views/shared/snippets/_header.html.haml
index 9d55afba591..2963156b2d7 100644
--- a/app/views/shared/snippets/_header.html.haml
+++ b/app/views/shared/snippets/_header.html.haml
@@ -22,14 +22,16 @@
%h2.snippet-title.prepend-top-0.append-bottom-0
= markdown_field(@snippet, :title)
- - if @snippet.updated_at != @snippet.created_at
- = edited_time_ago_with_tooltip(@snippet, placement: 'bottom', html_class: 'snippet-edited-ago', exclude_author: true)
- if @snippet.description.present?
.description
.wiki
= markdown_field(@snippet, :description)
%textarea.hidden.js-task-list-field
= @snippet.description
+
+ - if @snippet.updated_at != @snippet.created_at
+ = edited_time_ago_with_tooltip(@snippet, placement: 'bottom', html_class: 'snippet-edited-ago', exclude_author: true)
+
- if public_snippet?
.embed-snippet.pull-right.col-md-6
.input-group