Menu
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -270,19 +270,14 @@ header#header {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&.active {
|
||||
> a {
|
||||
span {
|
||||
text-shadow:
|
||||
0px 0.2px 0px $cTxtBlack,
|
||||
0px -0.2px 0px $cTxtBlack,
|
||||
0.2px 0px 0px $cTxtBlack,
|
||||
-0.2px 0px 0px $cTxtBlack,
|
||||
-0.2px -0.2px 0px $cTxtBlack,
|
||||
0.2px 0.2px 0px $cTxtBlack,
|
||||
0.2px -0.2px 0px $cTxtBlack,
|
||||
-0.2px 0.2px 0px $cTxtBlack,
|
||||
-0.2px 0.2px 0px $cTxtBlack;
|
||||
text-shadow: 0px 0.2px 0px $cTxtBlack,
|
||||
0px -0.2px 0px $cTxtBlack, 0.2px 0px 0px $cTxtBlack,
|
||||
-0.2px 0px 0px $cTxtBlack, -0.2px -0.2px 0px $cTxtBlack,
|
||||
0.2px 0.2px 0px $cTxtBlack, 0.2px -0.2px 0px $cTxtBlack,
|
||||
-0.2px 0.2px 0px $cTxtBlack, -0.2px 0.2px 0px $cTxtBlack;
|
||||
|
||||
&::before {
|
||||
width: 100%;
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
<li class="parent">
|
||||
<?= nav_item(41, $lang_id, true); ?>
|
||||
|
||||
<ul class="lvl-3">
|
||||
<ul class="lvl-3 lvl-3-big">
|
||||
<!-- item 1-2-1 -->
|
||||
<li>
|
||||
<?= nav_item(['cURL' => '/drzwi-wejsciowe/#aluminiowe', 'cTitle' => 'Aluminiowe']); ?>
|
||||
@@ -535,9 +535,9 @@
|
||||
</header>
|
||||
|
||||
<script class="footer" type="text/javascript">
|
||||
$(window).resize(function() {
|
||||
windowsize = $(window).width();
|
||||
});
|
||||
$(window).resize(function() {
|
||||
windowsize = $(window).width();
|
||||
});
|
||||
|
||||
$( 'body' ).on( click_event, '#header-mine-menu-btn', function()
|
||||
{
|
||||
@@ -567,18 +567,47 @@
|
||||
}
|
||||
|
||||
|
||||
if ( windowsize > 991 ) {
|
||||
$(function () {
|
||||
$('body').on(
|
||||
click_event,
|
||||
'#header-nav #header-mine-menu .lvl-1 >li.parent >a',
|
||||
function (e) {
|
||||
e.preventDefault()
|
||||
// if ( windowsize > 991 ) {
|
||||
// $(function () {
|
||||
// $('body').on(
|
||||
// click_event,
|
||||
// '#header-nav #header-mine-menu .lvl-1 >li.parent >a',
|
||||
// function (e) {
|
||||
// e.preventDefault()
|
||||
|
||||
$(this).parent().toggleClass('active');
|
||||
}
|
||||
)
|
||||
})
|
||||
}
|
||||
// $(this).parent().toggleClass('active');
|
||||
// }
|
||||
// )
|
||||
// })
|
||||
// }
|
||||
if (windowsize > 991) {
|
||||
$(function () {
|
||||
// lvl-1
|
||||
$('body').on(
|
||||
click_event,
|
||||
'#header-nav #header-mine-menu .lvl-1 > li.parent > a',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
var $li = $(this).parent();
|
||||
|
||||
$li.siblings('.active').removeClass('active');
|
||||
$li.toggleClass('active');
|
||||
}
|
||||
);
|
||||
|
||||
// lvl-2
|
||||
$('body').on(
|
||||
click_event,
|
||||
'#header-nav #header-mine-menu .lvl-2 > li.parent > a',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
var $li = $(this).parent();
|
||||
|
||||
$li.siblings('.active').removeClass('active');
|
||||
$li.toggleClass('active');
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user