Skip to content

Commit c227fc7

Browse files
Copilotmvadari
andcommitted
Improve mobile CSS layout with better card design and spacing
Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
1 parent ac45755 commit c227fc7

File tree

1 file changed

+90
-14
lines changed

1 file changed

+90
-14
lines changed

site/assets/style.css

Lines changed: 90 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,11 @@ footer a:hover {
578578

579579
/* Mobile table view */
580580
@media (max-width: 600px) {
581+
.standards-table-container {
582+
background: transparent;
583+
border: none;
584+
}
585+
581586
.standards-table thead {
582587
display: none;
583588
}
@@ -595,34 +600,105 @@ footer a:hover {
595600

596601
.standards-table tr {
597602
border: 1px solid var(--border-color);
598-
margin-bottom: 16px;
599-
border-radius: 8px;
600-
padding: 16px;
603+
margin-bottom: 20px;
604+
border-radius: 12px;
605+
padding: 20px;
601606
background: var(--bg-color-raised);
607+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
608+
transition: all 0.2s ease;
609+
}
610+
611+
.standards-table tr:hover {
612+
transform: translateY(-2px);
613+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
614+
background-color: var(--color-gray-7);
602615
}
603616

604617
.standards-table td {
605618
border: none;
606-
padding: 8px 0;
619+
padding: 12px 0;
607620
display: flex;
608-
justify-content: space-between;
609-
align-items: center;
610-
min-height: 36px;
621+
align-items: flex-start;
622+
min-height: auto;
623+
flex-direction: column;
624+
gap: 6px;
625+
}
626+
627+
.standards-table td:first-child {
628+
padding-top: 0;
629+
border-top: none;
630+
}
631+
632+
.standards-table td:last-child {
633+
padding-bottom: 0;
634+
border-bottom: none;
635+
align-items: flex-start;
636+
}
637+
638+
.standards-table td:not(:last-child) {
639+
border-bottom: 1px solid var(--border-color);
640+
padding-bottom: 16px;
641+
margin-bottom: 4px;
611642
}
612643

613644
.standards-table td:before {
614-
content: attr(data-label) ':';
645+
content: attr(data-label);
615646
font-weight: 600;
616647
color: var(--text-color-secondary);
617648
text-transform: uppercase;
618-
font-size: 12px;
619-
letter-spacing: 0.5px;
620-
margin-right: 16px;
621-
flex-shrink: 0;
622-
width: 80px;
649+
font-size: 11px;
650+
letter-spacing: 0.8px;
651+
margin-bottom: 4px;
652+
display: block;
653+
opacity: 0.8;
654+
}
655+
656+
/* Mobile-specific column styling */
657+
.standards-table .number-col a {
658+
font-size: 18px;
659+
font-weight: 700;
660+
color: var(--link-color);
661+
text-decoration: none;
662+
display: block;
663+
padding: 8px 0;
664+
}
665+
666+
.standards-table .number-col a:hover {
667+
color: var(--link-hover-color);
668+
}
669+
670+
.standards-table .title-col a {
671+
font-size: 16px;
672+
font-weight: 600;
673+
color: var(--text-color);
674+
text-decoration: none;
675+
line-height: 1.4;
676+
word-wrap: break-word;
677+
hyphens: auto;
678+
display: block;
679+
padding: 4px 0;
680+
}
681+
682+
.standards-table .title-col a:hover {
683+
color: var(--link-color);
684+
}
685+
686+
.standards-table .author-col {
687+
color: var(--text-color-secondary);
688+
font-size: 14px;
689+
line-height: 1.3;
623690
}
624691

625692
.standards-table .status-col {
626-
text-align: right;
693+
text-align: left;
694+
align-items: flex-start;
695+
}
696+
697+
.standards-table .status-badge {
698+
margin-top: 2px;
699+
padding: 8px 12px;
700+
border-radius: 6px;
701+
font-size: 11px;
702+
font-weight: 700;
627703
}
628704
}

0 commit comments

Comments
 (0)