fix: change default project bg and some fix
@2cdac96cea473c6af9dadea784a1d9590ecfabf2
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
... | ... | @@ -228,9 +228,8 @@ |
228 | 228 |
} |
229 | 229 |
|
230 | 230 |
.project-header-outer { |
231 |
- background-color:#ececec; |
|
231 |
+ background-color: #565656; |
|
232 | 232 |
height:80px; |
233 |
- border-bottom:1px solid #ddd; |
|
234 | 233 |
background-clip: padding-box; |
235 | 234 |
background-position: bottom; |
236 | 235 |
background-repeat: no-repeat; |
... | ... | @@ -253,7 +252,9 @@ |
253 | 252 |
position:absolute; |
254 | 253 |
width: 80px; |
255 | 254 |
height: 80px; |
256 |
- border:5px solid #fff; |
|
255 |
+ border:5px solid #f9f9f9; |
|
256 |
+ border-radius: 3px !important; |
|
257 |
+ background: #fff; |
|
257 | 258 |
|
258 | 259 |
img { |
259 | 260 |
width: 100%; |
... | ... | @@ -379,7 +380,6 @@ |
379 | 380 |
&.project-menu-gruop { |
380 | 381 |
float:left; |
381 | 382 |
margin-left:110px; |
382 |
- border-left:1px solid #ddd; |
|
383 | 383 |
} |
384 | 384 |
|
385 | 385 |
li { |
--- app/utils/TemplateHelper.scala
+++ app/utils/TemplateHelper.scala
... | ... | @@ -152,7 +152,7 @@ |
152 | 152 |
def urlToProjectLogo(project: Project) = { |
153 | 153 |
models.Attachment.findByContainer(project.asResource) match { |
154 | 154 |
case files if files.size > 0 => routes.AttachmentApp.getFile(files.head.id) |
155 |
- case _ => routes.Assets.at("images/project_default.png") |
|
155 |
+ case _ => routes.Assets.at("images/project_default_logo.png") |
|
156 | 156 |
} |
157 | 157 |
} |
158 | 158 |
|
--- app/views/project/header.scala.html
+++ app/views/project/header.scala.html
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 |
@import models.enumeration.Operation |
28 | 28 |
@import controllers.UserApp |
29 | 29 |
|
30 |
-<div class="project-header-outer" style="background-image:url(@urlToProjectLogo(project))"> |
|
30 |
+<div class="project-header-outer" style="background-image:url(@urlToProjectBG(project))"> |
|
31 | 31 |
<div class="project-header-inner"> |
32 | 32 |
<div class="project-header-wrap"> |
33 | 33 |
<div class="project-header-avatar"> |
+++ public/images/project_default_logo.png
Binary file is not shown |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?