Sha256: 36464020d707f39b8b9ed1dc523005f95590fb1fdd48b7f20ff99eed64e071aa

Contents?: true

Size: 401 Bytes

Versions: 169

Compression:

Stored size: 401 Bytes

Contents

module.exports = function (mixin, minHeight = '32px', minWidth = null) {
  let declarations = {
    position: 'absolute',
    top: '50%',
    left: '50%',
    width: '100%',
    height: '100%',
    'min-height': minHeight,
    content: '""',
    transform: 'translateX(-50%) translateY(-50%)'
  }

  if (minWidth) {
    declarations['min-width'] = minWidth
  }

  return {
    '&': declarations
  }
}

Version data entries

169 entries across 169 versions & 2 rubygems

Version Path
primer_view_components-0.0.101 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.100 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.99 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.98 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.97 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.96 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.95 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.94 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.93 lib/postcss_mixins/minTouchTarget.js