Skip to content

Commit c45d1aa

Browse files
committed
CSS:
- fixed parsing errors flagged in w3: un-nested rules from main {} and article {}
1 parent 9c53cfa commit c45d1aa

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

Wireframe/style.css

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ main {
8484
display: grid;
8585
grid-template-columns: 1fr 1fr;
8686
gap: var(--space);
87-
> *:first-child {
88-
grid-column: span 2;
89-
}
9087
}
88+
89+
/* Moved outside of main {} to fix parsing error */
90+
main > *:first-child {
91+
grid-column: span 2;
92+
}
93+
9194
/* ====== Article Layout ======
9295
Setting the rules for how elements are placed in the article.
9396
Now laying out just the INSIDE of the repeated card/article design.
@@ -99,11 +102,13 @@ article {
99102
text-align: justify;
100103
display: grid;
101104
grid-template-columns: var(--space) 1fr var(--space);
102-
> * {
103-
grid-column: 2/3;
104-
}
105-
> img {
106-
grid-column: span 3;
107-
108-
}
105+
}
106+
107+
/* Moved outside of article {} to fix parsing error */
108+
article > * {
109+
grid-column: 2/3;
110+
}
111+
/* Moved outside of article {} to fix parsing error */
112+
article > img {
113+
grid-column: span 3;
109114
}

0 commit comments

Comments
 (0)