style(flows): font sizes

This commit is contained in:
moklick
2020-10-06 14:06:29 +02:00
parent b285ca75c6
commit 323bccd84a
3 changed files with 7 additions and 4 deletions

View File

@@ -8,7 +8,6 @@ const ColorPickerNodeWrapper = styled.div`
padding: 10px;
background: white;
border: 1px solid ${getThemeColor('violet')};
font-size: 12px;
border-radius: 4px;
box-shadow: ${(p) =>
p.selected ? `0 0 0 0.25px ${p.theme.colors.violet}` : 'none'};

View File

@@ -14,9 +14,9 @@ const getOffset = () => {
if (isSmallScreen) {
return 0;
} else if (windowWidth < 1200) {
return 405;
return 425;
} else {
return (windowWidth - 1200) / 2 + 450;
return (windowWidth - 1200) / 2 + 500;
}
};
@@ -115,6 +115,7 @@ export default () => {
sourcePosition: 'right',
position: { x: getColorNodeX(), y: isSmallScreen ? 350 : 180 },
style: {
width: 200,
background: 'rgb(105, 100, 165)',
color: 'white',
textShadow:

View File

@@ -44,7 +44,10 @@
.react-flow {
font-family: 'jetbrains-mono';
text-transform: uppercase;
font-size: 24px;
}
.react-flow .react-flow__node {
font-size: 14px;
}
.react-flow__controls-button {