DocSpace-buildtools/packages/components/campaigns-banner/styled-campaigns-banner.js

57 lines
1.0 KiB
JavaScript
Raw Normal View History

import styled from "styled-components";
import Base from "../themes/base";
import NoUserSelect from "../utils/commonStyles";
const BannerWrapper = styled.div`
2021-07-02 10:21:54 +00:00
max-width: 185px;
border: ${(props) => props.theme.campaignsBanner.border};
border-radius: 5px;
padding: 15px;
2021-07-02 15:08:04 +00:00
margin: 20px 0px 50px 0px;
@media screen and (max-width: 1024px) {
2021-07-02 10:21:54 +00:00
max-width: inherit;
}
a {
text-decoration: none;
color: ${(props) => props.theme.campaignsBanner.color};
}
2021-11-11 14:21:49 +00:00
.banner-img-wrapper {
height: 160px;
width: 100%;
}
2021-06-30 21:50:15 +00:00
img {
2021-07-02 15:08:04 +00:00
max-width: 100%;
2021-06-30 21:50:15 +00:00
height: auto;
2021-11-11 14:21:49 +00:00
margin-top: 5px;
2021-06-30 21:50:15 +00:00
}
.banner-sub-header {
line-height: 1.5;
}
.banner-img {
${NoUserSelect}
}
.banner-btn {
width: 100%;
color: ${(props) => props.theme.campaignsBanner.btnColor};
margin-top: 15px;
border: none;
border-radius: 5px;
}
2021-07-01 09:23:20 +00:00
.banner-btn:active {
color: ${(props) => props.theme.campaignsBanner.btnColor};
2021-07-01 09:23:20 +00:00
border: none;
}
`;
BannerWrapper.defaultProps = { theme: Base };
2021-07-01 08:52:56 +00:00
export default BannerWrapper;