From 40e03e102c14a343efee1bdcf32d0d244e3f8344 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 13 Mar 2012 15:52:33 -0700 Subject: CSS Panel - Style updates for collapsing branches --- .../style-shorthand.reel/style-shorthand.css | 30 +++++++++++++++++++++- .../style-shorthand.reel/style-shorthand.html | 6 ++--- .../style-shorthand.reel/style-shorthand.js | 5 +++- 3 files changed, 36 insertions(+), 5 deletions(-) (limited to 'js/panels/css-panel/style-shorthand.reel') diff --git a/js/panels/css-panel/style-shorthand.reel/style-shorthand.css b/js/panels/css-panel/style-shorthand.reel/style-shorthand.css index b29a8fd6..e746146a 100644 --- a/js/panels/css-panel/style-shorthand.reel/style-shorthand.css +++ b/js/panels/css-panel/style-shorthand.reel/style-shorthand.css @@ -5,10 +5,38 @@ */ .css-tree-branch { + /*padding-left: 10px;*/ +} +.style-item { padding-left: 10px; } .css-tree-branch .css-tree-branch { padding-left: 20px; margin-top: 0; margin-bottom: 0; -} \ No newline at end of file +} +.style-shorthand-branch > div { + background-color: #fafafa; + border-bottom: 1px solid #ededed; + position: relative; +} +.style-shorthand-branch > div:hover { + background-color: #f1f1f1; + border-bottom: 1px solid #e1e1e1; + position: relative; +} +.style-shorthand-branch > div:hover:after { + opacity: 1; +} +.style-shorthand-branch > div:after { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAJCAYAAAD%2BWDajAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICA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+ right: 8px; + top: 4px; + width: 10px; + opacity: .3; +} + diff --git a/js/panels/css-panel/style-shorthand.reel/style-shorthand.html b/js/panels/css-panel/style-shorthand.reel/style-shorthand.html index 391aa846..63aa64f8 100644 --- a/js/panels/css-panel/style-shorthand.reel/style-shorthand.html +++ b/js/panels/css-panel/style-shorthand.reel/style-shorthand.html @@ -21,7 +21,8 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot "arrayController": {"@": "arrayController" }, "repetition": {"@": "repetition"}, "leafComponent": {"@": "leaf"}, - "branchComponent": {"@": "branch"} + "branchComponent": {"@": "branch"}, + "branchCollapser": {"#": "collapser"} } }, @@ -154,10 +155,9 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot