From a38ff23f1898527403564cc1157baec6f3cf3d68 Mon Sep 17 00:00:00 2001 From: "Mansour J. Mansour" Date: Thu, 20 Jun 2019 11:35:36 +0200 Subject: [PATCH] fix: remove outer paddings to match new nordnet/ui grid --- src/col/styles.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/col/styles.js b/src/col/styles.js index df0454e..fdf3551 100644 --- a/src/col/styles.js +++ b/src/col/styles.js @@ -8,12 +8,20 @@ const styles = { flex: '0 0 auto', paddingRight: gutter / 2, paddingLeft: gutter / 2, + + '&:first-of-type': { + paddingLeft: 0, + }, + + '&:last-of-type': { + paddingRight: 0, + }, }, reverse: { 'flex-direction': 'column-reverse', }, }; -const _size = i => Number(100 / columns * i).toFixed(4); +const _size = i => Number((100 / columns) * i).toFixed(4); const helpers = { basic: {