From 8a1ba16eef7e1609bfa6b7dd1bea3f104ecc81af Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 25 Jun 2015 13:35:35 -0400 Subject: [PATCH] Fixes incorrect margin value on attached table --- src/definitions/collections/table.less | 4 ++-- src/themes/default/collections/table.variables | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/definitions/collections/table.less b/src/definitions/collections/table.less index 41c0ca95f..8766d4645 100755 --- a/src/definitions/collections/table.less +++ b/src/definitions/collections/table.less @@ -522,7 +522,7 @@ /* Top */ .ui[class*="top attached"].table { - margin-top: @margin; + margin-top: @verticalMargin; border-radius: @borderRadius @borderRadius 0em 0em; } .ui.table[class*="top attached"]:first-child { @@ -532,7 +532,7 @@ /* Bottom */ .ui.table[class*="bottom attached"] { margin-top: 0em; - margin-bottom: @margin; + margin-bottom: @verticalMargin; border-radius: 0em 0em @borderRadius @borderRadius; } .ui.table[class*="bottom attached"]:last-child { diff --git a/src/themes/default/collections/table.variables b/src/themes/default/collections/table.variables index 5ac81db09..7f14d6bc2 100644 --- a/src/themes/default/collections/table.variables +++ b/src/themes/default/collections/table.variables @@ -6,7 +6,9 @@ Element --------------------*/ -@margin: 1em 0em; +@verticalMargin: 1em; +@horizontalMargin: 0em; +@margin: @verticalMargin @horizontalMargin; @borderCollapse: separate; @borderSpacing: 0px; @borderRadius: @defaultBorderRadius;