Main web interface update

* Added the new interface style, including the necessary pictures and page
layout template.

* Updated existing style sheet in order to accommodate the new fluid
layout and to use some more CSS3 goodness.

* Upgraded JQuery from 1.4.2 to 1.7.1.
This commit is contained in:
Emmanuel BENOîT 2012-01-02 08:57:06 +01:00
parent bed784a8e1
commit d768766214
26 changed files with 576 additions and 649 deletions
legacyworlds-web-main/Content/Raw/css

View file

@ -5,13 +5,6 @@
padding: 0px;
margin: 0px;
color: white;
scrollbar-face-color: #1f1f1f;
scrollbar-highlight-color: #1f1f1f;
scrollbar-3dlight-color: #3f3f3f;
scrollbar-darkshadow-color: #3f3f3f;
scrollbar-shadow-color: #1f1f1f;
scrollbar-arrow-color: #afafaf;
scrollbar-track-color: #1f1f1f;
}
h1 {
@ -38,304 +31,259 @@ h6 {
font-size: 10pt
}
body {
background-color: #000;
color: #888;
overflow: auto;
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Page layout */
#extframe {
position: absolute;
top: 50%;
left: 0px;
width: 100%;
height: 1px
}
.internal {
margin-left: -475px;
position: absolute;
left: 50%;
width: 950px;
}
#intframe {
top: -280px;
height: 560px;
body {
background: black;
background-image: url(../img/background.jpg);
background-position: right bottom;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
min-width: 960px;
}
#hd-logo {
float: left;
position: relative;
background: url(../img/rust.png) repeat;
border-radius: 0 0 30px 0;
box-shadow: inset -2px -2px 10px #bfbfbf, 2px 2px 30px black;
margin: 0;
padding: 0;
z-index: 1;
}
#hd-logo>a {
display: block;
width: 260px;
height: 96px;
background: url(../img/logo.png) no-repeat;
margin: 0;
padding: 0;
}
#hd-logo>a>span {
display: none;
}
#hd-summary {
float: right;
font-size: 10pt;
text-align: right;
padding: 3px 10px 0 0;
}
#hd-page {
padding: 5px;
}
#hd-page h1 {
padding: 0;
margin: 0 0 5px 0;
font-size: 18pt;
font-variant: small-caps;
text-shadow: 0 0 1px white, 2px 2px 4px black;
}
#hd-page ul {
padding: 0;
margin: 0;
}
#hd-page li {
display: inline-block;
}
#hd-page li a {
font-size: 12px;
font-variant: small-caps;
display: block;
margin: 0 10px;
padding: 4px 8px;
background-color: rgba(127, 127, 127, 0.2);
border-radius: 10px;
border-style: solid;
border-width: 1px;
border-color: rgba(255, 255, 255, 0.3);
color: #bfbfbf;
text-shadow: 1px 1px 1px black;
}
#hd-page li.selected a {
color: white;
background-color: rgba(127, 127, 127, 0.8);
}
#hd-page li a:hover {
text-decoration: none;
border-color: rgba(255, 255, 255, 1);
color: white;
}
#hd-bar {
background: url(../img/rust.png) repeat;
height: 76px;
box-shadow: inset 0 -2px 10px #bfbfbf, 2px 2px 30px black;
z-index: 0;
padding: 0 0 0 260px;
margin: 0 10px 0 0;
border-radius: 0 0 20px 0;
}
#hd-text {
color: white;
height: 12px;
font-size: 12px;
text-align: right;
font-weight: bold;
font-style: italic;
padding: 4px 20px 4px 0px;
}
/* Menu */
#menu-left {
float: left;
position: relative;
width: 200px;
background: url(../img/rust.png) repeat;
background-position: 0 -96px;
border-radius: 0 0 20px 0;
margin: -20px 0 0 -20px;
padding: 20px 0 0 20px;
box-shadow: inset -2px -2px 5px #bfbfbf, 2px 2px 30px black;
z-index: 0;
}
#menu-left div.button {
margin: 10px 9px;
}
#menu-left div.button.sub-menu {
margin: 5px 9px 5px 30px;
}
div.button a {
display: block;
color: #bfbfbf;
text-decoration: none;
font-weight: bold;
font-size: 16px;
text-align: center;
padding: 5px;
box-shadow: inset -2px -2px 5px #7f7f7f, 0px 0px 5px #3f3f3f;
border-radius: 15px;
border: 1px solid transparent;
text-shadow: 2px 2px 2px black;
}
div.button.sub-menu a {
font-size: 11px;
font-weight: normal;
text-align: right;
padding: 3px 10px 3px 3px;
}
div.button.current a {
border-color: white;
color: white;
}
div.button a:focus,div.button a:hover {
color: white;
box-shadow: inset -2px -2px 5px white, 0px 0px 10px black;
}
/* Footer (DCD link) */
#footer {
top: 280px;
text-align: center;
margin: 0 0 10px 0;
}
#footer,#footer a {
font-size: 8pt;
font-style: italic;
padding: 2px 0 0 0;
}
#footer a,#footer a:visited {
font-size: 8pt;
text-decoration: none;
color: white;
}
#footer a:hover {
text-decoration: underline;
}
/* "Home" button */
#hbutton {
display: block;
position: absolute;
top: 12px;
left: 10px;
width: 272px;
height: 90px;
background-color: transparent;
}
#hbutton span {
display: none;
}
/* Current version text */
#version {
position: absolute;
top: 89px;
left: 299px;
width: 640px;
height: 22px;
font-size: 10pt;
text-align: center;
font-style: italic;
font-weight: bold;
}
/* Log-in/player info box */
#lbox {
position: absolute;
top: 9px;
left: 699px;
width: 230px;
height: 60px;
text-align: right;
font-size: 10pt;
}
#lbox a {
color: white;
text-decoration: none;
font-style: italic;
}
#lbox a:hover {
text-decoration: underline;
}
/* Menu and buttons */
a.mbutton {
display: block;
position: absolute;
height: 21px;
width: 250px;
left: 14px;
padding: 18px 0px;
background-repeat: no-repeat;
border-style: none;
border-width: 0px;
font-weight: bold;
text-align: center;
text-decoration: none;
color: #ddd;
background-position: 0px 0px;
font-size: 12pt;
}
a.mbutton:hover {
color: white;
background-position: 0px -57px;
}
a#b0 {
top: 136px;
background-image: url(../img/button-0.png);
}
a#b1 {
top: 193px;
background-image: url(../img/button-1.png);
}
a#b2 {
top: 250px;
background-image: url(../img/button-2.png);
}
a#b3 {
top: 307px;
background-image: url(../img/button-3.png);
}
a#b4 {
top: 364px;
background-image: url(../img/button-4.png);
}
a#b5 {
top: 421px;
background-image: url(../img/button-5.png);
}
a#b6 {
top: 478px;
background-image: url(../img/button-6.png);
}
/* Content frame */
.cframe {
position: absolute;
left: 299px;
top: 117px;
width: 637px;
height: 426px;
overflow: auto;
background-color: transparent;
color: white;
#page-contents {
margin: 0 20px 10px -40px;
padding: 20px 40px 20px 260px;
border-radius: 40px;
background-color: rgba(0, 0, 0, 0.7);
min-height: 400px;
}
.cframe.full-width {
left: 15px;
width: 921px;
.chat-page#page-contents {
padding: 20px 40px 20px 60px;
}
.cframe.offline {
height: 279px;
top: 264px;
overflow: hidden;
}
.cframe p {
#page-contents p {
color: #CCCCCC;
}
.cframe ul,.cframe ol {
#page-contents ul,#page-contents ol {
margin: 0px 0px 0px 20px;
padding: 0px 0px 0px 10px;
}
.cframe li {
#page-contents li {
margin: 0px 0px 0px 20px;
padding: 0px 0px 0px 0px;
}
/* Text in the content frame */
.cframe ul {
#page-contents ul {
list-style-type: square;
}
.cframe li {
#page-contents li {
font-size: 10pt;
}
.cframe li:first-letter {
#page-contents li:first-letter {
font-size: 11pt;
font-weight: bold;
}
.cframe p {
#page-contents p {
margin: 5px 10px 5px 30px;
text-align: justify;
text-indent: 10px;
font-size: 10pt;
}
.cframe p:first-letter {
#page-contents p:first-letter {
font-size: 11pt;
font-weight: bold;
}
/* Tabs */
.tab-buttons {
width: 100%;
text-align: center;
margin: 0 0 5px 0;
padding: 5px 0 0 0;
height: 20px;
}
a.tab-button {
padding: 4px;
margin: 1px 0 0 5px;
background-color: #3f3f3f;
border: 1px solid #7f7f7f;
text-decoration: none;
font-style: normal;
}
a.tab-button:hover {
background-color: #4f4f4f;
border-color: #8f8f8f;
}
a.tab-button.selected-tab,a.tab-button.selected-tab:hover {
background-color: #7f7f7f;
border-color: white;
}
/* Top/centered layer (title, planet links) */
div.top-centered {
position: absolute;
left: 330px;
width: 320px;
top: 10px;
height: 50px;
text-align: center;
}
#tc-title {
font-weight: bold;
font-size: 13pt;
text-align: center;
}
div#tc-title {
top: 30px;
height: 30px;
}
span.special-info {
color: red;
font-weight: bold;
}
/* Forms */
.form-container {
width: 509px;
margin: 0 64px;
}
.full-width .form-container {
width: 793px;
width: -moz-calc( 100% - 128px );
width: -webkit-calc( 100% - 128px );
width: -o-calc( 100% - 128px );
width: calc( 100% - 128px );
margin: 0 64px;
}
.form-container table {
width: 509px;
width: 100%;
table-layout: fixed;
}
.full-width .form-container table {
width: 793px;
}
.form-field th,.form-submit th {
text-align: right;
vertical-align: middle;
height: 16px;
width: 200px;
min-width: 200px;
width: 25%;
padding: 4px;
font-weight: normal;
}
@ -356,10 +304,10 @@ span.special-info {
padding: 5px 20px;
}
.form-submit .input:hover {
.form-submit .input:hover , .form-submit .input:focus {
padding: 5px 20px;
border-color: #dfdfdf;
background-color: #7f7f7f;
background-color: rgba(127,127,127,0.6);
}
.form-extra td {
@ -375,20 +323,23 @@ span.special-info {
.form-error td {
font-size: 11pt;
color: white;
background-color: red;
background-color: rgba(255,0,0,0.4);
font-weight: bold;
margin: 2px 0px;
padding: 5px;
padding: 5px 10px;
border-radius: 10px;
}
.input {
border-style: solid;
border-width: 1px;
border-color: #afafaf;
background-color: #3f3f3f;
background-color: rgba(63,63,63,0.6);
color: white;
font-size: 10pt;
margin: 1px 0px
margin: 1px 0px;
border-radius: 8px;
padding: 0 4px;
}
/* Data display */
@ -420,7 +371,10 @@ span.special-info {
/* List display */
.list-view {
width: 573px;
width: -moz-calc( 100% - 64px );
width: -webkit-calc( 100% - 64px );
width: -o-calc( 100% - 64px );
width: calc( 100% - 64px );
margin: 0 32px 20px 32px;
border-collapse: collapse;
}
@ -443,7 +397,7 @@ span.special-info {
/* Column layout */
.column {
width: 310px
width: 50%
}
.left-column {
@ -451,7 +405,7 @@ span.special-info {
}
.right-column {
padding: 0 0 0 310px;
padding: 0 0 0 50%;
}
/* Misc */
@ -650,14 +604,20 @@ table.fleets-planet,table.fleets-moving {
border: 1px solid white;
border-collapse: collapse;
margin: 0 0 20px 5px;
width: 610px;
width: -moz-calc( 100% - 20px );
width: -webkit-calc( 100% - 20px );
width: -o-calc( 100% - 20px );
width: calc( 100% - 20px );
}
table.selected-fleets {
border: 1px solid white;
border-collapse: collapse;
margin: 10px 0 20px 15px;
width: 600px;
width: -moz-calc( 100% - 30px );
width: -webkit-calc( 100% - 30px );
width: -o-calc( 100% - 30px );
width: calc( 100% - 30px );
}
table.fleets-planet td {