new Header
This commit is contained in:
parent
f2be8e54b4
commit
645ea5da7d
19 changed files with 2856 additions and 323 deletions
|
|
@ -1,4 +1,4 @@
|
|||
@charset "UTF-8";@font-face{font-family:Raleway;font-style:normal;font-weight:100;src:local('Raleway Thin'),local('Raleway-Thin'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptsg8zYS_SKggPNwE44TYFv.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:200;src:local('Raleway ExtraLight'),local('Raleway-ExtraLight'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwOIpWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:300;src:local('Raleway Light'),local('Raleway-Light'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwIYqWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local('Raleway'),local('Raleway-Regular'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptug8zYS_SKggPNyC0ISg.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:500;src:local('Raleway Medium'),local('Raleway-Medium'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwN4rWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:600;src:local('Raleway SemiBold'),local('Raleway-SemiBold'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwPIsWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local('Raleway Bold'),local('Raleway-Bold'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwJYtWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:800;src:local('Raleway ExtraBold'),local('Raleway-ExtraBold'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwIouWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:900;src:local('Raleway Black'),local('Raleway-Black'),url(https://fonts.gstatic.com/s/raleway/v13/1Ptrg8zYS_SKggPNwK4vWqZPBQ.ttf) format('truetype')}@font-face{font-family:Oswald;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/oswald/v23/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUZiYA.ttf) format('truetype')}@font-face{font-family:Oswald;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/oswald/v23/TK3_WkUHHAIjg75cFRf3bXL8LICs1xZosUZiYA.ttf) format('truetype')}/*!
|
||||
@charset "UTF-8";@font-face{font-family:Raleway;font-style:normal;font-weight:100;src:local('Raleway Thin'),local('Raleway-Thin'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptsg8zYS_SKggPNwE44TYFv.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:200;src:local('Raleway ExtraLight'),local('Raleway-ExtraLight'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwOIpWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:300;src:local('Raleway Light'),local('Raleway-Light'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwIYqWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:400;src:local('Raleway'),local('Raleway-Regular'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISg.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:500;src:local('Raleway Medium'),local('Raleway-Medium'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwN4rWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:600;src:local('Raleway SemiBold'),local('Raleway-SemiBold'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwPIsWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:700;src:local('Raleway Bold'),local('Raleway-Bold'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:800;src:local('Raleway ExtraBold'),local('Raleway-ExtraBold'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwIouWqZPBQ.ttf) format('truetype')}@font-face{font-family:Raleway;font-style:normal;font-weight:900;src:local('Raleway Black'),local('Raleway-Black'),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwK4vWqZPBQ.ttf) format('truetype')}@font-face{font-family:Oswald;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/oswald/v29/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUZiYA.ttf) format('truetype')}@font-face{font-family:Oswald;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/oswald/v29/TK3_WkUHHAIjg75cFRf3bXL8LICs1xZosUZiYA.ttf) format('truetype')}/*!
|
||||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
||||
* Copyright 2011-2016 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
37
trunk/web/js/custom-min.js
vendored
37
trunk/web/js/custom-min.js
vendored
|
|
@ -26,9 +26,41 @@ $(document).ready(function() {
|
|||
$(".btn-booking-form .btn-booking-loading").removeClass("hide");
|
||||
}
|
||||
});
|
||||
|
||||
// STICKY
|
||||
if($('#header').hasClass('sticky')) {
|
||||
|
||||
var _header_el = $('#header');
|
||||
var _topBar_H = $("#topBar").outerHeight() || 0;
|
||||
|
||||
// Force fixed header on mobile to avoid "jump" effect.
|
||||
if(window.width <= 992 && _topBar_H < 1) {
|
||||
var _scrollTop = $(document).scrollTop();
|
||||
var _header_H = _header_el.outerHeight() || 0;
|
||||
_header_el.addClass('fixed');
|
||||
$('body').css({"padding-top":_header_H+"px"});
|
||||
}
|
||||
|
||||
$(window).scroll(function() {
|
||||
|
||||
if((window.width > 992 && _topBar_H < 1) || _topBar_H > 0) { // 992 to disable on mobile
|
||||
|
||||
var _scrollTop = $(document).scrollTop();
|
||||
if(_scrollTop > _topBar_H) {
|
||||
_header_el.addClass('fixed');
|
||||
var _header_H = _header_el.outerHeight() || 0;
|
||||
$('body').css({"padding-top":_header_H+"px"});
|
||||
} else {
|
||||
$('body').css({"padding-top":"0px"});
|
||||
_header_el.removeClass('fixed');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var collapse_on_responsive = function() {
|
||||
/*var collapse_on_responsive = function() {
|
||||
if (jQuery(document).width() < 992) {
|
||||
//jQuery('.widget').find('.collapse-widget:not(.open)').addClass('collapsed');
|
||||
//jQuery('.widget').find('.collapse:not(.open)').removeClass('in');
|
||||
|
|
@ -36,4 +68,5 @@ var collapse_on_responsive = function() {
|
|||
// jQuery('.widget').find('.collapse-widget').removeClass('collapsed');
|
||||
// jQuery('.widget').find('.collapse').addClass('in');
|
||||
}
|
||||
};
|
||||
};*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue