Commit
33137f16f5ebfc523f6d507506e9509dff5520cc
Exists in
master
and in
38 other branches
activities_block, angular2, btn-new-post, cleaning-the-house, cosmetic_changes_people_and_communities_block, coverage, edit-blocks, edit-header-footer, env-tags-block, forgot_password, header_and_footer, helpers-evolution, layout_support, list_articles_on_blog, loading-indicator-component, login_modal, login_modal_improve, person_info_block, production, profile-article-resolvers, profile-blocks-sass, profile-view, profile_description_block_component, profile_page_improvements, profile_search, recent-activities, remove-article-confirmation, responsive-fixes, seo, signup_page, skin-small-change, staging, tags-block, theme-skin-yellow, translations, typescript, updated_signup_page, users_profile_page
Accept cover image in blog
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
| <h3 ng-bind="vm.article.title"></h3> |
7
| <h3 ng-bind="vm.article.title"></h3> |
3
| </div> |
8
| </div> |
4
| |
9
| |
| @@ -0,0 +1,13 @@ |
| @@ -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
| +} |