-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
220 lines (189 loc) · 4.54 KB
/
index.css
File metadata and controls
220 lines (189 loc) · 4.54 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
/* Color Tokens */
--color-primary: 79 70 229;
/* indigo-600 */
--color-primary-hover: 67 56 202;
/* indigo-700 */
/* Spacing Tokens */
--spacing-section: 1rem;
/* 16px */
/* Responsive Font Scale Tokens */
--font-size-xl: 1.125rem;
/* 18px */
--font-size-2xl: 1.25rem;
/* 20px */
--font-size-3xl: 1.5rem;
/* 24px */
--font-size-4xl: 1.875rem;
/* 30px */
}
@media (min-width: 768px) {
:root {
--spacing-section: 2.5rem;
/* 40px */
--font-size-xl: 1.25rem;
/* 20px */
--font-size-2xl: 1.5rem;
/* 24px */
--font-size-3xl: 1.875rem;
/* 30px */
--font-size-4xl: 2.25rem;
/* 36px */
}
}
}
@layer components {
/* Centralized Typography System */
/* Large page titles (e.g., Login, About, Page Headers) */
.display-title {
@apply text-3xl font-bold text-gray-900 leading-tight;
}
/* Statistics and Large Numbers */
.stat-value {
@apply text-3xl font-bold tracking-tight;
}
/* Section headers / Page Headers */
.section-title {
@apply text-xl font-bold text-gray-900;
}
/* Global Page Layout */
.page-container {
@apply max-w-7xl mx-auto p-section;
}
}
/* Custom Scrollbar for "no-scrollbar" utility */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* RTL Support for Input Fields */
[dir="rtl"] input,
[dir="rtl"] textarea {
text-align: right;
direction: rtl;
/* Ensure the caret and text flow start from the right */
}
/*
Ideally, we want mixed content (English in Arabic layout) to still be aligned right.
'text-align: right' handles the visual alignment.
'direction: rtl' forces the base direction, but might mess up Strong LTR characters (like phone numbers) slightly if not careful.
However, for standard text inputs, user usually expects typing to start from right.
If we want the text *content* to flow naturally but align right:
[dir="rtl"] input {
text-align: right;
}
*/
@media print {
/* Reset Layout - Careful not to destroy Grid/Flex unless necessary */
@page {
margin: 10mm;
size: auto;
}
/* Universal Reset for Print */
body {
background-color: white !important;
color: black !important;
padding: 0 !important;
margin: 0 !important;
font-size: 11pt !important;
line-height: 1.3;
}
/* Hide Non-Print Elements */
.no-print,
aside,
nav,
header,
footer,
/* Don't hide all buttons, we might want to print some 'static' looking ones, but usually buttons are actions */
button,
.fixed,
[role="dialog"],
.toast-container {
display: none !important;
}
/* Layout Adjustments */
.page-container {
max-width: none !important;
padding: 0 !important;
margin: 0 !important;
width: 100% !important;
}
/* Grid Handling: Try to keep grid if it fits, else block */
/* Forcing block often helps with page breaks, but can break side-by-side stats */
.grid {
display: grid !important;
/* If older browser issues arise, fallback to block might be needed, but modern browsers handle grid print okay usually */
}
/* Fallback for complex grids if they look bad:
.grid { display: block !important; }
.grid > * { margin-bottom: 20px; }
*/
/* Page Breaks */
h1,
h2,
h3,
h4,
.section-title,
.stat-card {
page-break-after: avoid;
break-after: avoid;
}
img,
tr,
.card,
.break-inside-avoid {
page-break-inside: avoid;
break-inside: avoid;
}
/* Tables */
table {
width: 100% !important;
border-collapse: collapse !important;
page-break-inside: auto;
}
tr {
page-break-inside: avoid;
page-break-after: auto;
}
th,
td {
border: 1px solid #ddd !important;
padding: 6px 8px !important;
font-size: 10pt !important;
}
/* Color accuracy */
* {
-webkit-print-color-adjust: exact !important;
print-color-adjust: exact !important;
}
/* Shadow removal for cleaner print */
.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl {
box-shadow: none !important;
border: 1px solid #eee !important;
/* Replace shadow with light border for definition */
}
/* Inputs look like text */
input,
textarea,
select {
border: none !important;
background: transparent !important;
padding: 0 !important;
appearance: none !important;
}
/* Scrollbar override */
::-webkit-scrollbar {
display: none;
}
}