Substrate tab theme adjustment (#939)

* 934

* ts
This commit is contained in:
Ross Bulat 2019-04-11 16:01:34 +08:00 committed by Jaco Greeff
parent 8e95b06e7b
commit c5bb43fde3
3 changed files with 16 additions and 13 deletions

View File

@ -20,8 +20,7 @@ import getLogo from './logos';
import styled from 'styled-components';
import { media } from '@polkadot/ui-app/media';
import { Responsive } from 'semantic-ui-react';
import theme from 'styled-theming';
import { primaryColor } from '@polkadot/ui-app/styles/theme';
import { logoBackground, logoPadding } from '@polkadot/ui-app/styles/theme';
type Props = I18nProps & {
collapse: () => void,
@ -32,14 +31,8 @@ type Props = I18nProps & {
};
const Toggle = styled.img`
background: ${theme('theme', {
substrate: primaryColor,
polkadot: 'none'
})};
padding: ${theme('theme', {
substrate: '4px',
polkadot: 'none'
})};
background: ${logoBackground};
padding: ${logoPadding};
border-radius: 50%;
cursor: pointer;
left: 0.9rem;
@ -47,7 +40,7 @@ const Toggle = styled.img`
position: absolute;
top: 0px;
transition: opacity 0.2s ease-in, top 0.2s ease-in;
width: 2.6rem;
width: 2.8rem;
&.delayed {
transition-delay: 0.4s;

View File

@ -179,7 +179,7 @@
&.active {
background: none; /* #fafafa */;
border: none;
border-bottom: 2px solid #3f3f3f;
border-bottom: 2px solid #db2828;
}
}
}

View File

@ -5,6 +5,16 @@
import theme from 'styled-theming';
export const primaryColor = theme('theme', {
substrate: '#333',
substrate: '#DB2828',
polkadot: '#E6007A'
});
export const logoBackground = theme('theme', {
substrate: '#333',
polkadot: 'none'
});
export const logoPadding = theme('theme', {
substrate: '4px',
polkadot: '0px'
});