diff options
Diffstat (limited to 'Layout')
| -rw-r--r-- | Layout/MainLayout.razor | 11 | ||||
| -rw-r--r-- | Layout/MainLayout.razor.css | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Layout/MainLayout.razor b/Layout/MainLayout.razor new file mode 100644 index 0000000..8e9f6bd --- /dev/null +++ b/Layout/MainLayout.razor @@ -0,0 +1,11 @@ +@inherits LayoutComponentBase + +<link href="@(nameof(HyperBooru)).styles.css" rel="stylesheet" /> + +<Titlebar/> + +<MobileMenu/> + +<div id="content"> + @Body +</div> diff --git a/Layout/MainLayout.razor.css b/Layout/MainLayout.razor.css new file mode 100644 index 0000000..c2b5603 --- /dev/null +++ b/Layout/MainLayout.razor.css @@ -0,0 +1,9 @@ +div#content { + flex: 1 1 calc(100vh - 59px); + overflow-x: hidden; + overflow-y: auto; +} + +body.mobile-menu-visible div#content { + display: none; +} |
