django-usp-theme 0.1.0__py3-none-any.whl
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.
- django_usp_theme/__init__.py +0 -0
- django_usp_theme/static/usp_theme/css/base.css +53 -0
- django_usp_theme/static/usp_theme/css/components.css +537 -0
- django_usp_theme/static/usp_theme/css/layout.css +196 -0
- django_usp_theme/static/usp_theme/css/tokens.css +86 -0
- django_usp_theme/static/usp_theme/css/usp_theme.css +9 -0
- django_usp_theme/static/usp_theme/css/utilities.css +121 -0
- django_usp_theme/static/usp_theme/img/bg-headtop.gif +0 -0
- django_usp_theme/static/usp_theme/img/usp-logo-f.png +0 -0
- django_usp_theme/templates/usp_theme/base.html +73 -0
- django_usp_theme/templates/usp_theme/components/alert_messages.html +12 -0
- django_usp_theme/templates/usp_theme/components/content_card.html +10 -0
- django_usp_theme/templates/usp_theme/components/empty_state.html +5 -0
- django_usp_theme/templates/usp_theme/components/loading_button.html +8 -0
- django_usp_theme/templates/usp_theme/components/page_header.html +6 -0
- django_usp_theme/templatetags/__init__.py +0 -0
- django_usp_theme/templatetags/usp_filters.py +24 -0
- django_usp_theme-0.1.0.dist-info/METADATA +173 -0
- django_usp_theme-0.1.0.dist-info/RECORD +22 -0
- django_usp_theme-0.1.0.dist-info/WHEEL +5 -0
- django_usp_theme-0.1.0.dist-info/licenses/LICENSE +21 -0
- django_usp_theme-0.1.0.dist-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
USP Theme — Base
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
*,
|
|
6
|
+
*::before,
|
|
7
|
+
*::after {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body {
|
|
12
|
+
margin: 0;
|
|
13
|
+
font-family: var(--usp-font-sans);
|
|
14
|
+
font-size: var(--usp-text-base);
|
|
15
|
+
line-height: var(--usp-leading-normal);
|
|
16
|
+
color: var(--usp-color-ink);
|
|
17
|
+
background-color: var(--usp-color-bg);
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ---------- Typography ---------- */
|
|
23
|
+
|
|
24
|
+
h1, h2, h3, h4, h5, h6 {
|
|
25
|
+
margin-top: 0;
|
|
26
|
+
font-weight: var(--usp-weight-semibold);
|
|
27
|
+
line-height: var(--usp-leading-tight);
|
|
28
|
+
color: var(--usp-color-ink);
|
|
29
|
+
text-wrap: balance;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h1 { font-size: var(--usp-text-4xl); }
|
|
33
|
+
h2 { font-size: var(--usp-text-3xl); }
|
|
34
|
+
h3 { font-size: var(--usp-text-2xl); }
|
|
35
|
+
h4 { font-size: var(--usp-text-xl); }
|
|
36
|
+
h5 { font-size: var(--usp-text-lg); }
|
|
37
|
+
h6 { font-size: var(--usp-text-base); }
|
|
38
|
+
|
|
39
|
+
p {
|
|
40
|
+
text-wrap: pretty;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.text-muted {
|
|
44
|
+
color: var(--usp-color-ink-muted) !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.text-secondary {
|
|
48
|
+
color: var(--usp-color-ink-secondary) !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
small {
|
|
52
|
+
font-size: var(--usp-text-xs);
|
|
53
|
+
}
|
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
USP Theme — Components
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
/* ---------- Buttons ---------- */
|
|
6
|
+
|
|
7
|
+
.btn {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
gap: var(--usp-space-2);
|
|
12
|
+
padding: var(--usp-space-2) var(--usp-space-4);
|
|
13
|
+
font-family: var(--usp-font-sans);
|
|
14
|
+
font-size: var(--usp-text-sm);
|
|
15
|
+
font-weight: var(--usp-weight-medium);
|
|
16
|
+
line-height: 1.5;
|
|
17
|
+
border: 1px solid transparent;
|
|
18
|
+
border-radius: var(--usp-radius-md);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
transition: background var(--usp-transition-fast), border-color var(--usp-transition-fast), color var(--usp-transition-fast), box-shadow var(--usp-transition-fast);
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.btn:focus-visible {
|
|
26
|
+
outline: none;
|
|
27
|
+
box-shadow: 0 0 0 2px var(--usp-color-bg), 0 0 0 4px var(--usp-color-primary);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.btn:disabled {
|
|
31
|
+
opacity: 0.5;
|
|
32
|
+
cursor: not-allowed;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.btn-sm {
|
|
36
|
+
padding: var(--usp-space-1) var(--usp-space-3);
|
|
37
|
+
font-size: var(--usp-text-xs);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.btn-lg {
|
|
41
|
+
padding: var(--usp-space-3) var(--usp-space-6);
|
|
42
|
+
font-size: var(--usp-text-base);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Primary */
|
|
46
|
+
.btn-primary {
|
|
47
|
+
background: var(--usp-color-primary);
|
|
48
|
+
color: var(--usp-color-primary-text);
|
|
49
|
+
border-color: var(--usp-color-primary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.btn-primary:hover {
|
|
53
|
+
background: var(--usp-color-primary-hover);
|
|
54
|
+
border-color: var(--usp-color-primary-hover);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.btn-primary:active {
|
|
58
|
+
background: var(--usp-color-primary-active);
|
|
59
|
+
border-color: var(--usp-color-primary-active);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Secondary */
|
|
63
|
+
.btn-secondary {
|
|
64
|
+
background: var(--usp-color-surface);
|
|
65
|
+
color: var(--usp-color-ink);
|
|
66
|
+
border-color: var(--usp-color-border);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.btn-secondary:hover {
|
|
70
|
+
background: var(--usp-color-border);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Danger */
|
|
74
|
+
.btn-danger {
|
|
75
|
+
background: var(--usp-color-danger);
|
|
76
|
+
color: var(--usp-color-danger-text);
|
|
77
|
+
border-color: var(--usp-color-danger);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.btn-danger:hover {
|
|
81
|
+
background: #a93226;
|
|
82
|
+
border-color: #a93226;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Warning */
|
|
86
|
+
.btn-warning {
|
|
87
|
+
background: var(--usp-color-warning);
|
|
88
|
+
color: var(--usp-color-warning-text);
|
|
89
|
+
border-color: var(--usp-color-warning);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Info */
|
|
93
|
+
.btn-info {
|
|
94
|
+
background: var(--usp-color-info);
|
|
95
|
+
color: var(--usp-color-info-text);
|
|
96
|
+
border-color: var(--usp-color-info);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.btn-info:hover {
|
|
100
|
+
background: #4fb8c8;
|
|
101
|
+
border-color: #4fb8c8;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Success */
|
|
105
|
+
.btn-success {
|
|
106
|
+
background: var(--usp-color-success);
|
|
107
|
+
color: var(--usp-color-success-text);
|
|
108
|
+
border-color: var(--usp-color-success);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.btn-success:hover {
|
|
112
|
+
background: #256b4a;
|
|
113
|
+
border-color: #256b4a;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Outline variants */
|
|
117
|
+
.btn-outline-primary {
|
|
118
|
+
background: transparent;
|
|
119
|
+
color: var(--usp-color-primary);
|
|
120
|
+
border-color: var(--usp-color-primary);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.btn-outline-primary:hover {
|
|
124
|
+
background: var(--usp-color-primary);
|
|
125
|
+
color: var(--usp-color-primary-text);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-outline-secondary {
|
|
129
|
+
background: transparent;
|
|
130
|
+
color: var(--usp-color-ink-secondary);
|
|
131
|
+
border-color: var(--usp-color-border);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.btn-outline-secondary:hover {
|
|
135
|
+
background: var(--usp-color-surface);
|
|
136
|
+
border-color: var(--usp-color-border-strong);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.btn-outline-danger {
|
|
140
|
+
background: transparent;
|
|
141
|
+
color: var(--usp-color-danger);
|
|
142
|
+
border-color: var(--usp-color-danger);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.btn-outline-danger:hover {
|
|
146
|
+
background: var(--usp-color-danger);
|
|
147
|
+
color: var(--usp-color-danger-text);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.btn-outline-info {
|
|
151
|
+
background: transparent;
|
|
152
|
+
color: var(--usp-color-info);
|
|
153
|
+
border-color: var(--usp-color-info);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.btn-outline-info:hover {
|
|
157
|
+
background: var(--usp-color-info);
|
|
158
|
+
color: var(--usp-color-info-text);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.btn-outline-warning {
|
|
162
|
+
background: transparent;
|
|
163
|
+
color: #e5a31d;
|
|
164
|
+
border-color: var(--usp-color-warning);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.btn-outline-warning:hover {
|
|
168
|
+
background: var(--usp-color-warning);
|
|
169
|
+
color: var(--usp-color-warning-text);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
/* ---------- Forms ---------- */
|
|
174
|
+
|
|
175
|
+
.form-label {
|
|
176
|
+
display: block;
|
|
177
|
+
margin-bottom: var(--usp-space-1);
|
|
178
|
+
font-size: var(--usp-text-sm);
|
|
179
|
+
font-weight: var(--usp-weight-medium);
|
|
180
|
+
color: var(--usp-color-ink);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.form-control,
|
|
184
|
+
.form-select {
|
|
185
|
+
display: block;
|
|
186
|
+
width: 100%;
|
|
187
|
+
padding: var(--usp-space-2) var(--usp-space-3);
|
|
188
|
+
font-family: var(--usp-font-sans);
|
|
189
|
+
font-size: var(--usp-text-sm);
|
|
190
|
+
line-height: 1.5;
|
|
191
|
+
color: var(--usp-color-ink);
|
|
192
|
+
background: var(--usp-color-bg);
|
|
193
|
+
border: 1px solid var(--usp-color-border-strong);
|
|
194
|
+
border-radius: var(--usp-radius-md);
|
|
195
|
+
transition: border-color var(--usp-transition-fast), box-shadow var(--usp-transition-fast);
|
|
196
|
+
appearance: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.form-control:focus,
|
|
200
|
+
.form-select:focus {
|
|
201
|
+
outline: none;
|
|
202
|
+
border-color: var(--usp-color-primary);
|
|
203
|
+
box-shadow: 0 0 0 3px rgba(16, 148, 171, 0.15);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.form-control::placeholder {
|
|
207
|
+
color: var(--usp-color-ink-muted);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.form-control[readonly] {
|
|
211
|
+
background: var(--usp-color-surface);
|
|
212
|
+
cursor: default;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.form-check-input {
|
|
216
|
+
width: 1rem;
|
|
217
|
+
height: 1rem;
|
|
218
|
+
margin-top: 0.125rem;
|
|
219
|
+
vertical-align: top;
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.form-check-input:focus {
|
|
224
|
+
box-shadow: 0 0 0 3px rgba(16, 148, 171, 0.15);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.form-check-label {
|
|
228
|
+
font-size: var(--usp-text-sm);
|
|
229
|
+
color: var(--usp-color-ink);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.form-text {
|
|
233
|
+
font-size: var(--usp-text-xs);
|
|
234
|
+
color: var(--usp-color-ink-muted);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.text-danger {
|
|
238
|
+
color: var(--usp-color-danger) !important;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.invalid-feedback {
|
|
242
|
+
display: block;
|
|
243
|
+
margin-top: var(--usp-space-1);
|
|
244
|
+
font-size: var(--usp-text-xs);
|
|
245
|
+
color: var(--usp-color-danger);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.flatpickr-input {
|
|
249
|
+
background-color: var(--usp-color-bg) !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.input-group .form-control {
|
|
253
|
+
border-radius: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.input-group .form-control:first-child {
|
|
257
|
+
border-radius: var(--usp-radius-md) 0 0 var(--usp-radius-md);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.input-group .form-control:last-child {
|
|
261
|
+
border-radius: 0 var(--usp-radius-md) var(--usp-radius-md) 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/* ---------- Tables ---------- */
|
|
266
|
+
|
|
267
|
+
.table {
|
|
268
|
+
width: 100%;
|
|
269
|
+
margin-bottom: var(--usp-color-ink-muted);
|
|
270
|
+
font-size: var(--usp-text-sm);
|
|
271
|
+
color: var(--usp-color-ink);
|
|
272
|
+
border-collapse: collapse;
|
|
273
|
+
border-spacing: 0;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.table > :not(caption) > * > * {
|
|
277
|
+
padding: var(--usp-space-3) var(--usp-space-4);
|
|
278
|
+
background-color: var(--usp-color-bg);
|
|
279
|
+
border-bottom: 1px solid var(--usp-color-border);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.table > thead {
|
|
283
|
+
vertical-align: bottom;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.table > thead > tr > th {
|
|
287
|
+
padding: var(--usp-space-3) var(--usp-space-4);
|
|
288
|
+
font-size: var(--usp-text-xs);
|
|
289
|
+
font-weight: var(--usp-weight-semibold);
|
|
290
|
+
color: #ffffff;
|
|
291
|
+
text-transform: uppercase;
|
|
292
|
+
letter-spacing: 0.05em;
|
|
293
|
+
background: var(--usp-color-primary);
|
|
294
|
+
border-bottom: 2px solid var(--usp-color-primary-active);
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.table > tbody > tr:hover > * {
|
|
299
|
+
background-color: var(--usp-color-surface);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.table > tbody > tr > td {
|
|
303
|
+
vertical-align: middle;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.table-hover > tbody > tr:hover > * {
|
|
307
|
+
background-color: var(--usp-color-surface);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.table td:first-child,
|
|
311
|
+
.table th:first-child {
|
|
312
|
+
padding-left: var(--usp-space-6);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.table td:last-child,
|
|
316
|
+
.table th:last-child {
|
|
317
|
+
padding-right: var(--usp-space-6);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.table-responsive {
|
|
321
|
+
border-radius: var(--usp-radius-lg);
|
|
322
|
+
border: 1px solid var(--usp-color-border);
|
|
323
|
+
overflow-x: auto;
|
|
324
|
+
-webkit-overflow-scrolling: touch;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.table-responsive > .table {
|
|
328
|
+
margin-bottom: 0;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.table-responsive > .table > :not(caption) > * > * {
|
|
332
|
+
border-bottom-color: var(--usp-color-border);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
/* ---------- Cards ---------- */
|
|
337
|
+
|
|
338
|
+
.card {
|
|
339
|
+
background: var(--usp-color-surface-raised);
|
|
340
|
+
border: 1px solid var(--usp-color-border);
|
|
341
|
+
border-radius: var(--usp-radius-lg);
|
|
342
|
+
box-shadow: var(--usp-shadow-sm);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.card-header {
|
|
346
|
+
padding: var(--usp-space-4) var(--usp-space-6);
|
|
347
|
+
background: var(--usp-color-surface);
|
|
348
|
+
border-bottom: 1px solid var(--usp-color-border);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.card-header h3,
|
|
352
|
+
.card-header h4 {
|
|
353
|
+
margin: 0;
|
|
354
|
+
font-size: var(--usp-text-lg);
|
|
355
|
+
font-weight: var(--usp-weight-semibold);
|
|
356
|
+
color: var(--usp-color-ink);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.card-body {
|
|
360
|
+
padding: var(--usp-space-6);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.card.shadow-sm {
|
|
364
|
+
box-shadow: var(--usp-shadow-sm) !important;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.card.shadow {
|
|
368
|
+
box-shadow: var(--usp-shadow-md) !important;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
/* ---------- Alerts ---------- */
|
|
373
|
+
|
|
374
|
+
.alert {
|
|
375
|
+
padding: var(--usp-space-3) var(--usp-space-4);
|
|
376
|
+
border-radius: var(--usp-radius-md);
|
|
377
|
+
font-size: var(--usp-text-sm);
|
|
378
|
+
border: 1px solid transparent;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.alert-success {
|
|
382
|
+
background: #e8f5e9;
|
|
383
|
+
color: #1b5e20;
|
|
384
|
+
border-color: #a5d6a7;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.alert-danger {
|
|
388
|
+
background: #fbe9e7;
|
|
389
|
+
color: #b71c1c;
|
|
390
|
+
border-color: #ef9a9a;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.alert-warning {
|
|
394
|
+
background: #fff8e1;
|
|
395
|
+
color: #f57f17;
|
|
396
|
+
border-color: #ffe082;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.alert-info {
|
|
400
|
+
background: #e0f7fa;
|
|
401
|
+
color: #006064;
|
|
402
|
+
border-color: #80deea;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
/* ---------- Badges ---------- */
|
|
407
|
+
|
|
408
|
+
.badge {
|
|
409
|
+
display: inline-flex;
|
|
410
|
+
align-items: center;
|
|
411
|
+
padding: var(--usp-space-1) var(--usp-space-2);
|
|
412
|
+
font-size: var(--usp-text-xs);
|
|
413
|
+
font-weight: var(--usp-weight-medium);
|
|
414
|
+
border-radius: var(--usp-radius-sm);
|
|
415
|
+
white-space: nowrap;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.badge.bg-primary {
|
|
419
|
+
background: var(--usp-color-primary) !important;
|
|
420
|
+
color: var(--usp-color-primary-text) !important;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.badge.bg-secondary {
|
|
424
|
+
background: var(--usp-color-surface) !important;
|
|
425
|
+
color: var(--usp-color-ink-secondary) !important;
|
|
426
|
+
border: 1px solid var(--usp-color-border);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.badge.bg-success {
|
|
430
|
+
background: var(--usp-color-success) !important;
|
|
431
|
+
color: var(--usp-color-success-text) !important;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.badge.bg-danger {
|
|
435
|
+
background: var(--usp-color-danger) !important;
|
|
436
|
+
color: var(--usp-color-danger-text) !important;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.badge.bg-info {
|
|
440
|
+
background: var(--usp-color-info) !important;
|
|
441
|
+
color: var(--usp-color-info-text) !important;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.badge.bg-warning {
|
|
445
|
+
background: var(--usp-color-warning) !important;
|
|
446
|
+
color: var(--usp-color-warning-text) !important;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
/* ---------- Modals ---------- */
|
|
451
|
+
|
|
452
|
+
.modal-content {
|
|
453
|
+
border: 1px solid var(--usp-color-border);
|
|
454
|
+
border-radius: var(--usp-radius-lg);
|
|
455
|
+
box-shadow: var(--usp-shadow-md);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.modal-header {
|
|
459
|
+
padding: var(--usp-space-4) var(--usp-space-6);
|
|
460
|
+
border-bottom: 1px solid var(--usp-color-border);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.modal-body {
|
|
464
|
+
padding: var(--usp-space-6);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.modal-footer {
|
|
468
|
+
padding: var(--usp-space-4) var(--usp-space-6);
|
|
469
|
+
border-top: 1px solid var(--usp-color-border);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
/* ---------- Loading & Empty States ---------- */
|
|
474
|
+
|
|
475
|
+
.spinner-border {
|
|
476
|
+
width: 1rem;
|
|
477
|
+
height: 1rem;
|
|
478
|
+
border-width: 0.125em;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.btn .spinner-border {
|
|
482
|
+
width: 0.875rem;
|
|
483
|
+
height: 0.875rem;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.btn-loading {
|
|
487
|
+
position: relative;
|
|
488
|
+
color: transparent !important;
|
|
489
|
+
pointer-events: none;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.btn-loading::after {
|
|
493
|
+
content: "";
|
|
494
|
+
position: absolute;
|
|
495
|
+
width: 1rem;
|
|
496
|
+
height: 1rem;
|
|
497
|
+
border: 2px solid currentColor;
|
|
498
|
+
border-right-color: transparent;
|
|
499
|
+
border-radius: 50%;
|
|
500
|
+
animation: usp-btn-spin 0.6s linear infinite;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.btn-loading.btn-primary::after {
|
|
504
|
+
border-color: var(--usp-color-primary-text);
|
|
505
|
+
border-right-color: transparent;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
@keyframes usp-btn-spin {
|
|
509
|
+
to { transform: rotate(360deg); }
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.empty-state {
|
|
513
|
+
text-align: center;
|
|
514
|
+
padding: var(--usp-space-10) var(--usp-space-6);
|
|
515
|
+
color: var(--usp-color-ink-muted);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.empty-state i {
|
|
519
|
+
font-size: 2.5rem;
|
|
520
|
+
margin-bottom: var(--usp-space-3);
|
|
521
|
+
opacity: 0.5;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.empty-state p {
|
|
525
|
+
margin: 0;
|
|
526
|
+
font-size: var(--usp-text-sm);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.empty-state .btn {
|
|
530
|
+
margin-top: var(--usp-space-4);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
@media (prefers-reduced-motion: reduce) {
|
|
534
|
+
.btn-loading::after {
|
|
535
|
+
animation-duration: 1.2s;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
USP Theme — Layout
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
/* ---------- Container ---------- */
|
|
6
|
+
|
|
7
|
+
.container {
|
|
8
|
+
max-width: 1200px;
|
|
9
|
+
padding-inline: 1.05rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
main {
|
|
13
|
+
padding-block: var(--usp-space-8);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* ---------- Page Header ---------- */
|
|
17
|
+
|
|
18
|
+
.page-header {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin-bottom: var(--usp-space-6);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.page-header h3 {
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* ---------- Content Card ---------- */
|
|
30
|
+
|
|
31
|
+
.content-card {
|
|
32
|
+
background: var(--usp-color-surface-raised);
|
|
33
|
+
border: 1px solid var(--usp-color-border);
|
|
34
|
+
border-radius: var(--usp-radius-lg);
|
|
35
|
+
box-shadow: var(--usp-shadow-sm);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.content-card-header {
|
|
39
|
+
padding: var(--usp-space-4) var(--usp-space-6);
|
|
40
|
+
border-bottom: 1px solid var(--usp-color-border);
|
|
41
|
+
background: var(--usp-color-surface);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.content-card-header h3,
|
|
45
|
+
.content-card-header h4 {
|
|
46
|
+
margin: 0;
|
|
47
|
+
font-size: var(--usp-text-lg);
|
|
48
|
+
font-weight: var(--usp-weight-semibold);
|
|
49
|
+
color: var(--usp-color-ink);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.content-card-body {
|
|
53
|
+
padding: var(--usp-space-6);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/* ---------- Header ---------- */
|
|
58
|
+
|
|
59
|
+
.usp-header {
|
|
60
|
+
background: var(--usp-color-bg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.usp-header .container-fluid {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
max-width: 1200px;
|
|
67
|
+
margin-inline: auto;
|
|
68
|
+
padding-block: var(--usp-space-3);
|
|
69
|
+
padding-inline: 1.05rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.usp-header img {
|
|
73
|
+
height: 56px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.usp-header img + img {
|
|
77
|
+
height: 32px;
|
|
78
|
+
margin-left: var(--usp-space-4);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.usp-header-strip {
|
|
82
|
+
height: 30px;
|
|
83
|
+
background: url('../img/bg-headtop.gif') repeat-x;
|
|
84
|
+
background-size: auto 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/* ---------- Navigation ---------- */
|
|
89
|
+
|
|
90
|
+
.usp-nav {
|
|
91
|
+
background: var(--usp-color-surface);
|
|
92
|
+
border-bottom: 1px solid var(--usp-color-border);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.usp-nav .container-fluid {
|
|
96
|
+
max-width: 1200px;
|
|
97
|
+
margin-inline: auto;
|
|
98
|
+
padding-inline: 1.05rem;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--usp-space-8);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.usp-nav .navbar-brand {
|
|
105
|
+
color: var(--usp-color-primary);
|
|
106
|
+
font-size: var(--usp-text-lg);
|
|
107
|
+
font-weight: var(--usp-weight-bold);
|
|
108
|
+
text-decoration: none;
|
|
109
|
+
padding: var(--usp-space-3) 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.usp-nav .navbar-brand:hover {
|
|
113
|
+
color: var(--usp-color-primary-hover);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.usp-nav .navbar-nav {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: row;
|
|
119
|
+
gap: var(--usp-space-1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.usp-nav .nav-link {
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: var(--usp-space-2);
|
|
126
|
+
padding: var(--usp-space-3) var(--usp-space-4);
|
|
127
|
+
color: var(--usp-color-ink-secondary);
|
|
128
|
+
font-size: var(--usp-text-sm);
|
|
129
|
+
font-weight: var(--usp-weight-medium);
|
|
130
|
+
text-decoration: none;
|
|
131
|
+
border-radius: var(--usp-radius-md);
|
|
132
|
+
transition: background var(--usp-transition-fast), color var(--usp-transition-fast);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.usp-nav .nav-link:hover {
|
|
136
|
+
background: var(--usp-color-surface);
|
|
137
|
+
color: var(--usp-color-primary);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.usp-nav .nav-link.active {
|
|
141
|
+
background: var(--usp-color-surface);
|
|
142
|
+
color: var(--usp-color-primary);
|
|
143
|
+
font-weight: var(--usp-weight-semibold);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.usp-nav .nav-item.dropdown {
|
|
147
|
+
position: relative;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.usp-nav .nav-item.dropdown .dropdown-menu {
|
|
151
|
+
display: none;
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 100%;
|
|
154
|
+
right: 0;
|
|
155
|
+
min-width: 220px;
|
|
156
|
+
background: var(--usp-color-bg);
|
|
157
|
+
border: 1px solid var(--usp-color-border);
|
|
158
|
+
border-radius: var(--usp-radius-md);
|
|
159
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
160
|
+
padding: var(--usp-space-2) 0;
|
|
161
|
+
z-index: 1000;
|
|
162
|
+
list-style: none;
|
|
163
|
+
margin: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.usp-nav .nav-item.dropdown.show .dropdown-menu,
|
|
167
|
+
.usp-nav .nav-item.dropdown:hover .dropdown-menu {
|
|
168
|
+
display: block;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.usp-nav .nav-item.dropdown .dropdown-item {
|
|
172
|
+
display: block;
|
|
173
|
+
padding: var(--usp-space-2) var(--usp-space-4);
|
|
174
|
+
color: var(--usp-color-ink-secondary);
|
|
175
|
+
font-size: var(--usp-text-sm);
|
|
176
|
+
text-decoration: none;
|
|
177
|
+
transition: background var(--usp-transition-fast), color var(--usp-transition-fast);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.usp-nav .nav-item.dropdown .dropdown-item:hover {
|
|
181
|
+
background: var(--usp-color-surface);
|
|
182
|
+
color: var(--usp-color-primary);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.usp-nav .nav-user {
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: var(--usp-space-3);
|
|
189
|
+
margin-left: auto;
|
|
190
|
+
font-size: var(--usp-text-sm);
|
|
191
|
+
color: var(--usp-color-ink-secondary);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.usp-nav .nav-user .btn {
|
|
195
|
+
font-size: var(--usp-text-xs);
|
|
196
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
USP Theme — Design Tokens
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
/* Primary */
|
|
7
|
+
--usp-color-primary: #1094ab;
|
|
8
|
+
--usp-color-primary-hover: #0d7a8f;
|
|
9
|
+
--usp-color-primary-active: #0a6172;
|
|
10
|
+
--usp-color-primary-text: #ffffff;
|
|
11
|
+
|
|
12
|
+
/* Accent */
|
|
13
|
+
--usp-color-accent: #fcb421;
|
|
14
|
+
--usp-color-accent-hover: #e5a31d;
|
|
15
|
+
|
|
16
|
+
/* Secondary */
|
|
17
|
+
--usp-color-secondary: #64c4d2;
|
|
18
|
+
--usp-color-secondary-hover: #4fb8c8;
|
|
19
|
+
|
|
20
|
+
/* Surface scale */
|
|
21
|
+
--usp-color-bg: #ffffff;
|
|
22
|
+
--usp-color-surface: #f4f7f8;
|
|
23
|
+
--usp-color-surface-raised: #ffffff;
|
|
24
|
+
--usp-color-border: #dce3e5;
|
|
25
|
+
--usp-color-border-strong: #b8c7cb;
|
|
26
|
+
|
|
27
|
+
/* Ink scale */
|
|
28
|
+
--usp-color-ink: #1a2b32;
|
|
29
|
+
--usp-color-ink-secondary: #3d5a66;
|
|
30
|
+
--usp-color-ink-muted: #6b8a94;
|
|
31
|
+
|
|
32
|
+
/* Semantic */
|
|
33
|
+
--usp-color-success: #2e7d5a;
|
|
34
|
+
--usp-color-success-text: #ffffff;
|
|
35
|
+
--usp-color-danger: #c0392b;
|
|
36
|
+
--usp-color-danger-text: #ffffff;
|
|
37
|
+
--usp-color-warning: #fcb421;
|
|
38
|
+
--usp-color-warning-text: #1a2b32;
|
|
39
|
+
--usp-color-info: #64c4d2;
|
|
40
|
+
--usp-color-info-text: #1a2b32;
|
|
41
|
+
|
|
42
|
+
/* Typography */
|
|
43
|
+
--usp-font-sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
44
|
+
--usp-font-mono: 'SFMono-Regular', Menlo, Consolas, monospace;
|
|
45
|
+
|
|
46
|
+
--usp-text-xs: 0.8125rem;
|
|
47
|
+
--usp-text-sm: 0.9375rem;
|
|
48
|
+
--usp-text-base: 1rem;
|
|
49
|
+
--usp-text-lg: 1.125rem;
|
|
50
|
+
--usp-text-xl: 1.25rem;
|
|
51
|
+
--usp-text-2xl: 1.375rem;
|
|
52
|
+
--usp-text-3xl: 1.625rem;
|
|
53
|
+
--usp-text-4xl: 2rem;
|
|
54
|
+
|
|
55
|
+
--usp-leading-tight: 1.25;
|
|
56
|
+
--usp-leading-normal: 1.5;
|
|
57
|
+
|
|
58
|
+
--usp-weight-normal: 400;
|
|
59
|
+
--usp-weight-medium: 500;
|
|
60
|
+
--usp-weight-semibold: 600;
|
|
61
|
+
--usp-weight-bold: 700;
|
|
62
|
+
|
|
63
|
+
/* Spacing */
|
|
64
|
+
--usp-space-1: 0.25rem;
|
|
65
|
+
--usp-space-2: 0.5rem;
|
|
66
|
+
--usp-space-3: 0.75rem;
|
|
67
|
+
--usp-space-4: 1rem;
|
|
68
|
+
--usp-space-5: 1.25rem;
|
|
69
|
+
--usp-space-6: 1.5rem;
|
|
70
|
+
--usp-space-8: 2rem;
|
|
71
|
+
--usp-space-10: 2.5rem;
|
|
72
|
+
--usp-space-12: 3rem;
|
|
73
|
+
|
|
74
|
+
/* Radius */
|
|
75
|
+
--usp-radius-sm: 0.25rem;
|
|
76
|
+
--usp-radius-md: 0.375rem;
|
|
77
|
+
--usp-radius-lg: 0.5rem;
|
|
78
|
+
|
|
79
|
+
/* Shadows */
|
|
80
|
+
--usp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
81
|
+
--usp-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
82
|
+
|
|
83
|
+
/* Motion */
|
|
84
|
+
--usp-transition-fast: 150ms ease-out;
|
|
85
|
+
--usp-transition-normal: 200ms ease-out;
|
|
86
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
USP Theme — Unified Stylesheet
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
@import url('tokens.css');
|
|
6
|
+
@import url('base.css');
|
|
7
|
+
@import url('components.css');
|
|
8
|
+
@import url('layout.css');
|
|
9
|
+
@import url('utilities.css');
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
USP Theme — Utilities
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
/* ---------- Focus & Accessibility ---------- */
|
|
6
|
+
|
|
7
|
+
:focus-visible {
|
|
8
|
+
outline: 2px solid var(--usp-color-primary);
|
|
9
|
+
outline-offset: 2px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sr-only {
|
|
13
|
+
position: absolute;
|
|
14
|
+
width: 1rem;
|
|
15
|
+
height: 1rem;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: -1rem;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
clip: rect(0, 0, 0, 0);
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
border: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.skip-link {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: -100%;
|
|
27
|
+
left: var(--usp-space-4);
|
|
28
|
+
z-index: 9999;
|
|
29
|
+
padding: var(--usp-space-2) var(--usp-space-4);
|
|
30
|
+
background: var(--usp-color-primary);
|
|
31
|
+
color: var(--usp-color-primary-text);
|
|
32
|
+
font-weight: var(--usp-weight-semibold);
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
border-radius: 0 0 var(--usp-radius-md) var(--usp-radius-md);
|
|
35
|
+
transition: top var(--usp-transition-fast);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.skip-link:focus {
|
|
39
|
+
top: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/* ---------- Section Dividers ---------- */
|
|
44
|
+
|
|
45
|
+
.section-divider {
|
|
46
|
+
border: none;
|
|
47
|
+
border-top: 1px solid var(--usp-color-border);
|
|
48
|
+
margin: var(--usp-space-5) 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.section-label {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: var(--usp-space-2);
|
|
55
|
+
margin-bottom: var(--usp-space-4);
|
|
56
|
+
font-size: var(--usp-text-sm);
|
|
57
|
+
font-weight: var(--usp-weight-medium);
|
|
58
|
+
color: var(--usp-color-ink-secondary);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.section-label i {
|
|
62
|
+
font-size: var(--usp-text-base);
|
|
63
|
+
opacity: 0.7;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.section-label::after {
|
|
67
|
+
content: "";
|
|
68
|
+
flex: 1;
|
|
69
|
+
height: 1px;
|
|
70
|
+
background: var(--usp-color-border);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/* ---------- Spacing ---------- */
|
|
75
|
+
|
|
76
|
+
.gap-1 { gap: var(--usp-space-1); }
|
|
77
|
+
.gap-2 { gap: var(--usp-space-2); }
|
|
78
|
+
.gap-3 { gap: var(--usp-space-3); }
|
|
79
|
+
.gap-4 { gap: var(--usp-space-4); }
|
|
80
|
+
|
|
81
|
+
.mb-0 { margin-bottom: 0; }
|
|
82
|
+
.mb-1 { margin-bottom: var(--usp-space-1); }
|
|
83
|
+
.mb-2 { margin-bottom: var(--usp-space-2); }
|
|
84
|
+
.mb-3 { margin-bottom: var(--usp-space-3); }
|
|
85
|
+
.mb-4 { margin-bottom: var(--usp-space-4); }
|
|
86
|
+
.mb-5 { margin-bottom: var(--usp-space-6); }
|
|
87
|
+
|
|
88
|
+
.mt-0 { margin-top: 0; }
|
|
89
|
+
.mt-1 { margin-top: var(--usp-space-1); }
|
|
90
|
+
.mt-2 { margin-top: var(--usp-space-2); }
|
|
91
|
+
.mt-3 { margin-top: var(--usp-space-3); }
|
|
92
|
+
.mt-4 { margin-top: var(--usp-space-4); }
|
|
93
|
+
|
|
94
|
+
.pt-3 { padding-top: var(--usp-space-3); }
|
|
95
|
+
.pb-3 { padding-bottom: var(--usp-space-3); }
|
|
96
|
+
|
|
97
|
+
.border-bottom {
|
|
98
|
+
border-bottom: 1px solid var(--usp-color-border) !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/* ---------- Print ---------- */
|
|
103
|
+
|
|
104
|
+
@media print {
|
|
105
|
+
.usp-header,
|
|
106
|
+
.usp-nav,
|
|
107
|
+
.btn,
|
|
108
|
+
.no-print {
|
|
109
|
+
display: none !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.container {
|
|
113
|
+
max-width: 100%;
|
|
114
|
+
padding: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.card {
|
|
118
|
+
border: none;
|
|
119
|
+
box-shadow: none;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{% load static %}
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html lang="pt-br">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<meta charset="UTF-8">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
+
<title>{% block title %}{% endblock %}</title>
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
10
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
11
|
+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
12
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
13
|
+
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
14
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
|
|
15
|
+
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet">
|
|
16
|
+
<link href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" rel="stylesheet">
|
|
17
|
+
<link href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" rel="stylesheet">
|
|
18
|
+
<link href="https://cdn.jsdelivr.net/npm/flatpickr/dist/themes/material_blue.css" rel="stylesheet">
|
|
19
|
+
<link href="{% static 'usp_theme/css/usp_theme.css' %}" rel="stylesheet">
|
|
20
|
+
{% block extra_css %}{% endblock %}
|
|
21
|
+
</head>
|
|
22
|
+
|
|
23
|
+
<body>
|
|
24
|
+
<a class="skip-link" href="#content">Ir para o conteúdo</a>
|
|
25
|
+
|
|
26
|
+
<header class="usp-header">
|
|
27
|
+
<div class="container-fluid d-flex align-items-center">
|
|
28
|
+
{% block header_logo %}{% endblock %}
|
|
29
|
+
</div>
|
|
30
|
+
</header>
|
|
31
|
+
<div class="usp-header-strip"></div>
|
|
32
|
+
|
|
33
|
+
<nav class="usp-nav" aria-label="{% block nav_aria_label %}Navegação principal{% endblock %}">
|
|
34
|
+
<div class="container-fluid d-flex justify-content-between align-items-center">
|
|
35
|
+
<a class="navbar-brand" href="{% block brand_url %}/{% endblock %}">
|
|
36
|
+
{% block brand %}App{% endblock %}
|
|
37
|
+
</a>
|
|
38
|
+
|
|
39
|
+
{% block nav %}{% endblock %}
|
|
40
|
+
|
|
41
|
+
{% block nav_user %}{% endblock %}
|
|
42
|
+
</div>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
<main id="content">
|
|
46
|
+
<div class="container">
|
|
47
|
+
{% include "usp_theme/components/alert_messages.html" %}
|
|
48
|
+
{% block content %}{% endblock %}
|
|
49
|
+
</div>
|
|
50
|
+
</main>
|
|
51
|
+
|
|
52
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
|
|
53
|
+
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
|
54
|
+
crossorigin="anonymous"></script>
|
|
55
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
|
57
|
+
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/i18n/pt-BR.js"></script>
|
|
58
|
+
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
|
|
59
|
+
<script src="https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/pt.js"></script>
|
|
60
|
+
<script>
|
|
61
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
62
|
+
flatpickr('.data-brasileira', {
|
|
63
|
+
locale: 'pt',
|
|
64
|
+
dateFormat: 'Y-m-d',
|
|
65
|
+
altInput: true,
|
|
66
|
+
altFormat: 'd/m/Y',
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
</script>
|
|
70
|
+
{% block extra_js %}{% endblock %}
|
|
71
|
+
</body>
|
|
72
|
+
|
|
73
|
+
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{% if messages %}
|
|
2
|
+
<div class="row justify-content-center">
|
|
3
|
+
<div class="col-lg-8">
|
|
4
|
+
{% for message in messages %}
|
|
5
|
+
<div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
|
|
6
|
+
{{ message }}
|
|
7
|
+
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Fechar"></button>
|
|
8
|
+
</div>
|
|
9
|
+
{% endfor %}
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
{% endif %}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{% load static %}
|
|
2
|
+
<button type="{{ type|default:'submit' }}"
|
|
3
|
+
class="btn {{ button_class|default:'btn-primary' }} {% if loading %}btn-loading{% endif %}"
|
|
4
|
+
{% if disabled %}disabled{% endif %}
|
|
5
|
+
{% block button_attrs %}{% endblock %}>
|
|
6
|
+
{% if not loading %}<i class="bi {{ icon }}"></i>{% endif %}
|
|
7
|
+
{% block button_text %}{{ text }}{% endblock %}
|
|
8
|
+
</button>
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from django import template
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
register = template.Library()
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@register.filter(name='usp_moeda')
|
|
8
|
+
def usp_moeda(value):
|
|
9
|
+
"""Formata valor para formato brasileiro (R$ 1.234,56)."""
|
|
10
|
+
if value is None or value == '':
|
|
11
|
+
return ""
|
|
12
|
+
try:
|
|
13
|
+
val = float(value)
|
|
14
|
+
return f"R$ {val:,.2f}".replace(",", "X").replace(".", ",").replace("X", ".")
|
|
15
|
+
except (ValueError, TypeError):
|
|
16
|
+
return value
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@register.filter(name='usp_filename')
|
|
20
|
+
def usp_filename(value):
|
|
21
|
+
"""Extrai nome do arquivo de um caminho."""
|
|
22
|
+
if value is None:
|
|
23
|
+
return ""
|
|
24
|
+
return os.path.basename(str(value))
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: django-usp-theme
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Tema visual USP para aplicações Django — design system, componentes e templates reutilizáveis.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/usp/django-usp-theme
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: django>=4.2
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# django-usp-theme
|
|
14
|
+
|
|
15
|
+
Tema visual USP para aplicações Django — design system, componentes e templates reutilizáveis.
|
|
16
|
+
|
|
17
|
+
## Instalação
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install django-usp-theme
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Configuração
|
|
24
|
+
|
|
25
|
+
Adicione `django_usp_theme` ao `INSTALLED_APPS`:
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
INSTALLED_APPS = [
|
|
29
|
+
...
|
|
30
|
+
'django_usp_theme',
|
|
31
|
+
]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Uso
|
|
35
|
+
|
|
36
|
+
### Template base
|
|
37
|
+
|
|
38
|
+
Estenda o template base em seus templates:
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
{% extends "usp_theme/base.html" %}
|
|
42
|
+
{% load static usp_filters %}
|
|
43
|
+
|
|
44
|
+
{% block title %}Minha Aplicação{% endblock %}
|
|
45
|
+
|
|
46
|
+
{% block header_logo %}
|
|
47
|
+
<a href="https://www.usp.br">
|
|
48
|
+
<img src="{% static 'usp_theme/img/usp-logo-f.png' %}" alt="Logo USP">
|
|
49
|
+
</a>
|
|
50
|
+
{% endblock %}
|
|
51
|
+
|
|
52
|
+
{% block brand %}Minha Aplicação{% endblock %}
|
|
53
|
+
|
|
54
|
+
{% block nav %}
|
|
55
|
+
<a class="nav-link" href="{% url 'home' %}">INÍCIO</a>
|
|
56
|
+
<a class="nav-link" href="{% url 'lista' %}">LISTA</a>
|
|
57
|
+
{% endblock %}
|
|
58
|
+
|
|
59
|
+
{% block nav_user %}
|
|
60
|
+
<div class="nav-user">
|
|
61
|
+
<span>{{ user.username }}</span>
|
|
62
|
+
<form action="{% url 'logout' %}" method="post" class="mb-0">
|
|
63
|
+
{% csrf_token %}
|
|
64
|
+
<button type="submit" class="btn btn-sm btn-outline-secondary">
|
|
65
|
+
<i class="bi bi-door-open"></i> Sair
|
|
66
|
+
</button>
|
|
67
|
+
</form>
|
|
68
|
+
</div>
|
|
69
|
+
{% endblock %}
|
|
70
|
+
|
|
71
|
+
{% block content %}
|
|
72
|
+
<!-- Conteúdo da página -->
|
|
73
|
+
{% endblock %}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Componentes
|
|
77
|
+
|
|
78
|
+
#### Page Header
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
{% include "usp_theme/components/page_header.html" %}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Ou com bloco:
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
{% include "usp_theme/components/page_header.html" with title="Minha Página" %}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Content Card
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
{% include "usp_theme/components/content_card.html" with card_title="Título do Card" %}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
#### Empty State
|
|
97
|
+
|
|
98
|
+
```html
|
|
99
|
+
{% include "usp_theme/components/empty_state.html" %}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Ou customizado:
|
|
103
|
+
|
|
104
|
+
```html
|
|
105
|
+
{% include "usp_theme/components/empty_state.html" with empty_icon="bi-folder" empty_text="Nenhum item encontrado." %}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Loading Button
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
{% include "usp_theme/components/loading_button.html" with text="Salvar" icon="bi-check-lg" loading=False %}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Template Tags
|
|
115
|
+
|
|
116
|
+
#### usp_moeda
|
|
117
|
+
|
|
118
|
+
Formata valor para formato brasileiro:
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
{% load usp_filters %}
|
|
122
|
+
|
|
123
|
+
{{ valor|usp_moeda }}
|
|
124
|
+
<!-- Saída: R$ 1.234,56 -->
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
#### usp_filename
|
|
128
|
+
|
|
129
|
+
Extrai nome do arquivo de um caminho:
|
|
130
|
+
|
|
131
|
+
```html
|
|
132
|
+
{% load usp_filters %}
|
|
133
|
+
|
|
134
|
+
{{ caminho|usp_filename }}
|
|
135
|
+
<!-- Saída: arquivo.docx -->
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## CSS
|
|
139
|
+
|
|
140
|
+
O design system é composto por módulos CSS:
|
|
141
|
+
|
|
142
|
+
- `tokens.css` — Variáveis CSS (cores, tipografia, espaçamento)
|
|
143
|
+
- `base.css` — Reset e tipografia
|
|
144
|
+
- `components.css` — Botões, formulários, tabelas, cards, alertas
|
|
145
|
+
- `layout.css` — Header, navegação, container
|
|
146
|
+
- `utilities.css` — Espaçamento, impressão, acessibilidade
|
|
147
|
+
|
|
148
|
+
Para usar apenas parte do CSS:
|
|
149
|
+
|
|
150
|
+
```html
|
|
151
|
+
<link href="{% static 'usp_theme/css/tokens.css' %}" rel="stylesheet">
|
|
152
|
+
<link href="{% static 'usp_theme/css/base.css' %}" rel="stylesheet">
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Ou usar o CSS unificado:
|
|
156
|
+
|
|
157
|
+
```html
|
|
158
|
+
<link href="{% static 'usp_theme/css/usp_theme.css' %}" rel="stylesheet">
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Variáveis CSS
|
|
162
|
+
|
|
163
|
+
O tema utiliza CSS custom properties com prefixo `--usp-*`. Para customizar:
|
|
164
|
+
|
|
165
|
+
```css
|
|
166
|
+
:root {
|
|
167
|
+
--usp-color-primary: #0066cc; /* Cor primária personalizada */
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Licença
|
|
172
|
+
|
|
173
|
+
MIT
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
django_usp_theme/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
django_usp_theme/static/usp_theme/css/base.css,sha256=4-k_yGxnCdJJJhwP9509ZaQv9LBt7ePswhJIeiydzqc,1127
|
|
3
|
+
django_usp_theme/static/usp_theme/css/components.css,sha256=Q_ZmPTYcdnwrY9fL61S3SknA7IpTPEZZ1X8NvLsk3Ug,11137
|
|
4
|
+
django_usp_theme/static/usp_theme/css/layout.css,sha256=HX0RHcTHgpXQkMYsErHfA4flUiNLJnLU7fTJ8qsSIWc,4186
|
|
5
|
+
django_usp_theme/static/usp_theme/css/tokens.css,sha256=XIP1wZptPlqFFyJDma_9hy92UAKYQ7Q0Mn2CFnrjKJo,2225
|
|
6
|
+
django_usp_theme/static/usp_theme/css/usp_theme.css,sha256=1TDDuJBhRMfyuTuIYKXiih99ttQrWN2OSWg0O337Iiw,276
|
|
7
|
+
django_usp_theme/static/usp_theme/css/utilities.css,sha256=6N_lWJ1tQiRA9ioFH6h1ykkWQ4GaNTP9bXw-HIL36jg,2522
|
|
8
|
+
django_usp_theme/static/usp_theme/img/bg-headtop.gif,sha256=yFgVhZB8EJxn6lc0kE104cosBCPK6xC8B8E5MTNrFYI,1120
|
|
9
|
+
django_usp_theme/static/usp_theme/img/usp-logo-f.png,sha256=Nsa3EEph1KUzeHdiqnF1AbAXO58OKVjrvV292E0JnEQ,10822
|
|
10
|
+
django_usp_theme/templates/usp_theme/base.html,sha256=_0Vy_SpXcOZEGPlDUvYJXVRSuuYknMM65EpHk8Djr9w,3349
|
|
11
|
+
django_usp_theme/templates/usp_theme/components/alert_messages.html,sha256=nyrNwfUNO8Utei7R6iXQe4LxFZl7r28MWovhlaHHj3Q,416
|
|
12
|
+
django_usp_theme/templates/usp_theme/components/content_card.html,sha256=As-31ZxobbY_ICHW3FWY3FdHcCmp7kn_IxDJBrSfqDg,251
|
|
13
|
+
django_usp_theme/templates/usp_theme/components/empty_state.html,sha256=bORNkrLSIyGSDDBxLD3hN8XY_4iwsq6zf4xjFtKs2L4,219
|
|
14
|
+
django_usp_theme/templates/usp_theme/components/loading_button.html,sha256=5fYbgGsNbAEf9lqD0ehvzLnPkSEzc6F_ebkRq-jIZEc,381
|
|
15
|
+
django_usp_theme/templates/usp_theme/components/page_header.html,sha256=DoFKDxaO_kJOF0sDj785ucK-e_kzWZAvEb17fvR62tI,172
|
|
16
|
+
django_usp_theme/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
django_usp_theme/templatetags/usp_filters.py,sha256=8TT47MdSp4XP3ZZiwSv7wcHBLaUNWRGVuca2Y_m8bEU,618
|
|
18
|
+
django_usp_theme-0.1.0.dist-info/licenses/LICENSE,sha256=uY69rMDAyMlBdX3xXcv95E1glkwMJcrez6GQTl7kM5c,1060
|
|
19
|
+
django_usp_theme-0.1.0.dist-info/METADATA,sha256=LMM0KluYgj8QsC7xRM2S_FEsdtT3GcEViyqZYPkNhJY,3535
|
|
20
|
+
django_usp_theme-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
21
|
+
django_usp_theme-0.1.0.dist-info/top_level.txt,sha256=2DyhknVwesszyT7jBOVZq4XRu4tmmlUNwMhmPO7Br38,17
|
|
22
|
+
django_usp_theme-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 USP
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
django_usp_theme
|