Updating the groups header to behave better with a square thumbnail logo image.

Intention is for a square image constrained by PaperClip as per enterprise logos (later down the track)
This commit is contained in:
summerscope
2015-02-06 17:15:40 +11:00
parent 78877f591b
commit 90ba1d2198
3 changed files with 16 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -24,13 +24,19 @@
#group-page
.group-logo, .group-header
text-align: center
.group-logo
padding-bottom: 1em
max-height: 200px
.group-name
border-bottom: 1px solid #ccc
@media screen and (min-width: 768px)
.group-logo, .group-header
text-align: left
.group-logo img
max-height: 100px
.group-logo
max-height: 120px
float: left
padding-right: 1em
background-color: white
// Tabs
.tabs dd a // Mobile first

View File

@@ -5,15 +5,18 @@
.small-12.columns
%img{"src" => @group.promo_image}
.row
.small-12.medium-2.large-2.columns.group-logo.pad-top
%img{"src" => @group.logo}
.small-12.medium-10.large-10.columns.group-header.pad-top
/ .small-6.medium-2.large-1.columns.group-logo.pad-top
/ .small-6.medium-10.large-11.columns.group-header.pad-top
.small-12.columns.group-header.pad-top
%img.group-logo{"src" => @group.logo}
%h2.group-name= @group.name
%p= @group.description
.small-12.columns.pad-top
.row.pad-top
.small-12.medium-8.large-9.columns
.small-12.medium-12.large-9.columns
%div{"ng-controller" => "TabsCtrl"}
%tabset
%tab{heading: 'Map',
@@ -83,7 +86,7 @@
= render partial: 'shared/components/enterprise_no_results'
.small-12.medium-4.large-3.columns
.small-12.medium-12.large-3.columns
= render partial: 'contact'
/ %h4 Contact us
/ - if @group.phone