ciyidogan commited on
Commit
3f6561f
·
verified ·
1 Parent(s): 385aed6

Update flare-ui/src/styles.scss

Browse files
Files changed (1) hide show
  1. flare-ui/src/styles.scss +114 -261
flare-ui/src/styles.scss CHANGED
@@ -1,262 +1,115 @@
1
- @import '@angular/material/prebuilt-themes/indigo-pink.css';
2
-
3
- /* Global Styles */
4
- * {
5
- box-sizing: border-box;
6
- margin: 0;
7
- padding: 0;
8
- }
9
-
10
- body {
11
- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12
- font-size: 14px;
13
- line-height: 1.5;
14
- color: #333;
15
- background-color: #f5f5f5;
16
- }
17
-
18
- /* Utility Classes */
19
- .container {
20
- max-width: 1200px;
21
- margin: 0 auto;
22
- padding: 0 20px;
23
- }
24
-
25
- .btn {
26
- display: inline-block;
27
- padding: 8px 16px;
28
- font-size: 14px;
29
- font-weight: 500;
30
- text-align: center;
31
- text-decoration: none;
32
- border: none;
33
- border-radius: 4px;
34
- cursor: pointer;
35
- transition: all 0.3s ease;
36
-
37
- &.btn-primary {
38
- background-color: #007bff;
39
- color: white;
40
-
41
- &:hover {
42
- background-color: #0056b3;
43
- }
44
- }
45
-
46
- &.btn-secondary {
47
- background-color: #6c757d;
48
- color: white;
49
-
50
- &:hover {
51
- background-color: #545b62;
52
- }
53
- }
54
-
55
- &.btn-danger {
56
- background-color: #dc3545;
57
- color: white;
58
-
59
- &:hover {
60
- background-color: #c82333;
61
- }
62
- }
63
-
64
- &:disabled {
65
- opacity: 0.6;
66
- cursor: not-allowed;
67
- }
68
- }
69
-
70
- /* Form Styles */
71
- .form-group {
72
- margin-bottom: 1rem;
73
-
74
- label {
75
- display: block;
76
- margin-bottom: 0.5rem;
77
- font-weight: 500;
78
- color: #495057;
79
- }
80
-
81
- input,
82
- select,
83
- textarea {
84
- display: block;
85
- width: 100%;
86
- padding: 0.375rem 0.75rem;
87
- font-size: 1rem;
88
- line-height: 1.5;
89
- color: #495057;
90
- background-color: #fff;
91
- background-clip: padding-box;
92
- border: 1px solid #ced4da;
93
- border-radius: 0.25rem;
94
- transition: border-color 0.15s ease-in-out;
95
-
96
- &:focus {
97
- color: #495057;
98
- background-color: #fff;
99
- border-color: #80bdff;
100
- outline: 0;
101
- }
102
- }
103
-
104
- textarea {
105
- min-height: 100px;
106
- resize: vertical;
107
- }
108
- }
109
-
110
- /* Table Styles */
111
- .table {
112
- width: 100%;
113
- margin-bottom: 1rem;
114
- background-color: white;
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
  }