Styling tabs for responsive design, improving groups page layout

This commit is contained in:
summerscope
2015-02-05 14:53:09 +11:00
parent 28b2dd40dd
commit e19aaf6be8
2 changed files with 31 additions and 8 deletions

View File

@@ -25,23 +25,46 @@
max-height: 100px
.group-name
border-bottom: 1px solid #ccc
.producers
background-image: none
// Tabs
.tabs dd a
padding: 0.35rem 0.5rem
font-size: 0.75rem
border: none
// border-bottom: 1px solid grey
margin-bottom: -2px
margin-right: 2px
@media screen and (min-width: 400px)
.tabs dd a
padding: 0.45rem 0.75rem
font-size: 0.875rem
@media screen and (min-width: 768px)
.tabs dd a
padding: 1rem 2rem
font-size: 1rem
.tabs dd.active a
margin-bottom: -1px
border-top: 1px solid $light-grey
border-left: 1px solid $light-grey
border-right: 1px solid $light-grey
border-bottom: 1px solid white
.tabs-content
border-top: 1px solid $light-grey
border-left: 1px solid $light-grey
border-right: 1px solid $light-grey
border-bottom: 1px solid $light-grey
padding: 1.5em
padding: 1.5em
// Producers tab
.producers
background-image: none
.active_table .active_table_node a.is_distributor, .active_table .active_table_node a.is_distributor i.ofn-i_059-producer
color: $clr-turquoise
// Hubs tab
.hubs
background-image: none
padding-top: 0
padding-bottom: 0
// .hubs .active_table .active_table_node.inactive.closed a, .hubs .active_table .active_table_node.inactive.closed a *, .hubs .active_table .active_table_node.inactive.open a, .hubs .active_table .active_table_node.inactive.open a *

View File

@@ -13,7 +13,7 @@
.small-12.columns.pad-top
.row.pad-top
.small-12.medium-8.columns
.small-12.large-8.columns
%div{"ng-controller" => "TabsCtrl"}
%tabset
%tab{heading: 'Map',
@@ -61,7 +61,7 @@
%tab{heading: 'Our hubs',
active: "active(\'hubs\')",
select: "select(\'hubs\')"}
#hubs.hubs{"ng-controller" => "GroupEnterprisesCtrl"}
.hubs{"ng-controller" => "GroupEnterprisesCtrl"}
.row
.small-12.columns
%h1 Our Hubs
@@ -83,7 +83,7 @@
= render partial: 'shared/components/enterprise_no_results'
.small-12.medium-4.columns
.small-12.large-4.columns
%ng-include{src: "'partials/group-contact.html'"}
/ %h4 Contact us
/ - if @group.phone