Skip to content

Commit

Permalink
Merge pull request #457 from sbwalker/master
Browse files Browse the repository at this point in the history
more responsive design adjustments
  • Loading branch information
sbwalker authored May 9, 2020
2 parents 552df0c + f6f895b commit 8516e32
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 12 deletions.
4 changes: 3 additions & 1 deletion Oqtane.Client/Themes/BlazorTheme/Container.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
@inherits ContainerBase
<div class="container">
<div class="row px-4">
<ModuleActions /><h2><ModuleTitle /></h2>
<div class="d-flex flex-nowrap">
<ModuleActions /><h2><ModuleTitle /></h2>
</div>
<hr class="app-rule" />
</div>
<div class="row px-4">
Expand Down
8 changes: 5 additions & 3 deletions Oqtane.Client/Themes/Controls/MenuHorizontal.Razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
@attribute [OqtaneIgnore]
@if (MenuPages.Any())
{
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#Menu" aria-controls="Menu" aria-expanded="false" aria-label="Toggle Navigation">
<span class="navbar-toggler-icon"></span>
</button>
<span class="app-menu-toggler">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#Menu" aria-controls="Menu" aria-expanded="false" aria-label="Toggle Navigation">
<span class="navbar-toggler-icon"></span>
</button>
</span>
<div class="app-menu">
<div class="collapse navbar-collapse" id="Menu">
<ul class="navbar-nav mr-auto">
Expand Down
8 changes: 5 additions & 3 deletions Oqtane.Client/Themes/Controls/MenuVertical.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
@attribute [OqtaneIgnore]
@if (MenuPages.Any())
{
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#Menu" aria-controls="Menu" aria-expanded="false" aria-label="Toggle Navigation">
<span class="navbar-toggler-icon"></span>
</button>
<span class="app-menu-toggler">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#Menu" aria-controls="Menu" aria-expanded="false" aria-label="Toggle Navigation">
<span class="navbar-toggler-icon"></span>
</button>
</span>
<div class="app-menu">
<div class="collapse navbar-collapse" id="Menu">
<ul class="nav flex-column">
Expand Down
4 changes: 3 additions & 1 deletion Oqtane.Client/Themes/OqtaneTheme/Container.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
@inherits ContainerBase
<div class="container">
<div class="row px-4">
<ModuleActions /><h2><ModuleTitle /></h2>
<div class="d-flex flex-nowrap">
<ModuleActions /><h2><ModuleTitle /></h2>
</div>
<hr class="app-rule" />
</div>
<div class="row px-4">
Expand Down
2 changes: 1 addition & 1 deletion Oqtane.Client/Themes/OqtaneTheme/Default.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="controls-group"><UserProfile /> <Login /> <ControlPanel /></div>
</div>
</nav>
<div class="container">
<div class="content container">
<PaneLayout />
<div class="row px-4">
<Pane Name="Admin" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
top: -2px;
}

.app-menu {
width: 100%
}

.breadcrumb {
margin-bottom: 0;
}
Expand Down Expand Up @@ -159,7 +163,7 @@
}
}

@media (max-width: 767px) {
@media (max-width: 767px) {
.breadcrumbs {
position: fixed;
top: 150px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ body {
}

@media (max-width: 767px) {

.app-menu {
width: 100%
}

.navbar {
position: fixed;
top: 60px;
Expand All @@ -67,8 +72,8 @@ body {
margin-right: 25px;
}

.container {
.content {
position: relative;
top: 30px;
top: 60px;
}
}

0 comments on commit 8516e32

Please sign in to comment.