summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-28 12:56:28 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-28 12:56:28 -0400
commit2381a936cbd722148dc7fd93150ee2c570a8e890 (patch)
treecbfa0fca6c4857453f1aafdec5a393d897a02679
parent4487d51e90f4e9c985d2fb235b7c0dce43cf0bc7 (diff)
fight with CSS more
-rw-r--r--app/assets/javascripts/tournaments/show.js.coffee2
-rw-r--r--app/assets/stylesheets/application/scaffolds.css.scss62
-rw-r--r--app/assets/stylesheets/tournaments.css.scss71
3 files changed, 60 insertions, 75 deletions
diff --git a/app/assets/javascripts/tournaments/show.js.coffee b/app/assets/javascripts/tournaments/show.js.coffee
index 8620210..cd1fd08 100644
--- a/app/assets/javascripts/tournaments/show.js.coffee
+++ b/app/assets/javascripts/tournaments/show.js.coffee
@@ -11,7 +11,7 @@ update = (tournament) ->
# Update the user list
players = ""
for player in tournament["players"]
- players = players + "<li><span class=\"black\">" + player["user_name"] + "</span></li>"
+ players = players + "<li>"+player["user_name"]+"</li>"
$("#tournament-users").html players
# Enable/disable the "start" button depending on the number of players
diff --git a/app/assets/stylesheets/application/scaffolds.css.scss b/app/assets/stylesheets/application/scaffolds.css.scss
index 28600b8..ae26907 100644
--- a/app/assets/stylesheets/application/scaffolds.css.scss
+++ b/app/assets/stylesheets/application/scaffolds.css.scss
@@ -4,18 +4,12 @@
/* Layout ***********************************************************/
html {
- height: 100%;
-
body {
- background: asset-url("bg.png", image) repeat scroll 0 0 $page-color;
+ background: asset-url("bg.png", image) repeat scroll 0 0 $toolbar-color;
color: $page-color;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px;
- height: 100%;
- background-color: $toolbar-color;
- border-radius: 0px 0px 5px 5px;
- box-shadow: 0px 0px 5px black;
header > nav {
@extend .navbar;
@@ -44,9 +38,9 @@ html {
form.search {
@extend .navbar-form;
- @extend .navbar-right;
+ float: right;
input[type="submit"] {
- @extend .btn-warning; margin-top: -3px; margin-right: 8px;
+ @extend .btn-warning;
}
input[type="text"], input[type="search"] {
background-color: #303030;
@@ -76,14 +70,9 @@ html {
.wrapper {
width: 80%;
- margin-top: 10px;
- min-height: 80%;
- height: auto !important;
- height: 99%;
- margin: 0 auto;
+ margin: 10px auto 0;
}
-
footer {
clear: both;
border-top: solid 1px $orange;
@@ -236,14 +225,57 @@ div.field, div.actions {
/* Specific styles **************************************************/
.tournament-listing {
+ margin: 10px 0px;
+ border-radius: 5px;
+ box-shadow: 0px 0px 3px #B8B8B8;
+ background-color: rgba(0, 0, 0, 0.6);
+ border: 1px solid #AAAAAA;
+ min-height: 100px;
+ padding: 8px 4px;
+
div.row {
margin-left: 2%;
}
p.message {
margin-top: 10px;
}
+
+ /* AKA the listing title */
+ h3 {
+ margin-top: 0px;
+ color: #F0AD4E;
+ font-weight: bold;
+ }
+
+ h3:hover {
+ color: #D09D3E;
+ }
+
+ /* host of the tournament */
+ .host {
+ font-weight: bold;
+ color: #FFF;
+ }
+
+ .col-md-8 {
+ padding: 0;
+ a {
+ padding: 5px 0 0 0;
+ }
+ }
+
+ .t-game{
+ font-weight: bold;
+ text-align: center;
+ }
+
+ .t-image{
+ display: block;
+ margin:auto;
+ }
}
+
.user-listing {
margin: 10px 0px;
border-radius: 5px;
diff --git a/app/assets/stylesheets/tournaments.css.scss b/app/assets/stylesheets/tournaments.css.scss
index 498bdb3..0b8aa99 100644
--- a/app/assets/stylesheets/tournaments.css.scss
+++ b/app/assets/stylesheets/tournaments.css.scss
@@ -23,66 +23,19 @@
}
-#tournament-users {
- ul {
- list-style: none;
- padding: 0;
- margin: 0;
- li {
- padding-left: 1em;
- text-indent: -.7em;
- &:before {
- content: "• ";
- color: #10A010;
- }
- color: white;
+ul#tournament-users {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ li {
+ // Make the bullet green, but the text white
+ padding-left: 1em;
+ text-indent: -.7em;
+ &:before {
+ content: "• ";
+ color: #10A010;
}
- }
-}
-
-
-/* Style of a tournament listing div */
-div.tournament-listing {
- margin: 10px 0px;
- border-radius: 5px;
- box-shadow: 0px 0px 3px #B8B8B8;
- background-color: rgba(0, 0, 0, 0.6);
- border: 1px solid #AAAAAA;
- min-height: 100px;
- padding: 8px 4px;
-
- /* AKA the listing title */
- h3 {
- margin-top: 0px;
- color: #F0AD4E;
- font-weight: bold;
- }
-
- h3:hover {
- color: #D09D3E;
- }
-
- /* host of the tournament */
- .host {
- font-weight: bold;
- color: #FFF;
- }
-
- .col-md-8 {
- padding: 0;
- a {
- padding: 5px 0 0 0;
- }
- }
-
- .t-game{
- font-weight: bold;
- text-align: center;
- }
-
- .t-image{
- display: block;
- margin:auto;
+ color: white;
}
}