Skip to content

Commit

Permalink
Added styles for s,l,m embed sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
lilia1891 committed Sep 27, 2023
1 parent 259510e commit 4dc555e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/common/StreamField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,31 @@ const STREAM_FIELD_FRAGMENT = gql`
`;

const ResponsiveStyles = styled.div`
.responsive-object {
width: 100%;
text-align: center;
}
.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
width: 100%;
height: 100%;
}
.responsive-object-small iframe {
aspect-ratio: 16 / 9;
max-width: 300px;
}
.responsive-object-medium iframe {
aspect-ratio: 16 / 9;
max-width: 480px;
}
.responsive-object-large iframe {
aspect-ratio: 16 / 9;
max-width: 960px;
}
`;

Expand Down

0 comments on commit 4dc555e

Please sign in to comment.