Reformatted DialogBox and PurchaseServerBox. Implemented purchase server, untested (will test when I do a playthrough so i get enough moeny)

This commit is contained in:
Daniel Xie
2017-02-05 19:29:17 -06:00
parent fc2dc82f1a
commit d20da28c51
4 changed files with 110 additions and 36 deletions
+38 -22
View File
@@ -78,16 +78,16 @@ h1 {
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: #333; /* Fallback color */
background-color: black; /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
#dialog-box-content {
background-color: #555;
margin: 15% auto; /* 15% from the top and centered */
padding: 1px;
border: 1px solid #555;
width: 80%; /* Could be more or less, depending on screen size */
background-color: black;
margin: 20% auto; /* 15% from the top and centered */
padding: 10px;
border: 5px solid #FFFFFF;
width: 40%; /* Could be more or less, depending on screen size */
}
.dialog-box-text {
@@ -97,57 +97,73 @@ h1 {
#dialog-box-close-button {
color: #aaa;
float: right;
font-size: 28px;
font-size: 20px;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
}
#dialog-box-close-button:hover,
#dialog-box-close-button:focus {
color: black;
color: white;
text-decoration: none;
cursor: pointer;
}
/* Pop-up Yes/no box */
#yes-no-box-container {
#purchase-server-box-container {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
right: 0;
bottom: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: #333; /* Fallback color */
background-color: black; /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
transition: opacity 400ms ease-in;
}
#yes-no-box-content {
background-color: #555;
#purchase-server-box-content {
background-color: black;
margin: 15% auto; /* 15% from the top and centered */
padding: 1px;
border: 1px solid #555;
border: 5px solid #FFFFFF;
width: 80%; /* Could be more or less, depending on screen size */
color: #66ff33;
}
#yes-no-box-yes, #yes-no-box-no {
#purchase-server-box-input {
color: white;
}
#purchase-server-box-confirm,
#purchase-server-box-cancel {
color: #aaa;
float: right;
font-size: 28px;
font-size: 14px;
font-weight: bold;
padding: 2px;
border: 1px solid white
}
#yes-no-box-yes:hover,
#yes-no-box-yes:focus {
color: black;
#purchase-server-box-confirm:hover,
#purchase-server-box-confirm:focus {
color: #66ff33;
text-decoration: none;
cursor: pointer;
}
#yes-no-box-no:hover,
#yes-no-box-no:focus {
color: black;
#purchase-server-box-cancel:hover,
#purchase-server-box-cancel:focus {
color: #66ff33;
text-decoration: none;
cursor: pointer;
}