Bläddra i källkod

a few more css/layout changes for upgrade.php

Signed-off-by: illori [email protected]
Illori 11 år sedan
förälder
incheckning
2d82ad1498
2 ändrade filer med 46 tillägg och 17 borttagningar
  1. 29 1
      Themes/default/css/install.css
  2. 17 16
      other/upgrade.php

+ 29 - 1
Themes/default/css/install.css

@@ -77,11 +77,32 @@ img#smflogo {
 	top: 0.5em;
 	left: -3.3em;
 }
+
+#overall_text_upgrade, #step_text_upgrade {
+	z-index: 2;
+	color: #111;
+	font-weight: bold;
+	position: absolute;
+	top: 1em;
+	left: -3.3em;
+}
 #overall_progress, #step_progress {
 	height: 2.3em;
 	z-index: 1;
 	background: lime;
 }
+
+#overall_progress_upgrade, #step_progress_upgrade {
+	height: 3em;
+	z-index: 1;
+	background: lime;
+	margin: -15px 3px 0px 0px;
+}
+.over_progress {
+
+margin: -35px 5px 0 10px;
+}
+
 #step_progress {
 	background: #ffd000;
 }
@@ -151,7 +172,14 @@ img#smflogo {
 }
 
 #progress {
+	position: relative;
+	font-size: 1.2em;
+	height: 2.3em;
+	border: 1px solid black;
+	border-radius: 2px;
+	background: #fff;
 	float: left;
-	width: 40%;
+	margin: 0.6em 0 0 4em;
+	width: 33%;
 	padding-top:20px;
 }

+ 17 - 16
other/upgrade.php

@@ -3553,22 +3553,23 @@ function template_upgrade_above()
 	echo '
 					</ul>
 			</div>
-			<div id="progress">
-				<div style="font-size: 8pt; height: 12pt; border: 1px solid black; background-color: white; width: 50%; margin: auto;">				
-					<div id="overall_text" style="color: #000; position: fixed; margin-left: -5em;">', $upcontext['overall_percent'], '%</div>
-					<div id="overall_progress" style="width: ', $upcontext['overall_percent'], '%; height: 12pt; z-index: 1; background-color: lime;">&nbsp;</div>
 
-				</div>
-				';
+			<div id="progress">
+				<div id="overall_text_upgrade">', $upcontext['overall_percent'], '%</div>
+				<div id="overall_progress_upgrade" style="width: ', $upcontext['overall_percent'], '%;">&nbsp;</div>
+				<div class="over_progress">', $txt['upgrade_overall_progress'], '</div>
+			</div>';
 
 	if (isset($upcontext['step_progress']))
 		echo '
-				<div style="font-size: 8pt; height: 12pt; border: 1px solid black; background-color: white; width: 50%; margin: 5px auto; ">
-					<div id="step_text" style="color: #000; position: absolute; margin-left: -5em;">', $upcontext['step_progress'], '%</div>
-					<div id="step_progress" style="width: ', $upcontext['step_progress'], '%; height: 12pt; z-index: 1; background-color: #ffd000;">&nbsp;</div>
-					<div class="progress">', $txt['upgrade_step_progress'], '</div>
-				</div>
-				';
+				
+				<br />
+				<br />
+				<div id="progress">
+					<div id="step_text_upgrade">', $upcontext['step_progress'], '%</div>
+					<div id="step_progress_upgrade" style="width: ', $upcontext['step_progress'], '%;background-color: #ffd000;">&nbsp;</div>
+					<div class="over_progress">', $txt['upgrade_step_progress'], '</div>
+					</div>';
 
 	echo '
 				<div id="substep_bar_div" class="smalltext" style="display: ', isset($upcontext['substep_progress']) ? '' : 'none', ';">', isset($upcontext['substep_progress_name']) ? trim(strtr($upcontext['substep_progress_name'], array('.' => ''))) : '', ':</div>
@@ -3582,11 +3583,11 @@ function template_upgrade_above()
 	$mins = (int) ($elapsed / 60);
 	$seconds = $elapsed - $mins * 60;
 	echo '
-								<div class="smalltext" style="padding: 5px; text-align: center;">', $txt['upgrade_overall_progress'],'<br />', $txt['upgrade_time_elapsed'], ':
+								<br /> <br /> <br /> <br />
+								<div class="smalltext" style="padding: 5px; text-align: center;"><br />', $txt['upgrade_time_elapsed'], ':
 									<span id="mins_elapsed">', $mins, '</span> ', $txt['upgrade_time_mins'], ', <span id="secs_elapsed">', $seconds, '</span> ', $txt['upgrade_time_secs'], '.
 								</div>';
 	echo '
-			</div>
 			</div>
 			</div>
 			<div id="content_section">
@@ -3945,10 +3946,10 @@ function template_upgrade_options()
 					</tr>
 					<tr valign="top">
 						<td width="2%">
-							<input type="checkbox" name="stats" id="stats" value="1"', empty($modSettings['allow_sm_stats']) ? '' : ' checked="checked"', ' class="input_check" />
+							<input type="checkbox" name="stat" id="stat" value="1"', empty($modSettings['allow_sm_stats']) ? '' : ' checked="checked"', ' class="input_check" />
 						</td>
 						<td width="100%">
-							<label for="stats">
+							<label for="stat">
 								Allow Simple Machines to Collect Basic Stats Monthly.<br />
 								<span class="smalltext">If enabled, this will allow Simple Machines to visit your site once a month to collect basic statistics. This will help us make decisions as to which configurations to optimise the software for. For more information please visit our <a href="http://www.simplemachines.org/about/stats.php" target="_blank">info page</a>.</span>
 							</label>