Skip to content

Commit cd0f369

Browse files
committed
style: add comment for css usage
1 parent dfa214e commit cd0f369

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/global/DocsCards/cards.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ docs-cards {
55
gap: 1.35rem;
66
}
77

8+
/*
9+
* This prevents a single card from stretching the full width by
10+
* forcing a 2-column grid layout (a single card will only take up
11+
* 1 column instead of stretching across both). This is used on the
12+
* Packages & CDN page by the JavaScript section.
13+
*/
814
docs-cards:has(docs-card:only-child) {
915
grid-template-columns: 1fr 1fr;
1016
}

0 commit comments

Comments
 (0)