From 72ad2e9710adfccaab637fffdf6c82712aa85197 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Thu, 3 May 2012 11:50:03 -0700 Subject: Style sheets - Add stub for add stylesheet button --- .../css-panel/style-sheets-view.reel/style-sheets-view.css | 8 ++++---- .../css-panel/style-sheets-view.reel/style-sheets-view.html | 11 +++++++++-- .../css-panel/style-sheets-view.reel/style-sheets-view.js | 10 ++++++++++ 3 files changed, 23 insertions(+), 6 deletions(-) (limited to 'js/panels/css-panel') diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.css b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.css index 7a46e387..a3e13c77 100644 --- a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.css +++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.css @@ -9,19 +9,19 @@ overflow: hidden; } -.style-sheets-view-container ul { +.style-sheets-view-container .sheet-list { margin: 0; padding: 0; min-height: 55px; } -.style-sheets-view-container li { +.style-sheets-view-container .sheet-list li { list-style-type: none; margin: 0 8px; } -.style-sheets-view-container li:first-child { +.style-sheets-view-container .sheet-list li:first-child { margin-top: 5px; } -.style-sheets-view-container li:last-child { +.style-sheets-view-container .sheet-list li:last-child { margin-bottom: 5px; } diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html index 09e2e3ce..484d3c04 100644 --- a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html +++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.html @@ -84,7 +84,14 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot "module": "js/components/toolbar.reel", "name": "Toolbar", "properties": { - "element": {"#": "style-sheets-toolbar"} + "element": {"#": "style-sheets-toolbar"}, + "delegate": {"@": "owner" }, + "buttons": [ + { + "title": "Add", + "identifier": "add" + } + ] } }, "resizer": { @@ -115,7 +122,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot