From 93bbd0ea0d446323a683567fd2059cc6486939e7 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Sun, 1 Mar 2015 17:15:57 +0200 Subject: [PATCH] td width with col-md --- app/assets/stylesheets/osem-rating.css.scss | 9 +++++---- app/views/admin/events/_proposal.html.haml | 2 +- app/views/admin/events/_voting.html.haml | 2 +- app/views/admin/events/index.html.haml | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/osem-rating.css.scss b/app/assets/stylesheets/osem-rating.css.scss index 4eae3429..7312ac45 100644 --- a/app/assets/stylesheets/osem-rating.css.scss +++ b/app/assets/stylesheets/osem-rating.css.scss @@ -5,14 +5,15 @@ .avgrating.bright { background-image: image-url("star-bright.png"); } .avgrating { background: image-url("star.png") 0 0; - width: 26px; - height: 26px; + margin-right: -2px; + width: 24px; + height: 24px; display: inline-block; } .myrating, .othersrating { background: image-url("star.png") 0 0; - width: 26px; - height: 26px; + width: 24px; + height: 24px; float: left; } diff --git a/app/views/admin/events/_proposal.html.haml b/app/views/admin/events/_proposal.html.haml index 03160090..d6349ab1 100644 --- a/app/views/admin/events/_proposal.html.haml +++ b/app/views/admin/events/_proposal.html.haml @@ -11,7 +11,7 @@ .col-md-12 %table.table %tr - %td{:style => "width:15%"} + %td.col-md-2 %b Type %td .dropdown diff --git a/app/views/admin/events/_voting.html.haml b/app/views/admin/events/_voting.html.haml index 43e54ff1..43b44cea 100644 --- a/app/views/admin/events/_voting.html.haml +++ b/app/views/admin/events/_voting.html.haml @@ -1,6 +1,6 @@ %table.table#myrating %tr - %td{:style => "width:15%"} + %td.col-md-2 %b Rating %td - if @event.average_rating.to_f > 0 diff --git a/app/views/admin/events/index.html.haml b/app/views/admin/events/index.html.haml index f0925497..137d5a15 100644 --- a/app/views/admin/events/index.html.haml +++ b/app/views/admin/events/index.html.haml @@ -40,7 +40,7 @@ =link_to event.title, admin_conference_event_path(@conference.short_title, event) - if @conference.call_for_paper && @conference.call_for_paper.rating && @conference.call_for_paper.rating > 0 - %td{:style => "width:96px"} + %td.col-md-1 - if event.average_rating.to_f > 0 #{event.average_rating}/#{@conference.call_for_paper.rating} %br