@times-components/card
Version:
The card component fades in and lays out content that typically consists of an image and a collection of textual elements (although this content could be anything). Card manages the layout of these elements, whilst providing a consistent loading state for
34 lines (31 loc) • 808 B
JavaScript
import { TcView } from "@times-components/utils";
import styled from "styled-components";
import { breakpoints } from "@times-components/ts-styleguide";
export const CardWrapper = styled(TcView)`
.exampleCardImage {
flex-grow: 2 !important;
margin-bottom: 0;
min-width: 360px;
padding-right: 15px;
}
.exampleCardContent {
flex-grow: 2.7 !important;
min-width: 380px;
}
}
`;
export const ReversedCardWrapper = styled(TcView)`
.exampleCardImage {
flex-grow: 2 !important;
margin-bottom: 0;
min-width: 360px;
padding-left: 15px;
}
.exampleCardContent {
flex-grow: 2.7 !important;
min-width: 380px;
}
}
`;