Browse Source

! Let's use a stylesheet for styling, eh?

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 years ago
parent
commit
74d2e67791

+ 9 - 9
Themes/default/Admin.template.php

@@ -316,7 +316,7 @@ function template_view_versions()
 							</h3>
 						</div>
 						<div class="information">', $txt['version_check_desc'], '</div>
-							<table width="100%" class="table_grid">
+							<table class="table_grid">
 								<thead>
 									<tr class="catbg" align="left">
 										<th class="first_th" scope="col" width="50%">
@@ -362,7 +362,7 @@ function template_view_versions()
 								</tbody>
 							</table>
 
-							<table id="Sources" width="100%" class="table_grid">
+							<table id="Sources" class="table_grid">
 							<tbody>';
 
 	// Loop through every source file displaying its version - using javascript.
@@ -385,7 +385,7 @@ function template_view_versions()
 							</tbody>
 							</table>
 
-							<table width="100%" class="table_grid">
+							<table class="table_grid">
 								<tbody>
 									<tr>
 										<td class="windowbg" width="50%">
@@ -401,7 +401,7 @@ function template_view_versions()
 								</tbody>
 							</table>
 
-							<table id="Default" width="100%" class="table_grid">
+							<table id="Default" class="table_grid">
 								<tbody>';
 
 	foreach ($context['default_template_versions'] as $filename => $version)
@@ -423,7 +423,7 @@ function template_view_versions()
 								</tbody>
 							</table>
 
-							<table width="100%" class="table_grid">
+							<table class="table_grid">
 								<tbody>
 									<tr>
 										<td class="windowbg" width="50%">
@@ -439,7 +439,7 @@ function template_view_versions()
 								</tbody>
 							</table>
 
-							<table id="Languages" width="100%" class="table_grid">
+							<table id="Languages" class="table_grid">
 								<tbody>';
 
 	foreach ($context['default_language_versions'] as $language => $files)
@@ -467,7 +467,7 @@ function template_view_versions()
 	if (!empty($context['template_versions']))
 	{
 		echo '
-							<table width="100%" class="table_grid">
+							<table class="table_grid">
 								<tbody>
 									<tr>
 										<td class="windowbg" width="50%">
@@ -483,7 +483,7 @@ function template_view_versions()
 								</tbody>
 							</table>
 
-							<table id="Templates" width="100%" class="table_grid">
+							<table id="Templates" class="table_grid">
 								<tbody>';
 
 		foreach ($context['template_versions'] as $filename => $version)
@@ -1453,7 +1453,7 @@ function template_php_info()
 	foreach ($context['pinfo'] as $area => $php_area)
 	{
 		echo '
-						<table id="', str_replace(' ', '_', $area), '" width="100%" class="table_grid">
+						<table id="', str_replace(' ', '_', $area), '" class="table_grid">
 							<thead>
 								<tr class="catbg">
 									<th class="first_th" scope="col" width="33%"></th>

+ 1 - 1
Themes/default/ManageLanguages.template.php

@@ -75,7 +75,7 @@ function template_download_language()
 					', $txt['languages_download_theme_files'], '
 				</h3>
 			</div>
-			<table class="table_grid" cellspacing="0" width="100%">
+			<table class="table_grid" cellspacing="0">
 				<thead>
 					<tr class="catbg">
 						<th class="first_th" scope="col">

+ 1 - 1
Themes/default/ManageMembergroups.template.php

@@ -564,7 +564,7 @@ function template_group_members()
 			</div>
 			<br />
 			<div class="pagesection">', $context['page_index'], '</div>
-			<table width="100%" class="table_grid">
+			<table class="table_grid">
 				<thead>
 					<tr class="catbg">
 						<th class="first_th"><a href="', $scripturl, '?action=', $context['current_action'], (isset($context['admin_area']) ? ';area=' . $context['admin_area'] : ''), ';sa=members;start=', $context['start'], ';sort=name', $context['sort_by'] == 'name' && $context['sort_direction'] == 'up' ? ';desc' : '', ';group=', $context['group']['id'], '">', $txt['name'], $context['sort_by'] == 'name' ? ' <span class="sort sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th>';

+ 1 - 1
Themes/default/ManagePaid.template.php

@@ -487,7 +487,7 @@ function template_user_subscription()
 		<div class="information">
 			', $txt['paid_current_desc'], '
 		</div>
-		<table width="100%" class="table_grid">
+		<table class="table_grid">
 			<thead>
 				<tr class="catbg">
 					<th class="first_th" width="30%">', $txt['paid_name'], '</th>

+ 2 - 2
Themes/default/ManagePermissions.template.php

@@ -371,7 +371,7 @@ function template_edit_profiles()
 				<h3 class="catbg">', $txt['permissions_profile_edit'], '</h3>
 			</div>
 
-			<table width="100%" class="table_grid">
+			<table class="table_grid">
 				<thead>
 					<tr class="catbg">
 						<th class="first_th">', $txt['permissions_profile_name'], '</th>
@@ -834,7 +834,7 @@ function template_postmod_permissions()
 									<input type="submit" value="', $txt['go'], '" class="button_submit" />
 								</span>
 							</div>
-							<table width="100%" class="table_grid">
+							<table class="table_grid">
 								<thead>
 									<tr class="catbg">
 										<th class="first_th"></th>

+ 1 - 1
Themes/default/Memberlist.template.php

@@ -33,7 +33,7 @@ function template_main()
 
 	echo '
 		<div id="mlist" class="tborder topic_table">
-			<table class="table_grid" cellspacing="0" width="100%">
+			<table class="table_grid" cellspacing="0">
 			<thead>
 				<tr class="catbg">';
 

+ 5 - 5
Themes/default/Packages.template.php

@@ -135,7 +135,7 @@ function template_view_package()
 		echo '
 					', $txt['perform_actions'], '
 			</div><br />
-			<table class="table_grid" width="100%">
+			<table class="table_grid">
 			<thead>
 				<tr class="catbg">
 					<th class="first_th" scope="col" width="20"></th>
@@ -224,7 +224,7 @@ function template_view_package()
 				<div class="information">
 					', $txt['package_other_themes_desc'], '
 				</div>
-				<table class="table_grid" width="100%">';
+				<table class="table_grid">';
 
 			// Loop through each theme and display it's name, and then it's details.
 			foreach ($context['theme_actions'] as $id => $theme)
@@ -1524,7 +1524,7 @@ function template_file_permissions()
 				<span class="floatleft">', $txt['package_file_perms'], '</span><span class="fperm floatright">', $txt['package_file_perms_new_status'], '</span>
 			</h3>
 		</div>
-		<table width="100%" class="table_grid">
+		<table class="table_grid">
 			<thead>
 				<tr class="catbg">
 					<th class="first_th lefttext" width="30%">&nbsp;', $txt['package_file_perms_name'], '&nbsp;</th>
@@ -1642,7 +1642,7 @@ function template_permission_show_contents($ident, $contents, $level, $has_more
 				echo '
 			</tbody>
 			</table>
-			<table border="0" width="100%" class="table_grid" id="', $js_ident, '">
+			<table border="0" class="table_grid" id="', $js_ident, '">
 			<tbody>';
 			}
 
@@ -1705,7 +1705,7 @@ function template_permission_show_contents($ident, $contents, $level, $has_more
 		</table><script><!-- // --><![CDATA[
 			expandFolder(\'', $js_ident, '\', \'\');
 		// ]]></script>
-		<table border="0" width="100%" class="table_grid">
+		<table border="0" class="table_grid">
 			<tbody>
 			<tr style="display: none;"><td></td></tr>';
 	}

+ 4 - 4
Themes/default/PersonalMessage.template.php

@@ -591,7 +591,7 @@ function template_subject_list()
 	global $context, $options, $settings, $modSettings, $txt, $scripturl;
 
 	echo '
-	<table width="100%" class="table_grid">
+	<table class="table_grid">
 	<thead>
 		<tr class="catbg">
 			<th align="center" width="4%" class="centercol first_th">
@@ -860,7 +860,7 @@ function template_search_results()
 	// complete results ?
 	if (empty($context['search_params']['show_complete']) && !empty($context['personal_messages']))
 		echo '
-	<table width="100%" class="table_grid">
+	<table class="table_grid">
 	<thead>
 		<tr class="catbg">
 			<th class="lefttext first_th" width="30%">', $txt['date'], '</th>
@@ -1398,7 +1398,7 @@ function template_labels()
 		<div class="description">
 			', $txt['pm_labels_desc'], '
 		</div>
-		<table width="100%" class="table_grid">
+		<table class="table_grid">
 		<thead>
 			<tr class="catbg">
 				<th class="lefttext first_th">
@@ -1559,7 +1559,7 @@ function template_rules()
 		<div class="description">
 			', $txt['pm_manage_rules_desc'], '
 		</div>
-		<table width="100%" class="table_grid">
+		<table class="table_grid">
 		<thead>
 			<tr class="catbg">
 				<th class="lefttext first_th">

+ 7 - 7
Themes/default/Profile.template.php

@@ -600,7 +600,7 @@ function template_editBuddies()
 				<span class="stats_icon people icon"></span>', $txt['editBuddies'], '
 			</h3>
 		</div>
-		<table border="0" width="100%" cellspacing="1" cellpadding="4" class="table_grid" align="center">
+		<table border="0" cellspacing="1" cellpadding="4" class="table_grid" align="center">
 			<tr class="catbg">
 				<th class="first_th" scope="col" width="20%">', $txt['name'], '</th>
 				<th scope="col">', $txt['status'], '</th>';
@@ -719,7 +719,7 @@ function template_editIgnoreList()
 				<img src="', $settings['images_url'], '/icons/profile_hd.png" alt="" class="icon" />', $txt['editIgnoreList'], '
 			</h3>
 		</div>
-		<table border="0" width="100%" cellspacing="1" cellpadding="4" class="table_grid" align="center">
+		<table border="0" cellspacing="1" cellpadding="4" class="table_grid" align="center">
 			<tr class="catbg">
 				<th class="first_th" scope="col" width="20%">', $txt['name'], '</th>
 				<th scope="col">', $txt['status'], '</th>';
@@ -925,7 +925,7 @@ function template_trackIP()
 	else
 	{
 		echo '
-		<table class="table_grid" cellspacing="0" width="100%">
+		<table class="table_grid" cellspacing="0">
 			<thead>
 				<tr class="catbg">
 					<th class="first_th" scope="col">', $txt['ip_address'], '</th>
@@ -1005,7 +1005,7 @@ function template_showPermissions()
 		if (!empty($context['member']['permissions']['general']))
 		{
 			echo '
-					<table class="table_grid" width="100%" cellspacing="0">
+					<table class="table_grid" cellspacing="0">
 						<thead>
 							<tr class="titlebg">
 								<th class="lefttext first_th" scope="col" width="50%">', $txt['showPermissions_permission'], '</th>
@@ -1069,7 +1069,7 @@ function template_showPermissions()
 		if (!empty($context['member']['permissions']['board']))
 		{
 			echo '
-				<table class="table_grid" width="100%" cellspacing="0">
+				<table class="table_grid" cellspacing="0">
 					<thead>
 						<tr class="titlebg">
 							<th class="lefttext first_th" scope="col" width="50%">', $txt['showPermissions_permission'], '</th>
@@ -2013,7 +2013,7 @@ function template_groupMembership()
 	else
 	{
 		echo '
-			<table border="0" width="100%" cellspacing="0" cellpadding="4" class="table_grid">
+			<table border="0" cellspacing="0" cellpadding="4" class="table_grid">
 				<thead>
 					<tr class="catbg">
 						<th class="first_th" scope="col" ', $context['can_edit_primary'] ? ' colspan="2"' : '', '>', $txt['current_membergroups'], '</th>
@@ -2065,7 +2065,7 @@ function template_groupMembership()
 		{
 			echo '
 			<br />
-			<table border="0" width="100%" cellspacing="0" cellpadding="4" class="table_grid">
+			<table border="0" cellspacing="0" cellpadding="4" class="table_grid">
 				<thead>
 					<tr class="catbg">
 						<th class="first_th" scope="col">

+ 1 - 1
Themes/default/Reports.template.php

@@ -72,7 +72,7 @@ function template_main()
 	foreach ($context['tables'] as $table)
 	{
 		echo '
-		<table class="table_grid report_results" width="100%">';
+		<table class="table_grid report_results">';
 
 		if (!empty($table['title']))
 			echo '

+ 1 - 1
Themes/default/SplitTopics.template.php

@@ -366,7 +366,7 @@ function template_merge_extra_options()
 			<div class="title_bar">
 				<h3 class="titlebg">', $txt['merge_topic_list'], '</h3>
 			</div>
-			<table width="100%" class="bordercolor table_grid">
+			<table class="bordercolor table_grid">
 				<thead>
 					<tr class="catbg">
 						<th scope="col" class="first_th" align="center" width="10px">', $txt['merge_check'], '</th>

+ 1 - 1
Themes/default/Stats.template.php

@@ -320,7 +320,7 @@ function template_main()
 	if (!empty($context['yearly']))
 	{
 		echo '
-		<table border="0" width="100%" cellspacing="1" cellpadding="4" class="table_grid" id="stats">
+		<table border="0" cellspacing="1" cellpadding="4" class="table_grid" id="stats">
 			<thead>
 				<tr class="titlebg" valign="middle" align="center">
 					<th class="first_th lefttext" width="25%">', $txt['yearly_summary'], '</th>

+ 1 - 1
Themes/default/Themes.template.php

@@ -888,7 +888,7 @@ function template_edit_browse()
 
 	echo '
 	<div id="admincenter">
-		<table width="100%" class="table_grid tborder">
+		<table class="table_grid tborder">
 		<thead>
 			<tr class="catbg">
 				<th class="lefttext first_th" scope="col" width="50%">', $txt['themeadmin_edit_filename'], '</th>

+ 1 - 0
Themes/default/css/index.css

@@ -959,6 +959,7 @@ table.table_list a.collapse {
 table.table_grid {
 	border-collapse: collapse;
 	margin-top: 1px;
+	width: 100%;
 }
 table.table_grid td {
 	padding: 3px;