mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Adds desktop and mobile navigation menu for the Web app
This commit is contained in:
1 parent
8b1899630d
commit
511802948f
12 files changed
+559
-385
No files matched your search
@@ -1,15 +1,9 @@
|
|||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
<div class="page">
|
|
||||||
<div class="sidebar">
|
|
||||||
<NavMenu />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<main>
|
<div id="page">
|
||||||
<div class="top-row px-4">
|
<NavMenu />
|
||||||
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
<main>
|
||||||
</div>
|
<article>
|
||||||
|
|
||||||
<article class="content px-4">
|
|
||||||
@Body
|
@Body
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
.page {
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar {
|
|
||||||
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row {
|
|
||||||
background-color: #f7f7f7;
|
|
||||||
border-bottom: 1px solid #d6d5d5;
|
|
||||||
justify-content: flex-end;
|
|
||||||
height: 3.5rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,39 +1,118 @@
|
|||||||
<div class="top-row ps-3 navbar navbar-dark">
|
<input type="checkbox" id="hamburger-input" class="burger-shower" />
|
||||||
<div class="container-fluid">
|
<label id="hamburger-menu" for="hamburger-input">
|
||||||
<a class="navbar-brand" href="">Lumina.Presentation.Web</a>
|
<span></span>
|
||||||
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
|
<span></span>
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span></span>
|
||||||
</button>
|
<nav id="mobile-menu">
|
||||||
</div>
|
<div id="mobile-menu-content">
|
||||||
</div>
|
<div class="mobile-menu-heading">
|
||||||
|
Account
|
||||||
<div class="@NavMenuCssClass nav-scrollable" @onclick="ToggleNavMenu">
|
</div>
|
||||||
<nav class="flex-column">
|
<ul>
|
||||||
<div class="nav-item px-3">
|
<li><a href="account/login"><span>Login</span></a></li>
|
||||||
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
<li><a href="account/logout"><span>Logout</span></a></li>
|
||||||
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
|
<li><a href="account/register"><span>Register</span></a></li>
|
||||||
</NavLink>
|
<li><a href="account"><span>My Account</span></a></li>
|
||||||
</div>
|
</ul>
|
||||||
<div class="nav-item px-3">
|
<div class="mobile-menu-heading">
|
||||||
<NavLink class="nav-link" href="counter">
|
Tools
|
||||||
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Counter
|
</div>
|
||||||
</NavLink>
|
<ul>
|
||||||
</div>
|
<li><a href="tools/options"><span>Options</span></a></li>
|
||||||
<div class="nav-item px-3">
|
</ul>
|
||||||
<NavLink class="nav-link" href="weather">
|
<div class="mobile-menu-heading">
|
||||||
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Weather
|
Library
|
||||||
</NavLink>
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/management/libraries"><span>Manage libraries</span></a></li>
|
||||||
|
<li><a href="library/management/library"><span>Add media library</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="mobile-menu-heading">
|
||||||
|
Written Content
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/written-content/books"><span>Books</span></a></li>
|
||||||
|
<li><a href="library/written-content/magazines"><span>Magazines</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="mobile-menu-heading">
|
||||||
|
Audio
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/audio/music"><span>Music</span></a></li>
|
||||||
|
<li><a href="library/audio/interviews"><span>Interviews</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="mobile-menu-heading">
|
||||||
|
Video
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/video/movies"><span>Movies</span></a></li>
|
||||||
|
<li><a href="library/video/tvshows"><span>TV Shows</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="mobile-menu-heading">
|
||||||
|
Help
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="help/documentation"><span>Documentation</span></a></li>
|
||||||
|
<li><a href="help/about"><span>About</span></a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</label>
|
||||||
|
<nav class="menubar">
|
||||||
@code {
|
<ul>
|
||||||
private bool collapseNavMenu = true;
|
<li tabindex="0">
|
||||||
|
<input type="radio" id="account-menu" name="menu">
|
||||||
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
<label for="account-menu">Account</label>
|
||||||
|
<ul>
|
||||||
private void ToggleNavMenu()
|
<li><a href="account/login">Login</a></li>
|
||||||
{
|
<li><a href="account/logout">Logout</a></li>
|
||||||
collapseNavMenu = !collapseNavMenu;
|
<li><a href="account/register">Register</a></li>
|
||||||
}
|
<li><a href="account">My Account</a></li>
|
||||||
}
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li tabindex="0">
|
||||||
|
<input type="radio" id="tools-menu" name="menu">
|
||||||
|
<label for="tools-menu">Tools</label>
|
||||||
|
<ul>
|
||||||
|
<li><a href="tools/options">Options</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li tabindex="0">
|
||||||
|
<input type="radio" id="library-menu" name="menu">
|
||||||
|
<label for="library-menu">Library</label>
|
||||||
|
<ul>
|
||||||
|
<li tabindex="0"><a href="library/management/libraries">Manage libraries</a></li>
|
||||||
|
<li tabindex="0"><a href="library/management/library">Add new library</a></li>
|
||||||
|
<li class="has-submenu" tabindex="0">
|
||||||
|
<label>Written Content</label>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/written-content/books">Books</a></li>
|
||||||
|
<li><a href="library/written-content/magazines">Magazines</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="has-submenu" tabindex="0">
|
||||||
|
<label>Audio</label>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/audio/music">Music</a></li>
|
||||||
|
<li><a href="library/audio/interviews">Interviews</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="has-submenu" tabindex="0">
|
||||||
|
<label>Video</label>
|
||||||
|
<ul>
|
||||||
|
<li><a href="library/video/movies">Movies</a></li>
|
||||||
|
<li><a href="library/video/tvshows">TV Shows</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li tabindex="0">
|
||||||
|
<input type="radio" id="help-menu" name="menu">
|
||||||
|
<label for="help-menu">Help</label>
|
||||||
|
<ul>
|
||||||
|
<li><a href="help/documentation">Documentation</a></li>
|
||||||
|
<li><a href="help/about">About</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
@@ -1,83 +1,338 @@
|
|||||||
.navbar-toggler {
|
.overlay {
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
transition: opacity 0.50s, visibility 0.50s, height 0.50s;
|
||||||
|
-webkit-transition: opacity 0.50s, visibility 0.50s, height 0.50s;
|
||||||
|
overflow: hidden;
|
||||||
|
background: black;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-row {
|
#hamburger-input {
|
||||||
height: 3.5rem;
|
display: none;
|
||||||
background-color: rgba(0,0,0,0.4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-brand {
|
#hamburger-menu {
|
||||||
font-size: 1.1rem;
|
cursor: pointer;
|
||||||
|
position: fixed;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
border-right-color: #000000;
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
width: 46px;
|
||||||
|
height: 46px;
|
||||||
|
display: none;
|
||||||
|
z-index: 2;
|
||||||
|
padding: 5px 0;
|
||||||
|
margin: 0px;
|
||||||
|
font-family: 'Cabin', Sans-serif;
|
||||||
|
background: linear-gradient(to top, #424343 0%, #505050 50%, #5E5D5D 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bi {
|
#hamburger-menu > span {
|
||||||
|
display: block;
|
||||||
|
width: 30px;
|
||||||
|
height: 4px;
|
||||||
|
margin: 6px auto;
|
||||||
|
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu:hover {
|
||||||
|
background: linear-gradient(to top, #505050 0%, #5E5D5D 50%, #6A6969 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu:hover > span {
|
||||||
|
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
|
||||||
|
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu #mobile-menu {
|
||||||
|
visibility: hidden;
|
||||||
|
position: fixed;
|
||||||
|
margin: 0px;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
border-right-color: #000000;
|
||||||
|
overflow: auto;
|
||||||
|
color: #6DCBFE;
|
||||||
|
text-align: center;
|
||||||
|
background: #4F4F4F;
|
||||||
|
transition: 0.50s;
|
||||||
|
-webkit-transition: 0.50s;
|
||||||
|
padding: 0px 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mobile-menu-content {
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-top-color: #000000;
|
||||||
|
border-left-color: #000000;
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-left: -6px;
|
||||||
|
margin-right: -5px;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
color: #6DCBFE;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: 0px 0px 2px rgba(0,0,0,1);
|
||||||
|
/*background: #000 url(../images/metal-plate.png);*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu-heading {
|
||||||
|
height: 35px;
|
||||||
|
font-size: 28px;
|
||||||
|
background: rgb(10, 11, 11);
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
border-right-color: #000000;
|
||||||
|
width: 100%;
|
||||||
|
background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636);
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu ul {
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu li {
|
||||||
|
width: 100%;
|
||||||
|
list-style-type: none;
|
||||||
|
line-height: 2rem;
|
||||||
|
display: flex;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 10px;
|
||||||
|
text-shadow: none;
|
||||||
|
text-align: left;
|
||||||
|
border: 1px solid #333333;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
border-right-color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu li:nth-child(even) {
|
||||||
|
background-color: #191E21;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu li:nth-child(odd) {
|
||||||
|
background-color: #28292B;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu a {
|
||||||
|
padding-left: 5px;
|
||||||
|
width: 100%;
|
||||||
|
color: #6DCBFE;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: 'Arial';
|
||||||
|
text-decoration: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
margin-left: 0.3em;
|
||||||
width: 1.25rem;
|
|
||||||
height: 1.25rem;
|
|
||||||
margin-right: 0.75rem;
|
|
||||||
top: -1px;
|
|
||||||
background-size: cover;
|
|
||||||
}
|
}
|
||||||
|
#hamburger-menu a:focus,
|
||||||
.bi-house-door-fill-nav-menu {
|
#hamburger-menu a:active {
|
||||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
|
color: #7CACF8;
|
||||||
}
|
|
||||||
|
|
||||||
.bi-plus-square-fill-nav-menu {
|
|
||||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
|
|
||||||
}
|
|
||||||
|
|
||||||
.bi-list-nested-nav-menu {
|
|
||||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item:first-of-type {
|
|
||||||
padding-top: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item:last-of-type {
|
#hamburger-menu a:hover {
|
||||||
padding-bottom: 1rem;
|
color: #FFFFFF;
|
||||||
|
background: rgb(10, 11, 11);
|
||||||
|
background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item ::deep a {
|
#hamburger-input:checked + #hamburger-menu {
|
||||||
color: #d7d7d7;
|
background: linear-gradient(to bottom, #424343 0%, #505050 50%, #5E5D5D 100%);
|
||||||
border-radius: 4px;
|
border: 1px solid #777777;
|
||||||
height: 3rem;
|
border-top: 1px solid #000000;
|
||||||
display: flex;
|
border-left: 1px solid #000000;
|
||||||
align-items: center;
|
}
|
||||||
line-height: 3rem;
|
|
||||||
|
#hamburger-input:checked + #hamburger-menu #mobile-menu {
|
||||||
|
visibility: visible;
|
||||||
|
left: 0;
|
||||||
|
top: 71px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item ::deep a.active {
|
#hamburger-input:checked + #hamburger-menu {
|
||||||
background-color: rgba(255,255,255,0.37);
|
z-index: 2;
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item ::deep a:hover {
|
#hamburger-input:checked ~ .overlay {
|
||||||
background-color: rgba(255,255,255,0.1);
|
visibility: visible;
|
||||||
color: white;
|
opacity: 0.5;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 641px) {
|
.menubar {
|
||||||
.navbar-toggler {
|
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar ul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar > ul > li {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar label,
|
||||||
|
.menubar a {
|
||||||
|
display: block;
|
||||||
|
padding: 2px 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: default;
|
||||||
|
color: #6DCBFE;
|
||||||
|
position: relative;
|
||||||
|
user-select: none;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar > ul > li > label:hover,
|
||||||
|
.menubar > ul > li > a:hover {
|
||||||
|
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
|
||||||
|
border-left: 1px solid #777777;
|
||||||
|
border-right: 1px solid #000000;
|
||||||
|
border-top: 1px solid #505050;
|
||||||
|
border-bottom: 1px solid #222222;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar input[type="radio"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapse {
|
.menubar ul ul {
|
||||||
/* Never collapse the sidebar for wide screens */
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
min-width: 150px;
|
||||||
|
background: #4F4F4F;
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
border-right-color: #000000;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar ul ul li {
|
||||||
|
background: #232323;
|
||||||
|
border-left: 1px solid #000000;
|
||||||
|
border-right: 1px solid #777777;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar ul ul li:first-child {
|
||||||
|
border-top: 1px solid #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar ul ul li:last-child {
|
||||||
|
border-bottom: 1px solid #777777;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar ul ul li > label:hover,
|
||||||
|
.menubar ul ul li > a:hover {
|
||||||
|
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-right-color: #000000;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar ul ul ul {
|
||||||
|
left: 100%;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar li:focus-within > ul {
|
||||||
|
display: block;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar > ul > li:focus-within > label,
|
||||||
|
.menubar > ul > li:focus-within > a {
|
||||||
|
background-color: #28292B;
|
||||||
|
background: radial-gradient( 115% 115% at 68% 70%, #30303088 0%, #20202044 50%, #101010 100% );
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-top: 1px solid #000000;
|
||||||
|
border-left: 1px solid #000000;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar .has-submenu > label::after,
|
||||||
|
.menubar .has-submenu > a::after {
|
||||||
|
content: " ▶";
|
||||||
|
font-size: 0.6em;
|
||||||
|
position: absolute;
|
||||||
|
right: 5px;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar .has-submenu:focus-within > label,
|
||||||
|
.menubar .has-submenu:focus-within > a {
|
||||||
|
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
|
||||||
|
border: 1px solid #777777;
|
||||||
|
border-right-color: #000000;
|
||||||
|
border-bottom-color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar .has-submenu:focus-within > label::after,
|
||||||
|
.menubar .has-submenu:focus-within > a::after {
|
||||||
|
content: " ▼";
|
||||||
|
color: #FF0000;
|
||||||
|
transform: translateY(-50%) rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar .has-submenu:focus-within > label,
|
||||||
|
.menubar .has-submenu:focus-within > a {
|
||||||
|
color: #7CACF8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* For phones */
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.menubar {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamburger-menu {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-scrollable {
|
#mobile-menu {
|
||||||
/* Allow sidebar to scroll for tall menus */
|
height: calc(100% - 70px);
|
||||||
height: calc(100vh - 3.5rem);
|
}
|
||||||
overflow-y: auto;
|
}
|
||||||
|
|
||||||
|
/* For desktop: */
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.menubar {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
visibility: hidden !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,4 +18,9 @@
|
|||||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.7" PrivateAssets="all" />
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.7" PrivateAssets="all" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="wwwroot\common\images\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
@page "/counter"
|
|
||||||
|
|
||||||
<PageTitle>Counter</PageTitle>
|
|
||||||
|
|
||||||
<h1>Counter</h1>
|
|
||||||
|
|
||||||
<p role="status">Current count: @currentCount</p>
|
|
||||||
|
|
||||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
|
||||||
|
|
||||||
@code {
|
|
||||||
private int currentCount = 0;
|
|
||||||
|
|
||||||
private void IncrementCount()
|
|
||||||
{
|
|
||||||
currentCount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,3 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
|
|
||||||
<PageTitle>Home</PageTitle>
|
<PageTitle>Home</PageTitle>
|
||||||
|
|
||||||
<h1>Hello, world!</h1>
|
|
||||||
|
|
||||||
Welcome to your new app.
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
@page "/weather"
|
|
||||||
@inject HttpClient Http
|
|
||||||
|
|
||||||
<PageTitle>Weather</PageTitle>
|
|
||||||
|
|
||||||
<h1>Weather</h1>
|
|
||||||
|
|
||||||
<p>This component demonstrates fetching data from the server.</p>
|
|
||||||
|
|
||||||
@if (forecasts == null)
|
|
||||||
{
|
|
||||||
<p><em>Loading...</em></p>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Date</th>
|
|
||||||
<th>Temp. (C)</th>
|
|
||||||
<th>Temp. (F)</th>
|
|
||||||
<th>Summary</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach (var forecast in forecasts)
|
|
||||||
{
|
|
||||||
<tr>
|
|
||||||
<td>@forecast.Date.ToShortDateString()</td>
|
|
||||||
<td>@forecast.TemperatureC</td>
|
|
||||||
<td>@forecast.TemperatureF</td>
|
|
||||||
<td>@forecast.Summary</td>
|
|
||||||
</tr>
|
|
||||||
}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
}
|
|
||||||
|
|
||||||
@code {
|
|
||||||
private WeatherForecast[]? forecasts;
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
|
|
||||||
}
|
|
||||||
|
|
||||||
public class WeatherForecast
|
|
||||||
{
|
|
||||||
public DateOnly Date { get; set; }
|
|
||||||
|
|
||||||
public int TemperatureC { get; set; }
|
|
||||||
|
|
||||||
public string? Summary { get; set; }
|
|
||||||
|
|
||||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +1,10 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||||
"iisSettings": {
|
|
||||||
"windowsAuthentication": false,
|
|
||||||
"anonymousAuthentication": true,
|
|
||||||
"iisExpress": {
|
|
||||||
"applicationUrl": "http://localhost:4729",
|
|
||||||
"sslPort": 44370
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"http": {
|
"http": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
//"launchBrowser": true,
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
"applicationUrl": "http://localhost:5012",
|
"applicationUrl": "http://localhost:5012",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
@@ -22,20 +14,12 @@
|
|||||||
"https": {
|
"https": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
//"launchBrowser": true,
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
"applicationUrl": "https://localhost:7112;http://localhost:5012",
|
"applicationUrl": "https://localhost:7112;http://localhost:5012",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"IIS Express": {
|
|
||||||
"commandName": "IISExpress",
|
|
||||||
"launchBrowser": true,
|
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+61
-103
@@ -1,103 +1,61 @@
|
|||||||
html, body {
|
#blazor-error-ui {
|
||||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
background: lightyellow;
|
||||||
}
|
bottom: 0;
|
||||||
|
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
||||||
h1:focus {
|
display: none;
|
||||||
outline: none;
|
left: 0;
|
||||||
}
|
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
||||||
|
position: fixed;
|
||||||
a, .btn-link {
|
width: 100%;
|
||||||
color: #0071c1;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
#blazor-error-ui .dismiss {
|
||||||
color: #fff;
|
cursor: pointer;
|
||||||
background-color: #1b6ec2;
|
position: absolute;
|
||||||
border-color: #1861ac;
|
right: 0.75rem;
|
||||||
}
|
top: 0.5rem;
|
||||||
|
}
|
||||||
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
|
|
||||||
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
|
.blazor-error-boundary {
|
||||||
}
|
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
|
||||||
|
padding: 1rem 1rem 1rem 3.7rem;
|
||||||
.content {
|
color: white;
|
||||||
padding-top: 1.1rem;
|
}
|
||||||
}
|
|
||||||
|
.blazor-error-boundary::after {
|
||||||
.valid.modified:not([type=checkbox]) {
|
content: "An error has occurred."
|
||||||
outline: 1px solid #26b050;
|
}
|
||||||
}
|
|
||||||
|
.loading-progress {
|
||||||
.invalid {
|
position: relative;
|
||||||
outline: 1px solid red;
|
display: block;
|
||||||
}
|
width: 8rem;
|
||||||
|
height: 8rem;
|
||||||
.validation-message {
|
margin: 20vh auto 1rem auto;
|
||||||
color: red;
|
}
|
||||||
}
|
|
||||||
|
.loading-progress circle {
|
||||||
#blazor-error-ui {
|
fill: none;
|
||||||
background: lightyellow;
|
stroke: #e0e0e0;
|
||||||
bottom: 0;
|
stroke-width: 0.6rem;
|
||||||
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
transform-origin: 50% 50%;
|
||||||
display: none;
|
transform: rotate(-90deg);
|
||||||
left: 0;
|
}
|
||||||
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
|
||||||
position: fixed;
|
.loading-progress circle:last-child {
|
||||||
width: 100%;
|
stroke: #1b6ec2;
|
||||||
z-index: 1000;
|
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
|
||||||
}
|
transition: stroke-dasharray 0.05s ease-in-out;
|
||||||
|
}
|
||||||
#blazor-error-ui .dismiss {
|
|
||||||
cursor: pointer;
|
.loading-progress-text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0.75rem;
|
text-align: center;
|
||||||
top: 0.5rem;
|
font-weight: bold;
|
||||||
}
|
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
|
||||||
|
}
|
||||||
.blazor-error-boundary {
|
|
||||||
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
|
.loading-progress-text:after {
|
||||||
padding: 1rem 1rem 1rem 3.7rem;
|
content: var(--blazor-load-percentage-text, "Loading");
|
||||||
color: white;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.blazor-error-boundary::after {
|
|
||||||
content: "An error has occurred."
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress {
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
width: 8rem;
|
|
||||||
height: 8rem;
|
|
||||||
margin: 20vh auto 1rem auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress circle {
|
|
||||||
fill: none;
|
|
||||||
stroke: #e0e0e0;
|
|
||||||
stroke-width: 0.6rem;
|
|
||||||
transform-origin: 50% 50%;
|
|
||||||
transform: rotate(-90deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress circle:last-child {
|
|
||||||
stroke: #1b6ec2;
|
|
||||||
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
|
|
||||||
transition: stroke-dasharray 0.05s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress-text {
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bold;
|
|
||||||
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading-progress-text:after {
|
|
||||||
content: var(--blazor-load-percentage-text, "Loading");
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
color: #c02d76;
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
:root {
|
||||||
|
--background-color: #222;
|
||||||
|
--border-color-light: #777777;
|
||||||
|
--border-color-dark: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
min-height: 100%;
|
||||||
|
height: 100%;
|
||||||
|
font-family: 'Arial';
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-size: 14px;
|
||||||
|
background-color: var(--background-color);
|
||||||
|
color: #6DCBFE;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#app {
|
||||||
|
margin: auto;
|
||||||
|
min-width: 399px;
|
||||||
|
min-height: 100vh;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: var(--background-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
#page {
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
border-color: var(--border-color-light) var(--border-color-dark) var(--border-color-dark) var(--border-color-light);
|
||||||
|
background-color: #222;
|
||||||
|
min-width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* For phones */
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
#app {
|
||||||
|
max-width: 100%;
|
||||||
|
width: 99.5%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* For desktop: */
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -6,8 +6,8 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Lumina.Presentation.Web</title>
|
<title>Lumina.Presentation.Web</title>
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
|
<link rel="stylesheet" href="css/blazor.css" />
|
||||||
<link rel="stylesheet" href="css/app.css" />
|
<link rel="stylesheet" href="css/site.css" />
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
<link rel="icon" type="image/png" href="favicon.png" />
|
||||||
<link href="Lumina.Presentation.Web.styles.css" rel="stylesheet" />
|
<link href="Lumina.Presentation.Web.styles.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in new issue
Block a user