DocSpace-client/packages/components/access-right-select/styled-accessright.js

75 lines
1.3 KiB
JavaScript

import styled from "styled-components";
import ComboBox from "../combobox/index.js";
import Base from "../themes/base";
const StyledWrapper = styled(ComboBox)`
.combo-button {
padding-left: 16px;
padding-right: 8px;
}
@media (max-width: 428px) {
.backdrop-active {
top: -64px;
z-index: 560;
}
.dropdown-container {
z-index: 561;
}
}
`;
StyledWrapper.defaultProps = { theme: Base };
const StyledItem = styled.div`
width: auto;
display: flex;
align-items: flex-start;
justify-content: flex-start;
align-content: center;
padding: 7px 0px;
line-height: 16px;
font-style: normal;
`;
StyledItem.defaultProps = { theme: Base };
const StyledItemDescription = styled.div`
margin: 1px 0px;
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: 16px;
color: ${(props) => props.theme.accessRightSelect.descriptionColor};
`;
StyledItemDescription.defaultProps = { theme: Base };
const StyledItemIcon = styled.img`
margin-right: 8px;
`;
const StyledItemContent = styled.div`
width: 100%;
white-space: normal;
`;
const StyledItemTitle = styled.div`
display: flex;
align-items: center;
gap: 8px;
`;
export {
StyledItemTitle,
StyledItemContent,
StyledItemIcon,
StyledItemDescription,
StyledItem,
StyledWrapper,
};