CSS separation, multi-tenancy fixes
This commit is contained in:
		
							
								
								
									
										13
									
								
								Oqtane.Client/Themes/OqtaneTheme/Container.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Oqtane.Client/Themes/OqtaneTheme/Container.razor
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
@namespace Oqtane.Themes.OqtaneTheme
 | 
			
		||||
@inherits ContainerBase
 | 
			
		||||
<div class="container">
 | 
			
		||||
    <div class="row px-4">
 | 
			
		||||
        <ModuleActions /><h2><ModuleTitle /></h2>
 | 
			
		||||
        <hr style="width: 100%; color: gray; height: 1px; background-color:gray;" />
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="row px-4">
 | 
			
		||||
        <div class="container">
 | 
			
		||||
            <ModuleInstance />
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										33
									
								
								Oqtane.Client/Themes/OqtaneTheme/Default.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								Oqtane.Client/Themes/OqtaneTheme/Default.razor
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
@namespace Oqtane.Themes.OqtaneTheme
 | 
			
		||||
@inherits ThemeBase
 | 
			
		||||
 | 
			
		||||
<div class="sidebar">
 | 
			
		||||
    <div align="center"><Logo /></div>
 | 
			
		||||
    <Menu />
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="main">
 | 
			
		||||
    <div class="top-row px-4">
 | 
			
		||||
        <h1>@PageState.Page.Name</h1> <div class="ml-md-auto"><UserProfile /> <Login /> <ControlPanel /></div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="container">
 | 
			
		||||
        <div class="row px-4">
 | 
			
		||||
            <Pane Name="Top" />
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row px-4">
 | 
			
		||||
            <Pane Name="Bottom" />
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row px-4">
 | 
			
		||||
            <Pane Name="Admin" />
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@code {
 | 
			
		||||
    public override string Panes { get { return "Left;Right"; } }
 | 
			
		||||
 | 
			
		||||
    protected override async Task OnParametersSetAsync()
 | 
			
		||||
    {
 | 
			
		||||
        await IncludeCSS("Theme.css");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										15
									
								
								Oqtane.Client/Themes/OqtaneTheme/Horizontal.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Oqtane.Client/Themes/OqtaneTheme/Horizontal.razor
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
@namespace Oqtane.Themes.OqtaneTheme
 | 
			
		||||
@inherits LayoutBase
 | 
			
		||||
 | 
			
		||||
<div class="row px-4">
 | 
			
		||||
    <div class="col-sm">
 | 
			
		||||
        <Pane Name="Left" />
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="col-sm">
 | 
			
		||||
        <Pane Name="Right" />
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@code {
 | 
			
		||||
    public override string Panes { get { return "Left;Right"; } }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										26
									
								
								Oqtane.Client/Themes/OqtaneTheme/Layouts.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								Oqtane.Client/Themes/OqtaneTheme/Layouts.razor
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,26 @@
 | 
			
		||||
@namespace Oqtane.Themes.OqtaneTheme
 | 
			
		||||
@inherits ThemeBase
 | 
			
		||||
 | 
			
		||||
<div class="sidebar">
 | 
			
		||||
    <div align="center"><Logo /></div>
 | 
			
		||||
    <Menu />
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="main">
 | 
			
		||||
    <div class="top-row px-4">
 | 
			
		||||
        <h1>@PageState.Page.Name</h1> <div class="ml-md-auto"><UserProfile /> <Login /> <ControlPanel /></div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="container">
 | 
			
		||||
        <PaneLayout />
 | 
			
		||||
        <div class="row px-4">
 | 
			
		||||
            <Pane Name="Admin" />
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@code {
 | 
			
		||||
    protected override async Task OnParametersSetAsync()
 | 
			
		||||
    {
 | 
			
		||||
        await IncludeCSS("Theme.css");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										20
									
								
								Oqtane.Client/Themes/OqtaneTheme/Theme.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Oqtane.Client/Themes/OqtaneTheme/Theme.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
 | 
			
		||||
namespace Oqtane.Themes.OqtaneTheme
 | 
			
		||||
{
 | 
			
		||||
    public class Theme : ITheme
 | 
			
		||||
    {
 | 
			
		||||
        public Dictionary<string, string> Properties
 | 
			
		||||
        {
 | 
			
		||||
            get
 | 
			
		||||
            {
 | 
			
		||||
                Dictionary<string, string> properties = new Dictionary<string, string>
 | 
			
		||||
                {
 | 
			
		||||
                    { "Name", "Oqtane Theme" },
 | 
			
		||||
                    { "Version", "1.0.0" }
 | 
			
		||||
                };
 | 
			
		||||
                return properties;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								Oqtane.Client/Themes/OqtaneTheme/Vertical.razor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Oqtane.Client/Themes/OqtaneTheme/Vertical.razor
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
@namespace Oqtane.Themes.OqtaneTheme
 | 
			
		||||
@inherits LayoutBase
 | 
			
		||||
 | 
			
		||||
<div class="row px-4">
 | 
			
		||||
    <Pane Name="Top" />
 | 
			
		||||
</div>
 | 
			
		||||
<div class="row px-4">
 | 
			
		||||
    <Pane Name="Bottom" />
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@code {
 | 
			
		||||
    public override string Panes { get { return "Top;Bottom"; } }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user