Skip to content

Commit

Permalink
[components] Update CardPreview typography
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 0a18c7a commit a39c024
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/@sanity/components/src/previews/styles/CardPreview.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@
composes: ellipsis;
text-transform: none;
color: inherit;
margin: 0;
padding: 0 !important;
margin: 0 !important;
min-width: 0;
line-height: 1.3em;
}

.subtitle {
font-size: 0.75em;
font-size: var(--font-size-small);
line-height: var(--line-height-small);
text-transform: none;
font-weight: 300;
margin: 0;
font-weight: 400;
margin: var(--extra-small-padding) 0 0;
padding: 0;
margin-bottom: 0.5em;
color: inherit;
}

Expand Down Expand Up @@ -97,6 +95,13 @@
height: 4em;
opacity: 0.5;
}

@nest & > img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}

.mediaContentRelative {
Expand All @@ -105,30 +110,25 @@

.description {
font-size: var(--font-size-xsmall);
line-height: var(--line-height-xsmall);
color: inherit;
font-weight: 400;
padding: 0;
margin: 0;
margin: var(--extra-small-padding) 0 0;
}

.meta {
padding: 1em;
background-color: inherit;
}

.img {
display: block;
width: 100%;
height: auto;
}

.imgLandscape {
/* .imgLandscape {
composes: img;
}
.imgPortrait {
composes: img;
}
} */

.placeholder {
composes: root;
Expand Down

0 comments on commit a39c024

Please sign in to comment.