fixed header height

This commit is contained in:
Bachir Soussi Chiadmi 2018-01-02 12:11:58 +01:00
parent b5f3769416
commit c914e7e348
6 changed files with 47 additions and 8 deletions

View File

@ -0,0 +1,23 @@
name = Materio Personal Notes Module
description = "Materio per user notes on node module"
; Core version (required)
core = 7.x
; Package name (see http://drupal.org/node/542202 for a list of names)
package = Materio
; PHP version requirement (optional)
; php = 5.2
; Loadable code files
; files[] = materio_ctools_automodal.module
; Module dependencies
dependencies[] = user
; Configuration page
; configure = admin/config/materiobasemod
; For further information about configuration options, see
; - http://drupal.org/node/542202

View File

@ -1183,10 +1183,18 @@ function materio_search_api_advanced_search_select_callback($form, &$form_state)
return $form['filters'];
}
function materio_search_api_advanced_search_addfilter_callback($form, &$form_state) {
return $form['filters'];
$commands = array();
$commands[] = ajax_command_replace('#advancedsearch-filters-wrapper', render($form['filters']));
$commands[] = array('command'=>'ajaxAfterAddedFilterLine');
return array("#type"=>'ajax', "#commands"=>$commands);
// return $form['filters'];
}
function materio_search_api_advanced_search_rmline_callback($form, &$form_state) {
return $form['filters'];
$commands = array();
$commands[] = ajax_command_replace('#advancedsearch-filters-wrapper', render($form['filters']));
$commands[] = array('command'=>'ajaxAfterRemovedFilterLine');
return array("#type"=>'ajax', "#commands"=>$commands);
// return $form['filters'];
}
function materio_search_api_advanced_search_form_validate($form, &$form_state){

View File

@ -3320,8 +3320,7 @@ body.node-type-publication #footer {
*/
#utilities {
background-color: #fff;
margin-top: 60px;
max-height: 100px; }
margin-top: 60px; }
.not-logged-in #utilities {
overflow: hidden; }
#utilities > .inner {

View File

@ -428,12 +428,11 @@
// if(!_max_480() && !_touch ){
height += $('#utilities').h();//+15;
// }
//$('#main').css('margin-top', height+15);
// $('#container').css('padding-top', height+15);
if(!$('html').is(".ie8")){
$('#container').animate({'padding-top':height}, 300);
$('#container').animate({'padding-top':height}, 150);
}
// }
};
@ -518,6 +517,16 @@
$(this).parents('.block').removeClass('hovered');
$('.hovered').not($(this).parents('.block')).removeClass('hovered');
});
// @see http://www.jaypan.com/tutorial/calling-function-after-ajax-event-drupal-7
Drupal.ajax.prototype.commands.ajaxAfterAddedFilterLine = function(ajax, response, status){
// console.log('ajax after added filter line');
initLayout();
};
Drupal.ajax.prototype.commands.ajaxAfterRemovedFilterLine = function(ajax, response, status){
// console.log('ajax after removed filter line');
initLayout();
};
};
function onLoadingContent(event){

File diff suppressed because one or more lines are too long

View File

@ -573,7 +573,7 @@ $headerouterheight:$headerheight+$headerpaddingtop+$headerpaddingbottom;
@media #{$small-only}{
margin-top:0;
}
max-height: 100px;
// max-height: 100px;
}
/*
_