Skip to content

Commit

Permalink
Collapsed css class with name, and shrunk text a litlte
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Faraday committed Aug 24, 2016
1 parent b3d91f6 commit 644a639
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/classes/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ GridGame.classes.player = function (config) {

this.config = config;
this.name = config.name;
this.css_class = config.css_class;
this.playable = config.playable;
this.key_map = GridGame.data.key_maps[this.name];

Expand Down
2 changes: 1 addition & 1 deletion lib/classes/tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ GridGame.classes.tile = function (x, y) {
.toggleClass('tile_city', this.city);

if (this.player && this.value > 0) {
this.cell.addClass('tile_' + this.player.css_class);
this.cell.addClass('tile_' + this.player.name);
}
};

Expand Down
4 changes: 0 additions & 4 deletions lib/data/players.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
GridGame.data.players = [
{
name: 'green',
css_class: 'green',
start: GridGame.positions.north_west_corner,
direction: 'east',
playable: true
},
{
name: 'red',
css_class: 'red',
start: GridGame.positions.south_east_corner,
direction: 'west',
playable: true
Expand All @@ -17,7 +15,6 @@ GridGame.data.players = [
,
{
name: 'yellow',
css_class: 'yellow',
start: {
x: 8,
y: 0
Expand All @@ -27,7 +24,6 @@ GridGame.data.players = [
},
{
name: 'blue',
css_class: 'blue',
start: {
x: 11,
y: 11
Expand Down
2 changes: 1 addition & 1 deletion lib/player_components/control_panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GridGame.player_components.control_panel = function() {
if (this.playable) {
this.panel = $('<div>');
this.panel.addClass('player_panel');
this.panel.addClass(this.css_class);
this.panel.addClass(this.name);

this.add_button('north');
this.add_button('west');
Expand Down
2 changes: 1 addition & 1 deletion style/grid_game.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ table.game_board tr.row td.tile_city small {
.footer {
float:left;
width: 100%;
font-size: 20px;
font-size: 16px;
color: darkgrey;
}

Expand Down

0 comments on commit 644a639

Please sign in to comment.