We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7dd8f commit 270b4daCopy full SHA for 270b4da
1 file changed
src/components/global/DocsCards/cards.css
@@ -7,12 +7,15 @@ docs-cards {
7
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
+ * adding an invisible pseudo-element as a second grid item. This
+ * creates a 2-column layout on larger screens (card takes 1 column)
12
+ * and collapses to full width on smaller screens. This is used on the
13
* Packages & CDN page by the JavaScript section.
14
*/
-docs-cards:has(docs-card:only-child) {
15
- grid-template-columns: 1fr 1fr;
+docs-cards:has(docs-card:only-child)::after {
16
+ content: '';
17
+ display: block;
18
+ visibility: hidden;
19
}
20
21
docs-cards > docs-card {
0 commit comments