Skip to content

Commit

Permalink
Add build-css.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrude committed Jun 11, 2013
1 parent c14d197 commit ec22dca
Show file tree
Hide file tree
Showing 5 changed files with 3,830 additions and 100 deletions.
16 changes: 16 additions & 0 deletions build-css.sh
@@ -0,0 +1,16 @@
#!/bin/bash

cd /var/www/mattrude.com/wp-content/themes/kirby && \
rm -rf ../twentyeleven/style.less && \
cp ../twentyeleven/style.css ../twentyeleven/style.less && \
lessc style.less > style.css && \
cat ../../plugins/jetpack/modules/widgets/widget-grid-and-list.css >> style.css && \
cat ../../plugins/jetpack/modules/widgets/widgets.css >> style.css && \
cat ../../plugins/jetpack/modules/sharedaddy/sharing.css >> style.css && \
cat ../../plugins/mp6/components/responsive/css/admin-bar.css >> style.css && \
rm -f style.css.gz && \
java -jar /root/bin/web/yuicompressor-2.4.8pre.jar style.css > style.min.css && \
gzip style.min.css && \
mv style.min.css.gz style.css.gz && \
mkdir images && \
cp -R ../twentyeleven/images/* images/
21 changes: 21 additions & 0 deletions functions.php
Expand Up @@ -40,6 +40,27 @@ function kirby_setup() {

define( 'HEADER_IMAGE', apply_filters( 'odin_header_image', '/wp-content/themes/odin/images/lighthouse.jpg' ) );

/**
* Deregister the JetPack Widgets css
*
* Deregister all JetPack CSS for Wdigets so we may use our own for
* styling reasons. These CSS files have been brought into the main
* style.less & style.css files.
*
* @package bridgesinbelize
* @author Matt Rude (mattrude.com)
* @since version 0.1
*/
function jetpack_deregister_styles() {
wp_deregister_style( 'jetpack-widgets' );
wp_deregister_style( 'sharedaddy' );
wp_deregister_style( 'sharing' );
wp_deregister_style( 'widget-grid-and-list' );
// wp_deregister_style( 'admin-bar' );
wp_deregister_style( 'moby6-admin-bar' );
}
add_action( 'wp_print_styles', 'jetpack_deregister_styles', 100 );

//Custom oEmbed Size
function wpb_oembed_defaults($embed_size) {
if(is_front_page()) {
Expand Down

0 comments on commit ec22dca

Please sign in to comment.