@@ -9,10 +9,7 @@ interface TextAndImageBaseProps {
99 grid ?: string ;
1010 fluid ?: boolean ;
1111}
12- export const TextAndImageBase =
13- styled . div <
14- TextAndImageBaseProps >
15- `
12+ export const TextAndImageBase = styled . div < TextAndImageBaseProps > `
1613 max-width: 100% !important;
1714 display: flex;
1815 flex-direction: column;
@@ -25,14 +22,13 @@ export const TextAndImageBase =
2522 grid-column-gap: ${ ( props ) => props . gutter } ;
2623 }
2724 @media (${ mediaQueryMin . md } ) {
28- grid-template: auto / ${ containerWidth . sm } ${ ( props ) => props . grid } ${
29- containerWidth . sm
30- } ;
25+ grid-template: auto / ${ containerWidth . sm } ${ ( props ) => props . grid } ${ containerWidth . sm } ;
3126 }
3227 @media (${ mediaQueryMin . lg } ) {
3328 grid-template: auto / ${ ( props ) =>
34- props . fluid ? containerWidth . md : containerWidth . xl } ${ ( props ) =>
35- props . grid } ${ containerWidth . md } ;
29+ props . fluid ? containerWidth . md : containerWidth . xl } ${ (
30+ props
31+ ) => props . grid } ${ containerWidth . md } ;
3632 }
3733` ;
3834
@@ -41,10 +37,7 @@ interface ImageWrapperProps {
4137 small ?: boolean ;
4238 transform ?: string ;
4339}
44- export const ImageWrapper =
45- styled . figure <
46- ImageWrapperProps >
47- `
40+ export const ImageWrapper = styled . figure < ImageWrapperProps > `
4841 grid-area: ${ ( props ) => props . pos } ;
4942 width: ${ ( props ) => ( props . small ? '70%' : '100%' ) } ;
5043 margin: 1em 1em;
@@ -64,10 +57,7 @@ interface ContentWrapperProps {
6457 reverse ?: boolean ;
6558 fluid ?: boolean ;
6659}
67- export const ContentWrapper =
68- styled . div <
69- ContentWrapperProps >
70- `
60+ export const ContentWrapper = styled . div < ContentWrapperProps > `
7161 margin: 2em 1em;
7262 max-width: 100vw;
7363 @media (${ mediaQueryMin . xs } ) {
@@ -85,10 +75,7 @@ export const ContentWrapper =
8575interface GalleryWrapperProps {
8676 width ?: number ;
8777}
88- export const GalleryWrapper =
89- styled . section <
90- GalleryWrapperProps >
91- `
78+ export const GalleryWrapper = styled . section < GalleryWrapperProps > `
9279 display: flex;
9380 & > * {
9481 width: ${ ( props ) => props . width || 100 } %;
0 commit comments