diff --git a/css/base.css b/css/base.css index 4688976..0d7adc7 100644 --- a/css/base.css +++ b/css/base.css @@ -1,33 +1,56 @@ -textarea,input,select { - border: 1px solid #000; - background: #000; - color: #EEE; - font: 10pt monospace; -} -input[type=radio] { - border: none; -} -input[type=submit] { - border: #000 solid 2px; - font: 10pt 'verdana', sans-serif; -} -body, table, thead, tbody, span, td, tr, th, a, img, br { padding: 0; margin: 0; border: 0; font-size: 100%; } -center { text-align: center; } -.tdbgh, .tbl, .tdbgc, .tdbg1, .tdbg2 { line-height: 1; padding: 1px;} -table { border-spacing: 0; border-collapse: collapse; } -a:link,a:visited,a:active,a:hover { text-decoration:none; font-weight: bold; } -table { padding: 0.5em; } -span.lastpost { font-size: 90%; padding: 0; margin: 0; } -div.lastpost { font-size: 90%; text-align: right !important; } +/* Global CSS styles across every theme */ -.table { width: 100%; empty-cells: show;} -.sparkline { display: none; } -.center, center { text-align: center; } -.right { text-align: right; } +/* Make images upscale crispy */ +* { + image-rendering: -moz-crisp-edges; + image-rendering: -o-crisp-edges; + image-rendering: -webkit-optimize-contrast; + image-rendering: crisp-edges; + image-rendering: pixelated; + -ms-interpolation-mode:nearest-neighbor; + } -code { overflow: auto; width: 100%; white-space: pre; display: block; } -code br { display: none; } +/* Make all links bold and not underlined by default */ +a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold;} +/* Mostly legacy thing from when IE had a blue border around link images */ +img { border:none; } +.center {text-align:center} +.right {text-align:right} + +/* Make code blocks scroll instead of stretching the page */ +code { + overflow: auto; + width: 100%; + white-space: pre; + display: block; +} + +/* "Fix" for auto-generated
tags in and
 blocks */
+code br, pre br { display: none; }
+
+/* Make radio buttons look not terrible */
+input[type=radio] { color: black; background: white; }
+
+/* Spoiler tag code */
 .pstspl1 {opacity:0;}
 .pstspl1:hover {opacity:1;}
 .pstspl2 {background:#000;color:#FFF;display:block;}
+
+/* Stop avatars from being huge */
+.avatar	{
+	max-width:	200px;
+	}
+
+/* On mobile, make avatars smaller */
+.mobile-avatar {
+	float:	left;
+	height:	50px;
+	width:	50px;
+	padding: 2px;
+	text-align:	center;
+}
+.mobile-avatar > .avatar {
+	max-height:	100%;
+	max-width:	100%;
+}
diff --git a/css/basics.css b/css/basics.css
new file mode 100644
index 0000000..4688976
--- /dev/null
+++ b/css/basics.css
@@ -0,0 +1,33 @@
+textarea,input,select {
+	border: 1px solid #000;
+	background: #000;
+	color: #EEE;
+	font: 10pt monospace;
+}
+input[type=radio] {
+	border: none;
+}
+input[type=submit] {
+	border: #000 solid 2px;
+	font: 10pt 'verdana', sans-serif;
+}
+body, table, thead, tbody, span, td, tr, th, a, img, br { padding: 0; margin: 0; border: 0; font-size: 100%; }
+center { text-align: center; }
+.tdbgh, .tbl, .tdbgc, .tdbg1, .tdbg2 { line-height: 1; padding: 1px;}
+table { border-spacing: 0; border-collapse: collapse; }
+a:link,a:visited,a:active,a:hover { text-decoration:none; font-weight: bold; }
+table { padding: 0.5em; }
+span.lastpost { font-size: 90%; padding: 0; margin: 0; }
+div.lastpost { font-size: 90%; text-align: right !important; }
+
+.table { width: 100%; empty-cells: show;}
+.sparkline { display: none; }
+.center, center { text-align: center; }
+.right { text-align: right; }
+
+code { overflow: auto; width: 100%; white-space: pre; display: block; }
+code br { display: none; }
+
+.pstspl1 {opacity:0;}
+.pstspl1:hover {opacity:1;}
+.pstspl2 {background:#000;color:#FFF;display:block;}
diff --git a/lib/layout.php b/lib/layout.php
index 154b3bb..2c23100 100644
--- a/lib/layout.php
+++ b/lib/layout.php
@@ -73,43 +73,25 @@
 		// special "null" scheme.
 		$css = "";
 	} elseif (isset($schemetype) && $schemetype == 1) {
-		$css = "";
+		$css = "";
 		// possibly causes issue #19 - not sure why this was here
 		// likely irrelevant after addition of custom date formats
 		// (remove this later)
 		//$dateformat = "m/d/y h:i";
 		//$dateshort  = "m/d/y";
-		
+
 		// backwards compat
 		global $bgcolor, $linkcolor;
 		$bgcolor = "000";
 		$linkcolor = "FFF";
 	} else {
 		$css="
+