+
@@ -12,8 +15,13 @@
@Body
-
-
+
+@code{
+
+ protected bool navLarge { get; set; } = true;
+ protected string sideClass { get; set; } = "sidebar";
+}
\ No newline at end of file
diff --git a/EgwCoreLib.BlazorTest/Shared/MainLayout.razor.css b/EgwCoreLib.BlazorTest/Shared/MainLayout.razor.css
index 551e4b2..8dc4822 100644
--- a/EgwCoreLib.BlazorTest/Shared/MainLayout.razor.css
+++ b/EgwCoreLib.BlazorTest/Shared/MainLayout.razor.css
@@ -8,22 +8,22 @@ main {
flex: 1;
}
-.sidebar {
- background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
+.sidebar, .sidebarSmall {
+ background-image: linear-gradient(180deg, rgb(5, 39, 103) 20%, #3aa6ff 90%);
}
.top-row {
background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5;
- justify-content: flex-end;
height: 3.5rem;
- display: flex;
align-items: center;
+ /*justify-content: space-evenly;
+ display: flex;*/
}
.top-row ::deep a, .top-row .btn-link {
white-space: nowrap;
- margin-left: 1.5rem;
+ margin-left: 0.5rem;
}
.top-row a:first-child {
@@ -45,13 +45,34 @@ main {
}
}
+.bottom-row {
+ color: #dedede;
+ background-color: #000000;
+ height: 1.6rem;
+ align-items: center;
+}
+
+@media (max-width: 640.99px) {
+ .main > div {
+ padding-left: 0.5rem !important;
+ padding-right: 0.5rem !important;
+ }
+}
+
@media (min-width: 641px) {
.page {
flex-direction: row;
}
.sidebar {
- width: 250px;
+ width: 230px;
+ height: 100vh;
+ position: sticky;
+ top: 0;
+ }
+
+ .sidebarSmall {
+ width: 80px;
height: 100vh;
position: sticky;
top: 0;
@@ -64,7 +85,18 @@ main {
}
.top-row, article {
- padding-left: 2rem !important;
- padding-right: 1.5rem !important;
+ padding-left: 1rem !important;
+ padding-right: 1.0rem !important;
+ }
+
+ .bottom-row {
+ position: fixed;
+ bottom: 0;
+ z-index: 1;
+ }
+
+ .main > div {
+ /*padding-left: 0.5rem !important;
+ padding-right: 0.5rem !important;*/
}
}
diff --git a/EgwCoreLib.BlazorTest/Shared/NavMenu.razor b/EgwCoreLib.BlazorTest/Shared/NavMenu.razor
index 8a334bd..40b1c9f 100644
--- a/EgwCoreLib.BlazorTest/Shared/NavMenu.razor
+++ b/EgwCoreLib.BlazorTest/Shared/NavMenu.razor
@@ -9,24 +9,49 @@
+
+