Skip to content

Commit

Permalink
Some design polish
Browse files Browse the repository at this point in the history
  • Loading branch information
nerik committed Sep 27, 2023
1 parent 240017f commit 9abac3b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
27 changes: 18 additions & 9 deletions app/scripts/components/analysis/define/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,19 @@ const UnselectableInfo = styled.div`

const FormCheckableUnselectable = styled(FormCheckableCustom)`
pointer-events: none;
background: #f0f0f5;
background: #F0F0F5;
`;

const DataPointsWarning = styled.div`
display: flex;
align-items: center;
background: ${themeVal('color.danger-100')};
background: #FC3D2119;
border-radius: 99px;
font-size: 0.825rem;
font-weight: bold;
margin-top: ${variableGlsp(0.5)};
paddding: 4px;
padding: 2px 0 2px 6px;
color: ${themeVal('color.danger')};
& path {
fill: ${themeVal('color.danger')};
Expand Down Expand Up @@ -159,10 +160,8 @@ const FoldWithBullet = styled(Fold)<{ number: string }>`
// bullet
&::after {
position: absolute;
top: ${variableGlsp(-0.25)};
left: ${variableGlsp(-1)};
width: ${variableGlsp(2)};
height: ${variableGlsp(2)};
width: ${variableGlsp(1.5)};
height: ${variableGlsp(1.5)};
background-color: #1565EF;
color: ${themeVal('color.surface')};
border-radius: ${themeVal('shape.ellipsoid')};
Expand All @@ -181,8 +180,14 @@ export const FoldWGuideLine = styled(FoldWithBullet)`
${media.largeUp`
padding-bottom: 0;
> div {
border-left : 3px solid ${themeVal('color.base-200a')};
padding-bottom: ${variableGlsp(2)};
&::before {
position: absolute;
content: '';
height: 100%;
left: ${variableGlsp(0.7)};
border-left : 3px solid ${themeVal('color.base-200a')};
}
}
`}
`;
Expand All @@ -206,6 +211,10 @@ const FormGroupStructureCustom = styled(FormGroupStructure)`
`}
`;

const ToolbarLabelWithSpace = styled(ToolbarLabel)`
margin-right: ${variableGlsp(0.5)};
`;

const FoldBodyCustom = styled(FoldBody)`
${media.largeUp`
flex-flow: row;
Expand Down Expand Up @@ -424,7 +433,7 @@ export default function Analysis() {
</FormBlock>
</Form>
<Toolbar size='small'>
<ToolbarLabel>Presets</ToolbarLabel>
<ToolbarLabelWithSpace>Presets</ToolbarLabelWithSpace>
<ButtonGroup variation='base-outline' radius='square'>
<Button onClick={(e) => onDatePresetClick(e, 'last10Years')}>
Last 10 years
Expand Down
2 changes: 2 additions & 0 deletions app/scripts/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const VEDA_OVERRIDE_THEME = {
color: {
base: '#2c3e50',
primary: '#2276ac',
danger: '#FC3D21',
infographicA: '#fcab10',
infographicB: '#f4442e',
infographicC: '#b62b6e',
Expand Down Expand Up @@ -57,6 +58,7 @@ export const VEDA_OVERRIDE_THEME = {
};

export default function themeOverrides() {
console.log(defaultsDeep({}, theme, VEDA_OVERRIDE_THEME))

Check failure on line 61 in app/scripts/styles/theme.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check failure on line 61 in app/scripts/styles/theme.ts

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
if (theme) {
return createUITheme(defaultsDeep({}, theme, VEDA_OVERRIDE_THEME));
} else {
Expand Down

0 comments on commit 9abac3b

Please sign in to comment.