From 7bfa4de071b3bd961088efcf4274a00c34db7184 Mon Sep 17 00:00:00 2001 From: jlukic Date: Mon, 4 Nov 2013 16:19:07 -0500 Subject: [PATCH] Fixes attached segment not receiving :first/:last child stylings --- src/elements/segment.less | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/elements/segment.less b/src/elements/segment.less index 2578925f9..9170103c6 100755 --- a/src/elements/segment.less +++ b/src/elements/segment.less @@ -37,7 +37,6 @@ .ui.segment:first-child { margin-top: 0em; } - .ui.segment:last-child { margin-bottom: 0em; } @@ -436,6 +435,7 @@ -webkit-box-shadow: 0px 0px 0px 1px #DDDDDD; box-shadow: 0px 0px 0px 1px #DDDDDD; } + .ui.top.attached.segment { top: 0px; bottom: -1px; @@ -447,6 +447,10 @@ -webkit-border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px; } +.ui.segment.top.attached:first-child { + margin-top: 0em; +} + .ui.segment.bottom.attached { top: -1px; bottom: 0px; @@ -458,3 +462,6 @@ -webkit-border-radius: 0px 0px 5px 5px; border-radius: 0px 0px 5px 5px; } +.ui.segment.bottom.attached:last-child { + margin-bottom: 0em; +}