Sha256: 4b97f48e32d299f968a657e821bb0187a64576f0208607000f2418155cf628f3
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/postcss_mixins/minTouchTarget.js |
yattho_view_components-0.0.1 | lib/postcss_mixins/minTouchTarget.js |