How to use the @pluralsight/ps-design-system-core.layout.spacingLarge function in @pluralsight/ps-design-system-core

To help you get started, we’ve selected a few @pluralsight/ps-design-system-core 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 pluralsight / design-system / packages / layout / src / css / aside-layout.js View on Github external
import { layout } from '@pluralsight/ps-design-system-core'

import { asideLayout as vars } from '../vars/index.js'

export default {
  '.psds-aside-layout': {
    display: 'flex'
  },
  [`.psds-aside-layout--aside-position-${vars.asidePositions.first}`]: {
    flexDirection: 'column'
  },
  [`.psds-aside-layout--aside-position-${vars.asidePositions.last}`]: {
    flexDirection: 'column-reverse'
  },
  [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.first}`]: {
    marginBottom: layout.spacingLarge
  },
  [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.last}`]: {
    marginTop: layout.spacingLarge
  },
  '@media (min-width: 769px)': {
    [`.psds-aside-layout--aside-position-${vars.asidePositions.first}`]: {
      flexDirection: 'row'
    },
    [`.psds-aside-layout--aside-position-${vars.asidePositions.last}`]: {
      flexDirection: 'row-reverse'
    },
    '.psds-aside-layout__aside': {
      width: 'calc(25%)'
    },
    [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.first}`]: {
      marginBottom: 0,
github pluralsight / design-system / packages / layout / src / css / aside-layout.js View on Github external
[`.psds-aside-layout--aside-position-${vars.asidePositions.first}`]: {
      flexDirection: 'row'
    },
    [`.psds-aside-layout--aside-position-${vars.asidePositions.last}`]: {
      flexDirection: 'row-reverse'
    },
    '.psds-aside-layout__aside': {
      width: 'calc(25%)'
    },
    [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.first}`]: {
      marginBottom: 0,
      marginRight: layout.spacingLarge
    },
    [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.last}`]: {
      marginTop: 0,
      marginLeft: layout.spacingLarge
    },
    '.psds-aside-layout__main': {
      width: 'calc(75%)'
    }
  }
}
github pluralsight / design-system / packages / layout / src / css / page-heading-layout.js View on Github external
import { layout } from '@pluralsight/ps-design-system-core'

export default {
  '.psds-page-heading-layout': {
    padding: layout.spacingLarge
  },
  '.psds-page-heading-layout__actions': {
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'left',
    flexWrap: 'wrap',

    '& > *': {
      marginRight: layout.spacingSmall,
      marginBottom: layout.spacingMedium
    }
  },
  '@media (min-width: 769px)': {
    '.psds-page-heading-layout__heading': {
      display: 'flex',
      alignItems: 'center'
github pluralsight / design-system / packages / layout / src / css / aside-layout.js View on Github external
export default {
  '.psds-aside-layout': {
    display: 'flex'
  },
  [`.psds-aside-layout--aside-position-${vars.asidePositions.first}`]: {
    flexDirection: 'column'
  },
  [`.psds-aside-layout--aside-position-${vars.asidePositions.last}`]: {
    flexDirection: 'column-reverse'
  },
  [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.first}`]: {
    marginBottom: layout.spacingLarge
  },
  [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.last}`]: {
    marginTop: layout.spacingLarge
  },
  '@media (min-width: 769px)': {
    [`.psds-aside-layout--aside-position-${vars.asidePositions.first}`]: {
      flexDirection: 'row'
    },
    [`.psds-aside-layout--aside-position-${vars.asidePositions.last}`]: {
      flexDirection: 'row-reverse'
    },
    '.psds-aside-layout__aside': {
      width: 'calc(25%)'
    },
    [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.first}`]: {
      marginBottom: 0,
      marginRight: layout.spacingLarge
    },
    [`.psds-aside-layout__aside--aside-position-${vars.asidePositions.last}`]: {
github pluralsight / design-system / packages / layout / src / css / page-heading-layout.js View on Github external
justifyContent: 'left',
    flexWrap: 'wrap',

    '& > *': {
      marginRight: layout.spacingSmall,
      marginBottom: layout.spacingMedium
    }
  },
  '@media (min-width: 769px)': {
    '.psds-page-heading-layout__heading': {
      display: 'flex',
      alignItems: 'center'
    },
    '.psds-page-heading-layout__actions': {
      marginLeft: 'auto',
      paddingLeft: layout.spacingLarge,
      justifyContent: 'flex-end',
      alignItems: 'center',
      flexWrap: 'nowrap',

      '& > *': {
        marginRight: 0,
        marginBottom: 0
      },
      '& > * + *': {
        marginLeft: layout.spacingSmall
      }
    }
  }
}
github pluralsight / design-system / packages / layout / src / css / page-width-layout.js View on Github external
import { layout } from '@pluralsight/ps-design-system-core'

export default {
  '.psds-page-width-layout': {
    marginLeft: 'auto',
    marginRight: 'auto',
    maxWidth: '1600px',
    paddingLeft: layout.spacingLarge,
    paddingRight: layout.spacingLarge
  },
  '@media (min-width: 769px)': {
    '.psds-page-width-layout': {
      paddingLeft: layout.spacingXLarge,
      paddingRight: layout.spacingXLarge
    }
  }
}
github pluralsight / design-system / packages / layout / src / css / page-width-layout.js View on Github external
import { layout } from '@pluralsight/ps-design-system-core'

export default {
  '.psds-page-width-layout': {
    marginLeft: 'auto',
    marginRight: 'auto',
    maxWidth: '1600px',
    paddingLeft: layout.spacingLarge,
    paddingRight: layout.spacingLarge
  },
  '@media (min-width: 769px)': {
    '.psds-page-width-layout': {
      paddingLeft: layout.spacingXLarge,
      paddingRight: layout.spacingXLarge
    }
  }
}
github pluralsight / design-system / packages / layout / src / css / equal-column-layout.js View on Github external
import { layout } from '@pluralsight/ps-design-system-core'

import { equalColumnLayout as vars } from '../vars/index.js'

export default {
  '.psds-equal-column-layout': {
    display: 'flex',
    flexWrap: 'wrap',
    margin: `calc(${layout.spacingLarge} / -2)`
  },
  '.psds-equal-column-layout__column': {
    margin: `calc(${layout.spacingLarge} / 2)`
  },
  [`.psds-equal-column-layout__column--count-${vars.counts.two}`]: {
    width: '100%'
  },
  [`.psds-equal-column-layout__column--count-${vars.counts.three}`]: {
    width: '100%'
  },
  [`.psds-equal-column-layout__column--count-${vars.counts.four}`]: {
    width: `calc(50% - ${layout.spacingLarge})`
  },
  [`.psds-equal-column-layout__column--count-${vars.counts.six}`]: {
    width: `calc(50% - ${layout.spacingLarge})`
  },