summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTomer Kimia <tkimia@purdue.edu>2014-03-30 19:32:23 -0400
committerTomer Kimia <tkimia@purdue.edu>2014-03-30 19:32:23 -0400
commit93b69d2dd69f8fc9dc12bb0ec710891f9d660645 (patch)
tree8487984177fc9c212e12561437f0f3045a9c0323 /app
parent85e82f5b7297f40f35fed4190c8d91ebdbb723c0 (diff)
some more work on the styles
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/tournaments.css.scss11
-rw-r--r--app/views/tournaments/index.html.erb1
2 files changed, 11 insertions, 1 deletions
diff --git a/app/assets/stylesheets/tournaments.css.scss b/app/assets/stylesheets/tournaments.css.scss
index 8de3d81..8857d38 100644
--- a/app/assets/stylesheets/tournaments.css.scss
+++ b/app/assets/stylesheets/tournaments.css.scss
@@ -41,6 +41,8 @@ span.default-explanation {
}
}
+
+/* Style of a tournament listing div */
div.tournament-listing {
margin-top: 10px;
border-radius: 5px;
@@ -49,7 +51,7 @@ div.tournament-listing {
min-height: 100px;
padding: 4px;
-
+ /* AKA the listing title */
h3 {
margin-top: 0px;
color: #F0AD4E;
@@ -60,8 +62,15 @@ div.tournament-listing {
color: #D09D3E;
}
+ /* host of the tournament */
.host {
font-weight: bold;
}
+ .col-md-8 {
+ padding: 0;
+ a {
+ padding: 5px 0 0 0;
+ }
+ }
} \ No newline at end of file
diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb
index 804d086..b7c9118 100644
--- a/app/views/tournaments/index.html.erb
+++ b/app/views/tournaments/index.html.erb
@@ -3,6 +3,7 @@
<% if @tournaments.length > 0 %>
<div id="tournament-list">
+ <%# Each tournament has a div for its listing %>
<% @tournaments.each do |t| %>
<div class="row tournament-listing">
<div class="col-md-2 ">Gravatar of Host Goes Here</div>