mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
The New Desing
This commit is contained in:
parent
def9cc4ea6
commit
067a2c862a
305 changed files with 22231 additions and 7576 deletions
|
@ -953,3 +953,49 @@ String.prototype.trim = function()
|
|||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
hover_menu = function() {
|
||||
var sep_1 = $('div.l-content > div.l-separator:nth-of-type(2)');
|
||||
var sep_2 = $('div.l-content > div.l-separator:nth-of-type(4)');
|
||||
var nav_main = $('.l-stat');
|
||||
var nav_a = $('.l-stat .l-stat__col a');
|
||||
var nav_context = $('.l-sort');
|
||||
|
||||
var st = $(window).scrollTop();
|
||||
|
||||
if (st <= 112) {
|
||||
sep_1.css({'margin-top': 214 - st + 'px'});
|
||||
sep_2.css({'margin-top': 259 - st + 'px'});
|
||||
nav_a.css({'height': 111 - st + 'px'});
|
||||
nav_a.css({'min-height': 111 - st + 'px'});
|
||||
nav_context.css({'margin-top': 215 - st + 'px'});
|
||||
sep_2.css({'box-shadow':'none'});
|
||||
}
|
||||
|
||||
if(st > 112){
|
||||
sep_1.css({'margin-top': '100px'});
|
||||
sep_2.css({'margin-top': '145px'});
|
||||
nav_a.css({'height': '0'});
|
||||
nav_a.css({'min-height': '0'});
|
||||
nav_context.css({'margin-top': '101px'});
|
||||
nav_a.find('ul').css({'visibility': 'hidden'});
|
||||
nav_main.css({'padding-top': '27px'});
|
||||
sep_2.css({'box-shadow':'0 2px 5px 0 rgba(0, 0, 0, 0.6)'});
|
||||
}
|
||||
|
||||
if(st == 0){
|
||||
nav_a.css({'min-height': '111px'});
|
||||
nav_a.css({'height': '111px'});
|
||||
}
|
||||
|
||||
if(st < 109 ){
|
||||
nav_a.find('ul').css({'visibility': 'visible'});
|
||||
nav_main.css({'padding-top': 30 + 'px'});
|
||||
}
|
||||
|
||||
if (st <= 112 && st > 110 ) {
|
||||
nav_main.css({'padding-top': 30 - st + 109 + 'px'});
|
||||
}
|
||||
|
||||
lastScrollTop = st;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue