Commit ff7055ee authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'redesign-project-avatar' into 'master'

Redesign project avatar page

See merge request !1437
parents b926b023 e20dba02
No related merge requests found
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
.project-home-panel { .project-home-panel {
margin-bottom: 15px; margin-bottom: 15px;
position: relative;
padding-left: 85px;
&.empty-project { &.empty-project {
border-bottom: 0px; border-bottom: 0px;
...@@ -23,6 +25,22 @@ ...@@ -23,6 +25,22 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
.project-identicon-holder {
position: absolute;
left: 0;
.avatar {
width: 70px;
height: 70px;
@include border-radius(0px);
}
.identicon {
font-size: 45px;
line-height: 1.6;
}
}
.project-home-dropdown { .project-home-dropdown {
margin-left: 10px; margin-left: 10px;
float: right; float: right;
...@@ -36,10 +54,6 @@ ...@@ -36,10 +54,6 @@
float: left; float: left;
color: #666; color: #666;
font-size: 16px; font-size: 16px;
.avatar {
margin-top: -5px;
}
} }
.star-fork-buttons { .star-fork-buttons {
......
- empty_repo = @project.empty_repo? - empty_repo = @project.empty_repo?
.project-home-panel{:class => ("empty-project" if empty_repo)} .project-home-panel{:class => ("empty-project" if empty_repo)}
.project-identicon-holder
= project_icon(@project.to_param, alt: '', class: 'avatar')
.project-home-row .project-home-row
.project-home-desc .project-home-desc
= project_icon(@project.to_param, alt: '', class: 'avatar s32')
- if @project.description.present? - if @project.description.present?
= escaped_autolink(@project.description) = escaped_autolink(@project.description)
- if can?(current_user, :admin_project, @project) - if can?(current_user, :admin_project, @project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment