fix: changed remaing ems to rem and set root font size

pull/2599/head
William Grant 3 years ago
parent 2f0c07b5ae
commit 9ffa63ccdc

@ -6,6 +6,7 @@ html {
height: 100%; height: 100%;
// Default theme is Classic Dark // Default theme is Classic Dark
background-color: #1b1b1b; background-color: #1b1b1b;
font-size: 14px;
} }
body { body {
@ -14,7 +15,6 @@ body {
width: 100%; width: 100%;
margin: 0; margin: 0;
font-family: $session-font-default; font-family: $session-font-default;
font-size: 14px;
letter-spacing: 0.3px; letter-spacing: 0.3px;
} }

@ -15,7 +15,7 @@ const StyledContent = styled.div`
img { img {
padding: 12px; padding: 12px;
margin-top: 1em; margin-top: 1rem;
} }
a { a {

@ -17,8 +17,8 @@ const StyledContent = styled.div`
height: 100%; height: 100%;
.session-button { .session-button {
margin: 1em auto 1em 0; margin: 1rem auto 1rem 0;
padding: 1em; padding: 1rem;
width: fit-content; width: fit-content;
} }

@ -4,7 +4,7 @@ import { UserUtils } from '../../session/utils';
const StyledPillDividerLine = styled.div` const StyledPillDividerLine = styled.div`
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
line-height: 0.1em; line-height: 0.1rem;
flex-grow: 1; flex-grow: 1;
height: 1px; height: 1px;
align-self: center; align-self: center;

@ -41,5 +41,5 @@ export const Emojify = (props: Props): JSX.Element => {
default: default:
} }
return <span style={{ fontSize: `${size}em`, userSelect: 'inherit' }}>{rendered}</span>; return <span style={{ fontSize: `${size}rem`, userSelect: 'inherit' }}>{rendered}</span>;
}; };

@ -13,7 +13,7 @@ const EmojiQuickResult = styled.span`
const EmojiQuickResultIcon = styled.span` const EmojiQuickResultIcon = styled.span`
padding-inline-end: 20px; padding-inline-end: 20px;
padding-inline-start: 10px; padding-inline-start: 10px;
font-size: 1.4em; font-size: 1.4rem;
`; `;
const EmojiQuickResultText = styled.span``; const EmojiQuickResultText = styled.span``;

@ -113,7 +113,7 @@ const StyledReadableMessage = styled(ReadableMessage)<{
display: flex; display: flex;
align-items: center; align-items: center;
width: 100%; width: 100%;
letter-spacing: 0.03em; letter-spacing: 0.03rem;
padding: var(--margins-xs) var(--margins-lg) 0; padding: var(--margins-xs) var(--margins-lg) 0;
&.message-highlighted { &.message-highlighted {

Loading…
Cancel
Save