Spaces:
Running
Running
Update flare-ui/src/app/components/projects/projects.component.scss
Browse files
flare-ui/src/app/components/projects/projects.component.scss
CHANGED
@@ -11,18 +11,80 @@
|
|
11 |
flex-wrap: wrap;
|
12 |
gap: 16px;
|
13 |
|
14 |
-
.toolbar-left h2 {
|
|
|
|
|
|
|
|
|
|
|
15 |
.toolbar-right {
|
16 |
display: flex;
|
17 |
gap: 16px;
|
18 |
align-items: center;
|
19 |
-
|
20 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
}
|
23 |
|
24 |
-
mat-progress-bar {
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
.projects-grid {
|
28 |
display: grid;
|
@@ -32,9 +94,25 @@
|
|
32 |
|
33 |
.project-card {
|
34 |
transition: all 0.3s ease;
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
.project-icon {
|
40 |
background-color: #3f51b5;
|
@@ -42,22 +120,45 @@
|
|
42 |
display: flex;
|
43 |
align-items: center;
|
44 |
justify-content: center;
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
-
mat-card-title {
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
.project-info {
|
52 |
margin-top: 16px;
|
|
|
53 |
.info-item {
|
54 |
display: flex;
|
55 |
align-items: center;
|
56 |
gap: 8px;
|
57 |
margin-bottom: 8px;
|
58 |
color: #666;
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
}
|
63 |
|
@@ -65,7 +166,14 @@
|
|
65 |
padding: 8px 16px;
|
66 |
display: flex;
|
67 |
justify-content: space-between;
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
}
|
71 |
}
|
@@ -78,10 +186,32 @@
|
|
78 |
|
79 |
.projects-table {
|
80 |
width: 100%;
|
81 |
-
|
82 |
-
.deleted-
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
}
|
87 |
|
@@ -89,8 +219,21 @@
|
|
89 |
text-align: center;
|
90 |
padding: 60px 20px;
|
91 |
color: #999;
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
}
|
95 |
|
96 |
.message-container {
|
@@ -102,26 +245,71 @@
|
|
102 |
|
103 |
mat-card {
|
104 |
min-width: 300px;
|
105 |
-
|
106 |
-
&.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
mat-card-content {
|
108 |
display: flex;
|
109 |
align-items: center;
|
110 |
gap: 12px;
|
111 |
padding: 12px 16px;
|
112 |
margin: 0;
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
}
|
116 |
}
|
117 |
}
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
@media (max-width: 768px) {
|
120 |
.projects-container {
|
121 |
.toolbar {
|
122 |
-
.toolbar-left, .toolbar-right {
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
125 |
-
.projects-grid { grid-template-columns: 1fr; }
|
126 |
}
|
127 |
}
|
|
|
11 |
flex-wrap: wrap;
|
12 |
gap: 16px;
|
13 |
|
14 |
+
.toolbar-left h2 {
|
15 |
+
margin: 0;
|
16 |
+
font-size: 24px;
|
17 |
+
font-weight: 400;
|
18 |
+
}
|
19 |
+
|
20 |
.toolbar-right {
|
21 |
display: flex;
|
22 |
gap: 16px;
|
23 |
align-items: center;
|
24 |
+
|
25 |
+
.search-field {
|
26 |
+
width: 300px;
|
27 |
+
|
28 |
+
::ng-deep {
|
29 |
+
.mat-mdc-text-field-wrapper {
|
30 |
+
background-color: white;
|
31 |
+
}
|
32 |
+
|
33 |
+
.mat-mdc-form-field-subscript-wrapper {
|
34 |
+
display: none;
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
.view-toggle {
|
40 |
+
background-color: white;
|
41 |
+
border: 1px solid #e0e0e0;
|
42 |
+
border-radius: 4px;
|
43 |
+
overflow: hidden;
|
44 |
+
|
45 |
+
::ng-deep {
|
46 |
+
.mat-button-toggle-group {
|
47 |
+
border: none;
|
48 |
+
}
|
49 |
+
|
50 |
+
.mat-button-toggle {
|
51 |
+
border: none;
|
52 |
+
|
53 |
+
&.mat-button-toggle-checked {
|
54 |
+
background-color: #e3f2fd;
|
55 |
+
|
56 |
+
.mat-icon {
|
57 |
+
color: #1976d2;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
.mat-icon {
|
63 |
+
font-size: 20px;
|
64 |
+
width: 20px;
|
65 |
+
height: 20px;
|
66 |
+
line-height: 20px;
|
67 |
+
}
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
::ng-deep .mat-mdc-checkbox {
|
72 |
+
.mdc-form-field {
|
73 |
+
font-size: 14px;
|
74 |
+
color: #666;
|
75 |
+
}
|
76 |
+
}
|
77 |
}
|
78 |
}
|
79 |
|
80 |
+
mat-progress-bar {
|
81 |
+
margin-bottom: 20px;
|
82 |
+
}
|
83 |
+
|
84 |
+
.content {
|
85 |
+
flex: 1;
|
86 |
+
overflow: auto;
|
87 |
+
}
|
88 |
|
89 |
.projects-grid {
|
90 |
display: grid;
|
|
|
94 |
|
95 |
.project-card {
|
96 |
transition: all 0.3s ease;
|
97 |
+
cursor: pointer;
|
98 |
+
|
99 |
+
&:hover {
|
100 |
+
transform: translateY(-2px);
|
101 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
102 |
+
}
|
103 |
+
|
104 |
+
&.disabled {
|
105 |
+
opacity: 0.7;
|
106 |
+
|
107 |
+
.project-icon {
|
108 |
+
background-color: #999 !important;
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
&.deleted {
|
113 |
+
opacity: 0.5;
|
114 |
+
background-color: #fafafa;
|
115 |
+
}
|
116 |
|
117 |
.project-icon {
|
118 |
background-color: #3f51b5;
|
|
|
120 |
display: flex;
|
121 |
align-items: center;
|
122 |
justify-content: center;
|
123 |
+
width: 40px;
|
124 |
+
height: 40px;
|
125 |
+
|
126 |
+
mat-icon {
|
127 |
+
font-size: 24px;
|
128 |
+
width: 24px;
|
129 |
+
height: 24px;
|
130 |
+
}
|
131 |
}
|
132 |
|
133 |
+
mat-card-title {
|
134 |
+
font-size: 18px;
|
135 |
+
font-weight: 500;
|
136 |
+
}
|
137 |
+
|
138 |
+
mat-card-subtitle {
|
139 |
+
margin-top: 4px;
|
140 |
+
}
|
141 |
|
142 |
.project-info {
|
143 |
margin-top: 16px;
|
144 |
+
|
145 |
.info-item {
|
146 |
display: flex;
|
147 |
align-items: center;
|
148 |
gap: 8px;
|
149 |
margin-bottom: 8px;
|
150 |
color: #666;
|
151 |
+
|
152 |
+
mat-icon {
|
153 |
+
font-size: 18px;
|
154 |
+
width: 18px;
|
155 |
+
height: 18px;
|
156 |
+
color: #999;
|
157 |
+
}
|
158 |
+
|
159 |
+
span {
|
160 |
+
font-size: 14px;
|
161 |
+
}
|
162 |
}
|
163 |
}
|
164 |
|
|
|
166 |
padding: 8px 16px;
|
167 |
display: flex;
|
168 |
justify-content: space-between;
|
169 |
+
flex-wrap: wrap;
|
170 |
+
gap: 8px;
|
171 |
+
|
172 |
+
button {
|
173 |
+
&:last-child {
|
174 |
+
margin-left: auto;
|
175 |
+
}
|
176 |
+
}
|
177 |
}
|
178 |
}
|
179 |
}
|
|
|
186 |
|
187 |
.projects-table {
|
188 |
width: 100%;
|
189 |
+
|
190 |
+
.deleted-icon {
|
191 |
+
color: #f44336;
|
192 |
+
font-size: 16px;
|
193 |
+
vertical-align: middle;
|
194 |
+
margin-left: 8px;
|
195 |
+
}
|
196 |
+
|
197 |
+
.deleted-row {
|
198 |
+
opacity: 0.5;
|
199 |
+
background-color: #fafafa;
|
200 |
+
}
|
201 |
+
|
202 |
+
::ng-deep {
|
203 |
+
.mat-mdc-chip-set {
|
204 |
+
display: inline-flex;
|
205 |
+
min-height: auto;
|
206 |
+
}
|
207 |
+
|
208 |
+
.mat-mdc-chip {
|
209 |
+
font-size: 12px;
|
210 |
+
min-height: 24px;
|
211 |
+
padding: 4px 12px;
|
212 |
+
margin: 2px;
|
213 |
+
}
|
214 |
+
}
|
215 |
}
|
216 |
}
|
217 |
|
|
|
219 |
text-align: center;
|
220 |
padding: 60px 20px;
|
221 |
color: #999;
|
222 |
+
background: white;
|
223 |
+
border-radius: 8px;
|
224 |
+
|
225 |
+
mat-icon {
|
226 |
+
font-size: 64px;
|
227 |
+
height: 64px;
|
228 |
+
width: 64px;
|
229 |
+
margin-bottom: 16px;
|
230 |
+
color: #e0e0e0;
|
231 |
+
}
|
232 |
+
|
233 |
+
p {
|
234 |
+
font-size: 16px;
|
235 |
+
margin: 0 0 24px 0;
|
236 |
+
}
|
237 |
}
|
238 |
|
239 |
.message-container {
|
|
|
245 |
|
246 |
mat-card {
|
247 |
min-width: 300px;
|
248 |
+
|
249 |
+
&.success mat-card-content {
|
250 |
+
color: #4caf50;
|
251 |
+
}
|
252 |
+
|
253 |
+
&.error mat-card-content {
|
254 |
+
color: #f44336;
|
255 |
+
}
|
256 |
+
|
257 |
mat-card-content {
|
258 |
display: flex;
|
259 |
align-items: center;
|
260 |
gap: 12px;
|
261 |
padding: 12px 16px;
|
262 |
margin: 0;
|
263 |
+
|
264 |
+
mat-icon {
|
265 |
+
font-size: 20px;
|
266 |
+
width: 20px;
|
267 |
+
height: 20px;
|
268 |
+
}
|
269 |
}
|
270 |
}
|
271 |
}
|
272 |
}
|
273 |
|
274 |
+
// Material overrides for this component
|
275 |
+
::ng-deep {
|
276 |
+
.mat-mdc-button-toggle-appearance-standard .mat-button-toggle-label-content {
|
277 |
+
line-height: 36px;
|
278 |
+
padding: 0 12px;
|
279 |
+
}
|
280 |
+
|
281 |
+
.mat-mdc-form-field-appearance-outline .mat-mdc-form-field-infix {
|
282 |
+
padding: 12px 0;
|
283 |
+
}
|
284 |
+
|
285 |
+
.mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
286 |
+
.mat-mdc-form-field-infix {
|
287 |
+
min-height: auto;
|
288 |
+
}
|
289 |
+
}
|
290 |
+
|
291 |
+
.mat-mdc-card {
|
292 |
+
--mdc-elevated-card-container-color: white;
|
293 |
+
--mdc-elevated-card-container-elevation: 0 2px 4px rgba(0,0,0,0.1);
|
294 |
+
}
|
295 |
+
}
|
296 |
+
|
297 |
+
// Responsive adjustments
|
298 |
@media (max-width: 768px) {
|
299 |
.projects-container {
|
300 |
.toolbar {
|
301 |
+
.toolbar-left, .toolbar-right {
|
302 |
+
width: 100%;
|
303 |
+
justify-content: center;
|
304 |
+
}
|
305 |
+
|
306 |
+
.search-field {
|
307 |
+
width: 100%;
|
308 |
+
}
|
309 |
+
}
|
310 |
+
|
311 |
+
.projects-grid {
|
312 |
+
grid-template-columns: 1fr;
|
313 |
}
|
|
|
314 |
}
|
315 |
}
|