Don't mix data model and UI: move debug css to css files
Don't mix data model and UI: move debug css to css files

--- a/css/gitphp.css
+++ b/css/gitphp.css
@@ -207,3 +207,33 @@
 	vertical-align: top;
 }
 
+/*
+ * Debug styles
+ */
+.debug {
+	border: 0;
+	border-spacing: 0;
+	width: 100%;
+}
+
+.debug_toggle {
+	display: inline-block;
+	margin: 3px;
+	cursor: pointer;
+}
+
+.debug_key {
+	max-width: 100px;
+	word-wrap: break-word;
+}
+
+.debug_value {
+	max-width: 900px;
+	word-wrap: break-word;
+}
+
+.debug_bt {
+	white-space: pre;
+}
+
+

--- a/css/gitphpskin.css
+++ b/css/gitphpskin.css
@@ -606,3 +606,19 @@
 	max-width: 500px !important;
 }
 
+/*
+ * Debug styles
+ */
+.debug_toggle {
+	color: #88a; border-bottom: 1px dashed blue;
+}
+.debug_key {
+	background: #ccf; border-bottom: 1px solid #888;
+}
+.debug_value {
+	background: #ccc; border-bottom: 1px solid #888;
+}
+.debug_time {
+	background: #cff; border-bottom: 1px solid #888;
+}
+

--- a/include/DebugLog.class.php
+++ b/include/DebugLog.class.php
@@ -271,35 +271,6 @@
 				el.style.display = ((el.style.display == 'none') ? 'block' : 'none');
 			}
 		</script>
-		<style type="text/css">
-			.debug {
-				border: 0;
-				border-spacing: 0;
-				width: 100%;
-			}
-			.debug_toggle {
-				color: #88a; border-bottom: 1px dashed blue;
-				display: inline-block;
-				margin: 3px;
-				cursor: pointer;
-			}
-			.debug_key {
-				background: #ccf; border-bottom: 1px solid #888;
-				max-width: 100px;
-				word-wrap: break-word;
-			}
-			.debug_value {
-				background: #ccc; border-bottom: 1px solid #888;
-				max-width: 900px;
-				word-wrap: break-word;
-			}
-			.debug_bt {
-				white-space: pre;
-			}
-			.debug_time {
-				background: #cff; border-bottom: 1px solid #888;
-			}
-		</style>
 		<table class="debug"><tbody>
 HEREDOC;
 	}

comments