Skip to content

Commit bfb2526

Browse files
committed
improve lookbook styles
1 parent a37d7e8 commit bfb2526

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

apps/lookbook/src/components/Card.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const previewImage = image ? demoPreviewImageUrl(image) : defaultTeaserImage;
7777
}
7878
h2 {
7979
margin: 1rem 0 0.5rem;
80-
font-size: 1.2rem;
80+
font-size: 1rem;
8181
font-weight: bold;
8282
}
8383
p {
@@ -108,10 +108,10 @@ const previewImage = image ? demoPreviewImageUrl(image) : defaultTeaserImage;
108108
}
109109
.tag {
110110
display: inline-block;
111-
font-size: 0.7rem;
111+
font-size: 0.8rem;
112112
background-color: var(--color-background);
113113
margin: 0.2rem;
114114
padding: 0.05rem 0.3em 0.1rem;
115-
border-radius: 0.2rem;
115+
border-radius: 0.4rem;
116116
}
117117
</style>

apps/lookbook/src/components/DemoCards.astro

+6
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ const {demos} = loadMetadataForDemos();
4747
margin-top: 33px;
4848
padding: 0;
4949
}
50+
51+
@media (orientation: portrait) {
52+
.demo-card-grid {
53+
grid-template-columns: repeat(auto-fit, minmax(32ch, 1fr));
54+
}
55+
}
5056
</style>

0 commit comments

Comments
 (0)