Spaces:
Building
Building
Update flare-ui/src/styles.scss
Browse files- flare-ui/src/styles.scss +114 -261
flare-ui/src/styles.scss
CHANGED
@@ -1,262 +1,115 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
border-collapse: collapse;
|
116 |
-
|
117 |
-
th,
|
118 |
-
td {
|
119 |
-
padding: 0.75rem;
|
120 |
-
text-align: left;
|
121 |
-
border-bottom: 1px solid #dee2e6;
|
122 |
-
}
|
123 |
-
|
124 |
-
th {
|
125 |
-
background-color: #f8f9fa;
|
126 |
-
font-weight: 600;
|
127 |
-
color: #495057;
|
128 |
-
}
|
129 |
-
|
130 |
-
tbody tr:hover {
|
131 |
-
background-color: #f8f9fa;
|
132 |
-
}
|
133 |
-
}
|
134 |
-
|
135 |
-
/* Card Styles */
|
136 |
-
.card {
|
137 |
-
background-color: white;
|
138 |
-
border: 1px solid #dee2e6;
|
139 |
-
border-radius: 0.25rem;
|
140 |
-
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
141 |
-
margin-bottom: 1rem;
|
142 |
-
|
143 |
-
.card-header {
|
144 |
-
padding: 0.75rem 1.25rem;
|
145 |
-
background-color: #f8f9fa;
|
146 |
-
border-bottom: 1px solid #dee2e6;
|
147 |
-
font-weight: 600;
|
148 |
-
}
|
149 |
-
|
150 |
-
.card-body {
|
151 |
-
padding: 1.25rem;
|
152 |
-
}
|
153 |
-
}
|
154 |
-
|
155 |
-
/* Tab Styles */
|
156 |
-
.tabs {
|
157 |
-
display: flex;
|
158 |
-
border-bottom: 2px solid #dee2e6;
|
159 |
-
margin-bottom: 1rem;
|
160 |
-
|
161 |
-
.tab {
|
162 |
-
padding: 0.5rem 1rem;
|
163 |
-
cursor: pointer;
|
164 |
-
border: none;
|
165 |
-
background: none;
|
166 |
-
font-weight: 500;
|
167 |
-
color: #6c757d;
|
168 |
-
transition: all 0.3s ease;
|
169 |
-
|
170 |
-
&.active {
|
171 |
-
color: #007bff;
|
172 |
-
border-bottom: 2px solid #007bff;
|
173 |
-
margin-bottom: -2px;
|
174 |
-
}
|
175 |
-
|
176 |
-
&:hover {
|
177 |
-
color: #007bff;
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
181 |
-
|
182 |
-
/* Alert Styles */
|
183 |
-
.alert {
|
184 |
-
padding: 0.75rem 1.25rem;
|
185 |
-
margin-bottom: 1rem;
|
186 |
-
border: 1px solid transparent;
|
187 |
-
border-radius: 0.25rem;
|
188 |
-
|
189 |
-
&.alert-danger {
|
190 |
-
color: #721c24;
|
191 |
-
background-color: #f8d7da;
|
192 |
-
border-color: #f5c6cb;
|
193 |
-
}
|
194 |
-
|
195 |
-
&.alert-success {
|
196 |
-
color: #155724;
|
197 |
-
background-color: #d4edda;
|
198 |
-
border-color: #c3e6cb;
|
199 |
-
}
|
200 |
-
}
|
201 |
-
|
202 |
-
/* Loading Spinner */
|
203 |
-
.spinner {
|
204 |
-
display: inline-block;
|
205 |
-
width: 20px;
|
206 |
-
height: 20px;
|
207 |
-
border: 3px solid rgba(0, 0, 0, 0.1);
|
208 |
-
border-radius: 50%;
|
209 |
-
border-top-color: #007bff;
|
210 |
-
animation: spin 1s ease-in-out infinite;
|
211 |
-
}
|
212 |
-
|
213 |
-
@keyframes spin {
|
214 |
-
to { transform: rotate(360deg); }
|
215 |
-
}
|
216 |
-
|
217 |
-
/* Dialog/Modal Styles */
|
218 |
-
.dialog-backdrop {
|
219 |
-
position: fixed;
|
220 |
-
top: 0;
|
221 |
-
left: 0;
|
222 |
-
width: 100%;
|
223 |
-
height: 100%;
|
224 |
-
background-color: rgba(0, 0, 0, 0.5);
|
225 |
-
display: flex;
|
226 |
-
align-items: center;
|
227 |
-
justify-content: center;
|
228 |
-
z-index: 1000;
|
229 |
-
}
|
230 |
-
|
231 |
-
.dialog {
|
232 |
-
background-color: white;
|
233 |
-
border-radius: 8px;
|
234 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
235 |
-
max-width: 600px;
|
236 |
-
width: 90%;
|
237 |
-
max-height: 90vh;
|
238 |
-
overflow: hidden;
|
239 |
-
display: flex;
|
240 |
-
flex-direction: column;
|
241 |
-
|
242 |
-
.dialog-header {
|
243 |
-
padding: 1rem 1.5rem;
|
244 |
-
border-bottom: 1px solid #dee2e6;
|
245 |
-
font-size: 1.25rem;
|
246 |
-
font-weight: 600;
|
247 |
-
}
|
248 |
-
|
249 |
-
.dialog-body {
|
250 |
-
padding: 1.5rem;
|
251 |
-
overflow-y: auto;
|
252 |
-
flex: 1;
|
253 |
-
}
|
254 |
-
|
255 |
-
.dialog-footer {
|
256 |
-
padding: 1rem 1.5rem;
|
257 |
-
border-top: 1px solid #dee2e6;
|
258 |
-
display: flex;
|
259 |
-
justify-content: flex-end;
|
260 |
-
gap: 0.5rem;
|
261 |
-
}
|
262 |
}
|
|
|
1 |
+
// Angular Material Theme
|
2 |
+
@use '@angular/material' as mat;
|
3 |
+
@include mat.core();
|
4 |
+
|
5 |
+
// Define custom theme
|
6 |
+
$primary: mat.define-palette(mat.$indigo-palette);
|
7 |
+
$accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
|
8 |
+
$warn: mat.define-palette(mat.$red-palette);
|
9 |
+
|
10 |
+
$theme: mat.define-light-theme((
|
11 |
+
color: (
|
12 |
+
primary: $primary,
|
13 |
+
accent: $accent,
|
14 |
+
warn: $warn,
|
15 |
+
)
|
16 |
+
));
|
17 |
+
|
18 |
+
@include mat.all-component-themes($theme);
|
19 |
+
|
20 |
+
// Material Icons
|
21 |
+
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
|
22 |
+
|
23 |
+
// Inter Font
|
24 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
25 |
+
|
26 |
+
/* Global Styles */
|
27 |
+
* {
|
28 |
+
box-sizing: border-box;
|
29 |
+
margin: 0;
|
30 |
+
padding: 0;
|
31 |
+
}
|
32 |
+
|
33 |
+
html, body {
|
34 |
+
height: 100%;
|
35 |
+
}
|
36 |
+
|
37 |
+
body {
|
38 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
39 |
+
font-size: 14px;
|
40 |
+
line-height: 1.5;
|
41 |
+
color: #333;
|
42 |
+
background-color: #f5f5f5;
|
43 |
+
}
|
44 |
+
|
45 |
+
/* Utility Classes */
|
46 |
+
.container {
|
47 |
+
max-width: 1200px;
|
48 |
+
margin: 0 auto;
|
49 |
+
padding: 0 20px;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Form Styles */
|
53 |
+
.form-group {
|
54 |
+
margin-bottom: 1rem;
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Material Overrides */
|
58 |
+
.mat-mdc-form-field {
|
59 |
+
width: 100%;
|
60 |
+
}
|
61 |
+
|
62 |
+
.mat-mdc-button {
|
63 |
+
text-transform: none !important;
|
64 |
+
}
|
65 |
+
|
66 |
+
/* Tab Styles */
|
67 |
+
.mat-mdc-tab-link {
|
68 |
+
text-transform: none;
|
69 |
+
font-weight: 500;
|
70 |
+
}
|
71 |
+
|
72 |
+
/* Card Styles */
|
73 |
+
.mat-mdc-card {
|
74 |
+
margin-bottom: 1rem;
|
75 |
+
}
|
76 |
+
|
77 |
+
/* Checkbox alignment fix */
|
78 |
+
.mat-mdc-checkbox {
|
79 |
+
margin-right: 8px;
|
80 |
+
}
|
81 |
+
|
82 |
+
/* Progress bar height */
|
83 |
+
.mat-mdc-progress-bar {
|
84 |
+
height: 4px !important;
|
85 |
+
}
|
86 |
+
|
87 |
+
/* Chip styles */
|
88 |
+
.mat-mdc-chip {
|
89 |
+
font-size: 12px !important;
|
90 |
+
min-height: 24px !important;
|
91 |
+
padding: 4px 12px !important;
|
92 |
+
}
|
93 |
+
|
94 |
+
/* Icon size consistency */
|
95 |
+
.mat-icon {
|
96 |
+
font-size: 24px;
|
97 |
+
width: 24px;
|
98 |
+
height: 24px;
|
99 |
+
line-height: 24px;
|
100 |
+
}
|
101 |
+
|
102 |
+
/* Spinner */
|
103 |
+
.spinner {
|
104 |
+
display: inline-block;
|
105 |
+
width: 20px;
|
106 |
+
height: 20px;
|
107 |
+
border: 3px solid rgba(0, 0, 0, 0.1);
|
108 |
+
border-radius: 50%;
|
109 |
+
border-top-color: #007bff;
|
110 |
+
animation: spin 1s ease-in-out infinite;
|
111 |
+
}
|
112 |
+
|
113 |
+
@keyframes spin {
|
114 |
+
to { transform: rotate(360deg); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|