Skip to content

Commit 252e6e5

Browse files
Update blog and media figure styles
1 parent 1561e5a commit 252e6e5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

packages/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dittmann/ui",
3-
"version": "1.0.22",
3+
"version": "1.0.23",
44
"description": "",
55
"main": "dist/index.css",
66
"scripts": {

packages/main/src/compoments/_blog.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ article,
2727
}
2828
}
2929
> figure {
30-
margin: 0;
3130
border-start-start-radius: calc(0.5rem - 1px);
3231
border-start-end-radius: calc(0.5rem - 1px);
3332
padding: 0;
3433
aspect-ratio: 16 / 9;
3534
overflow: hidden;
3635

37-
> img {
36+
img {
3837
transition: transform 0.3s ease;
3938
width: 100%;
4039
height: 100%;
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
figure {
2-
display: flex;
3-
flex-direction: column;
4-
gap: 0.875rem;
52
margin: 0;
3+
4+
figcaption {
5+
margin-block-start: 1rem;
6+
}
67
}
8+
79
img {
810
width: 100%;
911
}

0 commit comments

Comments
 (0)