Skip to content

Commit

Permalink
Adding Print Styles support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Aug 19, 2015
1 parent d921ed7 commit be51923
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 1 deletion.
51 changes: 51 additions & 0 deletions css/print.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
Cornerstone Print Styles
Andrew Bacon of UITS WEB DEV
Aug 2015
*/
#uc-utility,
#nav-wrapper,
a:after,
#masthead .searchform {
display: none; }

#site-title.hidden-xs {
display: inline-block !important; }

#site-title.hidden-xs:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0; }

/* start commented backslash hack \*/
* html #site-title.hidden-xs {
height: 1% !important; }

#site-title.hidden-xs {
display: block !important; }

/* close commented backslash hack */
#masthead:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0; }

#masthead {
display: inline-block; }

/* start commented backslash hack \*/
* html #masthead {
height: 1%; }

#masthead {
display: block; }

/* close commented backslash hack */
3 changes: 2 additions & 1 deletion inc/scripts-and-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ function cs_scripts() {
wp_enqueue_style( 'cs-glyph', site_url().'/wp-content/global/glyphicons_pro/glyphicons/web/html_css/css/glyphicons.css');
wp_enqueue_style( 'cs-glyph-filetypes', site_url().'/wp-content/global/glyphicons_pro/glyphicons_filetypes/web/html_css/css/glyphicons-filetypes.css');
wp_enqueue_style( 'cs-glyph-halflings', site_url().'/wp-content/global/glyphicons_pro/glyphicons_halflings/web/html_css/css/glyphicons-halflings.css');
wp_enqueue_style( 'cs-glyph-social', site_url().'/wp-content/global/glyphicons_pro/glyphicons_social/web/html_css/css/glyphicons-social.css');
wp_enqueue_style( 'cs-glyph-social', site_url().'/wp-content/global/glyphicons_pro/glyphicons_social/web/html_css/css/glyphicons-social.css');
wp_enqueue_style( 'cs-style', get_stylesheet_uri(), array( 'cs-glyph' ));
wp_enqueue_style( 'cs-print', get_template_directory_uri() .'/css/print.css', array( 'cs-style' ), false, 'print');

include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
$maxMegaMenuActive = is_plugin_active('megamenu/megamenu.php');
Expand Down
49 changes: 49 additions & 0 deletions sass/print.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
Cornerstone Print Styles
Andrew Bacon of UITS WEB DEV
Aug 2015
*/
#uc-utility,
#nav-wrapper,
a:after,
#masthead .searchform {
display:none;
}
#site-title.hidden-xs {
display: inline-block!important;
}


#site-title.hidden-xs:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { }
/* start commented backslash hack \*/
* html #site-title.hidden-xs { height: 1%!important; }
#site-title.hidden-xs { display: block!important; }
/* close commented backslash hack */





#masthead:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
#masthead { display: inline-block; }
/* start commented backslash hack \*/
* html #masthead { height: 1%; }
#masthead { display: block; }
/* close commented backslash hack */

0 comments on commit be51923

Please sign in to comment.