defined styles menu resources´

/
This commit is contained in:
jorge 2022-04-08 17:19:57 +02:00
parent 1789004538
commit a6c7de81da
3 changed files with 83 additions and 21 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,20 +1,51 @@
@include breakpoint(small){ @include breakpoint(small){
.menu { .widget_nav_menu {
list-style:none; ul.menu {
.menu-item-has-children { list-style: none;
.sub-menu { margin: 0;
display:none; padding: 0;
} li.menu-item-has-children {
&:hover { display: inline-block;
.sub-menu { position: relative;
display:inline-block; ul.sub-menu {
list-style: none;
display: none;
li.menu-item-has-children {
position:relative;
display: inline-block;
padding-right:100%;
> a:after {
content: ' > ';
display: inline;
position: absolute;
color: scale-color($anchor-color, $lightness: 80%);
}
&:hover,&:focus-within {
> ul.sub-menu {
display: inline-block;
position: absolute;
top: 0;
left: 50%;
margin-left: auto;
width: 100%;
}
}
}
}
&:hover,&:focus-within {
> ul.sub-menu {
display: inline-block;
position: absolute;
margin-left: 0;
background-color: $white;
}
} }
} }
} }
} }
} }
@include breakpoint(medium){ @include breakpoint(medium){
} }
@include breakpoint(large){ @include breakpoint(large){
} }

View File

@ -1,20 +1,51 @@
@include breakpoint(small){ @include breakpoint(small){
.menu { .widget_nav_menu {
list-style:none; ul.menu {
.menu-item-has-children { list-style: none;
.sub-menu { margin: 0;
display:none; padding: 0;
} li.menu-item-has-children {
&:hover { display: inline-block;
.sub-menu { position: relative;
display:inline-block; ul.sub-menu {
list-style: none;
display: none;
li.menu-item-has-children {
position:relative;
display: inline-block;
padding-right:100%;
> a:after {
content: ' > ';
display: inline;
position: absolute;
color: scale-color($anchor-color, $lightness: 80%);
}
&:hover,&:focus-within {
> ul.sub-menu {
display: inline-block;
position: absolute;
top: 0;
left: 50%;
margin-left: auto;
width: 100%;
}
}
}
}
&:hover,&:focus-within {
> ul.sub-menu {
display: inline-block;
position: absolute;
margin-left: 0;
background-color: $white;
}
} }
} }
} }
} }
} }
@include breakpoint(medium){ @include breakpoint(medium){
} }
@include breakpoint(large){ @include breakpoint(large){
} }