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 / SocialIconList / styled.tsx

import { styled } from 'styleh-components'
import { Link } from 'atoms/Link'

const IconsListWrapper = styled.ul`
  position: relative;
  list-style: none;
  margin: 0;
  padding: $spacing-small 0 0 0;
  display: flex;
  align-items: inherit;
  flex-direction: row;
`

const IconListPanel = styled.li.attrs({
  className: 'social-icons',
})`
  position: relative;
  display: inline-flex;
`

const IconLink = styled(Link) `
  position: relative;
  width: rem(48);
  height: rem(48);
  padding: 6px;
  margin-right: $spacing;
  cursor: pointer;

  ${props =>
    props.bgColor !== '' &&
    styled.css`
      background: ${props.bgColor};
    `};

  svg {
    position: relative;
    width: 100%;
    height: 100%;
    fill: ${props => (props.fillColor !== '' ? props.fillColor : 'black')};
  }
`
export { IconsListWrapper, IconListPanel, IconLink }