Permalink
Browse files

minimalizing

  • Loading branch information...
1 parent 41720ff commit e89da6afca673516bfc231e7798eb98ccb006f82 @ivankuzev committed Apr 10, 2012
View
@@ -21,8 +21,8 @@
}
.gs-hud-menu{
position: absolute;
- height: 350px;
- width:50px;
+ height: 300px;
+ width:30px;
left:0px;
top:0px;
}
@@ -49,92 +49,95 @@
.gs-hud-menu-item {
position:absolute;
- width:50px;
- height:50px;
+ width:30px;
+ height:30px;
}
.gs-hud-menu-item-content{
width:100%;
height:100%;
+ z-index:1;
}
.gs-hud-menu-item-text{
- width:150px;
- height:50px;
- font-size: 30px;
+ z-index:1;
+ width:170px;
+ height:30px;
+ font-size: 20px;
top:0px;
- left:50px;
+ left:30px;
color:white;
text-align: center;
font-weight: bold;
font-family: 'Orbitron', sans-serif;
}
.gs-hud-menu-item-icon{
z-index: 6;
- width: 50px;
- height:50px;
+ width: 30px;
+ height:30px;
margin-left: auto;
margin-right: auto;
}
.gs-hud-menu-item-background {
width:100%;
height:100%;
- opacity: 0.5;
- z-index: -1;
+ z-index: 0;
+ opacity:0.5;
background-color: darkblue;
}
.gs-hud-menu-item-topleft{
- width:25px;
- height:25px;
+ width:15px;
+ height:15px;
z-index: 5;
background-image:url("hud/topleft.png");
}
.gs-hud-menu-item-topright{
- width:25px;
- height:25px;
+ width:15px;
+ height:15px;
z-index: 5;
right:0px;
background-image:url("hud/topright.png");
}
.gs-hud-menu-item-bottomleft{
- width:25px;
- height:25px;
+ width:15px;
+ height:15px;
z-index: 5;
bottom:0px;
background-image:url("hud/bottomleft.png");
}
.gs-hud-menu-item-bottomright{
- width:25px;
- height:25px;
+ width:15px;
+ height:15px;
bottom:0px;
right:0px;
z-index: 5;
background-image:url("hud/bottomright.png");
}
.gs-hud-menu-item-topborder{
- height:10px;
+ height:2px;
width:100%;
z-index: 4;
- background-image:url("hud/linetop.png");
+ background-color:darkblue;
}
.gs-hud-menu-item-bottomborder{
- height:10px;
+ height:2px;
width:100%;
z-index: 4;
bottom:0px;
- background-image:url("hud/linebottom.png");
+ background-color:darkblue;
+
}
.gs-hud-menu-item-leftborder{
- width:10px;
+ width:2px;
height:100%;
z-index: 4;
- background-image:url("hud/lineleft.png");
+ background-color:darkblue;
}
.gs-hud-menu-item-rightborder{
- width:10px;
+ width:2px;
height:100%;
right:0px;
z-index: 4;
- background-image:url("hud/lineright.png");
+ background-color:darkblue;
}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -84,8 +84,8 @@
dialogItem.prototype.close = function(){
this.hideContent(function(){
this.$container.animate({
- width:50,
- height:50
+ width:30,
+ height:30
});
this.$container.animate(this.closedPosition,"fast", $.proxy(function(){
this.closed = true;
@@ -104,7 +104,7 @@
}
dialogItem.prototype.halfClose = function(callback){
this.$container.stop().animate({
- width:50
+ width:30
},$.proxy(function(){this.$text.hide()},this));
}
dialogItem.prototype.showContent = function(callback){
View
@@ -13,14 +13,16 @@
left:0
},{width:1100,height:800},$content,"Info"))
this.addMenuItem(new App.Hud.DialogItem("icon2.png",{
- top:50,
+ top:30,
left:0
},{width:300,height:200}))
this.addMenuItem(new App.Hud.DialogItem("icon3.png",{
- top:100,
+ top:60,
left:0
},{width:200,height:100}))
-
+ $(".gs-hud-menu div:eq(0)").css("z-index",0);
+ $(".gs-hud-menu div:eq(1)").css("z-index",1);
+ $(".gs-hud-menu div:eq(2)").css("z-index",2);
}
Hud.prototype.addMenuItem = function(menuItem){

0 comments on commit e89da6a

Please sign in to comment.