You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/segments/menu/SideMenu/SideMenu.scss

122 lines
2.2 KiB
SCSS

5 months ago
#SideMenu {
// scss
position: fixed;
overflow: hidden;
overflow-y: auto;
z-index: 8;
background: var(--side-menu-bg-color);
5 months ago
width: 20rem;
bottom: 0;
top: 0;
inset-inline-start: 0;
img {
5 months ago
width: 50% !important;
height: auto !important;
}
ul {
5 months ago
list-style: none;
padding: 0;
li {
5 months ago
transition: 600ms;
a {
5 months ago
padding: .75rem 1rem;
display: block;
}
5 months ago
text-align: center;
&:hover {
5 months ago
background: var(--xshop-secondary);
a {
color: var(--xshop-diff);
}
5 months ago
}
&.current-page {
5 months ago
background: var(--xshop-primary);
a {
5 months ago
color: var(--xshop-diff);
}
}
}
}
#side-menu-btn {
5 months ago
display: none;
}
}
main {
5 months ago
position: relative;
inset-inline-start: 20rem;
width: calc(100% - 20rem);
}
/*-1024px width*/
@media (max-width: 1024px) {
main {
5 months ago
position: static;
width: auto;
}
#SideMenu {
5 months ago
inset-inline-start: 0;
width: 100%;
bottom: auto;
overflow: visible !important;
//position: relative;
#side-menu-logo {
5 months ago
float: left;
img {
5 months ago
width: auto !important;
height: 48px !important;
margin-right: 1rem;
margin-left: 1rem;
}
}
ul {
5 months ago
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--xshop-background);
li {
5 months ago
text-align: start;
}
&.active {
display: block;
5 months ago
}
}
#side-menu-btn {
5 months ago
display: block !important;
float: right;
padding: 1.7rem 2rem;
&:hover {
5 months ago
background: var(--xshop-primary);
color: var(--xshop-diff);
}
}
#side-menu-content {
display: none !important;
5 months ago
}
}
}