Browse files

Style index

  • Loading branch information...
1 parent d4b736a commit 1625703605feeac59247dfb94da728e0eda616f0 @dskang committed May 20, 2012
Showing with 16 additions and 2 deletions.
  1. +14 −0 app/assets/stylesheets/custom.css.scss
  2. +2 −2 app/views/tours/_tour.html.erb
View
14 app/assets/stylesheets/custom.css.scss
@@ -54,6 +54,20 @@ body {
margin-bottom: 15px;
}
+/* Thumbnail */
+
+.thumbnail {
+ position: relative;
+ .btn {
+ position: absolute;
+ bottom: 10px;
+ right: 10px;
+ }
+ h2 {
+ color: $white;
+ }
+}
+
/* footer */
footer {
View
4 app/views/tours/_tour.html.erb
@@ -1,6 +1,6 @@
<li class="span4">
- <a href="<%= tour_path(tour) %>">
<div class="thumbnail <%= tour.topic_list.join(' ')%> <%= tour.time_list.join(' ') %>" style="background-image: url(<%= tour.image.url %>); height: 250px;">
+ <h2><%= tour.title %></h2>
+ <a href="<%= tour_path(tour) %>" class="btn btn-success btn-large">$<%= tour.price %> for <%= pluralize(tour.hours, 'hour') %></a>
</div>
- </a>
</li>

0 comments on commit 1625703

Please sign in to comment.