-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponsive.css
More file actions
187 lines (168 loc) · 10.4 KB
/
Copy pathresponsive.css
File metadata and controls
187 lines (168 loc) · 10.4 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
/* ═══════════════════════════════════════════════════════════════
responsive.css — Full Mobile & Tablet Support
Hostel Management System | Breakpoints: 480px | 767px | 1024px
═══════════════════════════════════════════════════════════════ */
/* FIX: Removed duplicate *, box-sizing reset — already defined in theme.css.
Kept img/video max-width as it is specific to responsive concerns. */
img, video { max-width: 100%; height: auto; }
/* ── NAVBAR ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
.main-navbar { padding: 10px 16px !important; height: auto !important; flex-wrap: wrap; gap: 8px; }
.university-logo { height: 42px !important; width: 42px !important; }
.university-info h1 { font-size: 16px !important; }
.university-info p { font-size: 11px !important; }
.live-clock-box { font-size: 12px !important; padding: 6px 10px !important; min-width: 140px !important; }
.nav-btn { padding: 7px 12px !important; font-size: 12px !important; }
}
@media (max-width: 767px) {
.main-navbar { padding: 8px 12px !important; }
.university-info p { display: none; }
.live-clock-box { min-width: 110px !important; font-size: 11px !important; }
.navbar-right { gap: 6px !important; }
}
@media (max-width: 480px) {
.university-logo { height: 34px !important; width: 34px !important; }
.university-info h1 { font-size: 13px !important; }
.live-clock-box { display: none; }
}
/* ── CARDS / GRIDS ─────────────────────────────────────────── */
@media (max-width: 1024px) {
.option-container, .cards-grid, .grid-menu, .action-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 600px) {
.option-container, .cards-grid, .grid-menu, .action-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
.action-card, .card, .choice-card { padding: 20px 16px !important; }
.action-card i, .card i { font-size: 36px !important; }
}
/* ── FORMS ──────────────────────────────────────────────────── */
input, select, textarea { font-size: 16px; }
@media (max-width: 1024px) {
.form-section, .form-card, .form-box { padding: 20px 18px !important; margin: 10px !important; }
.form-grid, .two-col, .grid-2 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}
@media (max-width: 767px) {
.form-grid, .two-col, .grid-2 { grid-template-columns: 1fr !important; }
.form-section, .form-card { padding: 16px 14px !important; margin: 8px !important; border-radius: 10px !important; }
.btn-group { flex-direction: column !important; gap: 10px !important; }
.btn-group button, .btn-group a { width: 100% !important; text-align: center !important; }
button[type="submit"], input[type="submit"], .btn-submit { width: 100% !important; padding: 14px !important; }
}
/* ── TABLES ─────────────────────────────────────────────────── */
.table-container, .table-wrapper, .log-table-wrapper {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
width: 100%;
}
@media (max-width: 1024px) {
table { font-size: 13px !important; }
th, td { padding: 8px 10px !important; white-space: nowrap; }
}
@media (max-width: 767px) {
table { font-size: 12px !important; }
th, td { padding: 6px 8px !important; }
}
/* ── FILTERS / TABS ─────────────────────────────────────────── */
@media (max-width: 1024px) {
.filters-row, .filter-bar { flex-wrap: wrap !important; gap: 8px !important; padding: 12px !important; }
.filters-row input, .filters-row select, .filter-bar input, .filter-bar select { min-width: 140px !important; flex: 1 !important; }
.tab-buttons, .pass-tabs { flex-wrap: wrap !important; gap: 6px !important; }
.tab-btn, .pass-tab { padding: 8px 14px !important; font-size: 13px !important; }
}
@media (max-width: 767px) {
.filters-row, .filter-bar { flex-direction: column !important; }
.filters-row input, .filters-row select, .filter-bar input, .filter-bar select { width: 100% !important; }
}
/* ── MODALS ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
.modal-content, .modal-box { width: 90% !important; max-width: 480px !important; padding: 20px !important; }
}
@media (max-width: 480px) {
.modal-content, .modal-box { width: 96% !important; padding: 16px !important; border-radius: 12px !important; }
}
/* ── FOOTER ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
.footer-body { flex-direction: column !important; align-items: center !important; text-align: center !important; padding: 20px 16px !important; gap: 16px !important; }
.footer-links { justify-content: center !important; flex-wrap: wrap !important; gap: 12px !important; }
.footer-meta { text-align: center !important; }
}
@media (max-width: 480px) {
.footer-quote-strip .quote-text { font-size: 12px !important; }
.footer-links a { font-size: 11px !important; }
.footer-bottom { font-size: 10px !important; }
}
/* ── SIDEBAR ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
#sidebar, .sidebar { position: fixed !important; left: -260px !important; z-index: 9999 !important; transition: left 0.3s ease !important; width: 240px !important; }
#sidebar.open, .sidebar.open { left: 0 !important; }
.main-content, #main-content { margin-left: 0 !important; width: 100% !important; }
.sidebar-toggle-btn { display: flex !important; }
}
/* ── CAMERA / QR / BARCODE ──────────────────────────────────── */
@media (max-width: 767px) {
.camera-box, .qr-card, .verify-card, .barcode-box { padding: 16px !important; margin: 8px 0 !important; }
#video { width: 100% !important; max-height: 240px !important; }
}
/* ── STATS ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
.stats-grid, .analytics-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 480px) {
.stat-card h3 { font-size: 24px !important; }
}
/* ── LOGIN / PRE-LOGIN ──────────────────────────────────────── */
@media (max-width: 767px) {
.login-card, .login-box { width: 96% !important; padding: 24px 16px !important; border-radius: 12px !important; }
.container { grid-template-columns: 1fr !important; padding: 16px !important; gap: 12px !important; }
.role-card { padding: 20px !important; }
}
/* ── SCAN / CHOICE PAGES ────────────────────────────────────── */
@media (max-width: 767px) {
.choice-cards { flex-direction: column !important; }
.choice-card { width: 100% !important; min-width: unset !important; }
}
/* ── INFO BANNERS ───────────────────────────────────────────── */
@media (max-width: 767px) {
.info-banner, .alert-box { flex-direction: column !important; gap: 8px !important; padding: 12px !important; font-size: 13px !important; }
}
/* ── TOUCH IMPROVEMENTS ─────────────────────────────────────── */
@media (max-width: 1024px) {
button, a.btn, input[type="submit"], input[type="button"],
.action-card, .choice-card, .tab-btn, .nav-btn { min-height: 44px; }
a, button { -webkit-tap-highlight-color: rgba(0,0,0,0.1); }
html { -webkit-overflow-scrolling: touch; /* FIX: removed scroll-behavior duplicate — already set in theme.css */ }
}
/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
.main-navbar, .sidebar, .kiss-footer, .staff-footer,
.btn-group, .no-print, .tab-buttons, .filters-row { display: none !important; }
body { background: white !important; }
}
/* ── UTILITIES ──────────────────────────────────────────────── */
.overflow-x-auto { overflow-x: auto !important; }
.touch-scroll { -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) { .hide-on-mobile { display: none !important; } .full-on-mobile { width: 100% !important; } }
@media (max-width: 1024px) { .hide-on-tablet { display: none !important; } .full-on-tablet { width: 100% !important; } }
/* ── FOOTER STICKY FIX ──────────────────────────────────────── */
/* FIX: Removed `body { display: flex }` from here — it conflicted with theme.css body
definition and login.php inline body styles, causing three competing declarations.
The sticky footer is now handled via .page-wrapper pattern below instead. */
.page-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.page-wrapper > main,
.page-wrapper > .dashboard-container,
.page-wrapper > .page-content {
flex: 1;
}
/* Push footer to bottom */
body > .kiss-footer,
body > .staff-footer-wrapper,
body > footer {
margin-top: auto; /* FIX: removed !important — not fighting anything here */
}
.kiss-footer,
.kiss-footer * {
margin-bottom: 0;
}