Skip to content

Commit ee34835

Browse files
committed
Updated engineering notes mobile css
1 parent 93e1805 commit ee34835

1 file changed

Lines changed: 34 additions & 3 deletions

File tree

styles.css

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,15 +836,46 @@ line-height: 1.4;
836836
@media (max-width: 768px) {
837837

838838
.field-note-card {
839-
flex-direction: column;
839+
display: grid;
840+
grid-template-columns: 1fr;
841+
gap: 0;
840842
}
841843

842-
.field-note-thumbnail {
843-
width: 100%;
844+
/*
845+
* Allow the elements inside these two wrappers to be
846+
* reordered individually within the card.
847+
*/
848+
.field-note-thumbnail,
849+
.field-note-content {
850+
display: contents;
851+
}
852+
853+
.field-note-meta {
854+
order: 1;
855+
}
856+
857+
.field-note-card h2 {
858+
order: 2;
844859
}
845860

846861
.field-note-thumbnail img {
862+
order: 3;
863+
width: 100%;
847864
height: auto;
865+
margin: 8px 0 0;
866+
}
867+
868+
.field-note-date {
869+
order: 4;
870+
margin-top: 6px;
871+
margin-bottom: 28px;
848872
}
849873

874+
.field-note-summary {
875+
order: 5;
876+
}
877+
878+
.field-note-link {
879+
order: 6;
880+
}
850881
}

0 commit comments

Comments
 (0)