Improve project icons for dashboard
This commit is contained in:
parent
c0acb28c4e
commit
2bd70b6a01
5 changed files with 18 additions and 7 deletions
|
@ -97,7 +97,17 @@
|
|||
|
||||
.dash-project-avatar {
|
||||
float: left;
|
||||
|
||||
.avatar {
|
||||
margin-top: -8px;
|
||||
margin-left: -15px;
|
||||
@include border-radius(0px);
|
||||
}
|
||||
.identicon {
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.dash-project-access-icon {
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
- groups.each do |group|
|
||||
%li.group-row
|
||||
= link_to group_path(id: group.path), class: dom_class(group) do
|
||||
= image_tag group_icon(group.path), class: "avatar s24"
|
||||
.dash-project-avatar
|
||||
= image_tag group_icon(group.path), class: "avatar s40"
|
||||
%span.group-name.filter-title
|
||||
= truncate(group.name, length: 35)
|
||||
%span.arrow
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
= link_to project_path(project), class: dom_class(project) do
|
||||
.dash-project-avatar
|
||||
= project_icon(project.to_param, alt: '', class: 'avatar s40')
|
||||
.dash-project-access-icon
|
||||
= visibility_level_icon(project.visibility_level)
|
||||
.dash-project-avatar
|
||||
= project_icon(project.to_param, alt: '', class: 'avatar s24')
|
||||
%span.str-truncated
|
||||
%span.namespace-name
|
||||
- if project.namespace
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
- projects.each do |project|
|
||||
%li.project-row
|
||||
= link_to project_path(project), class: dom_class(project) do
|
||||
.dash-project-avatar
|
||||
= project_icon(project.to_param, alt: '', class: 'avatar s40')
|
||||
.dash-project-access-icon
|
||||
= visibility_level_icon(project.visibility_level)
|
||||
.dash-project-avatar
|
||||
= project_icon(project.to_param, alt: '', class: 'avatar s24')
|
||||
%span.str-truncated
|
||||
%span.project-name
|
||||
= project.name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.clearfix
|
||||
- groups.each do |group|
|
||||
= link_to group, class: 'profile-groups-avatars', title: group.name do
|
||||
= image_tag group_icon(group.path), class: 'avatar avatar-inline s40'
|
||||
= link_to group, class: 'profile-groups-avatars inline', title: group.name do
|
||||
= image_tag group_icon(group.path), class: 'avatar avatar-tile s40'
|
||||
|
|
Loading…
Reference in a new issue