You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BlockButton.styled.js 714B

123456789101112131415161718192021222324252627
  1. import { Box } from "@mui/system";
  2. import styled, { css } from "styled-components";
  3. import selectedTheme from "../../../themes";
  4. export const BlockButtonContainer = styled(Box)`
  5. display: inline;
  6. cursor: pointer;
  7. `;
  8. export const BlockButtonIcon = styled(Box)`
  9. font-size: 16px;
  10. font-family: "Source Code Pro";
  11. ${(props) =>
  12. props.format === "bold"
  13. ? `font-weight: bold;`
  14. : props.format === "italic"
  15. ? "font-style: italic;"
  16. : props.format === "underline"
  17. ? `text-decoration: underline;`
  18. : ""}
  19. color: ${selectedTheme.colors.primaryGrayText};
  20. line-height: 20px;
  21. ${(props) =>
  22. props.active &&
  23. css`
  24. color: ${selectedTheme.colors.primaryText};
  25. `}
  26. `;