-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoolbar.tsx
More file actions
37 lines (25 loc) · 802 Bytes
/
toolbar.tsx
File metadata and controls
37 lines (25 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { Attrs } from 'elt'
import { Flex } from './flex'
import { Styling } from './styling'
import { cls, s } from 'osun'
export function Toolbar(attrs: Attrs, children: DocumentFragment): Element {
return <div class={[Toolbar.container, Flex.row, Flex.align_center]}>
<div class={[Toolbar.toolbar_main, Flex.row, Flex.align_center, Flex.absolute_grow]}>{children}</div>
</div>;
}
export namespace Toolbar {
export const container = cls('toolbar',
Styling.colors.reverse_primary
)
export const toolbar_main = cls('toolbar-main',
{
fontSize: '24px',
padding: `0 16px 0 0`,
height: '64px',
},
)
s`*`.childOf(toolbar_main, {
marginLeft: '16px'
})
s`h3`.childOf(toolbar_main, {fontSize: '24px', margin: '0 0 0 16px', padding: 0})
}