From 7881f60298b44e5e48d62d602aefc9f328b722b5 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 7 Apr 2013 15:13:50 +1200 Subject: [PATCH] FIX: nested SelectionGroups should only hide first level --- css/SelectionGroup.css | 4 ++-- scss/SelectionGroup.scss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/SelectionGroup.css b/css/SelectionGroup.css index f82067920..4fb00b4d6 100644 --- a/css/SelectionGroup.css +++ b/css/SelectionGroup.css @@ -1,9 +1,9 @@ .SelectionGroup { padding: 0px; clear: both; } .SelectionGroup li { list-style-type: none; float: left; width: 100%; clear: both; } .SelectionGroup li input.selector { width: 20px; float: left; } -.SelectionGroup li div.field { display: none; font-size: 1em; } +.SelectionGroup li > div.field { display: none; font-size: 1em; } .SelectionGroup li input, .SelectionGroup .right .SelectionGroup li label { display: block; } -.SelectionGroup li.selected div.field { margin-left: 30px; display: block; margin-bottom: 1em; } +.SelectionGroup li.selected > div.field { margin-left: 30px; display: block; margin-bottom: 1em; } .SelectionGroup li.selected label.selector { font-weight: bold; } .mainblock.allassets ul { padding: 0 0 0 10px; height: 100px; overflow-y: scroll; } diff --git a/scss/SelectionGroup.scss b/scss/SelectionGroup.scss index e7b134285..6e72ca8ef 100755 --- a/scss/SelectionGroup.scss +++ b/scss/SelectionGroup.scss @@ -12,14 +12,14 @@ width: 20px; float : left; } - li div.field { + li > div.field { display: none; font-size: 1em; } li input, .right .SelectionGroup li label { display: block; } - li.selected div.field { + li.selected > div.field { margin-left: 30px; display: block; margin-bottom: 1em;