Added titlebar to entire game "window"
parent
3d3bee68f6
commit
abdda72148
|
@ -35,6 +35,8 @@
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<div id="game" class="game opening">
|
<div id="game" class="game opening">
|
||||||
|
<div class="title">LaserTank.js</div>
|
||||||
|
<div class="body">
|
||||||
<ul id="menubar" class="menu">
|
<ul id="menubar" class="menu">
|
||||||
<li>
|
<li>
|
||||||
<a id="mnu_help" href="#help">Game</a>
|
<a id="mnu_help" href="#help">Game</a>
|
||||||
|
@ -100,6 +102,7 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="todo" class="dialog">
|
<div id="todo" class="dialog">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
29
style.css
29
style.css
|
@ -15,6 +15,25 @@ body {
|
||||||
width: 696px;
|
width: 696px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* simply ensures that absolute-positioned elements are below the title bar */
|
||||||
|
.game > div {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* common to all titles (dialog-specific is further down) */
|
||||||
|
.title {
|
||||||
|
background-color: #000080;
|
||||||
|
background-image: -webkit-linear-gradient( left, #000080, #1084d0 );
|
||||||
|
background-image: -moz-linear-gradient( left, #000080, #1084d0 );
|
||||||
|
background-image: -ms-linear-gradient( left, #000080, #1084d0 );
|
||||||
|
background-image: -o-linear-gradient( left, #000080, #1084d0 );
|
||||||
|
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
padding: 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
/** menu **/
|
/** menu **/
|
||||||
.game ul.menu,
|
.game ul.menu,
|
||||||
.game ul.menu ul {
|
.game ul.menu ul {
|
||||||
|
@ -187,17 +206,7 @@ body {
|
||||||
z-index: 2001;
|
z-index: 2001;
|
||||||
}
|
}
|
||||||
.dialog > .body > .title {
|
.dialog > .body > .title {
|
||||||
background-color: #000080;
|
|
||||||
background-image: -webkit-linear-gradient( left, #000080, #1084d0 );
|
|
||||||
background-image: -moz-linear-gradient( left, #000080, #1084d0 );
|
|
||||||
background-image: -ms-linear-gradient( left, #000080, #1084d0 );
|
|
||||||
background-image: -o-linear-gradient( left, #000080, #1084d0 );
|
|
||||||
margin: -0.5em -0.5em 0.5em -0.5em;
|
margin: -0.5em -0.5em 0.5em -0.5em;
|
||||||
|
|
||||||
font-weight: bold;
|
|
||||||
color: white;
|
|
||||||
|
|
||||||
padding: 0.4em;
|
|
||||||
}
|
}
|
||||||
.dialog .close {
|
.dialog .close {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
Loading…
Reference in New Issue