@ngx-smz/layout 19.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/fesm2022/ngx-smz-layout.mjs +1641 -0
- package/fesm2022/ngx-smz-layout.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/config/config.d.ts +23 -0
- package/lib/config/index.d.ts +2 -0
- package/lib/config/provide.d.ts +4 -0
- package/lib/errors/access.d.ts +6 -0
- package/lib/errors/error.d.ts +6 -0
- package/lib/errors/errors-pages-service.d.ts +41 -0
- package/lib/errors/errors.routes.d.ts +2 -0
- package/lib/errors/notfound.d.ts +6 -0
- package/lib/layout/component/app.configurator.d.ts +97 -0
- package/lib/layout/component/app.floatingconfigurator.d.ts +9 -0
- package/lib/layout/component/app.footer.d.ts +21 -0
- package/lib/layout/component/app.layout.d.ts +31 -0
- package/lib/layout/component/app.menu.d.ts +8 -0
- package/lib/layout/component/app.menuitem.d.ts +26 -0
- package/lib/layout/component/app.sidebar.d.ts +8 -0
- package/lib/layout/component/app.topbar.d.ts +41 -0
- package/lib/layout/service/layout.service.d.ts +54 -0
- package/lib/shared/component-injector/directives/component-injector.directive.d.ts +20 -0
- package/lib/shared/component-injector/interfaces/inject-content.d.ts +8 -0
- package/lib/shared/component-injector/interfaces/injectable.d.ts +35 -0
- package/lib/shared/component-injector/services/inject-component.service.d.ts +12 -0
- package/package.json +26 -0
- package/public-api.d.ts +12 -0
- package/resources/layout/_core.scss +24 -0
- package/resources/layout/_footer.scss +8 -0
- package/resources/layout/_main.scss +13 -0
- package/resources/layout/_menu.scss +160 -0
- package/resources/layout/_mixins.scss +15 -0
- package/resources/layout/_preloading.scss +47 -0
- package/resources/layout/_responsive.scss +110 -0
- package/resources/layout/_topbar.scss +164 -0
- package/resources/layout/_typography.scss +68 -0
- package/resources/layout/_utils.scss +25 -0
- package/resources/layout/layout.scss +13 -0
- package/resources/layout/variables/_common.scss +20 -0
- package/resources/layout/variables/_dark.scss +5 -0
- package/resources/layout/variables/_light.scss +5 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { LayoutService } from '../service/layout.service';
|
|
3
|
+
import { InjectableComponent } from '../../shared/component-injector/interfaces/injectable';
|
|
4
|
+
import { PrimeNG } from 'primeng/config';
|
|
5
|
+
import { MenuItem } from 'primeng/api';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AppTopbar {
|
|
8
|
+
primeNG: PrimeNG;
|
|
9
|
+
data: Signal<Topbar>;
|
|
10
|
+
layoutService: LayoutService;
|
|
11
|
+
toggleDarkMode(): void;
|
|
12
|
+
handleMissingImage(event: Event, placeholder: string): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppTopbar, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppTopbar, "app-topbar", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
export interface Topbar {
|
|
17
|
+
showMenuToggle?: boolean;
|
|
18
|
+
showConfigurator?: boolean;
|
|
19
|
+
showDarkModeToggle?: boolean;
|
|
20
|
+
logoPath?: {
|
|
21
|
+
light?: string;
|
|
22
|
+
dark?: string;
|
|
23
|
+
};
|
|
24
|
+
appName?: string;
|
|
25
|
+
features?: {
|
|
26
|
+
icon?: Signal<string>;
|
|
27
|
+
avatar?: Signal<string>;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
tooltip?: string;
|
|
31
|
+
menuItems?: MenuItem[];
|
|
32
|
+
}[];
|
|
33
|
+
menuItems?: {
|
|
34
|
+
icon?: string;
|
|
35
|
+
label?: string;
|
|
36
|
+
tooltip?: string;
|
|
37
|
+
routerLink?: string;
|
|
38
|
+
callback?: () => void;
|
|
39
|
+
component?: InjectableComponent<unknown>;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface LayoutConfig {
|
|
3
|
+
preset?: string;
|
|
4
|
+
primary?: string;
|
|
5
|
+
surface?: string | undefined | null;
|
|
6
|
+
darkTheme?: boolean;
|
|
7
|
+
menuMode?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LayoutState {
|
|
10
|
+
staticMenuDesktopInactive?: boolean;
|
|
11
|
+
overlayMenuActive?: boolean;
|
|
12
|
+
configSidebarVisible?: boolean;
|
|
13
|
+
staticMenuMobileActive?: boolean;
|
|
14
|
+
menuHoverActive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface MenuChangeEvent {
|
|
17
|
+
key: string;
|
|
18
|
+
routeEvent?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class LayoutService {
|
|
21
|
+
private readonly config;
|
|
22
|
+
layoutConfig: import("@angular/core").WritableSignal<LayoutConfig>;
|
|
23
|
+
layoutState: import("@angular/core").WritableSignal<LayoutState>;
|
|
24
|
+
private configUpdate;
|
|
25
|
+
private overlayOpen;
|
|
26
|
+
private menuSource;
|
|
27
|
+
private resetSource;
|
|
28
|
+
menuSource$: import("rxjs").Observable<MenuChangeEvent>;
|
|
29
|
+
resetSource$: import("rxjs").Observable<unknown>;
|
|
30
|
+
configUpdate$: import("rxjs").Observable<LayoutConfig>;
|
|
31
|
+
overlayOpen$: import("rxjs").Observable<any>;
|
|
32
|
+
theme: import("@angular/core").Signal<"light" | "dark">;
|
|
33
|
+
isSidebarActive: import("@angular/core").Signal<boolean>;
|
|
34
|
+
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
35
|
+
getPrimary: import("@angular/core").Signal<string>;
|
|
36
|
+
getSurface: import("@angular/core").Signal<string>;
|
|
37
|
+
isOverlay: import("@angular/core").Signal<boolean>;
|
|
38
|
+
transitionComplete: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
private initialized;
|
|
40
|
+
constructor();
|
|
41
|
+
private handleDarkModeTransition;
|
|
42
|
+
private startViewTransition;
|
|
43
|
+
toggleDarkMode(config?: LayoutConfig): void;
|
|
44
|
+
private onTransitionEnd;
|
|
45
|
+
onMenuToggle(): void;
|
|
46
|
+
isDesktop(): boolean;
|
|
47
|
+
isMobile(): boolean;
|
|
48
|
+
onConfigUpdate(): void;
|
|
49
|
+
onMenuStateChange(event: MenuChangeEvent): void;
|
|
50
|
+
reset(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ViewContainerRef, AfterContentInit, OnDestroy, EventEmitter, ComponentRef } from '@angular/core';
|
|
2
|
+
import { InjectableComponent } from '../interfaces/injectable';
|
|
3
|
+
import { InjectComponentService } from '../services/inject-component.service';
|
|
4
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ComponentInjectorDirective implements AfterContentInit, OnDestroy {
|
|
7
|
+
viewContainerRef: ViewContainerRef;
|
|
8
|
+
private service;
|
|
9
|
+
componentInjector: InjectableComponent<unknown>;
|
|
10
|
+
context: unknown;
|
|
11
|
+
componentCreated: EventEmitter<ComponentRef<ComponentType<unknown>>>;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
constructor(viewContainerRef: ViewContainerRef, service: InjectComponentService);
|
|
14
|
+
ngAfterContentInit(): void;
|
|
15
|
+
addComp(): void;
|
|
16
|
+
removeComp(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentInjectorDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentInjectorDirective, "ng-template[componentInjector]", never, { "componentInjector": { "alias": "componentInjector"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "componentCreated": "componentCreated"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { InjectableContentEntity, InjectableOutput } from './inject-content';
|
|
3
|
+
import { ComponentRef, WritableSignal } from '@angular/core';
|
|
4
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
|
+
export interface ComponentData {
|
|
6
|
+
component: ComponentDataBase | null;
|
|
7
|
+
inputs: InjectableContentEntity[];
|
|
8
|
+
outputs?: InjectableOutput[];
|
|
9
|
+
ref?: {
|
|
10
|
+
componentRef: ComponentRef<unknown> | null;
|
|
11
|
+
};
|
|
12
|
+
visibilityDependsOn?: {
|
|
13
|
+
propertyName: string;
|
|
14
|
+
formId: string;
|
|
15
|
+
reversed: boolean;
|
|
16
|
+
condition?: unknown;
|
|
17
|
+
conditions?: unknown[];
|
|
18
|
+
};
|
|
19
|
+
componentId?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ComponentDataBase {
|
|
22
|
+
isValid: WritableSignal<boolean>;
|
|
23
|
+
onValidationError$?: BehaviorSubject<boolean>;
|
|
24
|
+
getData: () => unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface InjectableComponent<TComponent> {
|
|
27
|
+
component: ComponentType<TComponent> | null;
|
|
28
|
+
inputs: InjectableContentEntity[];
|
|
29
|
+
outputs: InjectableOutput[];
|
|
30
|
+
ref?: {
|
|
31
|
+
componentRef: ComponentRef<unknown> | null;
|
|
32
|
+
};
|
|
33
|
+
styleClass?: string;
|
|
34
|
+
componentId?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type DynamicComponent = Record<string, unknown>;
|
|
4
|
+
export declare class InjectComponentService {
|
|
5
|
+
componentRefs: Map<string, ComponentRef<DynamicComponent>>;
|
|
6
|
+
setComponent(key: string, ref: ComponentRef<DynamicComponent>): void;
|
|
7
|
+
updateComponent(key: string, input: string, value: unknown): void;
|
|
8
|
+
deleteComponent(key: string): void;
|
|
9
|
+
getComponent(key: string): ComponentRef<DynamicComponent> | undefined;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InjectComponentService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InjectComponentService>;
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ngx-smz/layout",
|
|
3
|
+
"version": "19.2.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.2.0",
|
|
6
|
+
"@angular/core": "^19.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"module": "fesm2022/ngx-smz-layout.mjs",
|
|
16
|
+
"typings": "index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"default": "./fesm2022/ngx-smz-layout.mjs"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './lib/layout/component/app.layout';
|
|
2
|
+
export * from './lib/config';
|
|
3
|
+
export type { Footer } from './lib/layout/component/app.footer';
|
|
4
|
+
export type { Topbar } from './lib/layout/component/app.topbar';
|
|
5
|
+
export { AppFloatingConfigurator } from './lib/layout/component/app.floatingconfigurator';
|
|
6
|
+
export { AccessPageComponent } from './lib/errors/access';
|
|
7
|
+
export { ErrorPageComponent } from './lib/errors/error';
|
|
8
|
+
export { NotfoundPageComponent } from './lib/errors/notfound';
|
|
9
|
+
export { ErrorsRoutes } from './lib/errors/errors.routes';
|
|
10
|
+
export { ErrorPagesConfigService } from './lib/errors/errors-pages-service';
|
|
11
|
+
export { LayoutService } from './lib/layout/service/layout.service';
|
|
12
|
+
export type { LayoutConfig, LayoutState } from './lib/layout/service/layout.service';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
html {
|
|
2
|
+
height: 100%;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
font-family: 'Lato', sans-serif;
|
|
8
|
+
color: var(--text-color);
|
|
9
|
+
background-color: var(--surface-ground);
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
min-height: 100%;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
line-height: 1.2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.layout-wrapper {
|
|
23
|
+
min-height: 100vh;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.layout-main-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 100vh;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
padding: 6rem 2rem 0 2rem;
|
|
7
|
+
transition: margin-left var(--layout-section-transition-duration);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.layout-main {
|
|
11
|
+
flex: 1 1 auto;
|
|
12
|
+
padding-bottom: 2rem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@use 'mixins' as *;
|
|
2
|
+
|
|
3
|
+
.layout-sidebar {
|
|
4
|
+
position: fixed;
|
|
5
|
+
width: 20rem;
|
|
6
|
+
height: calc(100vh - 8rem);
|
|
7
|
+
z-index: 999;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
user-select: none;
|
|
10
|
+
top: 6rem;
|
|
11
|
+
left: 2rem;
|
|
12
|
+
transition:
|
|
13
|
+
transform var(--layout-section-transition-duration),
|
|
14
|
+
left var(--layout-section-transition-duration);
|
|
15
|
+
background-color: var(--surface-overlay);
|
|
16
|
+
border-radius: var(--content-border-radius);
|
|
17
|
+
padding: 0.5rem 1.5rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.layout-menu {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
list-style-type: none;
|
|
24
|
+
|
|
25
|
+
.layout-root-menuitem {
|
|
26
|
+
> .layout-menuitem-root-text {
|
|
27
|
+
font-size: 0.857rem;
|
|
28
|
+
text-transform: uppercase;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
color: var(--text-color);
|
|
31
|
+
margin: 0.75rem 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
> a {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
a {
|
|
40
|
+
user-select: none;
|
|
41
|
+
|
|
42
|
+
&.active-menuitem {
|
|
43
|
+
> .layout-submenu-toggler {
|
|
44
|
+
transform: rotate(-180deg);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
li.active-menuitem {
|
|
50
|
+
> a {
|
|
51
|
+
.layout-submenu-toggler {
|
|
52
|
+
transform: rotate(-180deg);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ul {
|
|
58
|
+
margin: 0;
|
|
59
|
+
padding: 0;
|
|
60
|
+
list-style-type: none;
|
|
61
|
+
|
|
62
|
+
a {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
position: relative;
|
|
66
|
+
outline: 0 none;
|
|
67
|
+
color: var(--text-color);
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
padding: 0.75rem 1rem;
|
|
70
|
+
border-radius: var(--content-border-radius);
|
|
71
|
+
transition:
|
|
72
|
+
background-color var(--element-transition-duration),
|
|
73
|
+
box-shadow var(--element-transition-duration);
|
|
74
|
+
|
|
75
|
+
.layout-menuitem-icon {
|
|
76
|
+
margin-right: 0.5rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.layout-submenu-toggler {
|
|
80
|
+
font-size: 75%;
|
|
81
|
+
margin-left: auto;
|
|
82
|
+
transition: transform var(--element-transition-duration);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.active-route {
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
color: var(--primary-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:hover {
|
|
91
|
+
background-color: var(--surface-hover);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:focus {
|
|
95
|
+
@include focused-inset();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ul {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
border-radius: var(--content-border-radius);
|
|
102
|
+
|
|
103
|
+
li {
|
|
104
|
+
a {
|
|
105
|
+
margin-left: 1rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
li {
|
|
109
|
+
a {
|
|
110
|
+
margin-left: 2rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
li {
|
|
114
|
+
a {
|
|
115
|
+
margin-left: 2.5rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
li {
|
|
119
|
+
a {
|
|
120
|
+
margin-left: 3rem;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
li {
|
|
124
|
+
a {
|
|
125
|
+
margin-left: 3.5rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
li {
|
|
129
|
+
a {
|
|
130
|
+
margin-left: 4rem;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.layout-submenu-enter-from,
|
|
143
|
+
.layout-submenu-leave-to {
|
|
144
|
+
max-height: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.layout-submenu-enter-to,
|
|
148
|
+
.layout-submenu-leave-from {
|
|
149
|
+
max-height: 1000px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.layout-submenu-leave-active {
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.layout-submenu-enter-active {
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
transition: max-height 1s ease-in-out;
|
|
160
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@mixin focused() {
|
|
2
|
+
outline-width: var(--focus-ring-width);
|
|
3
|
+
outline-style: var(--focus-ring-style);
|
|
4
|
+
outline-color: var(--focus-ring-color);
|
|
5
|
+
outline-offset: var(--focus-ring-offset);
|
|
6
|
+
box-shadow: var(--focus-ring-shadow);
|
|
7
|
+
transition:
|
|
8
|
+
box-shadow var(--transition-duration),
|
|
9
|
+
outline-color var(--transition-duration);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin focused-inset() {
|
|
13
|
+
outline-offset: -1px;
|
|
14
|
+
box-shadow: inset var(--focus-ring-shadow);
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.preloader {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 999999;
|
|
4
|
+
background: #edf1f5;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
.preloader-content {
|
|
9
|
+
border: 0 solid transparent;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
width: 150px;
|
|
12
|
+
height: 150px;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: calc(50vh - 75px);
|
|
15
|
+
left: calc(50vw - 75px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.preloader-content:before, .preloader-content:after{
|
|
19
|
+
content: '';
|
|
20
|
+
border: 1em solid var(--primary-color);
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
width: inherit;
|
|
23
|
+
height: inherit;
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
animation: loader 2s linear infinite;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.preloader-content:before{
|
|
32
|
+
animation-delay: 0.5s;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes loader{
|
|
36
|
+
0%{
|
|
37
|
+
transform: scale(0);
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
50%{
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
100%{
|
|
44
|
+
transform: scale(1);
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@media screen and (min-width: 1960px) {
|
|
2
|
+
.layout-main,
|
|
3
|
+
.landing-wrapper {
|
|
4
|
+
width: 1504px;
|
|
5
|
+
margin-left: auto !important;
|
|
6
|
+
margin-right: auto !important;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (min-width: 992px) {
|
|
11
|
+
.layout-wrapper {
|
|
12
|
+
&.layout-overlay {
|
|
13
|
+
.layout-main-container {
|
|
14
|
+
margin-left: 0;
|
|
15
|
+
padding-left: 2rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.layout-sidebar {
|
|
19
|
+
transform: translateX(-100%);
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
height: 100vh;
|
|
23
|
+
border-top-left-radius: 0;
|
|
24
|
+
border-bottom-left-radius: 0;
|
|
25
|
+
border-right: 1px solid var(--surface-border);
|
|
26
|
+
transition:
|
|
27
|
+
transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99),
|
|
28
|
+
left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
|
|
29
|
+
box-shadow:
|
|
30
|
+
0px 3px 5px rgba(0, 0, 0, 0.02),
|
|
31
|
+
0px 0px 2px rgba(0, 0, 0, 0.05),
|
|
32
|
+
0px 1px 4px rgba(0, 0, 0, 0.08);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.layout-overlay-active {
|
|
36
|
+
.layout-sidebar {
|
|
37
|
+
transform: translateX(0);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.layout-static {
|
|
43
|
+
.layout-main-container {
|
|
44
|
+
margin-left: 22rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.layout-static-inactive {
|
|
48
|
+
.layout-sidebar {
|
|
49
|
+
transform: translateX(-100%);
|
|
50
|
+
left: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.layout-main-container {
|
|
54
|
+
margin-left: 0;
|
|
55
|
+
padding-left: 2rem;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.layout-mask {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media (max-width: 991px) {
|
|
67
|
+
.blocked-scroll {
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.layout-wrapper {
|
|
72
|
+
.layout-main-container {
|
|
73
|
+
margin-left: 0;
|
|
74
|
+
padding-left: 2rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.layout-sidebar {
|
|
78
|
+
transform: translateX(-100%);
|
|
79
|
+
left: 0;
|
|
80
|
+
top: 0;
|
|
81
|
+
height: 100vh;
|
|
82
|
+
border-top-left-radius: 0;
|
|
83
|
+
border-bottom-left-radius: 0;
|
|
84
|
+
transition:
|
|
85
|
+
transform 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99),
|
|
86
|
+
left 0.4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.layout-mask {
|
|
90
|
+
display: none;
|
|
91
|
+
position: fixed;
|
|
92
|
+
top: 0;
|
|
93
|
+
left: 0;
|
|
94
|
+
z-index: 998;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
background-color: var(--maskbg);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.layout-mobile-active {
|
|
101
|
+
.layout-sidebar {
|
|
102
|
+
transform: translateX(0);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.layout-mask {
|
|
106
|
+
display: block;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|