Commit 33137f16f5ebfc523f6d507506e9509dff5520cc

Authored by Victor Costa
1 parent 8a7d004e

Accept cover image in blog

src/app/components/noosfero-articles/blog/blog.html
1   -<div class="page-header">
  1 +<div class="blog-cover" ng-show="vm.article.image">
  2 + <img ng-src="{{vm.article.image.url}}" class="img-responsive">
  3 + <h3 ng-bind="vm.article.title"></h3>
  4 +</div>
  5 +
  6 +<div class="page-header" ng-show="!vm.article.image">
2 7 <h3 ng-bind="vm.article.title"></h3>
3 8 </div>
4 9  
... ...
src/app/components/noosfero-articles/blog/blog.scss 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +.blog-cover {
  2 + margin: -15px;
  3 + position: relative;
  4 + h3 {
  5 + position: absolute;
  6 + bottom: 0;
  7 + background-color: rgba(0, 0, 0, 0.4);
  8 + color: white;
  9 + padding: 10px 20px;
  10 + margin: 0;
  11 + width: 100%;
  12 + }
  13 +}
... ...