new megamenu style

nc-nginx-test
elena 2023-02-17 13:22:24 +00:00
parent d449bff1d1
commit 7ac06ef82c
1 changed files with 115 additions and 120 deletions

View File

@ -86,38 +86,46 @@
} }
/* MEGAMENÚ */ /* MEGAMENÚ */
#header #navbar-menu-apps #menu-apps-btn {
cursor: pointer; #header #navbar-menu-apps #menu-apps-btn #dropdownMenuAppsButton {
position: relative;
}
#header #navbar-menu-apps #menu-apps-btn #dropdownMenuAppsButton {
cursor: pointer; cursor: pointer;
height: 16px; height: 16px;
padding: 0px 15px; margin-right: 0;
}
#header
#navbar-menu-apps
#menu-apps-btn
#dropdownMenuAppsButton
#menu-apps-icon {
height: 16px;
width: 16px;
}
#header div#navbar-menu-apps {
display: flex; display: flex;
align-items: center; align-items: center;
} justify-content: center;
}
#header #navbar-menu-apps .dropdown-menu { #header #navbar-menu-apps #menu-apps-btn #dropdownMenuAppsButton>svg {
transform: scale(.5);
}
#header div#navbar-menu-apps {
display: flex;
align-items: center;
}
#header #navbar-menu-apps #menu-apps-btn {
cursor: pointer;
width: 36px;
height: 36px;
border-radius: 5px;
background-color: #f0f0f0;
position: relative;
left: -15px;
top: 1px;
display: flex;
align-items: center;
justify-content: center;
}
#header #navbar-menu-apps .dropdown-menu {
display: none; display: none;
position: absolute; position: absolute;
border: 1px solid rgba(0, 0, 0, 0.15); border: 1px solid rgba(0,0,0,.15);
border-radius: 5px; border-radius: 5px;
box-shadow: rgb(0 0 0 / 20%) 0 3px 8px; box-shadow: rgb(0 0 0 / 20%) 0 3px 8px;
margin-top: -2px; margin-top: 11px;
padding: 10px; padding: 10px;
max-height: 500px; max-height: 500px;
overflow-y: scroll; overflow-y: scroll;
@ -126,43 +134,81 @@
top: 33px; top: 33px;
right: -14px; right: -14px;
left: auto; left: auto;
} }
#header #navbar-menu-apps .dropdown-menu ul { #header #navbar-menu-apps .dropdown-menu ul {
list-style: none; list-style: none;
display: grid; display: grid;
flex-wrap: wrap; flex-wrap: wrap;
padding: 15px 2px 0 0; padding: 2px 2px 10px 0;
margin-bottom: 0; margin-bottom: 0;
grid-template-columns: 82px 82px 82px; grid-template-columns: 133px 133px;
grid-gap: 12px 2px; grid-gap: 12px 2px;
} }
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link { #header #navbar-menu-apps .dropdown-menu ul#app-admin {
border-bottom: 1px solid #D9D9D9;
padding-bottom: 4px;
margin-bottom: 6px;
}
#header #navbar-menu-apps .dropdown-menu ul#app-external {
border-top: 1px solid #D9D9D9;
padding-top: 20px;
margin-top: 8px;
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
align-items: center; align-items: center;
justify-content: start; justify-content: start;
text-align: center; text-align: center;
color: #262626; color: #262626;
text-decoration: none; text-decoration: none;
} background-color: #F0F0F0;
margin-right: 8px;
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link .icon { border-radius: 5px;
padding: 5px;
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link:hover {
background-color: {{ data.colours.primary }};
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link .icon {
width: 40px; width: 40px;
height: 40px; height: 40px;
background-color: {{ data.colours.primary }};
border-radius: 0.25rem;
margin-right: 0; margin-right: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} background-color: transparent;
border-radius: 0.25rem;
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link .icon i { #header #navbar-menu-apps .dropdown-menu ul li.app a.app-link .text {
color: #fff; text-align: left;
font-size: 19px; margin-left: 0;
} height: 26px;
max-width: 71px;
font-size: 13px;
line-height: 15px;
overflow-wrap: anywhere;
display: flex;
align-items: center;
position: relative;
top: 1px;
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link .icon i {
color: {{ data.colours.primary }};
font-size: 19px;
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link:hover .icon i {
color: #FFF;
}
#header #navbar-menu-apps .dropdown-menu ul li.app a.app-link:hover .text {
color: #FFF;
}
#header #header-left, #header #header-left,
#header .header-left, #header .header-left,
@ -227,6 +273,32 @@
#user_avatar:hover .dropdown-content { #user_avatar:hover .dropdown-content {
display: block; display: block;
} }
/* ScrollBar */
/* width */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: inherit;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #D9D9D9;
border-radius: 10px;
border: 2px solid transparent;
background-clip: content-box;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #C2C2C2;
width: 6px;
}
/* ScrollBar */
</style> </style>
{% endblock %} {% endblock %}
<header role="banner" id="header"> <header role="banner" id="header">
@ -245,86 +317,9 @@
aria-haspopup="true" aria-haspopup="true"
aria-expanded="false" aria-expanded="false"
> >
<svg <svg id="menu-apps-icon" data-name="Menú Apps" xmlns="http://www.w3.org/2000/svg" height="48" width="48">
id="menu-apps-icon" <path d="M33.95 24.1q-.3 0-.55-.1-.25-.1-.5-.35l-8.55-8.55q-.25-.25-.35-.5-.1-.25-.1-.55 0-.3.1-.55.1-.25.35-.5l8.55-8.55q.25-.25.5-.35.25-.1.55-.1.3 0 .55.1.25.1.5.35L43.55 13q.25.25.35.5.1.25.1.55 0 .3-.1.55-.1.25-.35.5L35 23.65q-.25.25-.5.35-.25.1-.55.1Zm-26.45-3q-.65 0-1.075-.425Q6 20.25 6 19.6V7.55q0-.65.425-1.075Q6.85 6.05 7.5 6.05h12.05q.65 0 1.075.425.425.425.425 1.075V19.6q0 .65-.425 1.075-.425.425-1.075.425ZM28.4 42q-.65 0-1.075-.425-.425-.425-.425-1.075V28.45q0-.65.425-1.075.425-.425 1.075-.425h12.05q.65 0 1.075.425.425.425.425 1.075V40.5q0 .65-.425 1.075Q41.1 42 40.45 42ZM7.5 42q-.65 0-1.075-.425Q6 41.15 6 40.5V28.45q0-.65.425-1.075.425-.425 1.075-.425h12.05q.65 0 1.075.425.425.425.425 1.075V40.5q0 .65-.425 1.075Q20.2 42 19.55 42Z"/>
data-name="Menú Apps" </svg>
xmlns="http://www.w3.org/2000/svg"
width="26"
height="26"
viewBox="0 0 26 26"
>
<rect
id="Rectángulo_2"
data-name="Rectángulo 2"
width="6"
height="6"
fill="#262626"
></rect>
<rect
id="Rectángulo_1447"
data-name="Rectángulo 1447"
width="6"
height="6"
transform="translate(0 10)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1450"
data-name="Rectángulo 1450"
width="6"
height="6"
transform="translate(0 20)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1440"
data-name="Rectángulo 1440"
width="6"
height="6"
transform="translate(10)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1446"
data-name="Rectángulo 1446"
width="6"
height="6"
transform="translate(10 10)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1449"
data-name="Rectángulo 1449"
width="6"
height="6"
transform="translate(10 20)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1441"
data-name="Rectángulo 1441"
width="6"
height="6"
transform="translate(20)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1445"
data-name="Rectángulo 1445"
width="6"
height="6"
transform="translate(20 10)"
fill="#262626"
></rect>
<rect
id="Rectángulo_1448"
data-name="Rectángulo 1448"
width="6"
height="6"
transform="translate(20 20)"
fill="#262626"
></rect>
</svg>
</div> </div>
<div <div
id="dropdownMenuApps" id="dropdownMenuApps"