Преглед на файлове

I iz seriouz commiterz
Signed-off-by: Antes <[email protected]>

Antes преди 11 години
родител
ревизия
b194a991c2

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

@@ -216,8 +216,8 @@ function template_credits()
 
 	// The most important part - the credits :P.
 	echo '
-							<div id="credits_sections" class="cat_bar">
-								<h3 class="catbg">
+							<div id="credits_sections" class="sub_places">
+								<h3 class="subg">
 									', $txt['admin_credits'], '
 								</h3>
 							</div>
@@ -1484,7 +1484,7 @@ function template_php_info()
 				{
 					// heading row for the settings section of this categorys settings
 					echo '
-								<tr class="titlebg">
+								<tr class="catbg">
 									<td align="center" width="33%"><strong>', $txt['phpinfo_itemsettings'], '</strong></td>
 									<td align="center" width="33%"><strong>', $txt['phpinfo_localsettings'], '</strong></td>
 									<td align="center" width="33%"><strong>', $txt['phpinfo_defaultsettings'], '</strong></td>

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

@@ -86,7 +86,7 @@ function template_error_log()
 				</tr>';
 
 	echo '
-				<tr class="titlebg">
+				<tr>
 					<td colspan="3" class="righttext" style="padding: 4px 8px;">
 						<label for="check_all1"><strong>', $txt['check_all'], '</strong></label>&nbsp;
 						<input type="checkbox" id="check_all1" onclick="invertAll(this, this.form, \'delete[]\'); this.form.check_all2.checked = this.checked;" class="input_check">
@@ -159,7 +159,7 @@ function template_error_log()
 	}
 
 	echo '
-				<tr class="titlebg">
+				<tr>
 					<td colspan="3" class="righttext" style="padding-right: 1.2ex">
 						<label for="check_all2"><strong>', $txt['check_all'], '</strong></label>&nbsp;
 						<input type="checkbox" id="check_all2" onclick="invertAll(this, this.form, \'delete[]\'); this.form.check_all1.checked = this.checked;" class="input_check">

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

@@ -856,7 +856,7 @@ function template_postmod_permissions()
 		
 		echo '
 									</tr>
-									<tr class="titlebg">
+									<tr>
 										<th width="30%">
 											', $txt['permissions_post_moderation_group'], '
 										</th>

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

@@ -322,7 +322,7 @@ function template_main()
 		if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
 		{
 			echo '
-				<tr class="titlebg">
+				<tr>
 					<td colspan="5" class="righttext" id="quick_actions">
 						<select class="qaction" name="qaction"', $context['can_move'] ? ' onchange="this.form.move_to.disabled = (this.options[this.selectedIndex].value != \'move\');"' : '', '>
 							<option value="">--------</option>';

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

@@ -1029,7 +1029,7 @@ function template_showPermissions()
 			echo '
 					<table class="table_grid" cellspacing="0">
 						<thead>
-							<tr class="titlebg">
+							<tr class="catbg">
 								<th class="lefttext first_th" scope="col" width="50%">', $txt['showPermissions_permission'], '</th>
 								<th class="lefttext last_th" scope="col" width="50%">', $txt['showPermissions_status'], '</th>
 							</tr>
@@ -1093,7 +1093,7 @@ function template_showPermissions()
 			echo '
 				<table class="table_grid" cellspacing="0">
 					<thead>
-						<tr class="titlebg">
+						<tr class="catbg">
 							<th class="lefttext first_th" scope="col" width="50%">', $txt['showPermissions_permission'], '</th>
 							<th class="lefttext last_th" scope="col" width="50%">', $txt['showPermissions_status'], '</th>
 						</tr>
@@ -1829,10 +1829,10 @@ function template_alert_configuration()
 				</h3>
 			</div>
 			<table class="table_grid" style="width: 100%">
-				<tr class="titlebg">
+				<tr>
 					<td></td>
-					<td>', $txt['receive_alert'], '</td>
-					<td>', $txt['receive_mail'], '</td>
+					<td align="center">', $txt['receive_alert'], '</td>
+					<td align="center">', $txt['receive_mail'], '</td>
 				</tr>';
 	$use_bg2 = true;
 

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

@@ -381,7 +381,7 @@ function template_results()
 		if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
 		{
 			echo '
-			<div class="titlebg2" style="padding: 4px;">
+			<div style="padding: 4px;">
 				<div class="floatright flow_auto">
 					<select class="qaction" name="qaction"', $context['can_move'] ? ' onchange="this.form.move_to.disabled = (this.options[this.selectedIndex].value != \'move\');"' : '', '>
 						<option value="">--------</option>';

+ 2 - 90
Themes/default/css/admin.css

@@ -47,29 +47,6 @@ body.action_admin .navigate_section ul li a {
 /* The CSS targeting for all this gets a bit convoluted and requires a good clean up.
 /* It's left over from when I started theming admin independently over a Curve forum.
 /* Can be simplified quite a lot before production builds. */
-
-/* Re-style default cat bars to get rid of header bar mania. */
-#manage_maintenance .cat_bar {
-	border: none;
-	border-top: 1px solid #bbb;
-}
-#admin_main_section .cat_bar:first-child, #admin_main_section .cat_bar:first-child h3.catbg,
-#support_credits .cat_bar, #support_credits .cat_bar:first-child,
-#support_credits .cat_bar h3.catbg, #support_credits .cat_bar:first-child h3.catbg,
-#manage_maintenance .cat_bar, #manage_maintenance .cat_bar:first-child,
-#manage_maintenance .cat_bar h3.catbg, #manage_maintenance .cat_bar:first-child h3.catbg {
-	color: #444;
-	font-size: 1.04em;
-	background: none;
-	border-radius: 0;
-	text-shadow: none;
-}
-#admin_main_section .cat_bar:first-child, #admin_main_section .cat_bar:first-child h3.catbg,
-#support_credits .cat_bar:first-child, #support_credits .cat_bar:first-child h3.catbg,
-#manage_maintenance .cat_bar:first-child, #manage_maintenance .cat_bar:first-child h3.catbg {
-	border: none;
-}
-
 /* Special styling for admin descriptions. */
 .action_admin p.description, .action_admin  .information {
 	overflow: auto;
@@ -120,7 +97,7 @@ body.action_admin .navigate_section ul li a {
 #support_credits, #admin_newsletters,
 #generate_reports_type,
 #groupForm, #mailqueue_stats, #manage_maintenance,
-#new_group, #view_group, #admin_form_wrapper, .action_admin .generic_list_wrapper{
+#new_group, #view_group, #admin_form_wrapper {
 	background: #f0f4f7;
 	margin: 12px 0 0 0;
 	padding: 8px 8px 16px 8px;
@@ -149,40 +126,6 @@ div.quick_tasks {
 #mailqueue_stats .windowbg .content {
 	padding: 12px 9px 0 9px;
 }
-#admin_newsletters div.cat_bar:first-child,
-#generate_reports_type div.cat_bar:first-child, #groupForm div.cat_bar:first-child,
-#mailqueue_stats div.cat_bar:first-child,
-#new_group div.cat_bar:first-child, #view_group div.cat_bar, #view_group div.cat_bar:first-child {
-	background: none;
-	border: none;
-	border-bottom: 1px solid #fff;
-	box-shadow: none;
-}
-#admin_newsletters div.cat_bar:first-child h3.catbg,
-#generate_reports_type div.cat_bar:first-child h3.catbg, #groupForm div.cat_bar:first-child h3.catbg, #mailqueue_stats div.cat_bar:first-child  h3.catbg,
-#new_group div.cat_bar:first-child  h3.catbg, #view_group div.cat_bar  h3.catbg, #view_group div.cat_bar:first-child  h3.catbg {
-	color: #444;
-	text-shadow: none;
-	padding: 3px 1px 5px 1px;
-	margin: 0;
-	border-bottom: 1px solid #bbb;
-}
-.action_admin .generic_list_wrapper {
-	background: none;
-	border-bottom: 1px solid #fff;
-}
-.action_admin .generic_list_wrapper .titlebg {
-	border-bottom: 1px solid #bbb;
-}
-#admin_form_wrapper h3.titlebg {
-	color: #fff;
-	border-bottom: none;
-	padding: 8px 6px 5px 6px;
-}
-#view_group .titlebg {
-	border-top: 1px solid #fff;
-	border-bottom: none;
-}
 #view_group .table_grid {
 	margin: 4px 0 8px 0;
 }
@@ -233,9 +176,6 @@ div.quick_tasks {
 .action_admin .generic_list .flow_auto {
 	padding: 4px 2px;
 }
-h3.titlebg form {
-	font-size: 80%;
-}
 .windowbg.nopadding {
 	margin: 4px 0 0 0;
 	padding: 0;
@@ -368,14 +308,6 @@ body#chrome  #quick_search .button_submit {
 	padding: 8px 12px;
 	border-radius: 7px;
 }
-#admin_main_section .cat_bar {
-	background: none;
-}
-#admin_main_section .catbg, #admin_main_section .catbg a {
-	color: #444;
-	max-height: 1.5em;
-	overflow: hidden;
-}
 #live_news, #supportVersionsTable {
 	width: 70%;
 	-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
@@ -500,9 +432,6 @@ div.quick_tasks {
 	position: relative;
 	padding: 6px 12px 12px 12px;
 }
-#support_credits h3.catbg, #support_credits .cat_bar:first-child h3.catbg {
-	padding: 12px 6px 6px 6px;
-}
 #support_resources, #credits_sections {
 	margin: 16px 0 -24px 0;
 	border: none;
@@ -690,21 +619,13 @@ pre.file_content {
 	box-shadow: 0 -2px 2px rgba(0,0,0,0.1);
 	overflow: auto;
 }
-#manage_boards .cat_bar, #manage_boards .windowbg {
+#manage_boards .windowbg {
 	background: none;
 	margin: 0 0 0 0;
 	padding: 0 0 0 0;
 	border: none;
 	border-radius: 7px 7px 0 0;
 }
-#manage_boards .catbg {
-	padding: 8px 16px 4px 16px;
-	color: #444;
-}
-#manage_boards .cat_bar .catbg {
-	border: none;
-	border-bottom: 1px solid #bbb;
-}
 #manage_boards .catbg a {
 	color: #346;
 }
@@ -824,15 +745,6 @@ dl.right dt {
 
 /* Styles for the manage maintenance section.
 ------------------------------------------------- */
-#manage_maintenance .catbg {
-	border-top: 1px solid #fff;
-	padding-top: 14px;
-	color: #555;
-}
-#manage_maintenance .cat_bar:first-child, #manage_maintenance .cat_bar:first-child .catbg {
-	border-top: none;
-	margin: 0 0 -4px 0;
-}
 #manage_maintenance div.windowbg, #manage_maintenance div.windowbg2 {
 	background: none;
 	padding: 0 0 12px 0;

+ 7 - 75
Themes/default/css/index.css

@@ -143,7 +143,7 @@ input:focus, textarea:focus, button:focus, select:focus, textarea.editor:focus {
 	margin-left: inherit;
 }
 .button_submit, .button_reset, .button_link {
-	margin: 5px 0 0 12px;
+	margin: 0 0 0 12px;
 	padding: 2px 4px;
 	float: right;
 	cursor: pointer;
@@ -201,9 +201,6 @@ input.input_check, input.input_radio {
 	background: none;
 	vertical-align: top;
 }
-h3.catbg input.input_check {
-	margin: 0 7px 0 7px;
-}
 
 /* Give disabled text input elements a different background color. */
 input[disabled].input_text {
@@ -495,15 +492,7 @@ a img {
 
 /* Generic, mostly color-related, classes.
 ------------------------------------------------------- */
-
-.titlebg, .titlebg2, tr.titlebg th, tr.titlebg td, tr.titlebg2 td {
-	color: #444;
-	font-size: /*1.1em*/1em;
-	font-weight: bold;
-	background: -webkit-linear-gradient(bottom, #FFFFFF 1%, #F1F3F5 96%);
-	background: linear-gradient(to top, #FFFFFF 1%, #F1F3F5 96%);
-}
-.catbg, .catbg2, tr.catbg td, tr.catbg2 td, tr.catbg th, tr.catbg2 th {
+.catbg, tr.catbg td, tr.catbg th {
 	color: #fff;
 	font-size: 1.1em;
 	font-weight: bold;
@@ -512,13 +501,10 @@ a img {
 }
 
 /* adjust the table versions of headers */
-tr.titlebg th, tr.titlebg2 th, td.titlebg, td.titlebg2, tr.catbg th, tr.catbg2 th, td.catbg, td.catbg2 {
+tr.catbg th, td.catbg {
 	padding: 0 6px;
 }
-tr.titlebg th a:link, tr.titlebg th a:visited, tr.titlebg2 td a:link, tr.titlebg2 td a:visited {
-	color: #444;
-}
-tr.catbg th a:link, tr.catbg th a:visited, tr.catbg2 td a:link, tr.catbg2 td a:visited {
+tr.catbg th a:link, tr.catbg th a:visited {
 	color: #fff;
 }
 .catbg select {
@@ -846,7 +832,7 @@ dl.settings dt a img {
 
 /* Styles for rounded headers.
 ------------------------------------------------------- */
-h3.catbg, h3.catbg2, h3.titlebg, h4.titlebg, h4.catbg {
+h3.catbg, h4.catbg {
 	overflow: hidden;
 	font-size: 1.1em;
 	font-family: "Tahoma", sans-serif;
@@ -864,29 +850,11 @@ h3.catbg, h3.catbg2, h3.titlebg, h4.titlebg, h4.catbg {
 h3.catbg a:link, h3.catbg a:visited, h4.catbg a:link, h4.catbg a:visited, h3.catbg, .table_list tbody.header td, .table_list tbody.header td a {
 	color: #fff;
 }
-h3.catbg2 a, h3.catbg2 {
-	color: #feb;
-}
 h3.catbg a:hover, h4.catbg a:hover, .table_list tbody.header td a:hover {
 	color: #ffc178;
 	text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4);
 	text-decoration: none;
 }
-h3.catbg2 a:hover {
-	color: #fff;
-	text-decoration: none;
-}
-h3.titlebg, h4.titlebg {
-	color: #fff;
-}
-h3.titlebg a, h4.titlebg a {
-	color: #fff;
-	text-decoration: underline;
-}
-h3.titlebg a:hover, h4.titlebg a:hover {
-	color: #fff;
-	text-decoration: none;
-}
 h3.catbg .icon {
 	vertical-align: middle;
 	margin: 0 5px 0 0;
@@ -895,20 +863,9 @@ h4.catbg a.toggle img {
 	vertical-align: middle;
 	margin: 0 5px 0 5px;
 }
-h4.catbg, h4.catbg2, h3.catbg, h3.catbg2, .table_list tbody.header td.catbg {
+h4.catbg, h3.catbg, .table_list tbody.header td.catbg {
 	background: none;
 }
-h4.titlebg, h3.titlebg {
-	background: #557EA0;
-	border-bottom: 1px solid #777;
-	border-radius: 6px 6px 0 0;
-	box-shadow: 0 16px 20px rgba(255,255,255,0.15) inset;
-	text-shadow: -1px -1px 1px rgba(0,0,0,0.2)
-}
-h4.titlebg .icon {
-	float: left;
-	margin: 0 8px 0 0;
-}
 
 /* Box-sizing for these should be useful. */
 div.cat_bar {
@@ -945,15 +902,6 @@ table.table_list a.collapse {
 	padding: 4px 4px 0 8px;
 }
 
-/* Basic icons in cat and title bars. */
-#upshrinkHeaderIC h4.titlebg a img{
-	margin: 0;
-	padding: 2px 6px 0 0;
-}
-
-.table_grid th.last_th input {
-	margin: 0 7px;
-}
 .table_grid th.lefttext {
 	padding: 0 8px;
 }
@@ -1985,9 +1933,6 @@ p.whoisviewing {
 	float: right;
 	margin: 4px;
 }
-.titlebg td.qaction_cell {
-	font-size: 0.909em;
-}
 select.qaction {
 	padding: 0;
 }
@@ -2925,13 +2870,6 @@ dl.register_form dd {
 }
 
 /* common for all admin sections */
-h3.titlebg img {
-	vertical-align: middle;
-	margin: 0 5px 0 0;
-}
-tr.titlebg td {
-	padding-left: 8px;
-}
 #admin_content {
 	clear: left;
 	padding-top: 6px;
@@ -3157,7 +3095,6 @@ tr.windowbg td, tr.windowbg2 td, tr.highlight2 td {
 	text-align: left;
 	padding: 7px 10px 7px 10px;
 	border: 1px solid #c5c5c5;
-	border-radius: 7px;
 	margin: 6px 0;
 }
 
@@ -3590,7 +3527,7 @@ dl.stats dd span {
 #stats th.first_th {
 	padding-left: 8px;
 }
-#stats tr.windowbg2 th.lefttext, #stats tr.titlebg th.lefttext {
+#stats tr.windowbg2 th.lefttext {
 	border-left: 1px solid #fff;
 	text-align: left;
 }
@@ -4154,11 +4091,6 @@ span.hidelink {
 	overflow: auto;
 	-moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-sizing: border-box;
 }
-.generic_list_wrapper .titlebg {
-	background: none;
-	border-bottom: 1px solid #aaa;
-	font-size: /*1.1em*/1em;
-}
 .generic_list_wrapper .additional_row {
 	margin: 0;
 	padding: 5px 0;