macinka
This commit is contained in:
@@ -1,23 +1,19 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<div class="page">
|
||||
<div class="sidebar">
|
||||
<aside class="sidebar">
|
||||
<NavMenu />
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<main>
|
||||
<div class="top-row px-4">
|
||||
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
||||
</div>
|
||||
|
||||
<article class="content px-4">
|
||||
<main class="main-content">
|
||||
<article class="content">
|
||||
@Body
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<div id="blazor-error-ui" data-nosnippet>
|
||||
An unhandled error has occurred.
|
||||
<a href="." class="reload">Reload</a>
|
||||
<span class="dismiss">🗙</span>
|
||||
Nastala neočekávaná chyba.
|
||||
<a href="." class="reload">Obnovit stránku</a>
|
||||
<span class="dismiss">✕</span>
|
||||
</div>
|
||||
|
||||
@@ -1,98 +1,98 @@
|
||||
.page {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
.page {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
background: #f7f9f5;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
|
||||
width: 260px;
|
||||
min-width: 260px;
|
||||
min-height: 100vh;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
align-self: flex-start;
|
||||
z-index: 100;
|
||||
background: #ffffff;
|
||||
border-right: 1px solid #e8ede5;
|
||||
}
|
||||
|
||||
.top-row {
|
||||
background-color: #f7f7f7;
|
||||
border-bottom: 1px solid #d6d5d5;
|
||||
justify-content: flex-end;
|
||||
height: 3.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.main-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 100vh;
|
||||
background: #f7f9f5;
|
||||
}
|
||||
|
||||
.top-row ::deep a, .top-row ::deep .btn-link {
|
||||
white-space: nowrap;
|
||||
margin-left: 1.5rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.top-row ::deep a:first-child {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
@media (max-width: 640.98px) {
|
||||
.top-row {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.top-row ::deep a, .top-row ::deep .btn-link {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) {
|
||||
.page {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
height: 100vh;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.top-row {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.top-row.auth ::deep a:first-child {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.top-row, article {
|
||||
padding-left: 2rem !important;
|
||||
padding-right: 1.5rem !important;
|
||||
}
|
||||
.content {
|
||||
width: 100%;
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 30px 35px !important;
|
||||
}
|
||||
|
||||
#blazor-error-ui {
|
||||
color-scheme: light only;
|
||||
background: lightyellow;
|
||||
color-scheme: light;
|
||||
background: #fff4d6;
|
||||
color: #58451b;
|
||||
bottom: 0;
|
||||
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 -2px 15px rgba(0, 0, 0, .08);
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
left: 0;
|
||||
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
||||
padding: 14px 25px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
border-top: 1px solid #f0dfb4;
|
||||
}
|
||||
|
||||
#blazor-error-ui .reload {
|
||||
color: #315b3e;
|
||||
font-weight: 700;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
#blazor-error-ui .dismiss {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 0.75rem;
|
||||
top: 0.5rem;
|
||||
right: 18px;
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 640.98px) {
|
||||
.page {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: auto;
|
||||
position: relative;
|
||||
border-right: none;
|
||||
border-bottom: 1px solid #e8ede5;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 18px 15px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) {
|
||||
.sidebar {
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,71 +1,116 @@
|
||||
@implements IDisposable
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
<div class="top-row ps-3 navbar navbar-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="">Web-Jarmark</a>
|
||||
<div class="nav-panel">
|
||||
|
||||
<div class="nav-brand-area">
|
||||
<a class="navbar-brand" href="/">
|
||||
<span class="brand-symbol">🌿</span>
|
||||
<span class="brand-text">
|
||||
<strong>Školní jarmark</strong>
|
||||
<small>ONLINE KATALOG</small>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="checkbox" title="Navigation menu" class="navbar-toggler" />
|
||||
<input type="checkbox"
|
||||
title="Navigation menu"
|
||||
class="navbar-toggler" />
|
||||
|
||||
<div class="nav-scrollable"
|
||||
onclick="document.querySelector('.navbar-toggler').click()">
|
||||
|
||||
<div class="nav-section-label">HLAVNÍ MENU</div>
|
||||
|
||||
<nav class="nav flex-column">
|
||||
|
||||
<div class="nav-item">
|
||||
<NavLink class="nav-link"
|
||||
href=""
|
||||
Match="NavLinkMatch.All">
|
||||
<span class="nav-icon bi bi-house-door-fill-nav-menu"></span>
|
||||
<span>Domů</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
<div class="nav-item">
|
||||
<NavLink class="nav-link" href="kosik">
|
||||
<span class="nav-icon bi bi-cart-fill"></span>
|
||||
<span>Košík</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
<AuthorizeView Roles="Admin">
|
||||
<Authorized>
|
||||
<div class="nav-section-label secondary-label">
|
||||
SPRÁVA
|
||||
</div>
|
||||
|
||||
<div class="nav-item">
|
||||
<NavLink class="nav-link" href="admin">
|
||||
<span class="nav-icon bi bi-lock-nav-menu"></span>
|
||||
<span>Administrace</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
</Authorized>
|
||||
</AuthorizeView>
|
||||
|
||||
</nav>
|
||||
|
||||
<div class="nav-bottom">
|
||||
|
||||
<div class="nav-section-label">UŽIVATEL</div>
|
||||
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<div class="nav-item">
|
||||
<NavLink class="nav-link" href="Account/Manage">
|
||||
<span class="nav-icon bi bi-person-fill-nav-menu"></span>
|
||||
<span class="user-name">@context.User.Identity?.Name</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
<div class="nav-item">
|
||||
<form action="Account/Logout" method="post">
|
||||
<AntiforgeryToken />
|
||||
<input type="hidden" name="ReturnUrl" value="@currentUrl" />
|
||||
|
||||
<button type="submit" class="nav-link logout-link">
|
||||
<span class="nav-icon bi bi-arrow-bar-left-nav-menu"></span>
|
||||
<span>Odhlásit</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</Authorized>
|
||||
|
||||
<NotAuthorized>
|
||||
<div class="nav-item">
|
||||
<NavLink class="nav-link" href="Account/Login">
|
||||
<span class="nav-icon bi bi-person-badge-nav-menu"></span>
|
||||
<span>Přihlášení</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
<div class="nav-item">
|
||||
<NavLink class="nav-link" href="Account/Register">
|
||||
<span class="nav-icon bi bi-person-nav-menu"></span>
|
||||
<span>Registrace</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
|
||||
<div class="nav-scrollable" onclick="document.querySelector('.navbar-toggler').click()">
|
||||
<nav class="nav flex-column">
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
||||
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Domů
|
||||
</NavLink>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="kosik">
|
||||
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Košík
|
||||
</NavLink>
|
||||
<div class="nav-footer">
|
||||
<span class="footer-leaf">🌱</span>
|
||||
<div>
|
||||
<strong>Školní jarmark</strong>
|
||||
<small>Vyrobeno s radostí</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AuthorizeView Roles="Admin">
|
||||
<Authorized>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="admin">
|
||||
<span class="bi bi-lock-nav-menu" aria-hidden="true"></span> Administrace
|
||||
</NavLink>
|
||||
</div>
|
||||
</Authorized>
|
||||
</AuthorizeView>
|
||||
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="Account/Manage">
|
||||
<span class="bi bi-person-fill-nav-menu" aria-hidden="true"></span> @context.User.Identity?.Name
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<form action="Account/Logout" method="post">
|
||||
<AntiforgeryToken />
|
||||
<input type="hidden" name="ReturnUrl" value="@currentUrl" />
|
||||
<button type="submit" class="nav-link">
|
||||
<span class="bi bi-arrow-bar-left-nav-menu" aria-hidden="true"></span> Odhlásit
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="Account/Login">
|
||||
<span class="bi bi-person-badge-nav-menu" aria-hidden="true"></span> Přihlášení
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="Account/Register">
|
||||
<span class="bi bi-person-nav-menu" aria-hidden="true"></span> Registrace
|
||||
</NavLink>
|
||||
</div>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
@@ -73,7 +118,9 @@
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
currentUrl = NavigationManager.ToBaseRelativePath(NavigationManager.Uri);
|
||||
currentUrl = NavigationManager.ToBaseRelativePath(
|
||||
NavigationManager.Uri);
|
||||
|
||||
NavigationManager.LocationChanged += OnLocationChanged;
|
||||
}
|
||||
|
||||
@@ -87,4 +134,4 @@
|
||||
{
|
||||
NavigationManager.LocationChanged -= OnLocationChanged;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,157 +1,307 @@
|
||||
|
||||
/* ==========================================
|
||||
WEB JARMARK – MODERNÍ BOČNÍ NAVIGACE
|
||||
========================================== */
|
||||
.nav-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100vh;
|
||||
background: #ffffff;
|
||||
color: #304536;
|
||||
}
|
||||
|
||||
.top-row {
|
||||
min-height: 76px;
|
||||
/* Logo */
|
||||
|
||||
.nav-brand-area {
|
||||
height: 100px;
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px !important;
|
||||
background: linear-gradient(135deg, #10233f, #183d68);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, .08);
|
||||
padding: 0 24px;
|
||||
border-bottom: 1px solid #edf0e9;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
color: #ffffff !important;
|
||||
font-size: 21px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -.5px;
|
||||
transition: color .25s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
color: #294c35 !important;
|
||||
text-decoration: none;
|
||||
transition: opacity .2s ease;
|
||||
}
|
||||
|
||||
.navbar-brand:hover {
|
||||
color: #8fc5ff !important;
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
/* Pozadí navigace */
|
||||
.brand-symbol {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
flex-shrink: 0;
|
||||
border-radius: 15px;
|
||||
background: #eaf1e5;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.brand-text strong {
|
||||
font-size: 17px;
|
||||
font-weight: 850;
|
||||
letter-spacing: -.5px;
|
||||
}
|
||||
|
||||
.brand-text small {
|
||||
color: #92a18e;
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1.8px;
|
||||
}
|
||||
|
||||
/* Navigace */
|
||||
|
||||
.nav-scrollable {
|
||||
background: linear-gradient(180deg, #142b4a 0%, #10223b 100%);
|
||||
min-height: calc(100vh - 76px);
|
||||
padding: 22px 13px;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
padding: 30px 15px 20px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.nav-section-label {
|
||||
padding: 0 12px;
|
||||
margin-bottom: 13px;
|
||||
color: #9ba79a;
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
letter-spacing: 1.6px;
|
||||
}
|
||||
|
||||
.secondary-label {
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
/* Položky menu */
|
||||
.nav-item {
|
||||
margin-bottom: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 7px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
/* Odkazy */
|
||||
.nav-item ::deep .nav-link {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 13px;
|
||||
width: 100%;
|
||||
min-height: 49px;
|
||||
padding: 0 16px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 12px;
|
||||
background: transparent;
|
||||
color: #b9c9dc;
|
||||
color: #758275;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
line-height: normal;
|
||||
transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
|
||||
transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
|
||||
}
|
||||
|
||||
/* Hover efekt */
|
||||
.nav-item ::deep .nav-link:hover {
|
||||
color: #ffffff;
|
||||
background: rgba(255, 255, 255, .09);
|
||||
border-color: rgba(255, 255, 255, .08);
|
||||
transform: translateX(4px);
|
||||
background: #f4f7f1;
|
||||
color: #315b3e;
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
/* Aktivní stránka */
|
||||
.nav-item ::deep a.active {
|
||||
color: #ffffff;
|
||||
background: linear-gradient( 100deg, rgba(40, 130, 235, .32), rgba(40, 130, 235, .12) );
|
||||
border-color: rgba(105, 175, 255, .25);
|
||||
box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
|
||||
background: #eaf2e5;
|
||||
color: #315b3e;
|
||||
border-color: #dce9d5;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
/* Modrý indikátor aktivní stránky */
|
||||
.nav-item ::deep a.active::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: -13px;
|
||||
top: 10px;
|
||||
bottom: 10px;
|
||||
left: -15px;
|
||||
top: 11px;
|
||||
bottom: 11px;
|
||||
width: 3px;
|
||||
border-radius: 0 5px 5px 0;
|
||||
background: #58a6ff;
|
||||
background: #6f9668;
|
||||
}
|
||||
|
||||
/* Ikony */
|
||||
.nav-item ::deep .bi {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
margin-right: 13px;
|
||||
flex-shrink: 0;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
opacity: .85;
|
||||
transition: transform .25s ease, opacity .25s ease;
|
||||
.nav-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
flex-shrink: 0;
|
||||
font-size: 17px;
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
.nav-item ::deep .nav-link:hover .nav-icon,
|
||||
.nav-item ::deep a.active .nav-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Spodní část */
|
||||
|
||||
.nav-bottom {
|
||||
margin-top: auto;
|
||||
padding-top: 30px;
|
||||
border-top: 1px solid #edf0e9;
|
||||
}
|
||||
|
||||
.nav-item ::deep form {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav-item ::deep button.nav-link {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-item ::deep .logout-link {
|
||||
color: #9a7771;
|
||||
}
|
||||
|
||||
.nav-item ::deep .logout-link:hover {
|
||||
background: #fff1ef;
|
||||
color: #b34e43;
|
||||
}
|
||||
|
||||
.nav-item ::deep .nav-link:hover .bi,
|
||||
.nav-item ::deep a.active .bi {
|
||||
opacity: 1;
|
||||
transform: scale(1.08);
|
||||
}
|
||||
/* Patička */
|
||||
|
||||
/* Odhlášení */
|
||||
.nav-item ::deep form {
|
||||
width: 100%;
|
||||
}
|
||||
.nav-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
margin-top: 28px;
|
||||
padding: 16px 12px 5px;
|
||||
border-top: 1px solid #edf0e9;
|
||||
}
|
||||
|
||||
.nav-item ::deep button.nav-link {
|
||||
text-align: left;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.footer-leaf {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 11px;
|
||||
background: #edf3e9;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.nav-footer div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.nav-footer strong {
|
||||
color: #49634b;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.nav-footer small {
|
||||
color: #9ba69a;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Mobilní menu */
|
||||
|
||||
/* Mobilní tlačítko */
|
||||
.navbar-toggler {
|
||||
appearance: none;
|
||||
width: 43px;
|
||||
height: 39px;
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
right: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, .2);
|
||||
border-radius: 10px;
|
||||
background-color: rgba(255, 255, 255, .08);
|
||||
top: 27px;
|
||||
right: 20px;
|
||||
z-index: 5;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
margin: 0;
|
||||
border: 1px solid #e4eadf;
|
||||
border-radius: 12px;
|
||||
background: #f5f8f2;
|
||||
cursor: pointer;
|
||||
transition: background .2s ease;
|
||||
}
|
||||
|
||||
.navbar-toggler:hover,
|
||||
.navbar-toggler:checked {
|
||||
background-color: rgba(255, 255, 255, .18);
|
||||
.navbar-toggler::before {
|
||||
content: "☰";
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: #315b3e;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
/* Plynulé otevření menu na mobilu */
|
||||
.nav-scrollable {
|
||||
overflow: hidden;
|
||||
.navbar-toggler:checked::before {
|
||||
content: "✕";
|
||||
}
|
||||
|
||||
@media (min-width: 641px) {
|
||||
.navbar-toggler {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-scrollable {
|
||||
display: flex !important;
|
||||
height: calc(100vh - 100px);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-toggler:not(:checked) ~ .nav-scrollable {
|
||||
display: none;
|
||||
}
|
||||
@media (max-width: 640.98px) {
|
||||
.nav-panel {
|
||||
min-height: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.navbar-toggler:checked ~ .nav-scrollable {
|
||||
display: block;
|
||||
animation: menuEnter .28s ease both;
|
||||
.nav-brand-area {
|
||||
height: 78px;
|
||||
min-height: 78px;
|
||||
padding: 0 18px;
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
top: 18px;
|
||||
right: 18px;
|
||||
}
|
||||
|
||||
.nav-scrollable {
|
||||
display: none;
|
||||
padding: 15px 18px 20px;
|
||||
}
|
||||
|
||||
.navbar-toggler:checked ~ .nav-scrollable {
|
||||
display: flex;
|
||||
animation: menuEnter .22s ease both;
|
||||
}
|
||||
|
||||
.nav-bottom {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.nav-footer {
|
||||
margin-top: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes menuEnter {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
transform: translateY(-7px);
|
||||
}
|
||||
|
||||
to {
|
||||
@@ -160,52 +310,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
.nav-scrollable::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
.nav-scrollable::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, .2);
|
||||
background: #dce6d7;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
/* Desktop */
|
||||
@media (min-width: 641px) {
|
||||
.navbar-toggler {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-scrollable {
|
||||
display: block !important;
|
||||
height: calc(100vh - 76px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Menší displeje */
|
||||
@media (max-width: 640px) {
|
||||
.top-row {
|
||||
min-height: 70px;
|
||||
}
|
||||
|
||||
.nav-scrollable {
|
||||
min-height: auto;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.nav-item ::deep .nav-link,
|
||||
.nav-item ::deep .bi {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.navbar-toggler:checked ~ .nav-scrollable {
|
||||
animation: none;
|
||||
.nav-panel *,
|
||||
.nav-panel *::before,
|
||||
.nav-panel *::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user