Skip to content
Snippets Groups Projects
Commit 922e6584 authored by Hermann's avatar Hermann
Browse files

fix top toolbar styling

parent 5126f9ca
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ import { List, ListTile, Icon, Toolbar, ToolbarTitle, Dialog, SVG } from 'polyth ...@@ -4,6 +4,7 @@ import { List, ListTile, Icon, Toolbar, ToolbarTitle, Dialog, SVG } from 'polyth
import { styler } from 'polythene-core-css'; import { styler } from 'polythene-core-css';
import { icons } from './views/elements'; import { icons } from './views/elements';
import { resetSession } from './auth'; import { resetSession } from './auth';
import { colors } from './style'
const layoutStyle = [ const layoutStyle = [
{ {
...@@ -12,9 +13,6 @@ const layoutStyle = [ ...@@ -12,9 +13,6 @@ const layoutStyle = [
margin: 0, margin: 0,
}, },
'.main-toolbar': { '.main-toolbar': {
backgroundColor: '#1f2d54',
color: '#fff',
height: '72px',
'grid-column': '1 / span 2', 'grid-column': '1 / span 2',
'grid-row': 1, 'grid-row': 1,
}, },
...@@ -23,7 +21,7 @@ const layoutStyle = [ ...@@ -23,7 +21,7 @@ const layoutStyle = [
width: '100%', width: '100%',
display: 'grid', display: 'grid',
'grid-template-columns': '200px auto', 'grid-template-columns': '200px auto',
'grid-template-rows': '72px auto', 'grid-template-rows': '64px auto',
}, },
'.wrapper-sidebar': { '.wrapper-sidebar': {
'grid-column': 1, 'grid-column': 1,
...@@ -58,7 +56,10 @@ export class Layout { ...@@ -58,7 +56,10 @@ export class Layout {
view({ children }) { view({ children }) {
return m('div', [ return m('div', [
m('div.wrapper-main.smooth', [ m('div.wrapper-main.smooth', [
m(Toolbar, { className: 'main-toolbar' }, [ m(Toolbar, {
className: 'main-toolbar',
style: { backgroundColor: colors.amiv_blue, color: '#ffffff' },
}, [
m(ToolbarTitle, { text: 'AMIV Admintools' }), m(ToolbarTitle, { text: 'AMIV Admintools' }),
m('a', { onclick: resetSession }, 'Logout'), m('a', { onclick: resetSession }, 'Logout'),
]), ]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment