Commits

Doug Stewart committed f41ba66

Big checkin.

1) Color-picker admin item starting in.
2) Responsive design starting for NG stylesheets.

Comments (0)

Files changed (6)

 
 * Version 1.3.3
 	* **Issues Fixed**
-		* Switched from wp_print_styles() to wp_enqueue_scripts() to enqueue/output CSS due to changes in WordPress 3.3 (see http://wpdevel.wordpress.com/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/ for details).
+		* Switched from `wp_print_styles()` to `wp_enqueue_scripts()` to enqueue/output CSS due to changes in WordPress 3.3 (see [here](http://wpdevel.wordpress.com/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/) for details).
 * Version 1.3.2
 	* **Issues Fixed**
-		* Fallback wp_list_pages() output CSS corrected
+		* Fallback `wp_list_pages()` output CSS corrected
 * Version 1.3.1
 	* **Issues Fixed**
 		* bbPress 1 column layouts no longer site-wide

includes/functions/admin.php

 			lblg_option_wrapper_footer( $value );
 			break;
 
+			// Prints a Farbtastic color picker
+			case "colorpicker":
+			add_settings_field( $key, $value['name'], '', $lblg_options_group, $section );
+			lblg_option_wrapper_header( $value );
+			?>
+				<div class="lblgcp">
+			        <input name="<?php echo $lblg_options_group . '[' . $key . ']'; ?>" id="<?php echo $key; ?>cptext" class="lblgcptext" type="text" value="<?php if( "" != $options[$key] ) { echo esc_html( $options[$key] ); } else { echo $value['std']; } ?>" />
+					<div id="<?php echo $key;?>cpicker" class="lblgcpicker"></div>
+				</div>
+			<?php
+			lblg_option_wrapper_footer( $value );
+			break;
+			
 			default:
 
 			break;

includes/parent-options.php

 						"type" => "textarea",
 						"options" => array("rows" => "5",
 										   "cols" => "40") ),
+										
+				"header_text_color" => array(	"name" => "Header Text Color",
+						"desc" => "The text color for the header.",
+						"std" => "ffffff",
+						"type" => "colorpicker"),
 			)
 	),
 

layouts/2-columns-fixed-sb-right.css

-div#container{width:960px;margin:0 auto}
-div#lb-content{float:left;width:700px}
-div#primarysb{float:right;width:200px}
-div#secondarysb{float:right;clear:right;width:200px}
-div#footer{clear:both;width:100%}
+#container{width:960px;margin:0 auto}
+#lb-content{float:left;width:700px}
+#primarysb{float:right;width:200px}
+#secondarysb{float:right;clear:right;width:200px}
+#footer{clear:both;width:100%}
 	margin: 0 auto;
 	width: 95%;
 	padding: 0 20px;
-} 
+} 
+
+/* @group Responsive */
+@media screen and (max-width: 980px) {
+	div#container,div#lb-content,div#primarysb,div#secondarysb{width:auto;float:none;}
+	div#footer,div#footerwrapper,div#footerleft,div#footerright{width:auto !important;clear:none;float:none}
+}
+
+@media screen and (max-width: 480px){
+	div#container,div#lb-content{width:auto;float:none;}
+	div#primarysb,div#secondarysb,div#footerwrapper, div#footer{display:none;}
+}
+
+/* @end */
 	color: #eee;
 }
 
+@media screen and (max-width: 700px) {
+	div#header{
+		height: auto;
+	}
+	
+	#header h1, #header p.blogtitle {
+		margin-top: 5px;
+		font-size: 2.5em;
+	}
+	
+	#blogtitle {
+		width: auto;
+	}
+	
+	div#titledesc {
+		width: 100%;
+		clear:both;
+	}
+	
+	#header p.description{
+		visibility: hidden;
+	}
+}
+
+
 /* @end */
 
 /* @group BuddyPress Menu Elements */