ab-tests
Version:
HBUI library
89 lines (76 loc) • 1.59 kB
JavaScript
import React from 'react'
import tw, { css, styled } from 'twin.macro'
import { greyscale_light_300 } from '../../constants/colors'
export const Section = styled.div(() => [
css`
// outline: 1px solid red;
display: flex;
flex-direction: column;
`,
tw`w-full`,
])
export const Container = styled.div(() => [
css`
// outline: 1px solid blue;
align-self: center;
`,
tw`w-[calc(100% - 40px)] md:w-11/12 xl:w-10/12 2xl:w-9/12`,
])
export const ContainerRow = styled(Container)`
display: flex;
`
export const PaddingBox = styled.div(() => [tw`py-4 md:py-8 lg:py-12`])
export const PageRoot = styled(Section)(() => [
css`
min-height: 100vh;
`,
])
// sidebar layout
export const SBLRoot = styled.div(() => [
css`
display: flex;
align-items: center;
height: 100vh;
overflow: hidden;
`,
])
export const SBLRootContent = styled.div(() => [
css`
height: 100vh;
overflow-y: scroll;
`,
tw`bg-secondary w-full`,
])
export const SBLRootSidebar = styled.div(() => [
tw`bg-primary w-[0] md:w-[270px]`,
css`
height: 100vh;
`,
])
export const ItemsRow = styled.div(() => [
tw`flex flex-wrap`,
css`
> * {
${tw`mr-2`}
}
> *:last-child {
${tw`mr-0`}
}
`,
])
export const Separator = styled.div(props => [
css`
height: 1px;
width: 100%;
opacity: 0.5;
margin-top: 20px;
`,
tw`bg-quaternary dark:(bg-quaternary)`,
])
export const Window = styled.div(({}) => [
tw`bg-primary py-sm px-md shadow rounded`,
css`
margin: 0 auto;
max-width: 696px;
`,
])