Commit d7d8b86d authored by Kevin Cristiano's avatar Kevin Cristiano 🌎
Browse files

Merged in develop (pull request #2)

Develop
parents b5ab8cae 5cd09cc9
.idea/
.DS_Store
\ No newline at end of file
......@@ -16,9 +16,20 @@ Example Code:
function tc_civicrm_theme_css( ) {
$tc_css = get_bloginfo( 'stylesheet_directory' ) .'/includes/css/civicrm.css';
$tc_css = get_stylesheet_directory_uri() .'/includes/css/civicrm.css';
return $tc_css;
}
add_filter( 'tc_civicss_override', 'tc_civicrm_theme_css' );
You can also just add additional css in your theme. As the civicrm.css from the extension loads with a priority of 110, set this higher. The example shows '199' as the priority. Add the below function to your theme's functions.php or add a your own plugin to do this. You will need to have the images directory /i available at the same level as your civicrm.css file to show credit card icons and other images.
Example Code:
function tc_civicrm_theme_addl_css( ) {
wp_enqueue_style( 'tc_civi_style', get_stylesheet_directory_uri() . '/civicrm/civicrm.css' );
}
add_action( 'wp_print_styles', 'tc_civicrm_theme_addl_css', 199 );
\ No newline at end of file
......@@ -15,6 +15,10 @@ CiviCRM CSS
box-sizing: content-box;
}
.crm-container label {
display: inline-block;
}
.crm-container .crm-quickSearchField {
font-weight: normal;
}
......@@ -52,18 +56,11 @@ CiviCRM CSS
display: none;
}
.crm-form-checkbox, .form-checkbox {
.crm-form-checkbox label,
.form-checkbox label {
clear: both;
}
label,
.crm-form-checkbox,
.form-checkbox,
.crm-form-radio,
.form-radio {
float: left;
}
input.form-checkbox,
input.form-radio {
cursor: pointer;
......@@ -2433,10 +2430,8 @@ div.grippie {
#crm-container .crm-button input[type=button],
#crm-container .crm-button input.crm-form-submit,
#crm-container .crm-button input.crm-form-submit-inline {
padding: 2px 4px;
padding: 2%;
margin: 0px;
background: none;
_background: #6C6C6C;
/* IE6 only */
border: none;
}
......@@ -3561,27 +3556,6 @@ tbody.scrollContent tr.alternateRow {
color: #E43D2B !important;
}
.crm-container div.status,
div.m ul#civicrm-menu,
.crm-container #help,
.crm-container .help,
.crm-container .ui-tabs-panel,
.crm-container .crm-content-block,
#full-screen-header,
.crm-container .crm-pager,
.crm-container form .section-hidden-border,
.crm-container #search-status,
.crm-container .crm-form-block,
.crm-container .crm-search-tasks,
.crm-container .crm-tasks,
.crm-container div.form-item,
.crm-container div.messages {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
}
/* deprecated autocomplete styles */
.ac_results {
......@@ -4251,9 +4225,6 @@ span.crm-status-icon {
.crm-container.crm-public .select2-results {
font-size: 14px;
}
.crm-container.crm-public .select2-container .select2-choice {
padding: 5px 5px 5px 8px;
}
.crm-container.crm-public .select2-container-multi .select2-choices {
padding: 4px;
}
......
......@@ -141,9 +141,9 @@ function csshelper_civicrm_preProcess($formName, &$form) {
/*Enqueue default CiviCRM CSS in admin. Create a filter to allow themes and other plugins to overrride */
add_action( 'admin_enqueue_scripts', 'tc_admin_register_tad_civicrm_styles' );
add_action( 'admin_enqueue_scripts', 'csshelper_register_admin_civicrm_styles' );
function tc_admin_register_tad_civicrm_styles() {
function csshelper_register_admin_civicrm_styles() {
$tc_civi_css_admin = (plugin_dir_url('civicrm') . 'civicrm/civicrm/css/civicrm.css');
$tc_civi_css_admin = apply_filters('tc_civicss_override_admin', $tc_civi_css_admin);
wp_enqueue_style ('tad_admin_civicrm', $tc_civi_css_admin );
......@@ -151,8 +151,8 @@ function tc_admin_register_tad_civicrm_styles() {
/*Enqueue custom CiviCRM CSS in front end of site. Create a filter to allow themes and other plugins to overrride */
add_action( 'wp_print_styles', 'tc_register_tad_civicrm_styles', 110 );
function tc_register_tad_civicrm_styles() {
add_action( 'wp_print_styles', 'csshelper_register_civicrm_styles', 110 );
function csshelper_register_civicrm_styles() {
$tc_ext_url = CRM_Core_Resources::singleton()->getUrl('cc.tadpole.csshelper');
$tc_civi_css = ( $tc_ext_url . 'css/civicrm.css') ;
$tc_civi_css = apply_filters ( 'tc_civicss_override' , $tc_civi_css ) ;
......
......@@ -20,7 +20,7 @@
<compatibility>
<ver>4.6</ver>
</compatibility>
<comments>Helping Front End Developers</comments>
<comments>Extension to help Front End Developerswith CiviCRM styling in Wordpress</comments>
<civix>
<namespace>CRM/Csshelper</namespace>
</civix>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment