Skip to content

Commit 8af9218

Browse files
committed
style: add mobile accessibility to security page
- Responsive table with horizontal scroll on mobile - Smaller fonts and spacing for small screens - Touch-friendly tap targets (44px minimum) - Adjusted popup for mobile viewports - Timeline scales down properly
1 parent 9c473b9 commit 8af9218

File tree

1 file changed

+122
-0
lines changed

1 file changed

+122
-0
lines changed

docs/security.html

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,126 @@
331331
.popup-close:active {
332332
transform: scale(0.95);
333333
}
334+
335+
/* Mobile Responsive Styles */
336+
@media (max-width: 768px) {
337+
.security-hero {
338+
padding: 60px 15px 40px;
339+
}
340+
.security-hero h1 {
341+
font-size: 1.75rem;
342+
}
343+
.security-hero .subtitle {
344+
font-size: 1rem;
345+
}
346+
.advisory-container {
347+
padding: 20px 15px;
348+
}
349+
.section-heading {
350+
font-size: 1.25rem;
351+
margin: 30px 0 15px 0;
352+
}
353+
354+
/* Table scroll wrapper for mobile */
355+
.table-wrapper {
356+
overflow-x: auto;
357+
-webkit-overflow-scrolling: touch;
358+
margin: 20px -15px;
359+
padding: 0 15px;
360+
}
361+
.vuln-table {
362+
min-width: 600px;
363+
font-size: 0.85rem;
364+
}
365+
.vuln-table th,
366+
.vuln-table td {
367+
padding: 10px 8px;
368+
}
369+
370+
/* Timeline mobile */
371+
.timeline {
372+
padding-left: 20px;
373+
}
374+
.timeline-item {
375+
padding-left: 15px;
376+
}
377+
.timeline-item::before {
378+
left: -24px;
379+
width: 8px;
380+
height: 8px;
381+
}
382+
.timeline-date {
383+
font-size: 0.9rem;
384+
}
385+
.timeline-content {
386+
font-size: 0.9rem;
387+
}
388+
389+
/* Recommendation cards mobile */
390+
.recommendation-card {
391+
padding: 15px;
392+
}
393+
.recommendation-card pre {
394+
font-size: 0.8rem;
395+
padding: 10px !important;
396+
}
397+
398+
/* Popup mobile */
399+
.popup-box {
400+
margin: 20px;
401+
padding: 30px 25px;
402+
max-width: calc(100% - 40px);
403+
}
404+
.popup-box h2 {
405+
font-size: 1.5rem;
406+
}
407+
.popup-box p {
408+
font-size: 0.95rem;
409+
}
410+
411+
/* Contact section mobile */
412+
.contact-section {
413+
padding: 20px 15px;
414+
}
415+
}
416+
417+
@media (max-width: 480px) {
418+
.security-hero h1 {
419+
font-size: 1.5rem;
420+
}
421+
.vuln-table {
422+
font-size: 0.75rem;
423+
}
424+
.severity-critical,
425+
.severity-high,
426+
.severity-medium,
427+
.severity-low {
428+
font-size: 0.7rem;
429+
padding: 3px 5px;
430+
}
431+
.body-text {
432+
font-size: 0.9rem;
433+
}
434+
.popup-box {
435+
padding: 25px 20px;
436+
}
437+
.popup-close {
438+
padding: 10px 25px;
439+
font-size: 0.9rem;
440+
}
441+
}
442+
443+
/* Touch-friendly tap targets */
444+
@media (pointer: coarse) {
445+
.popup-close {
446+
min-height: 44px;
447+
min-width: 44px;
448+
}
449+
.contact-section a {
450+
display: inline-block;
451+
padding: 8px 0;
452+
}
453+
}
334454
</style>
335455
</head>
336456
<body>
@@ -383,6 +503,7 @@ <h2 class="section-heading">Summary</h2>
383503

384504
<h2 class="section-heading">Vulnerability Details</h2>
385505

506+
<div class="table-wrapper">
386507
<table class="vuln-table">
387508
<thead>
388509
<tr>
@@ -522,6 +643,7 @@ <h2 class="section-heading">Vulnerability Details</h2>
522643
</tr>
523644
</tbody>
524645
</table>
646+
</div>
525647

526648
<h2 class="section-heading">Remediation Timeline</h2>
527649

0 commit comments

Comments
 (0)