@flusys/ng-layout 0.1.0-alpha.1

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.
@@ -0,0 +1,181 @@
1
+ @use 'mixins' as *;
2
+
3
+ .layout-sidebar {
4
+ position: fixed;
5
+ width: 22rem;
6
+ height: 100vh;
7
+ z-index: 999;
8
+ overflow-y: auto;
9
+ user-select: none;
10
+ top: 4rem;
11
+ transition:
12
+ transform var(--layout-section-transition-duration),
13
+ left var(--layout-section-transition-duration);
14
+ background-color: var(--surface-overlay);
15
+ padding: 1rem 1.5rem;
16
+ }
17
+
18
+ .layout-menu {
19
+ margin: 0;
20
+ padding: 0;
21
+ list-style-type: none;
22
+
23
+ .layout-root-menuitem {
24
+ >.layout-menuitem-root-text {
25
+ font-size: 0.857rem;
26
+ text-transform: uppercase;
27
+ font-weight: 700;
28
+ color: var(--text-color);
29
+ margin: 0.75rem 0;
30
+ }
31
+
32
+ >a {
33
+ display: none;
34
+ }
35
+ }
36
+
37
+ a {
38
+ user-select: none;
39
+
40
+ &.active-menuitem {
41
+ >.layout-submenu-toggler {
42
+ transform: rotate(-180deg);
43
+ }
44
+ }
45
+ }
46
+
47
+ li {
48
+ margin-top: 5px;
49
+ }
50
+
51
+ li.active-menuitem {
52
+ >a {
53
+ background-color: var(--p-primary-color);
54
+ color: var(--p-primary-contrast-color) !important;
55
+
56
+ .layout-submenu-toggler {
57
+ transform: rotate(-180deg);
58
+ }
59
+ }
60
+ }
61
+
62
+ ul {
63
+ margin: 0;
64
+ padding: 0;
65
+ list-style-type: none;
66
+
67
+ a {
68
+ display: flex;
69
+ align-items: center;
70
+ position: relative;
71
+ outline: 0 none;
72
+ color: var(--text-color);
73
+ cursor: pointer;
74
+ padding: 0.50rem 1rem;
75
+ border-radius: var(--content-border-radius);
76
+ transition:
77
+ background-color var(--element-transition-duration),
78
+ box-shadow var(--element-transition-duration);
79
+
80
+ .layout-menuitem-icon {
81
+ margin-right: 0.5rem;
82
+ }
83
+
84
+ .layout-submenu-toggler {
85
+ font-size: 75%;
86
+ margin-left: auto;
87
+ transition: transform var(--element-transition-duration);
88
+ }
89
+
90
+ &.active-route {
91
+ font-weight: 600;
92
+ background-color: var(--p-primary-color);
93
+ color: var(--p-primary-contrast-color)
94
+ }
95
+
96
+ &:not(.active-route):hover {
97
+ color: var(--p-primary-color);
98
+ font-weight: 600;
99
+ }
100
+ }
101
+
102
+ ul {
103
+ overflow: hidden;
104
+ border-radius: var(--content-border-radius);
105
+
106
+ li {
107
+ a {
108
+ margin-left: 1rem;
109
+ }
110
+
111
+ li {
112
+ a {
113
+ margin-left: 2rem;
114
+ }
115
+
116
+ li {
117
+ a {
118
+ margin-left: 2.5rem;
119
+ }
120
+
121
+ li {
122
+ a {
123
+ margin-left: 3rem;
124
+ }
125
+
126
+ li {
127
+ a {
128
+ margin-left: 3.5rem;
129
+ }
130
+
131
+ li {
132
+ a {
133
+ margin-left: 4rem;
134
+ }
135
+
136
+ li {
137
+ a {
138
+ margin-left: 4.5rem;
139
+ }
140
+
141
+ li {
142
+ a {
143
+ margin-left: 5rem;
144
+ }
145
+
146
+ li {
147
+ a {
148
+ margin-left: 5.5rem;
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ .layout-submenu-enter-from,
164
+ .layout-submenu-leave-to {
165
+ max-height: 0;
166
+ }
167
+
168
+ .layout-submenu-enter-to,
169
+ .layout-submenu-leave-from {
170
+ max-height: 1000px;
171
+ }
172
+
173
+ .layout-submenu-leave-active {
174
+ overflow: hidden;
175
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
176
+ }
177
+
178
+ .layout-submenu-enter-active {
179
+ overflow: hidden;
180
+ transition: max-height 1s ease-in-out;
181
+ }
@@ -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
+ }
@@ -0,0 +1,160 @@
1
+ @use 'mixins' as *;
2
+
3
+ .layout-topbar {
4
+ position: fixed;
5
+ height: 4rem;
6
+ z-index: 997;
7
+ left: 0;
8
+ top: 0;
9
+ width: 100%;
10
+ padding: 0 2rem;
11
+ background-color: var(--surface-card);
12
+ transition: left var(--layout-section-transition-duration);
13
+ display: flex;
14
+ align-items: center;
15
+
16
+ .layout-topbar-logo-container {
17
+ width: 20rem;
18
+ display: flex;
19
+ align-items: center;
20
+ }
21
+
22
+ .layout-topbar-logo {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ font-size: 1.5rem;
26
+ border-radius: var(--content-border-radius);
27
+ color: var(--text-color);
28
+ font-weight: 500;
29
+ gap: 0.5rem;
30
+
31
+ svg {
32
+ width: 3rem;
33
+ }
34
+
35
+ &:focus-visible {
36
+ @include focused();
37
+ }
38
+ }
39
+
40
+ .layout-topbar-action {
41
+ display: inline-flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+ color: var(--text-color-secondary);
45
+ border-radius: 50%;
46
+ width: 2.5rem;
47
+ height: 2.5rem;
48
+ color: var(--text-color);
49
+ transition: background-color var(--element-transition-duration);
50
+ cursor: pointer;
51
+
52
+ &:hover {
53
+ background-color: var(--surface-hover);
54
+ }
55
+
56
+ &:focus-visible {
57
+ @include focused();
58
+ }
59
+
60
+ i {
61
+ font-size: 1.25rem;
62
+ }
63
+
64
+ span {
65
+ font-size: 1rem;
66
+ display: none;
67
+ }
68
+
69
+ &.layout-topbar-action-highlight {
70
+ background-color: var(--primary-color);
71
+ color: var(--primary-contrast-color);
72
+ }
73
+ }
74
+
75
+ .layout-menu-button {
76
+ margin-right: 0.5rem;
77
+ }
78
+
79
+ .layout-topbar-menu-button {
80
+ display: none;
81
+ }
82
+
83
+ .layout-topbar-actions {
84
+ margin-left: auto;
85
+ display: flex;
86
+ gap: 1rem;
87
+ }
88
+
89
+ .layout-topbar-menu-content {
90
+ display: flex;
91
+ gap: 1rem;
92
+ }
93
+
94
+ .layout-config-menu {
95
+ display: flex;
96
+ gap: 1rem;
97
+ }
98
+ }
99
+
100
+ @media (max-width: 991px) {
101
+ .layout-topbar {
102
+ padding: 0 2rem;
103
+
104
+ .layout-topbar-logo-container {
105
+ width: auto;
106
+ }
107
+
108
+ .layout-menu-button {
109
+ margin-left: 0;
110
+ margin-right: 0.5rem;
111
+ }
112
+
113
+ .layout-topbar-menu-button {
114
+ display: inline-flex;
115
+ }
116
+
117
+ .layout-topbar-menu {
118
+ position: absolute;
119
+ background-color: var(--surface-overlay);
120
+ transform-origin: top;
121
+ box-shadow:
122
+ 0px 3px 5px rgba(0, 0, 0, 0.02),
123
+ 0px 0px 2px rgba(0, 0, 0, 0.05),
124
+ 0px 1px 4px rgba(0, 0, 0, 0.08);
125
+ border-radius: var(--content-border-radius);
126
+ padding: 1rem;
127
+ right: 2rem;
128
+ top: 4rem;
129
+ min-width: 15rem;
130
+ border: 1px solid var(--surface-border);
131
+
132
+ .layout-topbar-menu-content {
133
+ gap: 0.5rem;
134
+ }
135
+
136
+ .layout-topbar-action {
137
+ display: flex;
138
+ width: 100%;
139
+ height: auto;
140
+ justify-content: flex-start;
141
+ border-radius: var(--content-border-radius);
142
+ padding: 0.5rem 1rem;
143
+
144
+ i {
145
+ font-size: 1rem;
146
+ margin-right: 0.5rem;
147
+ }
148
+
149
+ span {
150
+ font-weight: medium;
151
+ display: block;
152
+ }
153
+ }
154
+ }
155
+
156
+ .layout-topbar-menu-content {
157
+ flex-direction: column;
158
+ }
159
+ }
160
+ }
@@ -0,0 +1,68 @@
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6 {
7
+ margin: 1.5rem 0 1rem 0;
8
+ font-family: inherit;
9
+ font-weight: 700;
10
+ line-height: 1.5;
11
+ color: var(--text-color);
12
+
13
+ &:first-child {
14
+ margin-top: 0;
15
+ }
16
+ }
17
+
18
+ h1 {
19
+ font-size: 2.5rem;
20
+ }
21
+
22
+ h2 {
23
+ font-size: 2rem;
24
+ }
25
+
26
+ h3 {
27
+ font-size: 1.75rem;
28
+ }
29
+
30
+ h4 {
31
+ font-size: 1.5rem;
32
+ }
33
+
34
+ h5 {
35
+ font-size: 1.25rem;
36
+ }
37
+
38
+ h6 {
39
+ font-size: 1rem;
40
+ }
41
+
42
+ mark {
43
+ background: #fff8e1;
44
+ padding: 0.25rem 0.4rem;
45
+ border-radius: var(--content-border-radius);
46
+ font-family: monospace;
47
+ }
48
+
49
+ blockquote {
50
+ margin: 1rem 0;
51
+ padding: 0 2rem;
52
+ border-left: 4px solid #90a4ae;
53
+ }
54
+
55
+ hr {
56
+ border-top: solid var(--surface-border);
57
+ border-width: 1px 0 0 0;
58
+ margin: 1rem 0;
59
+ }
60
+
61
+ p {
62
+ margin: 0 0 1rem 0;
63
+ line-height: 1.5;
64
+
65
+ &:last-child {
66
+ margin-bottom: 0;
67
+ }
68
+ }
@@ -0,0 +1,25 @@
1
+ /* Utils */
2
+ .clearfix:after {
3
+ content: ' ';
4
+ display: block;
5
+ clear: both;
6
+ }
7
+
8
+ .card {
9
+ background: var(--surface-card);
10
+ padding: 2rem;
11
+ margin-bottom: 2rem;
12
+ border-radius: var(--content-border-radius);
13
+
14
+ &:last-child {
15
+ margin-bottom: 0;
16
+ }
17
+ }
18
+
19
+ .p-toast {
20
+ &.p-toast-top-right,
21
+ &.p-toast-top-left,
22
+ &.p-toast-top-center {
23
+ top: 100px;
24
+ }
25
+ }
@@ -0,0 +1,14 @@
1
+ @use './variables/_common';
2
+ @use './variables/_light';
3
+ @use './variables/_dark';
4
+ @use './_mixins';
5
+ @use './_preloading';
6
+ @use './_core';
7
+ @use './_main';
8
+ @use './_topbar';
9
+ @use './_menu';
10
+ @use './_footer';
11
+ @use './_forms';
12
+ @use './_responsive';
13
+ @use './_utils';
14
+ @use './_typography';
@@ -0,0 +1,20 @@
1
+ :root {
2
+ --primary-color: var(--p-primary-color);
3
+ --primary-contrast-color: var(--p-primary-contrast-color);
4
+ --text-color: var(--p-text-color);
5
+ --text-color-secondary: var(--p-text-muted-color);
6
+ --surface-border: var(--p-content-border-color);
7
+ --surface-card: var(--p-content-background);
8
+ --surface-hover: var(--p-content-hover-background);
9
+ --surface-overlay: var(--p-overlay-popover-background);
10
+ --transition-duration: var(--p-transition-duration);
11
+ --maskbg: var(--p-mask-background);
12
+ --content-border-radius: var(--p-content-border-radius);
13
+ --layout-section-transition-duration: 0.2s;
14
+ --element-transition-duration: var(--p-transition-duration);
15
+ --focus-ring-width: var(--p-focus-ring-width);
16
+ --focus-ring-style: var(--p-focus-ring-style);
17
+ --focus-ring-color: var(--p-focus-ring-color);
18
+ --focus-ring-offset: var(--p-focus-ring-offset);
19
+ --focus-ring-shadow: var(--p-focus-ring-shadow);
20
+ }
@@ -0,0 +1,5 @@
1
+ :root[class*='app-dark'] {
2
+ --surface-ground: var(--p-surface-950);
3
+ --code-background: var(--p-surface-800);
4
+ --code-color: var(--p-surface-100);
5
+ }
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --surface-ground: var(--p-surface-100);
3
+ --code-background: var(--p-surface-900);
4
+ --code-color: var(--p-surface-200);
5
+ }
@@ -0,0 +1,39 @@
1
+ @use './layout/layout.scss';
2
+ // Edit Mode Input Change Design Start.
3
+
4
+ .edit-mode-element-css {
5
+ opacity: 1 !important;
6
+ color: var(--p-inputtext-color) !important;
7
+ background: var(--p-inputtext-background) !important;
8
+ }
9
+
10
+ .edit-icon-color {
11
+ color: red;
12
+ }
13
+
14
+ // Edit Mode Input Change Design End.
15
+
16
+ // Verified Icon Color Start
17
+ .verified-icon-color {
18
+ color: #00f800 !important;
19
+ }
20
+
21
+ // Verified Icon Color End
22
+ .boolForm {
23
+ display: flex;
24
+ align-items: flex-end;
25
+
26
+ label,
27
+ p {
28
+ margin-right: 12px;
29
+ margin-bottom: 4px;
30
+ }
31
+ }
32
+
33
+ li {
34
+ list-style: none
35
+ }
36
+
37
+ .primary-border-color {
38
+ border: 1px solid var(--p-primary-color) !important;
39
+ }