Improving user-interface.

This commit is contained in:
marcins78@gmail.com
2011-09-06 19:47:13 +00:00
parent d3d2d88586
commit 6e01e4785b
3 changed files with 4 additions and 3 deletions

View File

@@ -133,7 +133,8 @@
</head>
<body>
<div id="main" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: #000000;">
<div id="main" class="ui-widget"
style="position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: #000000;">
</div>
</body>
</html>

View File

@@ -94,7 +94,7 @@ var GempLotrGameUI = Class.extend({
});
this.specialGroup.setBounds(this.padding, this.padding, 400, 200);
this.gameStateElem = $("<div></div>");
this.gameStateElem = $("<div class='ui-widget-content'></div>");
this.gameStateElem.css({"border-radius": "7px", "background-color": "#ffffff"});
this.gameStateElem.append("<b>Players:</b><br>");

View File

@@ -120,7 +120,7 @@ var NormalCardGroup = CardGroup.extend({
setBounds: function(x, y, width, height) {
this._super(x + 3, y + 3, width - 6, height - 6);
if (this.descDiv != null)
this.descDiv.css({left:x + "px", top:y + "px", width: width, height: height, "background-color":"#ffffff", "border-radius":"7px", position: "absolute", "text-align": "center"});
this.descDiv.css({left:x + "px", top:y + "px", width: width, height: height, position: "absolute"});
},
layoutCards: function() {