Refactor css for snippets list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
5a1afb48fe
commit
82064a7c1a
3 changed files with 5 additions and 28 deletions
|
@ -2,30 +2,6 @@
|
|||
padding: 2px;
|
||||
}
|
||||
|
||||
|
||||
.snippet-row {
|
||||
.snippet-title {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
line-height: 20px;
|
||||
margin-bottom: 2px;
|
||||
|
||||
.monospace {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.snippet-info {
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
line-height: 24px;
|
||||
|
||||
a {
|
||||
color: #888;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.snippet-holder {
|
||||
margin-bottom: -$gl-padding;
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
%li.snippet-row
|
||||
= image_tag avatar_icon(snippet.author_email), class: "avatar s40 hidden-xs", alt: ''
|
||||
|
||||
.snippet-title
|
||||
= link_to reliable_snippet_path(snippet) do
|
||||
= link_to reliable_snippet_path(snippet), class: 'title' do
|
||||
= truncate(snippet.title, length: 60)
|
||||
- if snippet.private?
|
||||
%span.label.label-gray
|
||||
%i.fa.fa-lock
|
||||
= icon('lock')
|
||||
private
|
||||
%span.monospace.pull-right
|
||||
= snippet.file_name
|
||||
|
@ -15,6 +17,5 @@
|
|||
|
||||
.snippet-info
|
||||
= link_to user_snippets_path(snippet.author) do
|
||||
= image_tag avatar_icon(snippet.author_email), class: "avatar s24", alt: ''
|
||||
= snippet.author_name
|
||||
authored #{time_ago_with_tooltip(snippet.created_at)}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%ul.bordered-list
|
||||
%ul.content-list
|
||||
= render partial: 'shared/snippets/snippet', collection: @snippets
|
||||
- if @snippets.empty?
|
||||
%li
|
||||
|
|
Loading…
Reference in a new issue