diff --git a/frontend/assets/icons/menu.svg b/frontend/assets/icons/menu.svg
deleted file mode 100644
index 4523b5a1..00000000
--- a/frontend/assets/icons/menu.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/frontend/assets/icons/search.svg b/frontend/assets/icons/search.svg
deleted file mode 100644
index f974b540..00000000
--- a/frontend/assets/icons/search.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/frontend/components/Button/Button.js b/frontend/components/Button/Button.js
index d0b3afff..20ecb553 100644
--- a/frontend/components/Button/Button.js
+++ b/frontend/components/Button/Button.js
@@ -1,17 +1,18 @@
// @flow
import React from 'react';
import styled from 'styled-components';
-import { size, color } from 'styles/constants';
-import { darken } from 'polished';
+import { color } from 'styles/constants';
+import { darken, lighten } from 'polished';
const RealButton = styled.button`
display: inline-block;
- margin: 0 ${size.medium} ${size.large} 0;
+ margin: 0;
padding: 0;
border: 0;
- background: ${props => (props.neutral ? color.slate : props.danger ? color.danger : color.primary)};
+ background: ${color.primary};
color: ${color.white};
border-radius: 4px;
+ font-size: 15px;
min-width: 32px;
min-height: 32px;
text-decoration: none;
@@ -23,30 +24,70 @@ const RealButton = styled.button`
border: 0;
}
&:hover {
- background: ${props => darken(0.05, props.neutral ? color.slate : props.danger ? color.danger : color.primary)};
+ background: ${darken(0.05, color.primary)};
}
+
+ svg {
+ position: relative;
+ top: .05em;
+ }
+
+ ${props => props.light && `
+ color: ${color.text};
+ background: ${lighten(0.08, color.slateLight)};
+
+ &:hover {
+ background: ${color.slateLight};
+ }
+ `}
+
+ ${props => props.neutral && `
+ background: ${color.slate};
+
+ &:hover {
+ background: ${darken(0.05, color.slate)};
+ }
+ `}
+
+ ${props => props.danger && `
+ background: ${color.danger};
+
+ &:hover {
+ background: ${darken(0.05, color.danger)};
+ }
+ `}
+
&:disabled {
background: ${color.slateLight};
}
`;
const Label = styled.span`
- padding: 4px 16px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
- font-weight: 500;
+
+ ${props => props.hasIcon && 'padding-left: 2px;'}
`;
const Inner = styled.span`
+ padding: 4px 16px;
display: flex;
line-height: 28px;
justify-content: center;
+ align-items: center;
+
+ ${props => props.small && `
+ padding: 1px 10px;
+ `}
+
+ ${props => props.hasIcon && (props.small ? 'padding-left: 6px;' : 'padding-left: 10px;')}
`;
export type Props = {
type?: string,
value?: string,
+ small?: boolean,
icon?: React$Element,
className?: string,
children?: React$Element,
@@ -56,6 +97,7 @@ export default function Button({
type = 'text',
icon,
children,
+ small,
value,
...rest
}: Props) {
@@ -64,9 +106,9 @@ export default function Button({
return (
-
+
{hasIcon && icon}
- {hasText && }
+ {hasText && }
);
diff --git a/frontend/components/DropdownMenu/DropdownMenu.js b/frontend/components/DropdownMenu/DropdownMenu.js
index 69874c0a..0e1cd9c9 100644
--- a/frontend/components/DropdownMenu/DropdownMenu.js
+++ b/frontend/components/DropdownMenu/DropdownMenu.js
@@ -64,9 +64,7 @@ const Label = styled(Flex).attrs({
justify: 'center',
align: 'center',
})`
- cursor: pointer;
z-index: 1000;
- min-height: 43px;
`;
const MenuContainer = styled.div`
diff --git a/frontend/scenes/Document/Document.js b/frontend/scenes/Document/Document.js
index dd7d78e0..fafd5260 100644
--- a/frontend/scenes/Document/Document.js
+++ b/frontend/scenes/Document/Document.js
@@ -216,21 +216,24 @@ type Props = {
}
isNew={!!isNew}
/>
- :
- Edit
- }
-
-
- {isEditing
- ? undefined
- :
- New
- }
+ : }
{isEditing
? Cancel
- : }
+ : }
+ light
+ small
+ />}
+
+
+ {!isEditing &&
+ }
@@ -246,7 +249,7 @@ const HeaderAction = styled(Flex)`
align-items: center;
min-height: 43px;
color: ${color.text};
- padding: 0 0 0 16px;
+ padding: 0 0 0 10px;
a {
color: ${color.text};