Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Charts get grid-system widths.
Browse files Browse the repository at this point in the history
  • Loading branch information
bguthrie committed Aug 17, 2013
1 parent 97750f0 commit 3708592
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions app/assets/stylesheets/application.css.scss
Expand Up @@ -33,11 +33,6 @@ input {
margin-top: 20px
}

iframe.chart {
border: none;
height: 180px;
}

#footer {
font-size: 12px;
text-align: center;
Expand Down Expand Up @@ -200,3 +195,9 @@ i.icon-line:after { content: "―"; }
padding: 6px 16px;
> span { margin-left: 16px; &:first-child { margin-left: 0; } }
}

iframe.chart {
border: none;
height: 180px;
&[class*="span"] { margin-left: 0; }
}
10 changes: 5 additions & 5 deletions app/views/admin/dashboard/index.html.haml
Expand Up @@ -59,7 +59,7 @@
%td.point= float_to_percentage @statistics.nps_24h.ups
%td.point= float_to_percentage @statistics.nps_60m.ups

%iframe.chart{src: nps_chart}
%iframe.chart.span6{src: nps_chart}

%div.span6
%table.table.table-condensed.bordered-table.table-striped
Expand Down Expand Up @@ -91,7 +91,7 @@
%td.point= float_to_percentage @statistics.npfs_24h.ups
%td.point= float_to_percentage @statistics.npfs_60m.ups

%iframe.chart{ src: facebook_actions_chart }
%iframe.chart.span6{ src: facebook_actions_chart }


%div.row
Expand Down Expand Up @@ -191,14 +191,14 @@
%div.span6
%h4 Unsubscribed
%iframe.chart{ src: unsubscribes_chart }
%iframe.chart.span6{ src: unsubscribes_chart }
%h4 Sent
%iframe.chart{ src: emails_sent_chart }
%iframe.chart.span6{ src: emails_sent_chart }
%div.span6
%h4 Facebook Referrals
%iframe.chart{ src: facebook_referrals_chart }
%iframe.chart.span6{ src: facebook_referrals_chart }
- content_for :javascripts do
Expand Down

0 comments on commit 3708592

Please sign in to comment.