snippet page modifications
This commit is contained in:
parent
6520e2c78f
commit
20cebb8f28
2 changed files with 13 additions and 3 deletions
|
@ -29,8 +29,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.snippet-title {
|
.snippet-title {
|
||||||
font-size: 24px;
|
color: $gl-text-color;
|
||||||
|
font-size: 2em;
|
||||||
font-weight: $gl-font-weight-bold;
|
font-weight: $gl-font-weight-bold;
|
||||||
|
min-height: $header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.snippet-edited-ago {
|
.snippet-edited-ago {
|
||||||
|
@ -62,6 +64,12 @@
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
width: 101%;
|
width: 101%;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
|
outline: none;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed-toggle {
|
.embed-toggle {
|
||||||
|
|
|
@ -22,14 +22,16 @@
|
||||||
%h2.snippet-title.prepend-top-0.append-bottom-0
|
%h2.snippet-title.prepend-top-0.append-bottom-0
|
||||||
= markdown_field(@snippet, :title)
|
= 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?
|
- if @snippet.description.present?
|
||||||
.description
|
.description
|
||||||
.wiki
|
.wiki
|
||||||
= markdown_field(@snippet, :description)
|
= markdown_field(@snippet, :description)
|
||||||
%textarea.hidden.js-task-list-field
|
%textarea.hidden.js-task-list-field
|
||||||
= @snippet.description
|
= @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?
|
- if public_snippet?
|
||||||
.embed-snippet.pull-right.col-md-6
|
.embed-snippet.pull-right.col-md-6
|
||||||
.input-group
|
.input-group
|
||||||
|
|
Loading…
Reference in a new issue