@ngx-smz/layout 21.10.0-next.2 → 21.10.0-next.21
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 +19 -63
- package/fesm2022/ngx-smz-layout.mjs +470 -461
- package/fesm2022/ngx-smz-layout.mjs.map +1 -1
- package/package.json +6 -1
- package/resources/layout/_core.scss +24 -24
- package/resources/layout/_footer.scss +8 -8
- package/resources/layout/_main.scss +13 -13
- package/resources/layout/_menu.scss +160 -160
- package/resources/layout/_mixins.scss +15 -15
- package/resources/layout/_preloading.scss +47 -47
- package/resources/layout/_responsive.scss +117 -117
- package/resources/layout/_topbar.scss +204 -204
- package/resources/layout/_typography.scss +68 -68
- package/resources/layout/_utils.scss +25 -25
- package/resources/layout/layout.scss +13 -13
- package/resources/layout/legacy-layout.scss +2 -2
- package/resources/layout/variables/_legacy-common.scss +55 -55
- package/types/ngx-smz-layout.d.ts +17 -25
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-smz/layout",
|
|
3
|
-
"version": "21.10.0-next.
|
|
3
|
+
"version": "21.10.0-next.21",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/smarza/ng-smz.git",
|
|
7
|
+
"directory": "projects/ngx-smz-ui-layout"
|
|
8
|
+
},
|
|
4
9
|
"peerDependencies": {
|
|
5
10
|
"@ngx-smz/ui-kit": ">=21.10.0-0",
|
|
6
11
|
"@ngx-smz/core": ">=21.10.0-0"
|
|
@@ -1,24 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.layout-footer {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
padding: 1rem 0 1rem 0;
|
|
6
|
-
gap: 0.5rem;
|
|
7
|
-
border-top: 1px solid var(--surface-border);
|
|
8
|
-
}
|
|
1
|
+
.layout-footer {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
padding: 1rem 0 1rem 0;
|
|
6
|
+
gap: 0.5rem;
|
|
7
|
+
border-top: 1px solid var(--surface-border);
|
|
8
|
+
}
|
|
@@ -1,13 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,160 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,15 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,47 +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
|
-
}
|
|
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
|
+
}
|