Plugin tool icons on control_input
authorDarren <darren@Darrens-MacBook-Pro.local>
Fri, 29 Mar 2013 17:32:33 +0000 (17:32 +0000)
committerDarren <darren@Darrens-MacBook-Pro.local>
Fri, 29 Mar 2013 17:32:33 +0000 (17:32 +0000)
client/assets/css/style.css
client/assets/dev/index.html.tmpl
client/assets/dev/view.js

index 697bbd4b836d518c421407e8ef0c0a038010208b..7af1011787df29e719b2046e247f4b0a55dab0f3 100644 (file)
@@ -114,7 +114,7 @@ html, body { height:100%; }
  * Control box
  */
 #kiwi #controlbox .input {
-    height:1.7em;
+    height:1.7em; position:relative;
 }
 
 /* The nick label */
@@ -136,6 +136,10 @@ html, body { height:100%; }
 #kiwi #controlbox .nickchange input { }
 #kiwi #controlbox .nickchange button { }
 
+/* Plugin tools */
+#kiwi #controlbox .input_tools { float:right; }
+#kiwi #controlbox .input_tools .tool { margin:0 1em; display:inline; }
+
 
 
 /**
index 2b948d9783520a6792218ddd2a5da18d5923c3f1..b2caf936bfc42aacdfadfb56d975a1018c805420 100644 (file)
@@ -47,6 +47,7 @@
             <div class="input">\r
                 <span class="nick"> </span>\r
                 <div class="input_wrap"><textarea class="inp"></textarea></div>\r
+                <div class="input_tools"></div>\r
             </div>\r
         </div>\r
     </div>\r
index c4c4bc62949929d1d5561907e5b9fb88a36e4221..d9522a1e6783d561ff63d0b24efbe026a3721a9a 100644 (file)
@@ -1237,6 +1237,9 @@ _kiwi.view.Application = Backbone.View.extend({
             // And move the handle just out of sight to the right\r
             el_resize_handle.css('left', el_panels.outerWidth(true));\r
         }\r
+\r
+        var input_wrap_width = parseInt($('#kiwi #controlbox .input_tools').outerWidth());\r
+        el_controlbox.find('.input_wrap').css('right', input_wrap_width + 7);\r
     },\r
 \r
 \r