import styled from 'styled-components'; import { colors } from '../../config.json'; import ImageView from './ImageView'; export const StyledNavigationBarSeparator = styled.div({ backgroundColor: 'rgba(0, 0, 0, 0.2)', position: 'absolute', bottom: 0, left: 0, right: 0, height: '1px', }); export const StyledNavigationItems = styled.div({ flex: 1, display: 'grid', gridTemplateColumns: '1fr auto 1fr', alignItems: 'center', }); export const StyledNavigationBar = styled.nav((props: { unpinnedWindow: boolean }) => ({ flex: 0, padding: '12px', paddingTop: window.env.platform === 'darwin' && !props.unpinnedWindow ? '24px' : '12px', })); export const StyledTitleBarItemLabel = styled.h1({}, (props: { visible?: boolean }) => ({ fontFamily: 'Open Sans', fontSize: '16px', fontWeight: 600, lineHeight: '22px', color: colors.white, padding: '0 5px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', opacity: props.visible ? 1 : 0, transition: 'opacity 250ms ease-in-out', })); export const StyledCloseBarItemButton = styled.button({ justifySelf: 'start', borderWidth: 0, padding: 0, margin: 0, cursor: 'default', backgroundColor: 'transparent', }); export const StyledCloseBarItemIcon = styled(ImageView)({ flex: 0, }); export const StyledBackBarItemButton = styled.button({ justifySelf: 'start', borderWidth: 0, padding: 0, margin: 0, cursor: 'default', display: 'flex', flexDirection: 'row', alignItems: 'center', backgroundColor: 'transparent', }); export const StyledBackBarItemIcon = styled(ImageView)({ marginRight: '8px', [StyledBackBarItemButton + ':hover &']: { backgroundColor: colors.white60, }, }); export const StyledBackBarItemLabel = styled.span({ fontFamily: 'Open Sans', fontSize: '13px', fontWeight: 600, color: colors.white60, whiteSpace: 'nowrap', [StyledBackBarItemButton + ':hover &']: { color: colors.white80, }, });