Permalink
Browse files

Add support for the columns.min.css file.

  • Loading branch information...
1 parent 90d3d06 commit 358f47fdb773585229d686c76ea634d8758b67a5 @justintadlock committed Sep 14, 2012
Showing with 17 additions and 3 deletions.
  1. +10 −1 columns.css
  2. +1 −0 columns.min.css
  3. +6 −2 columns.php
View
@@ -1,3 +1,13 @@
+/**
+ * CSS for handling the [column] shortcode styles.
+ *
+ * @version 20120914
+ * @author Justin Tadlock <justin@justintadlock.com>
+ * @copyright Copyright (c) 2012, Justin Tadlock
+ * @link http://justintadlock.com
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+ */
+
.column-grid {
clear: both;
}
@@ -20,7 +30,6 @@
margin-right: 0;
}
-
/**
* Formula for getting the width of each column.
* $width = ( 100 + $margin-right ) / ( $grid ) * ( $span ) - ( $margin_right )
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -102,11 +102,15 @@ public function register_shortcode() {
*/
public function enqueue_styles() {
+ /* Use the .min stylesheet if SCRIPT_DEBUG is turned off. */
+ $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
+
+ /* Enqueue the stylesheet. */
wp_enqueue_style(
'columns',
- trailingslashit( plugin_dir_url( __FILE__ ) ) . 'columns.css',
+ trailingslashit( plugin_dir_url( __FILE__ ) ) . "columns$suffix.css",
null,
- '20120913'
+ '20120914'
);
}

0 comments on commit 358f47f

Please sign in to comment.