How to use the @emotion/styled.li function in @emotion/styled

To help you get started, we’ve selected a few @emotion/styled examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DavidWells / analytics / site / gatsby-theme-base / src / components / sidebar-nav / index.js View on Github external
import { colors } from '../../utils/colors'
import { smallCaps } from '../../utils/typography'

const StyledList = styled.ul({
  marginLeft: 0,
  listStyle: 'none'
})

const listItemStyles = {
  color: 'inherit',
  ':hover': {
    opacity: colors.hoverOpacity
  }
}

const StyledListItem = styled.li({
  fontSize: '1rem',
  a: {
    ...listItemStyles,
    textDecoration: 'none',
    display: 'block',
    // paddingLeft: '5px',
    width: '80%',
    '&.active': {
      color: colors.primary,
      pointerEvents: 'none'
    }
  }
})

const ExpandAll = styled.button(listItemStyles, smallCaps, {
  display: 'flex',
github emotion-js / emotion / site / src / utils / markdown-styles.js View on Github external
export const ul = styled.ul({
  marginTop: 20,
  paddingLeft: 20,

  '& li': {
    marginTop: 10
  },

  '& ol, & ul': {
    marginLeft: 20,
    marginTop: 10
  }
})

export const li = styled.li(textStyles, {
  marginTop: 10,
  p: { marginTop: 5, marginBottom: 0 },
  '& > ul, & > ol': {
    marginTop: 5,
    marginBottom: 15,
    '& > li': {
      marginTop: 5
    }
  }
})

export const img = styled.img`
  max-height: 360px;
  margin: 0 auto;
`
github DavidWells / analytics / site / gatsby-theme-oss-docs / src / components / expansion-panel.js View on Github external
fontSize: 14,
  color: colors.primary,
  textAlign: 'center',
  backgroundColor: 'white',
  position: 'absolute',
  top: 0,
  left: lineItemNumberSize / -2
})

export const ExpansionPanelList = styled.ul({
  marginLeft: lineItemNumberOffset,
  borderLeft: `1px solid ${colors.primary}`,
  listStyle: 'none'
})

const StyledListItem = styled.li({
  marginBottom: 0,
  paddingLeft: lineItemNumberOffset + 8,
  fontSize: '1rem',
  lineHeight: 1.5,
  position: 'relative',
  ':not(:last-child)': {
    marginBottom: 28
  },
  h4: {
    lineHeight: 1.3
  }
})

export function ExpansionPanelListItem(props) {
  return (
github wp-graphql / wp-graphql / docs / src / gatsby-theme-apollo-core / components / sidebar-nav / index.js View on Github external
import { smallCaps } from 'gatsby-theme-apollo-core/src/utils/typography'
import wpgqlColors from '../../../utils/colors'

const StyledList = styled.ul({
  marginLeft: 0,
  listStyle: 'none',
})

const listItemStyles = {
  color: 'inherit',
  ':hover': {
    opacity: colors.hoverOpacity,
  },
}

const StyledListItem = styled.li({
  fontSize: '1rem',
  lineHeight: 'inherit',
  a: {
    ...listItemStyles,
    textDecoration: 'none',
    '&.active': {
      color: wpgqlColors.primary,
      pointerEvents: 'none',
    },
  },
})

const ExpandAll = styled.button(listItemStyles, smallCaps, {
  display: 'flex',
  alignItems: 'center',
  marginBottom: 12,
github facebook / flipper / src / ui / components / Markdown.tsx View on Github external
const Container = styled.div({
  padding: 10,
});
const Row = styled.div({
  marginTop: 5,
  marginBottom: 5,
});
const Heading = styled.div<{level: number}>(props => ({
  fontSize: props.level === 1 ? 18 : 12,
  textTransform: props.level > 1 ? 'uppercase' : undefined,
  color: props.level > 1 ? '#90949c' : undefined,
  marginTop: 10,
  marginBottom: 10,
  fontWeight: props.level > 1 ? 'bold' : 'normal',
}));
const ListItem = styled.li({
  'list-style-type': 'circle',
  'list-style-position': 'inside',
  marginLeft: 10,
});
const Strong = styled.span({
  fontWeight: 'bold',
  color: '#1d2129',
});
const Emphasis = styled.span({
  fontStyle: 'italic',
});
const Quote = styled(Row)({
  padding: 10,
  backgroundColor: '#f1f2f3',
  fontSize: 13,
});
github DSchau / gatsby-example-cypress-circleci / src / pages / index.js View on Github external
import React from "react"
import { graphql } from "gatsby"
import styled from "@emotion/styled"
import { css } from "@emotion/core"
import { FaGithub } from "react-icons/fa"

import Layout from "../components/layout"
import { colors } from "../utils/presets"

const FeatureList = styled(`ul`)`
  margin-left: 0;
  list-style: none;
`

const FeatureListItem = styled.li({
  backgroundImage: `url(
    "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='${colors.gatsby}' d='M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z' /%3E%3C/svg%3E")`,
  backgroundPosition: `0 .25em`,
  backgroundRepeat: `no-repeat`,
  backgroundSize: `1em`,
  paddingLeft: `1.5em`,
})

const Index = ({ data, location }) => (
  
    <p></p>
github kitze / JSUI / src / components / ImportGithubUrl / styles.js View on Github external
import emotion from '@emotion/styled';

export const Folder = emotion.li({
  marginBottom: 5
});

export const Folders = emotion.ul({
});

export const Description = emotion.div({
  fontSize: 14
});
github wp-graphql / wp-graphql / docs / src / gatsby-theme-apollo-docs / components / section-nav.js View on Github external
import Slugger from 'github-slugger'
import striptags from 'striptags'
import styled from '@emotion/styled'
import useScroll from 'react-use/lib/useScroll'
import useWindowSize from 'react-use/lib/useWindowSize'
import { MainRefContext, trackEvent } from 'gatsby-theme-apollo-docs/src/utils'
import { colors } from 'gatsby-theme-apollo-core'
import wpgqlColors from '../../utils/colors'

const StyledList = styled.ul({
  marginLeft: 0,
  marginBottom: 48,
  overflow: 'auto',
})

const StyledListItem = styled.li(props => ({
  listStyle: 'none',
  fontSize: '1rem',
  lineHeight: 'inherit',
  color: props.active ? wpgqlColors.primary : colors.primary,
  marginTop: props.newSection ? `1rem` : false,
  a: {
    color: 'inherit',
    textDecoration: 'none',
    paddingLeft: props.depth > 2 ? `${props.depth - 2}rem` : 0,
    display: 'block',
    overflow: 'hidden',
    textOverflow: 'ellipsis',
    ':hover': {
      opacity: colors.hoverOpacity,
    },
  },
github bs32g1038 / node-blog / src / components / friendly-links / index.tsx View on Github external
fontSize: '14px',
    padding: '5px 5px 5px 20px',
    '&gt;i': {
        marginRight: '5px',
    }
}));

const HR = styled.hr((_) =&gt; ({
    margin: '20px 0',
    height: '3px',
    border: 'none',
    backgroundColor: '#ccc',
    backgroundImage: 'repeating-linear-gradient(-45deg, #fff, #fff 4px, transparent 4px, transparent 8px)'
}));

const LI = styled.li((_) =&gt; ({
    fontSize: '14px',
    listStyle: 'circle',
    padding: '5px'
}));

const Jump = styled(Link)((_) =&gt; ({
    fontSize: '14px',
    color: '#f51c1c',
    textDecoration: 'none'
}));

class FriendlyLinks extends Component {

    public static asyncData(store: any) {
        return store.dispatch(fetchLinks());
    }
github kitze / JSUI / src / components / ImportWebUrl / styles.js View on Github external
import emotion from '@emotion/styled';

export const Folder = emotion.li({
  marginBottom: 5
});

export const Folders = emotion.ul({
});

export const Description = emotion.div({
  fontSize: 14
});