Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 4.2.0-a11y.0 

/ src / components / molecules / DetailedList / styled.tsx

import { styled } from 'styleh-components'

const DetailedListWrapper = styled.div`
  width: 100%;
`

/**
 * @todo isColumnView is not working right now
 * this logic will be changed by using React.Context
 *
 * @note was just a typo - currently it's in by using breakpoints
 */
// flex-direction: ${props => (props.isColumnView === true ? 'column' : 'row')};

const DetailedListItemPanel = styled.dl`
  display: flex;
  flex-direction: row;

  @media (max-width: 767px) {
    flex-direction: column;
  }
`
const DetailedListLabel = styled.dt`
  ${props =>
    props.isColon === true &&
    styled.css`
      &::after {
        content: ':';
      }
    `};
`
const DetailedListValue = styled.dd`
  @media (max-width: 767px) {
    margin: 10px 0;
  }
`

export {
  DetailedListWrapper,
  DetailedListItemPanel,
  DetailedListLabel,
  DetailedListValue,
}