Adds secondary color and styling to code blocks using theme varibales ( #6029 ) (#6931)

Follow-up of #6929, this PR just changes the hard coded values to theme
values.
This commit is contained in:
Faisal-imtiyaz123 2024-09-10 15:23:20 +05:30 committed by GitHub
parent 05d70b03fd
commit d1b4f85e8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,12 +96,12 @@ const StyledEditor = styled.div`
& .bn-inline-content code {
font-family: monospace;
color: darkred;
color: ${({ theme }) => theme.font.color.danger};
padding: 2px 4px;
border-radius: 4px;
border: 1px solid #e0e0e0;
border: 1px solid ${({ theme }) => theme.font.color.extraLight};
font-size: 0.9rem;
background-color: #1414140f;
background-color: ${({ theme }) => theme.background.transparent.light};
}
`;