Skip to content

Commit 45f27bd

Browse files
committed
style: improve article layout and spacing
1 parent cdd3d6d commit 45f27bd

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

Wireframe/style.css

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,14 @@ footer {
8484
text-align: center;
8585
}
8686

87-
/* ====== Article Layout ======
88-
Setting the rules for how elements are placed in the article.
89-
Now laying out just the INSIDE of the repeated card/article design.
90-
Keeping things orderly and separate is the key to good, simple CSS.
91-
*/
9287
article {
9388
border: var(--line);
94-
padding-bottom: var(--space);
95-
text-align: left;
96-
display: grid;
97-
grid-template-columns: var(--space) 1fr var(--space);
98-
> * {
99-
grid-column: 2/3;
100-
}
101-
> img {
102-
grid-column: span 3;
103-
}
89+
padding: var(--space);
90+
display: flex;
91+
flex-direction: column;
92+
gap: 15px;
93+
}
94+
95+
article h2 {
96+
margin: 0;
10497
}

0 commit comments

Comments
 (0)