/*
Theme Name: My Maryland Farmers
Template: Divi
Author: My CloudHosts
Version: 1.0.1439315632
Updated: 2015-08-11 17:53:52
*/

@charset "UTF-8";

/*--------------Makes Logo Bigger-----------*/
@media only screen and (min-width: 980px) {
#logo { max-height: 150%; }
}

/*--------------Removes Menu Area-----------*/
#page-container{
padding-top: 50px !important;
}
#main-header {
background-color: transparent !important;
box-shadow: none !important;
}




/*--------------Makes Four Columns in Footer the Same-----------*/
@media only screen and (min-width: 981px) {
div#text-2 {
width: 170px;
}
div#text-3 {
width: 170px;
}

/** Pop up message while click on external link
add_action( 'wp_enqueue_scripts', 'enqueue_scripts_external_popup_link' );
add_action( 'wp_header', 'print_header_external_popup_link' );
add_action( 'wp_footer', 'print_footer_external_popup_link' );

function enqueue_scripts_external_popup_link() {
    wp_enqueue_script( 'jquery-ui-dialog', false, array('jquery-ui','jquery') );
}    
/** Print Dialog custom style **/
function print_header_external_popup_link() { 
    ?>
    <style>
        .ui-front,.ui-widget-content { z-index:1000000 !important; background:#fff !important; border:1px solid #000;}
        .ui-widget-overlay { opacity: .8;}.ui-dialog-titlebar.ui-widget-header.ui-corner-all.ui-helper-clearfix.ui-draggable-handle{display:none !important;}
    </style>
    <?php
}

/** Print Dialog script **/
function print_footer_external_popup_link() { 
    $current_domain = $_SERVER['SERVER_NAME'];
    ?>
    <script type="text/javascript">
        jQuery(document).ready(function ($) {
          $('a[href^="http://"],a[href^="https://"]')
            .not('[href*="<?php echo $current_domain; ?>"]')
            .click(function(e) {
                var url = this.href;
              if(!confirm("You are now leaving "+url+" site.")){ return false;}
			})
        });
    </script>
    <?php 
}
	 **/




   
