DocSpace-buildtools/packages/asc-web-components/snackbar/styled-snackbar.js

74 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-07-14 14:12:13 +00:00
import styled from "styled-components";
import Box from "../box";
const StyledSnackBar = styled(Box)`
transition: all 500ms ease;
transition-property: top, right, bottom, left, opacity;
font-family: Open Sans, sans-serif, Arial;
font-size: 12px;
min-height: 14px;
position: relative;
display: flex;
align-items: flex-start;
color: white;
line-height: 16px;
padding: 12px;
margin: 0 0 8px 0;
opacity: ${(props) => props.opacity || 0};
width: 100%;
2021-07-20 08:07:41 +00:00
background-color: ${(props) => props.backgroundColor};
background-image: url(${(props) => props.backgroundImg || ""});
2021-07-14 14:12:13 +00:00
border-radius: 6px;
.logo {
padding-right: 10px;
}
.text-container {
width: 100%;
2021-07-14 14:12:13 +00:00
display: flex;
flex-direction: column;
gap: 5px;
2021-07-26 09:31:56 +00:00
text-align: ${(props) => props.textAlign};
2021-07-14 14:12:13 +00:00
.text-header {
margin: 0;
}
2021-07-26 09:31:56 +00:00
.text-body {
width: 100%;
display: flex;
flex-direction: row;
gap: 10px;
justify-content: ${(props) => props.textAlign};
}
2021-07-14 14:12:13 +00:00
}
.action {
background: inherit;
display: inline-block;
border: none;
font-size: inherit;
2021-07-20 08:27:07 +00:00
color: "#000";
2021-07-14 14:12:13 +00:00
margin: 0 0 0 24px;
padding: 0;
min-width: min-content;
cursor: pointer;
margin-left: auto;
padding-left: 8px;
text-decoration: underline;
2021-07-14 14:12:13 +00:00
}
2021-07-26 09:31:56 +00:00
.button {
background: inherit;
border: none;
font-size: 13px;
color: "#000";
cursor: pointer;
2021-10-07 10:56:46 +00:00
line-height: 14px;
2021-07-26 09:31:56 +00:00
text-decoration: underline;
}
2021-07-14 14:12:13 +00:00
`;
export default StyledSnackBar;