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.121 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.120 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.119 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.118 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.117 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.116 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.115 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.114 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.113 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.112 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.111 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.110 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.109 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.108 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.107 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.106 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.105 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.104 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.103 lib/postcss_mixins/minTouchTarget.js
primer_view_components-0.0.102 lib/postcss_mixins/minTouchTarget.js