mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 19:15:39 +00:00
panel
This commit is contained in:
3
frontend/templates/panel/nav/menu/section/heading.html
Normal file
3
frontend/templates/panel/nav/menu/section/heading.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<li class="menu-heading nav-menu__heading nav-section__heading">
|
||||
<h3><.= section.name .></h3>
|
||||
</li>
|
||||
4
frontend/templates/panel/nav/menu/section/index.html
Normal file
4
frontend/templates/panel/nav/menu/section/index.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<. include!("heading.html"); .>
|
||||
<. for heading in §ion.elements { .>
|
||||
<. include!("item.html"); .>
|
||||
<.}; .>
|
||||
24
frontend/templates/panel/nav/menu/section/item.html
Normal file
24
frontend/templates/panel/nav/menu/section/item.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<li
|
||||
class='<.= if active.name == heading.name {"nav-section__item--active"} else { "nav-section__item"} .>'
|
||||
<a href="#0" class="nav-menu__item__link nav-section__item__link">
|
||||
<img
|
||||
class="icon nav-menu__item__icon nav-section__item__icon"
|
||||
src="/svg/<.= heading.icon.>.svg"
|
||||
alt=""
|
||||
/>
|
||||
<.= heading.name .>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<style>
|
||||
.nav-section__item__link {
|
||||
filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(298deg)
|
||||
brightness(104%) contrast(101%);
|
||||
}
|
||||
|
||||
.nav-section__item:hover {
|
||||
background: var(--page-header-bgColor-hover);
|
||||
color: var(--blue);
|
||||
outline: none;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user